<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title><?php echo F('web_page_title');?></title>
	<link rel="stylesheet" href="<?php echo W_BASE_URL;?>css/wap/base.css" type="text/css" />
</head>
<body <?php F('wap_font_set'); ?>>
<?php TPL::plugin('wap/include/top_logo', '', false); ?>
<?php TPL::plugin('wap/include/nav', array('is_top' => true), false); ?>
<?php TPL::plugin('wap/include/my_preview', '', false); ?>
<?php TPL::plugin('wap/include/msg_common', '', false); ?>
<div class="c">
	<?php LO('index__comment__comments');?> <a href="<?php echo WAP_URL('index.messages', 'type=2&ctype=2'); ?>"><?php LO('index__comment__commentsend');?></a>
<div class="s"></div>
<?php if (!empty($list)): ?>
	<?php foreach ($list as $comment): ?>
	<table>
    	<tbody>
        	<tr>
            	<td>
				<?php if ($comment['status']['user']['id'] != USER::uid()): ?><a href="<?php echo WAP_URL('ta', 'id=' . $comment['status']['user']['id']); ?>"><?php echo F('verified', $comment['status']['user']); ?></a><?php else: ?><?php LO('index__comment__I');?><?php endif; ?><?php LO('index__comment__whoWeibo');?><?php echo F('escape', mb_strlen($comment['status']['text'], 'utf-8') > 15 ? mb_substr($comment['status']['text'], 0, 15, 'utf-8') . '...' : $comment['status']['text']); ?><br />
            	<?php if (isset($comment['reply_comment']) && !empty($comment['reply_comment'])): ?>
				--<?php if ($comment['reply_comment']['user']['id'] == USER::uid()): ?><?php LO('index__comment__I');?><?php else: ?><a href="<?php echo WAP_URL('ta', 'id=' . $comment['reply_comment']['user']['id']); ?>"><?php echo F('verified', $comment['reply_comment']['user']); ?></a><?php endif; ?>: <?php echo F('escape', $comment['reply_comment']['text']); ?><br />
            	<?php endif; ?>
				--<a href="<?php echo WAP_URL('ta', 'id=' . $comment['user']['id']); ?>"><?php echo F('verified', $comment['user']); ?></a>: <?php echo F('format_text', $comment['text']); ?> <?php echo F('format_time', $comment['created_at']); ?> <a href="<?php echo WAP_URL('wbcom.replyComment', array('mid' => $comment['status']['id'], 'cid' => $comment['id'], 'reply_user' => $comment['user']['screen_name'])); ?>"><?php LO('index__comment__reply');?><?php echo $comment['user']['gender'] == 'f' ? L('index__comment__she') : L('index__comment__he'); ?></a>
            	</td>
            </tr>
        </tbody>
    </table>
    <div class="s"></div>
	<?php endforeach; ?>
<?php else: ?>
	<?php if (V('g:page', 1) > 1):?>
	<p><?php LO('index__comment__endPage');?></p>
	<?php else: ?>
	<p><?php Lo('index__comment__emptyTip');?></p>
	<?php endif; ?>
	<div class="s"></div>
<?php endif; ?>
</div>
<?php TPL::plugin('wap/include/pager', array('ctrl' => APP::getRuningRoute(false), 'list' => $list, 'page' => $page), false); ?>
<?php TPL::plugin('wap/include/search', '', false); ?>
<?php TPL::plugin('wap/include/nav', array('is_top' => false), false); ?>
<?php TPL::plugin('wap/include/foot', '', false); ?>
</body>
</html>
