<!--
<?php
print <<<EOT
--> 
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="MainTable">
  <tr> 
    <td height="100" valign="top" class="Main"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="dragTable" >
        <tr> 
          <td class="head">评论管理</td>
        </tr>
        <tr> 
          <td class="middle"> 
            <table width="100%" border="0" cellspacing="1" cellpadding="3" style='TABLE-LAYOUT: fixed;WORD-WRAP: break-word'>
              <form name="formcc" method="post" action="?job=del">
                <!--
EOT;
foreach($listdb AS $key=>$rs){
print <<<EOT
-->
                <tr class="trA"> 
                  <td  align="left" width="3%" valign="top"> 
                    <input type="checkbox" name="cidDB[]" value="$rs[cid]">
                  </td>
                  <td align="left" width="97%"><b>评论: </b><a href="../do/comment.php?fid=$rs[fid]&id=$rs[aid]" target="_blank" title="$rs[content]">$rs[ctitle]</a><br>
                    <b>文章: </b><a href="../bencandy.php?fid=$rs[fid]&id=$rs[aid]" target="_blank">$rs[title]</a><br>
                    <b>日期: </b>$rs[posttime] &nbsp;&nbsp;<b>评论者: </b>$rs[username] {$rs[state]}&nbsp;&nbsp;<a href="?job=del&cidDB[]=$rs[cid]"><img src="images/del_icon2.gif" border=0></a> 
					
					
                  </td>
                </tr>
                <!--
EOT;
}print <<<EOT
-->
                <tr align="center"> 
                  <td colspan="2">$showpage</td>
                </tr>

				<tr align="center"> 
                  <td colspan="2"> 
				                  <!--
EOT;
if($listdb){
print <<<EOT
-->
				  <a href="javascript:" onClick="CheckAll('all')">全选</a>/<a href="javascript:" onClick='CheckAll()'>反选</a> 
                    <input type="button" name="Submit" value="批量删除" onclick="postdel()">
                <!--
EOT;
}print <<<EOT
-->					
					
                  </td>
                </tr>

              </form>
            </table>
          </td>
        </tr>
        <tr>
          <td class="foot">
            <h3 class="L"></h3>
            <h3 class="R"></h3>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table><SCRIPT LANGUAGE="JavaScript">
<!--
function CheckAll(va){
	form=document.formcc
	for (var i=0;i<form.elements.length;i++){
		var e = form.elements[i];
		if(va=='all'){
			e.checked = true;
		}else{
			e.checked == true ? e.checked = false : e.checked = true;
		}
	}
}
function postdel(){
	form=document.formcc
	var ck=false;
	for (var i=0;i<form.elements.length;i++){
		var e = form.elements[i];
		if(e.checked == true){
			ck = true;
		}
	}
	if(ck==false){
		alert('请选择一条记录');
		return false;
	}
	form.submit();
}
//-->
</SCRIPT>
<!--
EOT;
?>
-->
