"; if($_GET[order]=='pt') echo "총pt "; else echo "평균pt "; echo "역대 1위 리스트 "; if($_GET[order]=='pt') echo "→평균pt 보기"; else echo "→총pt 보기"; echo "
"; echo ""; if($_GET[order]=='pt') $sql=mysql_query("select * from zsRank2 where rank='1' order by reg_time"); else $sql=mysql_query("select * from zsRank2 where rank_avg='1' order by reg_time"); $no=1; while($list=mysql_fetch_array($sql)) { if($now1<>$list[id_no]) { if($rbr) { echo ""; } $name_a=mysql_fetch_array(mysql_query("select * from zsmem where no='$list[id_no]'")); $name=$name_a[name]; echo ""; echo "
"; if($_GET[order]=='pt') $printpt=$lastpt; else $printpt=$lastptavg; if($ptpt < $printpt) echo " ".number_format($printpt).""; else echo " →".number_format($printpt); echo "(".(($list[reg_time]-$rbr)/86400)."일간)"; $rbr=0; echo "
".$no."".$name; if($_SESSION[zsPART]=='all') { echo "()"; } echo ""; if($_GET[order]=='pt') $ptpt=$list[pt]; else $ptpt=$list[pt_avg]; echo number_format($ptpt); echo "".date("Y-m-d", $list[reg_time]); $now1=$list[id_no]; $no++; $rbr=$list[reg_time]; } $lastpt=$list[pt]; $lastptavg=$list[pt_avg]; } /*if($_GET[order]=='pt') $printpt=$lastpt; else $printpt=$lastptavg; if($ptpt < $printpt) echo " ↗".$printpt.""; else echo " →".$printpt; echo " (".intval((time()-$rbr)/86400)."일째)
";*/ echo "
"; if($_GET[order]=='pt') $printpt=$lastpt; else $printpt=$lastptavg; if($ptpt < $printpt) echo " ".number_format($printpt).""; else echo " →".number_format($printpt); echo "(".intval((time()-$rbr)/86400)."일째)"; $rbr=0; echo "
"; include 'zcnt.php'; ?>