{include file="$gentemplates/$header_tpl"}
	<div style="width:100%;">
	<h2>{$lang.events.event_photos} {$event_name}</h2>	
	{*if $form.err}
		<p class="error_msg">*&nbsp;{$form.err}</p>
	{/if*}
	<div style="display:table;width:100%;padding: 15px 0;">
		{include file="$gentemplates/pagination_top.tpl"}
	</div>
	
	<dl>
		<dd valign="top" class="text">
			<div class="content" style=" margin: 0px;">
				<div style="width:100%;display:table;">
					{section name=u loop=$event_photos}
					{if $smarty.section.u.index is div by 5}<dl>{/if}
					<dt style="padding-bottom: 15px;" align="center">
						<div>
							{if $event_photos[u].view_link}
								<a href="#" onclick="javascript: window.open('{$event_photos[u].view_link}','photo_view','menubar=0, resizable=1, scrollbars=0,status=0,toolbar=0, width=800,height=600');return false;">
							{/if}
							<img src="{$event_photos[u].upload_thumb_path}" class="icon imgcanvas" alt="">
							{if $event_photos[u].view_link}</a>{/if}
						</div>
						{if ($user_is_creator eq 1) || ($event_photos[u].user_upload eq 1)}
						<div style="position:relative;">
							<a title="{$lang.button.delete}" onclick="document.location.href='{$event_photos[u].del_link}';" class="delete_icon_grey" style="top:-28px; {$default_left}:5px; position:absolute;">&nbsp;</a>
						</div>	
						{/if}
					</dt>
					{if $smarty.section.u.index_next is div by 5 || $smarty.section.u.last}</dl>{/if}
					{/section}
				</div>
			</div>
		</dd>
	</dl>
	{include file="$gentemplates/pagination_bottom.tpl"}
	
	</div>
{include file="$gentemplates/$footer_tpl"}