
<h1>{{$lang.Forms}}</h1>
<a href="?p=forms-form" class="new_element">{{$lang.New_form}}</a>

{{if count( $aForms ) > 0}}
	<form action="?p={{$_GET.p}}" method="post">
		<fieldset>
			<table class="list">
				<thead>
					<tr>
						<th class="id">{{$lang.Id}}</th><th class="name">{{$lang.Name}}</th><th class="email">{{$lang.Email}}</th><th class="actions">{{$lang.Actions}}</th>
					</tr>
				</thead>
				<tbody>
					{{foreach from=$aForms item=aForm}}
						<tr>
							<td class="id">{{$aForm.iForm}}</td>
							<td class="name"><a href="?p={{$aActions.f}}-form&amp;iForm={{$aForm.iForm}}">{{$aForm.sTitle}}</a></td>
							<td class="email">{{$aForm.sEmail}}</td>
							<td class="actions">
								<a href="?p={{$aActions.f}}-form&amp;iForm={{$aForm.iForm}}"><img src="{{$config.dir_templates}}admin/images/ico/edit.png" alt="{{$lang.Edit}}" title="{{$lang.Edit}}" /></a>
								<a href="?p={{$aActions.f}}-delete&amp;iForm={{$aForm.iForm}}" 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>
		</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}}