{include file="$gentemplates/$header_tpl"}
	<h2>{if $club_photos}{$lang.section.club_photos}{else}{$lang.section.club_news}{/if} {$lang.club.in_category} {$club_name}</h2>
	{*if $form.err}
		<p>
			*&nbsp;{$form.err}
		</p>
	{/if*}
        <div class="club_content">
            <div class="club">
            {if $par eq 'photos'}
				{section name=u loop=$club_photos}
					<div class="float_left" style="width: 160px; position: relative;margin-bottom:20px;">
						{if $club_photos[u].view_link}
							<a class="imgcanvas_container" href="#" onclick="javascript: window.open('{$club_photos[u].view_link}','photo_view','menubar=0, resizable=1, scrollbars=0,status=0,toolbar=0, width=800,height=600');return false;">
							<img src="{$club_photos[u].upload_thumb_path}" class="imgcanvas" alt="">
							</a>
						{else}
							<a class="imgcanvas_container"><img src="{$club_photos[u].upload_thumb_path}" class="imgcanvas" alt=""></a>
						{/if}
						
						{if $user_is_leader eq 1}
							<a class="delete_icon_grey" style="top:82px; left:5px; position:absolute;" href="{$club_photos[u].del_link}" title="{$lang.button.delete}">&nbsp;</a>							
						{/if}
					</div>
				{/section}
			{else}
				{section name=n loop=$club_news}
				<div style="overflow:hidden;">
				<div style="margin-bottom:20px;" class="float_left">
					<p>
						<span class="text_head">{$club_news[n].news_name}</span><br />
						<font class="text_hidden">{$club_news[n].creation_date}</font>
					</p>
					<p>
						{$club_news[n].news_text}
					</p>
				</div>
				{if $user_is_leader eq 1}
					<div class="float_right">
						<p><a style="cursor:pointer;" title="{$lang.button.edit}" onclick="launchWindow('{$club_news[n].edit_news_link}','',650,510); return false;">{$lang.button.edit}</a></p>
						<p><a style="cursor:pointer;" title="{$lang.button.delete}" href="{$site_root}/{$seo.club}?sel=delete_new&id={$club_news[n].id}">{$lang.button.delete}</a></p>
					</div>
				{/if}
				</div>
				{/section}
			{/if}
			{if $links}
			<div style="margin: 0px"><div style="margin-{$default_left}: 10px">
			{foreach item=item from=$links}
				<div class="page_div{if $item.selected eq '1'}_active{/if}">
					<div style="margin: 5px"><a href="{$item.link}" class="page_link{if $item.selected eq '1'}_active{/if}">{$item.name}</a></div>
				</div>
			{/foreach}
			</div></div>
			{/if}
            </div>
        </div>
{include file="$gentemplates/$footer_tpl"}