<!--
<?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=del">
    <tr align="center" class="head"> 
      <td width="12%">宣传者</td>
      <td width="22%">访客IP</td>
      <td width="27%">来源地</td>
      <td width="20%">访问日期</td>
      <td width="19%">来源网址</td>
    </tr>
    <!--
EOT;
foreach($listdb AS $key=>$rs){
print <<<EOT
-->
    <tr bgcolor="#FFFFFF" class="trA" onmouseover="this.className='trB'" onmouseout="this.className='trA'"> 
      <td width="12%" align="left">
        <input type="checkbox" name="idDB[]" value="$rs[id]">
        $rs[username]</td>
      <td width="22%"> <a href="$webdb[www_url]$webdb[path]/bencandy.php?fid=$rs[fid]&aid=$rs[aid]"  style="color:$rs[titlecolor];" target="_blank"></a>$rs[ip]</td>
      <td width="27%" align="left">$rs[ipfrom]</td>
      <td width="20%" align="center">$rs[posttime]</td>
      <td width="19%" align="center"> 
        <input type="text" name="textfield2" value="$rs[fromurl]" onClick="if(this.value!='')window.open('$rs[fromurl]');">
      </td>
    </tr>
    <!--
EOT;
}print <<<EOT
-->
    <tr bgcolor="#FFFFFF" align="center"> 
      <td colspan="5"> $showpage</td>
    </tr>
    <tr bgcolor="#FFFFFF" align="center"> 
      <td colspan="5"> <a href="javascript:" onClick="CheckAll('all')">全选</a>/<a href="javascript:" onClick='CheckAll()'>反选</a> 
        <input type="submit" name="Submit3" 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;
?>
-->
