links($GG['conn']); if($GG){ list($id,$ip)=explode(',',$GG['field']); if($GG[$id]){ $ipadd=convertip("../../",$db->getdy($ip,$table,$id."=".$GG[$id])); $db->update($table,"ipadd='".$ipadd."'",$id."=".$GG[$id]); $info="alls=document.getElementById('all').innerHTML; alls=alls-1; if(alls<=0 || !alls) alls='完成'; document.getElementById('all').innerHTML=alls;"; echo $info; echo "document.write(' $table $id = ".$GG[$id]." $ip = $ipadd ');"; //echo "window.scrollTo(0,document.body.scrollHeight);"; }else{ if(!$GG['all']) $where=" where ipadd=''";//只刷新没有数据的地区 echo $Admintop; $rs=$db->query("select ".$GG['field']." from ".$table." $where"); $s=$db->rscount($rs); echo "
执行总数:".$s." 剩余:".$s."
"; for($i=0;$i<$s;$i++){ $row=$db->getfetch($rs); echo "
"; } } } $db->close(); unset($GG,$db); ?>