<!--
<?php
print <<<EOT
--> 
<form name="form_work" method="post" action="index.php?lfj=$lfj&action=del">
<div class="MainContainers">
  <div class="Conter">
  <table class="ListTable">
    <tr> 
      <th width="12%">宣传者</th>
      <th width="22%">访客IP</th>
      <th width="27%">来源地</th>
      <th width="20%">访问日期</th>
      <th width="19%">来源网址</th>
    </tr>
    <!--
EOT;
foreach($listdb AS $key=>$rs){
print <<<EOT
-->
    <tr class="trA" onmouseover="this.className='trB'" onmouseout="this.className='trA'"> 
      <td>
        <input type="checkbox" name="idDB[]" value="$rs[id]">
        $rs[username]</td>
      <td> <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 class='Left'>$rs[ipfrom]</td>
      <td>$rs[posttime]</td>
      <td> 
        <input type="text" name="textfield2" value="$rs[fromurl]" onClick="if(this.value!='')window.open('$rs[fromurl]');">
      </td>
    </tr>
    <!--
EOT;
}print <<<EOT
-->
  </table>
  <div class="m-showpage">$showpage</div>
  <div class='submits'>
          <input type="button" onclick="CheckAll('all')" name="Submit2" value="全选" />
          <input type="button" onClick='CheckAll()' name="Submit2" value="反选" />  
           <input type="submit" name="Submit3" value="删除" >
  </div>
</div>
</div>
</form>
<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;
?>
-->
