<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/admin/include/taglib.jsp"%>
<html>
<head>
	<title>评论管理</title>
	<meta name="decorator" content="default"/>
	<%@include file="/WEB-INF/views/admin/include/treetable.jsp" %>
	<script type="text/javascript">
		$(document).ready(function() {
			$("#treeTable").treeTable({expandLevel : 3});
		});
    	function updateSort() {
			loading('正在提交，请稍等...');
	    	$("#listForm").attr("action", "${ctx}/cms/category/updateSort");
	    	$("#listForm").submit();
    	}
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/cms/category/list">评论管理</a></li>
	</ul>
	<div>
	  <table id="contentTable" class="table table-striped table-bordered table-condensed">
	     <thead><tr><th>用户手机号</th><th>评论内容</th><th>评论时间</th><th>是否显示</th><th>操作</th></tr></thead>
	     <tbody>
	    <c:forEach items="${comments}" var="comment">
	      <tr>
	        <td>${comment.userId.mobile }</td>
	        <td>${comment.content }</td>
	        <td>${comment.inserttime }</td>
	       <td>${comment.isshow eq "0"?"否":"是"}</td>
	        <td><a href="${ctx}/cms/article/comment/${articleid}/${comment.id}/1"  >显示</a>
			    <a href="${ctx}/cms/article/comment/${articleid}/${comment.id}/0"  >隐藏</a>     
			 </td>
	      </tr>
	  
	  </c:forEach>
	  </tbody>
	  </table>
	</div>
	
</body>
</html>