<h1>{{$lang.Polls}}</h1>
<a href="?p=polls-form" class="new_element">{{$lang.New_Poll}}</a>
{{if count( $aPolls ) > 0}}
	<table class="list">
		<thead>
			<tr>
				<th class="id">{{$lang.Id}}</th><th class="date">{{$lang.Date}}</th><th class="question">{{$lang.Poll_question}}</th><th class="actions">{{$lang.Actions}}</th>
			</tr>
		</thead>
		<tbody>
			{{foreach from=$aPolls item=aPoll}}
				<tr>
					<td class="id">{{$aPoll.iPollId}}</td><td class="date">{{$aPoll.sDate}}</td><td class="question"><a href="?p={{$aActions.f}}-form&amp;iPoll={{$aPoll.iPollId}}">{{$aPoll.sQuestion}}</a></td>
					<td class="actions">
						<a href="?p={{$aActions.f}}-form&amp;iPoll={{$aPoll.iPollId}}"><img src="{{$config.dir_templates}}admin/images/ico/edit.png" alt="{{$lang.Edit}}" title="{{$lang.Edit}}" /></a>
						<a href="?p={{$aActions.f}}-delete&amp;iPoll={{$aPoll.iPollId}}" 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>
{{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}}