<!-- INCLUDE user_menu_header.tpl -->

<script type="text/javascript">
$(document).ready(function() {
	$("#checkboxall").click(function() {
		var checked_status = this.checked
		$(".deleteid").each(function() {
			this.checked = checked_status;
		});
	});
});
</script>
<div class="text-center">{ERROR}</div>
<!-- IF REPLY_X eq 1 -->
	<!-- INCLUDE mail-send.tpl -->
<!-- ENDIF -->
<form action="mail.php" method="post" name="deletemessages">
	<input type="hidden" name="csrftoken" value="{_CSRFTOKEN}">
	<table class="table table-bordered table-condensed table-striped">
		<thead>
			<tr>
				<td>{TITLE}</td>
				<td>{SENTFROM}</td>
				<td nowrap="nowrap">{L_2__0028}<br><input type="checkbox" name="" id="checkboxall" value=""></td>
			</tr>
		</thead>
		<tbody>
<!-- IF MSGCOUNT eq 0 -->
			<tr>
				<td colspan="5">{L_2__0029}</td>
			</tr>
<!-- ELSE -->
	<!-- BEGIN msgs -->
			<tr>
				<td><a href="yourmessages.php?id={msgs.ID}">{msgs.SUBJECT}</a><br /><span class="text-muted"><small>{msgs.SENT}</small></span></td>
				<td>{msgs.SENDER}</td>
				<td><input type="checkbox" name="deleteid[]" class="deleteid" value="{msgs.ID}"></td>
			</tr>
	<!-- END msgs -->
<!-- ENDIF -->
		</tbody>
	</table>
	<div class="text-center">
		<input class="btn btn-danger" type="submit" name="submit" value="{L_008}"  OnClick="if ( !confirm('{L_2__0031}') ) { return false; }">
	</div>
</form>

<!-- INCLUDE user_menu_footer.tpl -->