[open]
<form id="tablesForm" method="POST" action="pm/action">
    <table class="forum" style="width:100%; margin:0; padding:0; border: 0; border-spacing: 1px; border-collapse: separate;">
        <tr style="text-align:center; background-color : #f7f7f7;">
            <th><b>{%TH1%}</b></th>
            <th><b>[lang_tpl:message]</b></th>
            <th style="text-align:center;"><b>[lang_tpl:date]</b></th>
            <th style="width:1%; text-align:center">
                <label>
                    <input type="checkbox" name="all" onclick="setCheckboxes('tablesForm', true); return false;">
                </label>
            </th>
        </tr>
        [messEmpty]
        <tr class="thTitle" style="background-color: #f7f7f7;">
            <td class="thTitle" colspan="5" style="text-align:center;">[lang_tpl:pm_not_have] {%MESSNO%}</td>
        </tr>
        [/messEmpty]
        [list]
        <tr style="background-color : #ffffff;">
            <td style="width:120px; text-align:center;"><img src="{%AVATAR%}" alt="" style="border:1px #ccc solid; padding:2px;" /><br /><a href="profile/{%NICK%}">{%NICK%}</a></td>
            <td style="vertical-align: top;">
                <a href="{%MOD_NAME%}/view/{%MESSID%}">{%MESSAGE%}</a>
                <hr />
                [[status=0][lang_tpl:pm_not_read][else][lang_tpl:pm_read][/status]]
                [initfrom]<span id="msgNo{%MESSID%}"><a href="javascript://" onClick="ajaxSimple(\'index.php?url={%MOD_NAME%}/del/{%MESSID%}/\', \'msgNo{%MESSID%}\', true)">[lang_tpl:pm_delete]</a></span>[/initfrom]
            </td>
            <td style="width:150px; text-align:center;">{%DATE%} </td>
            <td style="width:20px;text-align:center;"><label>
                    <input type="checkbox" name="checks[]" value="{%MESSID%}" />
                </label></td>
        </tr>
        [/list]
        <tr class="thNOanim" style="background-color: #f7f7f7;">
            <td style="text-align:right;" class="thNOanim" colspan="4">[lang_tpl:pm_marked] <input type="submit" name="del" value="[lang_tpl:delete]" class="authButton" onclick="return confirm('[lang_tpl:pm_delete_info]');" style="width:100px;"/> [initfrom]<input type="hidden" name="place" value="inbox"/><input type="submit" name="read" value="[lang_tpl:pm_reads]" class="authButton" style="width:100px;"/>[/initfrom]</td>
        </tr>
    </table>
</form>
[/open]