<div class="actionPanelLeft">
	<div class="actionPanelRight p16">
		<div id="actionTop">
			<form action="{FILTER_LINK}" method="POST" id="filterForm">
			<table width="100%" cellspacing="0" cellpadding="0" border="0">
			<tr>
			<td><img src="{global:PATH}img/spacer.gif" width="1" height="1" border="0" /></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>
			<input type="hidden" name="_search" value="{search}">
			</form>
		</div>
	</div>
</div>
<div class="middleLeft">
	<div class="middleRight">
		<div class="bottom">
			<div class="bottomLeft">
				<div class="bottomRight" align="center">
					{ERROR}
					{MESSAGE}
					<form action="{LINK}" method="POST" id="recordsList">
					<table width="100%" cellspacing="0" cellpadding="5" border="0" class="table">
					<tr class="header">
					<td><a href="{sort_by_name}" class="{sort_name_img}">{rs:NEWSLETTER}</a></td>
					<td>{rs:SUBSCRIBERS}</td>
					<td><a href="{sort_by_date}" class="{sort_date_img}">{rs:DATE_CREATED}</a></td>
					<td><a href="{sort_by_modify}" class="{sort_modify_img}">{rs:DATE_UPDATED}</a></td>
					<td><a href="{sort_by_last_sent}" class="{sort_last_sent_img}">{rs:LAST_SENT}</a></td>
					<td>&nbsp;</td>
					</tr>

					{row:LINE}
					<tr class="line{if:disabled} grey{/if}">
					<td>{name}</td>
					<td align="right">{subscribers}</td>
					<td align="center">{date_created}</td>
					<td align="center">{modify_time}</td>
					<td align="center">{last_sent}</td>
					<td class="action"><a href="{global:PATH}statistics/campaigns/overview/?n_id={id}">{rs:ACTION_VIEW_STATISTIC}</a></td>
					</tr>
					{/row}

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

					<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="75" height="1" border="0" /></td>
					<td><img src="{global:PATH}img/spacer.gif" width="75" height="1" border="0" /></td>
					<td><img src="{global:PATH}img/spacer.gif" width="75" height="1" border="0" /></td>
					<td><img src="{global:PATH}img/spacer.gif" width="75" height="1" border="0" /></td>
					<td><img src="{global:PATH}img/spacer.gif" width="100" height="1" border="0" /></td>
					</tr>
					</table>
					</form>
					{if:offset}<div class="offset">{offset}</div>{/if}
				</div>
			</div>
		</div>
	</div>
</div>

<script>
	$("#filterForm").submit(function() {$(this).find("input[name='_search']").val($("input[name='_searchContainer']").attr('value'));});
	$("#filterForm").find("select[name='_cp']").change(function() {
		$("#filterForm").submit();
	});
	$("#actionOk").click(function() {$("#filterForm").submit();});
</script>