{include file='header.tpl'} {* $Id: user_messages.tpl 8 2009-01-11 06:02:53Z john $ *}
  {lang_print id=780}   {lang_print id=781}  
{capture assign='unread_messages'}{if $user_unread_pms > 0}{$user_unread_pms}{else}0{/if}{/capture}
You have {$unread_messages} unread conversation{if $user_unread_pms != 1}s{/if} in your inbox.
{lang_print id=784}

{* JAVASCRIPT FOR CHECK ALL MESSAGES FEATURE *} {literal} {/literal} {* 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 INBOX *} {if $total_pms == 0}
{lang_print id=785}
{* DISPLAY MESSAGES *} {else}
 
 Sort By:

{* LIST INBOX MESSAGES *} {section name=pm_loop loop=$pms} {* IF MESSAGE IS NEW, HIGHLIGHT ROW *} {if $pms[pm_loop].pm_read === FALSE} {assign var='row_class' value='messages_unread'} {else} {assign var='row_class' value='messages_read'} {/if} {/section}
{lang_print id=601} {lang_print id=520}
{if $pms[pm_loop].pm_replied}
{/if}
user_info.user_username)}'>{lang_sprintf id=786 1=$pms[pm_loop].pm_user->user_displayname_short} user_info.user_username)}'>{$pms[pm_loop].pm_user->user_displayname}
{$datetime->cdate("`$setting.setting_timeformat` `$setting.setting_dateformat`", $datetime->timezone($pms[pm_loop].pm_date, $global_timezone))}
{$pms[pm_loop].pmconvo_subject|truncate:50}
{$pms[pm_loop].pm_body|truncate:100|choptext:75:"
"}
[ respond ]
[ {lang_print id=155} ]

{* SHOW DELETE MESSAGES BUTTON *} {if $total_pms != 0} {/if}
{/if} {* 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} {include file='footer.tpl'}