{include file='admin_header.tpl'} {literal}{/literal} {* $Id: user_messages_outbox.tpl 8 2009-01-11 06:02:53Z john $ *}
{lang_sprintf id=798 1=$total_pms}

{* DISPLAY PAGINATION MENU IF APPLICABLE *} {if $maxpage > 1}
{if $p != 1}« ‹{else}« ‹{/if} | {foreach from=$for item=foo} {$foo} {/foreach} | {if $p != $maxpage}› »{else}› »{/if}
{if $p_start == $p_end} {lang_sprintf id=184 1=$p_start 2=$total_pms} {else} {lang_sprintf id=185 1=$p_start 2=$p_end 3=$total_pms} {/if}
Go to Page:

{/if}


{* CHECK IF THERE ARE NO MESSAGES IN OUTBOX *} {if $total_pms == 0}
{lang_print id=799}
{* DISPLAY MESSAGES *} {else}
{* LIST SENT MESSAGES *} {section name=pm_loop loop=$pms} {/section}
{**} {lang_print id=790}   {lang_print id=520}
{**} {if $pms[pm_loop].pm_recipients == 1}{$pms[pm_loop].pm_user->user_displayname}{else}{lang_sprintf id=800 1=$pms[pm_loop].pm_recipients}{/if}
{$datetime->cdate("`$setting.setting_timeformat` `$setting.setting_dateformat`", $datetime->timezone($pms[pm_loop].pm_date, $global_timezone))}
{$pms[pm_loop].pmconvo_subject|truncate:50}
{if $pms[pm_loop].pm_body|json_decode:true}{$pms[pm_loop].pm_body|json_decode:true|truncate:150|choptext:75:"
"}{else}{$pms[pm_loop].pm_body|truncate:150|choptext:75:"
"}{/if}

{**}
{if $maxpage > 1}
{if $p != 1}« ‹{else}« ‹{/if} | {foreach from=$for item=foo} {$foo} {/foreach} | {if $p != $maxpage}› »{else}› »{/if}
{if $p_start == $p_end} {lang_sprintf id=184 1=$p_start 2=$total_pms} {else} {lang_sprintf id=185 1=$p_start 2=$p_end 3=$total_pms} {/if}
Go to Page:

{/if} {/if} {include file='admin_footer.tpl'}