<!--
<?php
print <<<EOT
--> 
<table width="100%" border="0" cellspacing="1" cellpadding="3" class="tablewidth">
  <form name="form_work" method="post" action="$admin_path&action=$job">
    <tr class="head"> 
      <td width="6%" align="center" height="21">序号</td>
      <td width="50%" align="center" height="21">内容</td>
      <td width="9%" align="center" height="21">前台</td>
      <td width="11%" align="center" height="21">用户名</td>
      <td width="12%" align="center" height="21">时间</td>
      <td width="6%" align="center" height="21">是否通过</td>
      <td width="6%" align="center" height="21">删除</td>
    </tr>
    <!--
EOT;
foreach($listdb AS $key=>$rs){
print <<<EOT
-->
    <tr bgcolor="#FFFFFF"> 
      <td width="6%" align="center">$rs[cid]</td>
      <td width="50%"> 
        <input type="checkbox" name="ciddb[{$rs[cid]}]" value="$rs[cid]">
        <a href="$admin_path&job=show&cid=$rs[cid]">$rs[content]</a> </td>
      <td width="9%" align="center"><a href="$Murl/bencandy.php?fid=$rs[fid]&id=$rs[id]" target="_blank">查看</a></td>
      <td width="11%" align="center">$rs[username]</td>
      <td width="12%" align="center">$rs[posttime]</td>
      <td width="6%" align="center">$rs[yz]</td>
      <td width="6%" align="center"><a href="$admin_path&action=list&jobs=delete&ciddb[{$rs[cid]}]=$rs[cid]">删除</a></td>
    </tr>
    <!--
EOT;
}print <<<EOT
-->
   
   <tr bgcolor="#FFFFFF" align="center"> 
      <td colspan="7">$showpage</td>
    </tr>
    <tr bgcolor="#FFFFFF" align="center"> 
      <td colspan="7"><a href="#" onClick="CheckAll('all')">全选</a>/<a href="#" onClick='CheckAll()'>反选</a> 
        <input type="hidden" name="jobs">
        <input type="button" name="Submit" value="通过验证" onClick="postdo('yz')">
        <input type="button" name="Submit2" value="取消验证" onClick="postdo('unyz')">
        <input type="button" name="Submit3" value="删 除" onClick="postdo('delete')">
      </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>
<!--
EOT;
?>
-->