{if $show_from} | {lang code='from'} {/if} {if $show_to} | {lang code='to'} {/if} | {lang code='subject'} | {lang code='date_sent'} | {lang code='date_added'} {if $mode =='inbox'} | {lang code='Reply'} {/if}
{section name=msg loop=$user_msgs}
{if $show_from} | {$user_msgs[msg].message_from_user} {/if} {if $show_to} | {$to_id = $user_msgs[msg].message_to} {$trimed_to = str_replace('#','', $to_id)} {ucfirst(get_username($trimed_to))} {/if} | {$user_msgs[msg].message_subject|truncate:70} |  | {$user_msgs[msg].date_added} {if $mode =='inbox'} | {lang code=' Reply '} {/if}
{sectionelse} {lang code='you_dont_hv_any_pm'} {/section}

{if $pr_msg !=''}
{lang code='from'} : {$pr_msg.username} - {$pr_msg.date_added|date_format:"%A, %B %e, %Y %I:%M %p"}
{lang code='To'} : {$to_id = $pr_msg.message_to} {$trimed_to = str_replace('#','', $to_id)} {ucfirst(get_username($trimed_to))}
{lang code='Subject'} : {$pr_msg.message_subject}
{private_message pm=$pr_msg}
{/if}