{template 'header', $module}
{if $action == 'send'}

*recipient | [My partners] Multiple recipients press the space key please separate the most also send{$MOD[maxtouser]} recipient
* title |
* content | {$content} {deditor($moduleid, 'content', 'Simple', '98%', 200)}
options | Don't send, save for the draft Save to already sent Already read receipt
{if $need_captcha}
* Verification code | {template 'captcha', 'chip'}
{/if}
| {if $MG[message_limit]} This day can hair {$MG[message_limit]} time The current already sent {$limit_used} time Can also send {$limit_free} time {/if}

{load('clear.js')}
{php $action='add'} {elseif $action == 'edit'}

* recipient | [My partners] Multiple recipients press the space key please separate the most also send{$MOD[maxtouser]}recipient
* title |
*content | {$content} {deditor($moduleid, 'content', 'Simple', '98%', 200)}
options | Send letters Save to already sent Already read receipt

{load('clear.js')}
{php $action='draft'} {elseif $action == 'export'}

tip | Please regular derived important letters, to avoid the system automatically remove
letters | inbox sent Draft box Recycle
Date range | {dcalendar('message[fromdate]', $fromdate)} to {dcalendar('message[todate]', $todate)} Most every time are 100 letters, please set reasonable time to have part of the letters
options | Export only has not read letters

{elseif $action == 'empty'}

letters | inbox sent Draft box Recycle
Date range | {dcalendar('message[fromdate]', $fromdate)} 至 {dcalendar('message[todate]', $todate)}
options | Keep not read letters

{elseif $action == 'show'}
{$title}
{if $status==4 || $status==3} {if $fromuser} sender：{$fromuser}
{/if} {elseif $status==2} recipient：{$touser}
{/if} Numbers：{$itemid}
time：{$addtime}
{$content}
{if $status==4} {if $fromuser} {/if} {php $action='recycle'} {elseif $status==3} {if $fromuser} {/if} {php $action='inbox'} {elseif $status==2} {if $fromuser} {/if} {php $action='outbox'} {elseif $status==1} {if $fromuser} {/if} {php $action='draft'} {elseif $status==0} {php $action='inbox'} {/if} {$title} {$content}
{if $messages}

type | title | sender | time
--- | --- | --- | ---
{loop $messages $message}
| 2 && $message[feedback]}onclick="if(confirm('The letter has been read request to send confirmation, whether to send？')){ window.location=this.href+'&feedback=1';return false;}"{/if} class="f_b" title="{$message[title]}">{$message[dtitle]} | {if $message[userurl]}{$message[user]}{else}{$message[user]}{/if} | {$message[adddate]}
{/loop}

{/if} {elseif $action == 'setting'}

blacklist | {$user[black]} [tip] direct input member name can be members blacklist, multiple member name please use the blank space key is separated, the ban visitors please fill in Guest
Not to read the letter forwarding | open closed The system will automatically forward has not read letter in the station to register mailbox

{else}
all {loop $NAME $k $v} | {$v} {/loop}

| type | title {if $status>1} | {if $status==2}recipient{else}sender{/if}{/if} | time {if $status==3} | mark {/if}
--- | --- | --- | --- | --- | ---
{if $status==3} {loop $systems $message}
|  | {$message[title]} | {$message[user]} | {$message[adddate]} {if $status==3} | --{/if}
{/loop} {/if} {loop $messages $message}
|  | 2 && !$message[isread]} class="f_b"{if $message[feedback]}onclick="if(confirm('The letter has been read request to send confirmation, whether to send？')){ window.location=this.href+'&feedback=1';return false;}"{/if}{/if}{if $message[style]} style="color:#{$message[style]};"{/if} class="t" title="{$message[title]} number：{$message[itemid]}">{$message[dtitle]} {if $status>1} | {if $message[userurl]}{$message[user]}{else}{$message[user]}{/if}{/if} | {$message[adddate]} {if $status==3} | {/if}
{/loop}

{if $status==4} {elseif $status==3} {else} {/if}
{if $status==3} {if $MG[inbox_limit]}
Inbox capacity {$MG[inbox_limit]} item current receiving {$limit_used} item Can also receive {$limit_free} item Suggest regularly delete useless letters
{/if} {/if}
{$pages}
{/if}
{template 'footer',$module}