<div class="actionPanelLeft">
	<div class="actionPanelRight p16">
		<div id="actionTop">
			<form action="{FILTER_LINK}" method="POST" id="pageCounterForm">
			<table width="100%" cellspacing="0" cellpadding="0" border="0">
			<tr>
			<td>
				<div class="button" id="actionNew">
					<div class="buttonRight">
						<div class="buttonMiddle">{rs:ACTION_ADD} {rs:TITLE_BLACK_LIST}</div>
					</div>
				</div>
			</td>

			<td class="space"><div class="labelBox">{rs:COUNT_PER_PAGE}:</div></td>
			<td>
				<select name="_cp">
				{row:REC_COUNT}
				<option value="{title}" {selected}>{title}</option>
				{/row}
				</select>
			</td>
			</tr>

			<tr>
			<td width="100%"><img src="{global:PATH}img/spacer.gif" width="1" height="1" border="0" /></td>
			<td><img src="{global:PATH}img/spacer.gif" width="1" height="1" border="0" /></td>
			<td><img src="{global:PATH}img/spacer.gif" width="1" height="1" border="0" /></td>
			</tr>
			</table>
			</form>
		</div>
	</div>
</div>
<div class="middleLeft">
	<div class="middleRight p16">
		{ERROR}
		{MESSAGE}
		<form method="POST" id="recordsList">
		<table width="100%" cellspacing="0" cellpadding="5" border="0" class="table">
		<tr class="header">
		<td><input type="checkbox" name="all" value=""></td>
		<td><a href="{sort_by_title}" class="{sort_title_img}">{rs:TITLE}</a></td>
		<td>&nbsp;</td>
		</tr>

		{row:LINE}
		<tr class="line{if:disabled} grey{/if}">
		<td><input type="checkbox" name="del[]" value="{id}"></td>
		<td class="title">{title}</td>
		<td class="action"><a href="{global:LINK}{if:global:LINK}&{/if}{if:global:!LINK}?{/if}edit={id}">{rs:ACTION_EDIT}</a></td>
		</tr>
		{/row}

		{if:!count}<tr><td class="emptyResult" colspan="3">{rs:EMPTY}</td></tr>{/if}

		<tr>
		<td><img src="{global:PATH}img/spacer.gif" width="20" height="1" border="0" /></td>
		<td width="100%"><img src="{global:PATH}img/spacer.gif" width="100" height="1" border="0" /></td>
		<td><img src="{global:PATH}img/spacer.gif" width="50" height="1" border="0" /></td>
		</tr>
		</table>
		</form>
		{if:offset}<div class="offset">{offset}</div>{/if}
	</div>
</div>
<div class="actionPanelLeft">
	<div class="actionPanelRight">
		<div class="actionPanelBottom">
			<div class="actionPanelBottomLeft">
				<div class="actionPanelBottomRight p16">
					<div id="actionBottom">
						<div class="button actionDelete">
							<div class="buttonRight">
								<div class="buttonMiddle">{rs:ACTION_DEL}</div>
							</div>
						</div>
						<div class="br"><img src="{global:PATH}img/spacer.gif" width="1" height="1" border="0" /></div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>

<script language="JavaScript" src="{global:PATH}js/checking.js"></script>
<script>
	$("#pageCounterForm").find("select[name='_cp']").change(function() {
		$("#pageCounterForm").submit();
	})
	$("#actionOk").click(function() {$("#pageCounterForm").submit();});
	$("#actionNew").click(function() {window.location.href="{global:LINK}{if:LINK}&{/if}{unless:LINK}?{/unless}edit=0";});
	$(".actionDelete").click(function() {
		if (confirm("{rs:SURE_DELETE_ACCOUNT}")) $("#recordsList").submit();
	});
	$("input[name='all']").click(function() {
		$("input[name*='del']").attr('checked', this.checked);
	});
</script>