<p>To delete a notification, click the checkbox beside it and
press the <b>Delete Checked</b> button. Click on the "Toggle All" link to turn
checkboxes on and off.</p>

<script language="JavaScript" type="text/javascript">
<!--
function CheckAll() {
  for (var i = 0; i < document.noteform.elements.length; i++) {
    if(document.noteform.elements[i].type == 'checkbox'){
      document.noteform.elements[i].checked = !(document.noteform.elements[i].checked);
    }
  }
}
//-->
</script>

<form method="post" name="noteform" action="{site_path}/notifications.php?id={user_user_id}">
<table class="list">
<tr>
  <th>Created</th>
  <th>Delivered</th>
  <th>Message</th>
  <th>Del</th>
</tr>
{BEGIN:all_notifications user_user_id}
<tr class="{row_class}">
  <td>{!date '{site_date_format} {site_time_format}' '{note_created}'!}</td>
  <td align="center">{!if defined(note_sent) 'Yes' '-'!}</td>
  <td>
<b>{note_message}</b>
{!if defined(note_url)
  '<br/><a href="{note_url}">{note_url}</a>'!}
{!if defined(note_body) '<br/>{note_body:nohtml}'!}
{!if defined(note_from_id)
  '<br/><small>from <a href="{site_path}/user.php?id={note_from_id}">{note_from}</a></small>'
!}
  </td>
  <td align="center">
    <input type="checkbox" name="remove[]" value="{note_id}"/>
  </td>
</tr>
{END:all_notifications}
<tr><td colspan="4" align="right">
  [<a href="#" onClick="javascript:CheckAll();">Toggle All</a>]
</td></tr>
</table>
<input type="hidden" name="submitted" value="1"/>
<input type="submit" value="Delete Checked"/>
<input type="reset"/>
</form>