<link href="styles/general.css" rel="stylesheet" type="text/css" />
<link href="styles/main.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/transport.js"></script>
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/utils.js"></script>
<script type="text/javascript" src="js/listtable.js"></script>
<body>
<h1>
<span class="action-span1"><a href="?ctl=index&act=admin_main"><tpl>$common_admin_index</tpl><!--管理首页--></a> >> <tpl>$comment_list</tpl><!--内容评论列表--></span>
<div style="clear:both"></div>
</h1>
<div class="form-div">
  <form action="index.php" method="get" target="_self" name="searchForm">
    <input type="hidden" name="ctl" value="content" />
	<input type="hidden" name="act" value="content_comment" />
	<img src="images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />
    <label>
    <select name="search_type">
      <option value="article_title" <tpl>if $_GET['search_type']=='article_title'</tpl>selected="selected"<tpl>/if</tpl> ><tpl>$comment_list_title</tpl><!--文章标题--></option>
	  <option value="comment_body" <tpl>if $_GET['search_type']=='comment_body'</tpl>selected="selected"<tpl>/if</tpl> ><tpl>$comment_list_body</tpl><!--评论内容--></option>
      <option value="comment_author" <tpl>if $_GET['search_type']=='comment_author'</tpl>selected="selected"<tpl>/if</tpl> ><tpl>$comment_list_user</tpl><!--评论人--></option>
      <option value="comment_repost_author" <tpl>if $_GET['search_type']=='comment_repost_author'</tpl>selected="selected"<tpl>/if</tpl> ><tpl>$comment_list_rep_user</tpl><!--评论回复人--></option>
    </select>
    </label>
    <input type="text" name="keywords" value="<tpl>$_GET['keywords']</tpl>" /> <input type="submit" class="Button" value="<tpl>$comment_list_search</tpl>" />
  </form>
</div>
<form method="POST" action="index.php?ctl=content&act=comment_del" name="listForm">

<div class="list-div" id="listDiv">
<table width="100%" cellpadding="3" cellspacing="1" id="listTable">
  <tr>
    <th colspan="3"><tpl>$comment_list_1</tpl><!--内容评论--></th>
  </tr>
  <tpl>foreach $comment_array as $val</tpl>
  <tr>
    <td width="5%" align="center">
      <input type="checkbox" name="comment_id[]" value="<tpl>$val['comment_id']</tpl>"></td>
    <td width="60%" align="left"><tpl>$comment_list_title</tpl><!--文章标题-->：<a href="../index.php?ctl=article&act=front_article_content&article_id=<tpl>$val['article_id']</tpl>" target="_blank"><tpl>$val['article_title']</tpl></a>&nbsp;&nbsp;<tpl>$comment_list_user</tpl><!--评论人-->：<tpl>$val['comment_author']</tpl>&nbsp;&nbsp;<tpl>$comment_list_time</tpl><!--评论时间-->：<tpl>date("Y-m-d H:i:s",$val['comment_time'])</tpl>&nbsp;&nbsp;<tpl>$comment_list_ip</tpl><!--来源ip-->：<tpl>if $val['comment_ip'] == ''</tpl><tpl>$comment_list_ip_null</tpl><!--无--><tpl>else</tpl><tpl>$val['comment_ip']</tpl><tpl>/if</tpl></td>
    <td width="35%" align="center">
      <a href="index.php?ctl=content&act=content_comment_reply&comment_id=<tpl>$val['comment_id']</tpl>&binz_page=<tpl>intval($_GET['binz_page'])</tpl>"><tpl>$comment_list_reply</tpl><!--回复--></a><!--编辑--> |
	  <a href="index.php?ctl=content&act=comment_del&comment_id=<tpl>$val['comment_id']</tpl>&binz_page=<tpl>intval($_GET['binz_page'])</tpl>" onClick="return confirm('<tpl>$comment_list_del_conf</tpl>');"><tpl>$comment_list_del</tpl><!--删除--></a><!--删除-->    </td>
  </tr>
  <tr>
    <td align="center"><tpl>$comment_list_rep_body</tpl><!--内容--></td>
    <td colspan="2" align="left"><tpl>nl2br($val['comment_body'])</tpl></td>
    </tr>
	<tpl>if $val['comment_repost'] != ''</tpl>
  <tr>
    <td align="center"><tpl>$comment_list_reply</tpl><!--回复--></td>
    <td colspan="2" align="left"><tpl>$comment_list_rep_user</tpl><!--回复人-->：<tpl>$val['comment_repost_author']</tpl><br><tpl>nl2br($val['comment_repost'])</tpl></td>
  </tr>
  	<tpl>/if</tpl>
	<tpl>/foreach</tpl>
  <tr>
    <td colspan="3" align="right"><span style=" float:left">&nbsp;<input type="checkbox" name="chkall" onClick='listTable.selectAll(this, "comment_id")' >&nbsp;&nbsp;<input type="submit" id="btnSubmit" disabled="true" name="del" value="<tpl>$comment_list_del</tpl>" class="button" /></span><tpl>$show_page</tpl>&nbsp;&nbsp;</td>
    </tr>
  </table>

  </div>
</form>
<div id="footer">
<tpl>$common_copyright</tpl>
</div>
</body>