<h4 style='text-align:center;'><{$xoops_pagetitle}></h4>
<br />

<a href="<{$smarty.const.XOOPS_URL}>/userinfo.php?uid=<{$currentUser->get("uid")}>"><{$smarty.const._MD_PM_LANG_PROFILE}></a>&nbsp;
<span style="font-weight:bold;">&raquo;&raquo;</span>&nbsp;<{$smarty.const._MD_PM_LANG_INBOX}><br /><br />

<form name="prvmsg" method="post" action="./index.php?action=delete">
<{xoops_token form=$actionForm}>
<table border="0" cellspacing="1" cellpadding="4" width="100%" class="outer">
  <tr style="text-align:center;" valign="middle">
    <th>
      <input name="allbox" id="allbox" onclick='xoopsCheckAll("prvmsg", "allbox");' type="checkbox" value="Check All" />
    </th>
    <th><img src="<{$xoops_url}>/images/download.gif" alt="" border="0" /></th>
    <th>&nbsp;</th>
    <th><{$smarty.const._MD_PM_LANG_FROM}></th>
    <th><{$smarty.const._MD_PM_LANG_SUBJECT}></th>
    <th><{$smarty.const._MD_PM_LANG_DATE}></th>
  </tr>

  <{if !$total_messages}>
    <tr>
      <td class="even" colspan="6" style="text-align:center;">
        <{$smarty.const._MD_PM_MESSAGE_YOUDONTHAVE}>
      </td>
    </tr>
  <{/if}>

  <{foreach name=viewpm item=pm from=$pmObjects}>
    <tr style="text-align:left;" class="<{cycle values="odd,even"}>">
      <td valign="top" width="2%" style="text-align:center;">
        <input type="checkbox" id="msg_id[]" name="msg_id[]" value="<{$pm->get("msg_id")}>" />
      </td>
      <td valign="top" width="5%" style="text-align:center;">
        <{if $pm->isRead()}>
          &nbsp;
        <{else}>
          <img src="<{$xoops_url}>/images/read.gif" alt="<{$smarty.const._MD_PM_LANG_NOTREAD}>" title="<{$smarty.const._MD_PM_LANG_NOTREAD}>" />
        <{/if}>
      </td>
      <td valign="top" width="5%" style="text-align:center;">
        <img src="<{$smarty.const.XOOPS_URL}>/images/subject/<{$pm->get('msg_image')|escape}>" alt='' />
      </td>
      <td valign="middle" width="10%">
        <{$pm->get("from_userid")|xoops_user:"uname"}>
      </td>
      <td valign="middle">
        <a href="./index.php?action=read&amp;msg_id=<{$pm->get('msg_id')}>"><{$pm->getShow('subject')}></a>
      </td>
      </td>
      <td valign="middle">
        <{$pm->get("msg_time")|xoops_formattimestamp}>
      </td>
    </tr>
  <{/foreach}>

  <{if $total_messages}>
    <tr class="foot" style="text-align:left;">
      <td colspan="6">
        <input type="button" class="formButton" onclick="javascript:openWithSelfMain('<{$smarty.const.XOOPS_URL}>/pmlite.php?send=1','pmlite',450,380);" value="<{$smarty.const._MD_PM_LANG__SEND}>" />
        &nbsp;
        <input type="submit" class="formButton" name="delete_messages" value="<{$smarty.const._MD_PM_LANG_DELETE}>" />
      </td>
    </tr>
  <{else}>
    <tr class="bg2" style="text-align:left;">
      <td colspan="6">
        <input type="button" class="formButton" onclick="javascript:openWithSelfMain('<{$smarty.const.XOOPS_URL}>/pmlite.php?send=1','pmlite',450,380);" value="<{$smarty.const._MD_PM_LANG__SEND}>" />
      </td>
    </tr>
  <{/if}>

</table>
</form>

<div style="text-align:center;"><{xoops_pagenavi pagenavi=$pageNavi}></div>
