<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>我的评论<?php echo V('-:tpl/title');?></title>
<link href="<?php echo W_BASE_URL;?>css/base.css" rel="stylesheet" type="text/css" />
<link href="<?php echo W_BASE_URL;?>css/skin_<?php echo SITE_SKIN_TYPE;?>/skin.css" rel="stylesheet" type="text/css" />
</head>
<body id="comments">
	<div id="wrapper">
    <!-- header -->
    <?php include APP::tplFile('header');?>
    <!-- end header -->
        <div id="container">
        	<div class="sidebar">
            	<?php include APP::tplFile('intro');?> 
                <?php include APP::tplFile('user_menu');?>    
            </div>
            <div class="main">
            	<div class="title-box">
                    <div class="title-tab">
                    	<a class="tab-link" href="<?php  echo URL('index.comments');?>"><span>收到的评论</span></a>
                        <span class="tab-current"><span>发出的评论</span></span>
                    </div>
                    <div class="filter">
						<!--
                    	<span class="total"><?php echo $total;?>条</span>
						-->
                    	<label><input type="checkbox" />全选</label><em>|</em><a href="javascript:;">删除</a>
                    </div>
                </div>
				<?php if (empty($list)):?>
					<!-- comments list empty tip -->
					<div class="default-tips">
						<div class="tips-icon all-bg"></div>
						<p>暂时还没有评论</p>
					</div>
					<!-- end comments list empty tip -->
				<?php else:?>
				<!-- comments list -->
                <div class="comment-list">
                	<ul>
						<?php if ($list):?>
						<?php foreach ($list as $item):?>
                    	<li id="c_<?php echo $item['id'];?>" rel="<?php echo $item['status']['id'];?>">
                            <label class="checkbox"><input type="checkbox" /></label>
							<div class="comment-list-main">
								<div class="user-pic">
									<a href="<?php  echo URL('ta',array('id' => $item['user']['id']));?>"><img src="<?php echo APP::F('profile_image_url', $item['user']['profile_image_url']);?>" alt="" title="<?php echo htmlspecialchars($item['user']['screen_name']);?>" /></a>
								</div>
								<div class="comment-c">
									<p class="c-info"><?php echo APP::F('format_text', $item['text']);?>&nbsp;(<?php echo APP::F('format_time', $item['created_at']);?>)</p>
									<div class="c-for">
										<a class="del-icon icon-bg" href="javascript:;" style="display:none">删除</a>
										<p>评论<a href="<?php  echo URL('ta',array('id' => $item['status']['user']['id']));?>"><?php echo htmlspecialchars($item['status']['user']['screen_name']);?></a>的微博：<a href="<?php  echo URL('show',array('id' => $item['status']['id']));?>"><?php echo APP::F('format_text', $item['status']['text'], 'comment');?></a></p>
									</div>
								</div>
							</div>
                        </li>
						<?php endforeach;?>
						<?php endif;?>                       
                    </ul>
                    
                    <div class="filter">
						<!--
                        <span class="total"><?php echo $total;?>条</span>
						-->
                        <label><input type="checkbox" />全选</label><em>|</em><a href="javascript:;">删除</a>
                    </div>
                    <div class="list-footer">
                    	<div class="page">
                        	<?php echo $makePage;?>
                        </div>
                        <a href="#">返回顶部</a>
                    </div>
                </div>
				<!-- end comments list -->
				<?php endif;?>
            </div>
        </div>
        <!-- footer -->
		<?php include APP::tplFile('footer');?>
        <!-- end footer -->
    </div>
    
<script type="text/javascript" src="<?php echo W_BASE_URL;?>js/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo W_BASE_URL;?>js/common.js"></script>
<script type="text/javascript" src="<?php echo W_BASE_URL;?>js/ui.js"></script>
<script type="text/javascript" src="<?php echo W_BASE_URL;?>js/mycomment.js"></script>
<script type="text/javascript">
var XWEIBO = {uid: '<?php echo $uid;?>', autoshow: '<?php echo  V('-:userConfig/user_newfeed');?>', tipshow: '<?php echo  V('-:userConfig/user_newmsg');?>'};

$(document).ready(function() {
    XWB.myComment.init();
    XWB.bindSearch($('#search'), $('#searchSubmit'));
    setTimeout(function(){
        XWB.notifyChecker.start();
    }, 3000);
});
</script>
</body>
</html>
