<script language="Javascript" type="text/javascript">
//
// Should really check the browser to stop this whining ...
//
function select_switch(status)
{
for (i = 0; i < document.privmsg_list.length; i++)
{
document.privmsg_list.elements[i].checked = status;
}
}
</script>

<table border="0" cellspacing="0" cellpadding="0" align="center" width="100%">
<tr> 
<td><?php $this->_echo($d['.'][0]['ATTACH_QUOTA_BOX']); ?></td>
<td valign="top" align="center" width="100%"> 
<table height="40" cellspacing="2" cellpadding="2" border="0">
<tr valign="middle"> 
<td><?php $this->_echo($d['.'][0]['INBOX_IMG']); ?></td>
<td><span class="cattitle"><?php $this->_echo($d['.'][0]['INBOX']); ?> &nbsp;</span></td>
<td><?php $this->_echo($d['.'][0]['SENTBOX_IMG']); ?></td>
<td><span class="cattitle"><?php $this->_echo($d['.'][0]['SENTBOX']); ?> &nbsp;</span></td>
<td><?php $this->_echo($d['.'][0]['OUTBOX_IMG']); ?></td>
<td><span class="cattitle"><?php $this->_echo($d['.'][0]['OUTBOX']); ?> &nbsp;</span></td>
<td><?php $this->_echo($d['.'][0]['SAVEBOX_IMG']); ?></td>
<td><span class="cattitle"><?php $this->_echo($d['.'][0]['SAVEBOX']); ?> &nbsp;</span></td>
</tr>
</table>
</td>
<td align="right"><?php $this->_echo($d['.'][0]['PM_QUOTA_BOX']); ?></td>
</tr>
</table>

<br clear="all" />

<form method="post" name="privmsg_list" action="<?php $this->_echo($d['.'][0]['S_PRIVMSGS_ACTION']); ?>">
<?php $this->_echo($d['.'][0]['NAVIGATION_BOX']); ?>
<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
<tr> 
<td align="left" valign="middle"><?php $this->_echo($d['.'][0]['POST_PM_IMG']); ?></td>
<td align="right" nowrap="nowrap"><span class="gensmall"><?php $this->_echo($d['.'][0]['L_DISPLAY_MESSAGES']); ?>: 
<select name="msgdays"><?php $this->_echo($d['.'][0]['S_SELECT_MSG_DAYS']); ?>
</select>
<input type="submit" value="<?php $this->_echo($d['.'][0]['L_GO']); ?>" name="submit_msgdays" class="liteoption" />
</span></td>
</tr>
</table>

<?php $this->_include('pagination_box.tpl'); ?>

<table border="0" cellpadding="3" cellspacing="1" width="100%" class="forumline">
<tr> 
<th width="5%" height="25" class="thCornerL" nowrap="nowrap">&nbsp;<?php $this->_echo($d['.'][0]['L_FLAG']); ?>&nbsp;</th>
<th width="55%" class="thTop" nowrap="nowrap">&nbsp;<?php $this->_echo($d['.'][0]['L_SUBJECT']); ?>&nbsp;</th>
<th width="20%" class="thTop" nowrap="nowrap">&nbsp;<?php $this->_echo($d['.'][0]['L_FROM_OR_TO']); ?>&nbsp;</th>
<th width="15%" class="thTop" nowrap="nowrap">&nbsp;<?php $this->_echo($d['.'][0]['L_DATE']); ?>&nbsp;</th>
<th width="5%" class="thCornerR" nowrap="nowrap">&nbsp;<?php $this->_echo($d['.'][0]['L_MARK']); ?>&nbsp;</th>
</tr>
<?php if($_listrow_count = count($d['listrow'])) {for ($_listrow_i = 0; $_listrow_i < $_listrow_count; $_listrow_i++){ ?>
<tr> 
<td class="<?php $this->_echo($d['listrow'][$_listrow_i]['ROW_CLASS']); ?>" width="5%" align="center" valign="middle"><img src="<?php $this->_echo($d['listrow'][$_listrow_i]['PRIVMSG_FOLDER_IMG']); ?>" width="19" height="18" alt="<?php $this->_echo($d['listrow'][$_listrow_i]['L_PRIVMSG_FOLDER_ALT']); ?>" title="<?php $this->_echo($d['listrow'][$_listrow_i]['L_PRIVMSG_FOLDER_ALT']); ?>" /></td>
<td width="55%" valign="middle" class="<?php $this->_echo($d['listrow'][$_listrow_i]['ROW_CLASS']); ?>"><span class="topictitle"><?php if($_attach_count = count($d['listrow'][$_listrow_i]['attach'])) {for ($_attach_i = 0; $_attach_i < $_attach_count; $_attach_i++){ ?><img src="<?php $this->_echo($d['.'][0]['I_ATTACH']); ?>" alt="" border="0" />&nbsp;<?php }} ?><a href="<?php $this->_echo($d['listrow'][$_listrow_i]['U_READ']); ?>" class="topictitle"><?php $this->_echo($d['listrow'][$_listrow_i]['SUBJECT']); ?></a></span></td>
<td width="20%" valign="middle" align="center" class="<?php $this->_echo($d['listrow'][$_listrow_i]['ROW_CLASS']); ?>"><span class="name">&nbsp;<a href="<?php $this->_echo($d['listrow'][$_listrow_i]['U_FROM_USER_PROFILE']); ?>" class="name"><?php $this->_echo($d['listrow'][$_listrow_i]['FROM']); ?></a></span></td>
<td width="15%" align="center" valign="middle" class="<?php $this->_echo($d['listrow'][$_listrow_i]['ROW_CLASS']); ?>"><span class="postdetails"><?php $this->_echo($d['listrow'][$_listrow_i]['DATE']); ?></span></td>
<td width="5%" align="center" valign="middle" class="<?php $this->_echo($d['listrow'][$_listrow_i]['ROW_CLASS']); ?>"><span class="postdetails"> 
<input type="checkbox" name="mark[]2" value="<?php $this->_echo($d['listrow'][$_listrow_i]['S_MARK_ID']); ?>" />
</span></td>
</tr>
<?php }}if($_switch_no_messages_count = count($d['switch_no_messages'])) {for ($_switch_no_messages_i = 0; $_switch_no_messages_i < $_switch_no_messages_count; $_switch_no_messages_i++){ ?>
<tr> 
<td class="row1" colspan="5" align="center" valign="middle"><span class="gen"><?php $this->_echo($d['.'][0]['L_NO_MESSAGES']); ?></span></td>
</tr>
<?php }} ?>
<tr> 
<td class="catBottom" colspan="5" height="28" align="right"> <?php $this->_echo($d['.'][0]['S_HIDDEN_FIELDS']); ?> 
<input type="submit" name="save" value="<?php $this->_echo($d['.'][0]['L_SAVE_MARKED']); ?>" class="mainoption" />
&nbsp; 
<input type="submit" name="delete" value="<?php $this->_echo($d['.'][0]['L_DELETE_MARKED']); ?>" class="liteoption" />
&nbsp; 
<input type="submit" name="deleteall" value="<?php $this->_echo($d['.'][0]['L_DELETE_ALL']); ?>" class="liteoption" />
</td>
</tr>
</table>

<?php $this->_include('pagination_box.tpl'); ?>

<table width="100%" cellspacing="2" border="0" align="center" cellpadding="2">
<tr> 
<td align="left" valign="middle"><span class="nav"><?php $this->_echo($d['.'][0]['POST_PM_IMG']); ?></span></td>
</tr>
</table>
</form>

<br clear="all" />