<script type="text/javascript" src="{$_config[siteurl]}include/javascript/pmsg.js"></script>
<div id="body">
<div class="link_path"><a href="{$_config[siteurl]}">首页</a>&nbsp;&raquo;&nbsp;<a href="index.php">我的助手</a>&nbsp;&raquo;&nbsp;$ac_title</div>
<div id="my_left">
<!--{template 'menu','member','./templates/member'}-->
</div>
<div id="my_right">
    <div class="mainrail">
        <em>
            <a href="index.php?ac=$ac&folder=inbox"{if $folder==inbox} style="font-weight:bold;"{/if}>收件箱</a>&nbsp;
            <a href="index.php?ac=$ac&folder=outbox"{if $folder==outbox} style="font-weight:bold;"{/if}>发件箱</a>&nbsp;
            <a href="javascript:;" onclick="pmsg('','');">发送新邮件</a>
        </em>
        <h1>我的$sub_param[$folder]($total)</h1>
        <!--{if $error}--><div class="formerror">$error</div><!--{/if}-->
        <form method="post" action="index.php?ac=$ac&folder=$folder&" onsubmit="return checkchecked()">
        <table width="100%" cellspacing="0" cellpadding="0" class="maintable">
            <tr>
                <th width="20" align="center">删</th>
                <th>短信主题</th>
                <!--{if $folder=='inbox'}-->
                <th width="100">发件人</th>
                <th width="50">状态</th>
                <!--{else}-->
                <th width="150">收件人</th>
                <!--{/if}-->
                <th width="120">发送时间</th>
            </tr>
            <!--{template 'pm_message_tr','member','./templates/member'}-->
        </table>
        <!--{if $total>0}-->
        <div class="multipage">$multipage</div>
        <div class="text_center">
            <button type="button" onclick="allchecked();">反选</button>&nbsp;<button type="submit" name="mysubmit" value="yes">提交</button>
        </div>
        <!--{/if}-->
        </form>
    </div>
</div>
</div>
<script type="text/javascript">
function deletemsg(pmid) {
    if(pmid == '') {
        alert('无效的短信息。');
        return;
    }
    document.write('<form method="post" id="deletemsg" action="index.php" style="display:none;">');
    document.write('<input type="hidden" name="ac" value="pm"/>');
    document.write('<input type="hidden" name="folder" value="$folder"/>');
    document.write('<input type="hidden" name="delete" value="yes"/>');
    document.write('<input type="hidden" name="pmids[]" value="'+pmid+'"/>');
    document.write('<input type="submit" name="mysubmit" value="yes"/>');
    document.write('</form>');
    document.getElementById('deletemsg').mysubmit.click();
}
</script>
</script>