<!--
<?php
print <<<EOT
-->

<table width="100%" border="0" cellspacing="1" cellpadding="3" class="tablewidth" style="TABLE-LAYOUT: fixed;WORD-WRAP: break-word;">
  <form name="form_work" method="post" action="index.php?lfj=$lfj&action=delete">
    <tr align="center" class="head"> 
      <td width="6%">ID</td>
      <td width="30%">標 題</td>
      <td width="11%">所在欄目</td>
      <td width="14%">舉報類型</td>
      <td width="10%">舉報者</td>
      <td width="13%">舉報日期</td>
      <td width="9%">&nbsp;查看/刪除</td>
      <td width="7%">驗證</td>
    </tr>
    <!--
EOT;
foreach($listdb AS $key=>$rs){
print <<<EOT
-->
    <tr bgcolor="#FFFFFF"> 
      <td width="6%" align="center">$rs[aid]</td>
      <td width="30%"> 
        <input type="checkbox" name="listdb[]" value="{$rs[id]}">
        <a href="$webdb[www_url]/bencandy.php?fid=$rs[fid]&aid=$rs[aid]"  style="color:$rs[titlecolor];" target="_blank">$rs[title]</a></td>
      <td width="11%" align="center"><a href="$webdb[www_url]/list.php?fid=$rs[fid]" target="_blank">$rs[fname]</a></td>
      <td width="14%" align="center">$rs[type]</td>
      <td width="10%" align="center">$rs[name]</td>
      <td width="13%" align="center">$rs[posttime]</td>
      <td width="9%" align="center"><a href="?lfj=$lfj&job=view&id=$rs[id]">查看</a>/<a href="index.php?lfj=$lfj&action=delete&listdb[]=$rs[id]">刪除</a></td>
      <td width="7%" align="center">$rs[r_yz]</td>
    </tr>
    <!--
EOT;
}print <<<EOT
--> 
     <tr bgcolor="#FFFFFF" align="center"> 
      <td colspan="8"> $showpage</td>
    </tr>
    <tr bgcolor="#FFFFFF" align="center"> 
      <td colspan="8"> <a href="javascript:" onClick="CheckAll('all')">全選</a>/<a href="javascript:" onClick='CheckAll()'>反選</a> 
        <input type="submit" name="Submit2" value="刪除" onclick="postdo('yz')">
      </td>
    </tr>
  </form>
</table>
<SCRIPT LANGUAGE="JavaScript">
<!--
function postdo(va){
	document.form_work.jobs.value=va
	document.form_work.submit();
}
function CheckAll(va){
	form=document.form_work
	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;
		}
	}
}
//-->
</SCRIPT><br>
<!--
EOT;
?>
-->
