<table width="100%">
    <tr>
        <td class="ntitle" valign="top">
		<b>Персональные сообщения</b></td>
    </tr>
    <tr>
        <td class="news" height="50"><div align="center">[inbox]Входящие сообщения[/inbox] || [outbox]Отправленные сообщения[/outbox] || [new_pm]Отправить сообщение[/new_pm]</div></td>
    </tr>
    </table>
[pmlist]
<table width="100%">
    <tr>
        <td class="ntitle" valign="top">
		<b>Список сообщений</b></td>
    </tr>
    <tr>
        <td class="news">{pmlist}</td>
    </tr>
    </table>
[/pmlist]
[newpm]
<table width="100%">
    <tr>
        <td class="ntitle" valign="top">
		<b>Отправка персонального сообщения</b></td>
    </tr>
    <tr>
        <td class="news" valign="top" style="padding-left:20px;">
<table width="100%" class="slink">
<tr><td colspan="2">
<table class="slink">
                <tr align="left" valign="middle">
                  <td width="80" height="25">Получатель:</td>
                  <td height="25"><input type="text" name="name" value="{author}" style="width:140px; height:20px; font-family:tahoma; font-size:11px; border:1px solid #E0E0E0 "></td>
                </tr>
                <tr align="left" valign="middle">
                  <td height="25" align="left" >Тема:</td>
                  <td height="25"><input type="text" name="subj" value="{subj}" style="width:200px; height:20px; font-family:tahoma; font-size:11px; border:1px solid #E0E0E0 "></td>
                </tr></table>
</td></tr>
[not-wysywyg]	<tr align="left" valign="middle">
                  <td colspan="2">{bbcode}</td>
                </tr>[/not-wysywyg]
        <tr>
      <td colspan="2">[not-wysywyg]<textarea style="width:461px; height:160px; font-family:verdana; font-size:11px; border:1px solid #E0E0E0;" name="comments" id="comments">{text}</textarea>[/not-wysywyg]{wysiwyg}<br><input type="checkbox" name="outboxcopy" value="1"> Сохранить сообщение в папке "Отправленные"</td>
                            </tr>
[sec_code]                  <tr>
                              <td>Код:</td>
                              <td width="100%"><br />{sec_code}</td>
                            </tr>
                            <tr>
                              <td nowrap>Введите код:</td>
                              <td><input type="text" name="sec_code" id="sec_code" style="width:115px; font-family:verdana; font-size:11px; border:1px solid #E0E0E0;" /></td>
                            </tr>
[/sec_code]
                            <tr>
                              <td colspan="2"><br /><input class="bbcodes" type="submit" name="add" value="отправить" />&nbsp;&nbsp;<input class="bbcodes" type="button" onclick="dlePMPreview()" value="просмотр" /></td>
                            </tr>
</table>
</td>
    </tr>
    <tr>
        <td background="{THEME}/images/tdbbg.png"><img src="{THEME}/images/tdbbg.png" width="1" height="10" border="0"></td>
    </tr>
</table>
[/newpm]

[readpm]
<table width="100%">
    <tr>
        <td  class="ctitle" valign="top" colspan="2">{subj}</td>
    </tr>
    <tr>
        <td class="news" valign="top" height="50" colspan="2">{text}</td>
    </tr>
    <tr>
		<td  class="slink">Отправил: {author}</td>
		<td  class="slink" align="right">[reply][ответить][/reply] [del][удалить][/del]</td>
    </tr>
</table>
[/readpm]