<!--
<?php
print <<<EOT
--> 
<table width='100%' cellspacing='1' cellpadding='3' bgcolor='#CCCCCC' class="tablewidth" id="top_menu">
  <tr>
    <td> $fidDB[name]</td>
  </tr>
</table>
<table width='100%' cellspacing='1' cellpadding='3' bgcolor='#CCCCCC' class="tablewidth">
  <form name="form_work" method="post" action="index.php?lfj=$lfj&action=delete">
    <tr class="head"> 
      <td width="6%" align="center">ID </td>
      <td align='center'>投訴類型</td><td align='center'>你的稱呼</td> 
      <td width="11%" align="center">用戶</td>
      <td width="11%" align="center">日期</td>
	  <td width="7%" align="center">$fidDB[statename]</td>
      <td width="17%" align="center">查看 / 修改 / 刪除</td>
    </tr>
    <!--
EOT;
foreach($listdb AS $key=>$rs){
print <<<EOT
-->
    <tr bgcolor='#FFFFFF'> 
      <td width='6%' align="left"> 
        <input type="checkbox" name="iddb[{$rs[id]}]" value="$rs[id]">
        $rs[id]</td>        
      <td align='center'>$rs[advicetype] </td><td align='center'>$rs[truename] </td> 
      <td width="11%" align="center"><a href="../member/homepage.php?uid=$rs[uid]" target="_blank">$rs[username]</a></td>
      <td width="11%" align="center">$rs[posttime] </td>
	  <td width="7%" align="center"><!--
EOT;
if($rs[yz]){
print <<<EOT
-->
            <a href="index.php?lfj=form_content&job=yz&yz=0&mid=$mid&id=$rs[id]"><img alt='是' src="images/check_yes.gif" border="0"></a> 
            <!--
EOT;
}else{
print <<<EOT
-->
            <a href="index.php?lfj=form_content&job=yz&yz=1&mid=$mid&id=$rs[id]"><img alt='否' src="images/check_no.gif" border="0"></a> 
            <!--
EOT;
}
print <<<EOT
--></td>
      <td width="17%" align="center"><a href="?lfj=$lfj&job=view&mid=$rs[mid]&id=$rs[id]"><img src="../member/images/icon_view.gif" border="0"></a> &nbsp;
        <a href="../do/form.php?lfj=$lfj&job=edit&id=$rs[id]&mid=$rs[mid]" target="_blank"><img alt='點擊修改' src='../member/images/button_edit.png' border=0></a>  &nbsp;
        <a href="index.php?lfj=$lfj&action=delete&id=$rs[id]" onClick="return confirm('刪除後不可恢復,你確實要刪除嗎?')"><img alt='點擊刪除' src='../member/images/del_icon2.gif' border=0></a></td>
    </tr>
    <!--
EOT;
}print <<<EOT
-->
    <tr bgcolor='#FFFFFF'> 
      <td colspan="12" align="center"> $showpage</td>
    </tr>
    <tr bgcolor='#FFFFFF'> 
      <td colspan="12" align="center"> <a href="javascript:" onClick="CheckAll('all')">全選</a>/<a href="javascript:" onClick='CheckAll()'>反選</a> 
        <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>
        <input type="submit" name="Submit" value="刪除">
      </td>
    </tr>
  </form>
</table>
<!--
EOT;
?>
-->


