<!--
<?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;
?>
-->
