<?php if ($this->list) { ?>
<?php foreach($this->list AS $key => $val) { ?>
<li<?php if ($val['unread']) { ?> class="unread"<?php } ?>>
	<img src="<?php echo get_avatar_url($val['uid'], 'mid'); ?>" width="30" height="30" />
	
	<a href="mobile/people/<?php echo $val['url_token']; ?>" target="_blank"><span class="name"><?php echo $val['user_name']; ?></span></a>
    
	<a href="mobile/inbox/dialog_id-<?php echo $val['dialog_id']; ?>"><div class="mtxt"><?php echo nl2br($val['last_message']); ?></div></a>
    <div class="r"><?php if ($val['unread']) { ?>Have <?php echo $val['unread']; ?> a new reply<?php } else { ?><?php echo $val['count']; ?> a dialogue<?php } ?>&nbsp;&nbsp;&bull;&nbsp;&nbsp;<font style="color:#105cb6;">Delete</font></div>
    <div class="time"><?php echo date('Y-m-d H:i', $val['last_time']); ?></div>
    <div class="c"></div>
	
</li>
<?php } ?>
<?php } ?>