{strip}
{$this->lang['pm_contacts']}
{foreach $query as $res} {assign var=last_message value=$this->getLastMessage($res.id)}
{$res.fullname} {if $this->getUserStatus($res.id)}{/if}
{$this->lastMessageConvertTime($last_message.time)}
{if $last_message.fromUser == $this->USER.id}{$this->lang['you']}:{/if} {str_replace('&','&',$this->str_smilies($this->str_messenger($last_message.msg,1),1))}
{assign var=unread_msgs value={$this->getUnreadMessagesCount($res.id)}}
+{$unread_msgs}
{foreachelse}
{$this->lang['you_dosent_have_dialog_with_users']}
{/foreach}
{/strip}