<?
@include('inc/header.php');
?>
<style>
.main{ border:1px solid #7A7A7A;padding:10px;}
.main table { border:1px solid #7A7A7A; border-bottom:none;}
.main table tr td{ border-bottom:1px solid #7A7A7A;border-right:1px solid #7A7A7A;}
.main table .tr{ font-weight:bold}
</style>
<div class="main">
<div style="width:600px; margin:0 auto">
<p style="font-size:18px; font-weight:bold; text-align:center; margin-bottom:10px; border:1px solid #7A7A7A; color:#f00">TOP100 User</p>
<table  cellspacing="0">
<tr class="tr">
<td width="10%"  align="center">总排名</td>
<td width="25%">提交者</td>
<td width="15%"  align="center">黑页提交数</td>
<td width="20%">所属团队</td>
<td width="30%" style="border-right:0;">联系方式</td>
</tr>
 <?
	$sql="SELECT tj_name,tj_contact,tj_team, count(*) AS count FROM hacked_pages where pending=1 GROUP BY tj_name ORDER BY count DESC LIMIT 100";
	@$query=mysql_query($sql);
	$rank=0;
	while(@$row=mysql_fetch_array($query))
	{
		$rank++;
		$tj_name=htmlspecialchars($row['tj_name']);
		$tj_team=$row['tj_team']==''?'无':$row['tj_team'];
		$tj_team=htmlspecialchars($tj_team);
		$tj_contact=$row['tj_contact']==''?'无':$row['tj_contact'];
		$tj_contact=htmlspecialchars($tj_contact);
?>
<tr>
<td align="center"><font color="#ff0000"><?=$rank?></font></td>
<td><a href="search.php?var=<?=$tj_name?>"><?=$tj_name?></a> </td>
<td align="center"><?=$row['count']?></td>
<td><a href="search.php?type=team&var=<?=$tj_team?>"><?=$tj_team?></a> </td>
<td  style="border-right:0;"><?=$tj_contact?></td>
</tr>
<? }?>
</table>
</div>
</div>
<?
@include('inc/footer.php');
?>