<h1>{{$lang.Banners}}</h1>
<a href="?p=banners-form" class="new_element">{{$lang.Add_banner}}</a>
{{if count( $aBanners ) > 0}}
<form action="" method="post" id="bannerFxForm">
	<fieldset>
	<table class="list" id="banners">
		<thead>
			<tr><td colspan="7">
				<div class="filter">
					<label>{{$lang.bannerTimeout}}</label>
					<input name="bannerTimeout" type="text" value="{{$config.bannerTimeout}}" style="width:40px" />
				</form>
				</div>
			</td></tr>
			<tr>
				<th class="id">ID</th><th class="banner">{{$lang.Name}}</th><th class="status">{{$lang.Active}}</th><th class="clicks">{{$lang.Clicks}}</th><th class="views">{{$lang.Views}}</th><th class="banner-type">{{$lang.Type}}</th><th class="actions">{{$lang.Actions}}</th>
			</tr>
		</thead>
		<tbody>
		{{foreach from=$aBanners item=aBanner}}
			<tr>
				<td class="id">{{$aBanner.iBanner}}</td>
				<td class="banner">
					<div class="banner-archive">
						<img src="{{$config.dir_files}}{{$aBanner.sFile}}" alt="{{$aBanner.sLink}}" title="{{$aBanner.sLink}}" />
					</div>
				</td>
				<td class="enabled"><input name="aStatuses[{{$aBanner.iBanner}}]" type="hidden" value="0"/><input name="aStatuses[{{$aBanner.iBanner}}]" type="checkbox" {{if $aBanner.iStatus}}checked="checked"{{/if}} value="1"/></td>
				<td class="clicks">{{$aBanner.iClicks}}/{{if empty( $aBanner.iMaxClicks )}}∞{{else}}{{$aBanner.iMaxClicks}}{{/if}}</td>
				<td class="views">{{$aBanner.iViews}}/{{if empty( $aBanner.iMax )}}∞{{else}}{{$aBanner.iMax}}{{/if}}</td>
				<td class="banner-type">{{$aBanner.sType}}</td>
				<td class="actions">
					<a href="?p={{$aActions.f}}-form&amp;iBanner={{$aBanner.iBanner}}"><img src="{{$config.dir_templates}}admin/images/ico/edit.png" alt="{{$lang.Edit}}" title="{{$lang.Edit}}" /></a>
					<a href="?p={{$aActions.f}}-delete&amp;iBanner={{$aBanner.iBanner}}" class="delete" onclick="return del( );"><img src="{{$config.dir_templates}}admin/images/ico/delete.png" alt="{{$lang.Delete}}" title="{{$lang.Delete}}"/></a>
				</td>
			</tr>
		{{/foreach}}
		</tbody>
	</table>
	<div class="save float"><div class="save floatcontainer">
		<input type="submit" class="submit" value="&laquo; {{$lang.return}}" onclick="location.href = '?p=banners-list'; return false;"> <input type="submit" class="submit" value="{{$lang.Save}} &raquo;" name="sOption" />
	</div></div>
	</fieldset>
</form>
{{else}}
	<div class="msg" id="error">
		<img src="{{$config.dir_templates}}admin/images/ico/msg_error.png" class="imgv" alt="" /> {{$lang.Data_not_found}}
	</div>
{{/if}}