<h2>Outbox</h2>
<form action="{ROOT_URL}messages/delete" method="post">
	<table class="table table-striped text-center">
		<thead>
			<tr>
				<th style="width: 20%">To</th>
				<th style="width: 40%">Subject</th>
				<th style="width: 20%">Sent</th>
				<th style="width: 10%"></th>
				<th style="width: 10%">
					<INPUT type="checkbox" onchange="checkAll(this)" name="check.e" value="F_[]"/>
				</th>
			</tr>
		</thead>
		<tbody>
			{LOOP}
			<tr>
				<td><a href="{ROOT_URL}home/profile/{userTo}" class="text-decoration-none">{userToPretty}</a></td>
				<td><a href="{ROOT_URL}messages/view/{ID}" class="text-decoration-none">{subject}</a></td>
				<td>{DTC date}{sent}{/DTC}</td>
				<td><a href="{ROOT_URL}messages/delete/{ID}" class="btn btn-sm btn-danger"><i class="fa fa-fw fa-trash"></i></a></td>
				<td>
					<input type="checkbox" value="{ID}" name="F_[]">
				</td>
			</tr>
			{/LOOP}
			{ALT}
			<tr>
				<td align="center" colspan="6">
					No Messages
				</td>
			</tr>
			{/ALT}
		</tbody>
	</table>
	<button name="submit" value="submit" type="submit" class="btn btn-sm btn-danger"><i class="fa fa-fw fa-trash"></i></button>
</form>