<!--
<?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 class="head"> 
      <td width="5%" align="center">序號 </td>
      <td width="41%" align="center">留言內容</td>
      <td width="8%" align="center">審核與否</td>
      <td width="10%" align="center">昵稱</td>
      <td width="8%" align="center">IP來源</td>
      <td width="10%" align="center">會員性質</td>
      <td width="18%" align="center">刪 看 改 回復</td>
    </tr>
    <!--
EOT;
foreach($listdb AS $key=>$rs){
print <<<EOT
-->
    <tr bgcolor="#FFFFFF"> 
      <td width="5%" align="center">$rs[id]</td>
      <td width="41%"> 
        <input type="checkbox" name="listdb[{$rs[id]}]" value="{$rs[id]}">
        $rs[content]</td>
      <td align="center" width="8%">$rs[ifyz]</td>
      <td width="10%" align="center"><a href="../member/homepage.php?uid=$rs[uid]" target="_blank">$rs[username]</a> 
      </td>
      <td width="8%" align="center">$rs[ip]</td>
      <td width="10%" align="center">$rs[ismember]</td>
      <td width="18%" align="center"><a href="index.php?lfj=$lfj&action=delete&id=$rs[id]" ><img alt='點擊刪除' src='../member/images/del_icon2.gif' border="0"></a> 
        <a href="index.php?lfj=$lfj&job=show&id=$rs[id]" target="_blank"><img alt='點擊查看' src='../member/images/icon_info.gif' border="0"></a> 
        <a href="index.php?lfj=$lfj&job=edit&id=$rs[id]"><img alt='點擊修改' src='../member/images/button_edit.png' border="0"></a> 
        <a href="index.php?lfj=$lfj&job=reply&id=$rs[id]"><img alt='點擊回復' src='../member/images/post2.gif' border="0"></a></td>
    </tr>
    <!--
EOT;
}print <<<EOT
-->
    <tr bgcolor="#FFFFFF"> 
      <td colspan="7" align="center"> $showpage </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td colspan="7" align="center"> <a href="javascript:" onClick="CheckAll('all')">全選</a>/<a href="javascript:" onClick='CheckAll()'>反選</a> 
        <input type="submit" name="Submit" value="批量刪除">
      </td>
    </tr>
  </form>
</table>
<SCRIPT LANGUAGE="JavaScript">
<!--
 
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;
?>
-->
