<!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/admin.css" rel="stylesheet" type="text/css" />
<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/admin.js"></script>
</head>
<script>
	parent.admin.index.selectSubMenu('#commentList', false)
</script>
<body>
    
     <div class="wrap">
             <div class="position">当前位置：微博管理<em>></em>屏蔽回复<em>></em><strong>屏蔽项管理</strong></div>
            <!--搜索结果列表-->
            <div class="cr_list">
			<form name="form_check" id="form_check" action="" method="post">
                <table cellspacing="0">
				<tr>
                	<th style="text-align:center;width:30px;"></th>
					<th style="text-align:center;width:60px;">ID</th>
			        <th class="text_l" style="text-align:center;">回复内容</th>
			        <th style="text-align:center;width:100px">作者</th>
					<th style="text-align:center;width:140px">发布时间</th>
					<th style="text-align:center;width:140px">添加时间</th>
					<th style="text-align:center;width:100px;">操作者</th>
                    <th style="text-align:center;width:50px;">操作</th>
                 </tr>
				 <?php if (count($list) > 0) {?>
				 <?php foreach($list as $key => $item) {?>
				 <tr<?php if ($key %2) {?> class="rowbg"<?php }?>>
                 	<td class="table_checkbox"><input name="id[]" type="checkbox" value="<?php echo $item['id'];?>" /></td>
					<td class="text_l" style="text-align:left;"><?php echo $item['id'];?></td>
					
					<td style="text-align:left;"><?php echo $item['text'];?></td>
					<td style="text-align:center;"><?php echo $item['user'];?></td>
					<td style="text-align:center;"><?php echo date('Y-m-d H:i:s', $item['created_at']);?></td>
					<td style="text-align:center;"><?php echo date('Y-m-d H:i:s', $item['add_time']);?></td>
					<td style="text-align:center;"><?php echo $item['name'];?></td>
					<td style="text-align:center;">
						<a href="javascript:if(confirm('你确定要恢复该回复吗?')) {window.location.href='<?php echo URL('admin/disabled_comment.cancel','id=' . $item['id']);?>'}">恢复</a>
					</td>
				 </tr>
			    <?php
						}
					} else {
				?>
				<tr >
					<td colspan="8" style="text-align:left;padding-left:20px">没有任何记录</td>
			    </tr>
				<?php }?>
              </table>
			</form>
                    </div>

		<?php if (count($list)> 0) {?>
            <div class="cr_oplist">
                <div class="right">
                       <?php echo $pager?>
                </div>
                <div class="left">
                    <label><input name="checkall" type="checkbox" value="" onclick="checkAll('id[]', this.checked)"/>全选</label> 
                    <a href="#" onclick="doAction('resume','id[]','form_check','<?php echo URL('admin/disabled_comment.cancel');?>')">恢复所选</a>
                </div>
            </div>
        <?php }?>
     </div>  
</body>
</html>
