<?php
/**
 * @version        Somao_Search X1.0 9:23 2012-1-1 Somao $
 * @package        Somao_Search.Site
 * @copyright      Copyright (c) 2009 - 2012, Somao, Inc.
 * @license        http://www.somao123.com/
 * @link           http://www.somao.cc/
**/
require_once("../global.php");
$p=trim(HtmlReplace($_GET["p"]));
if($p==""){
		$order="hits";
		$titles="热门搜索";
	}elseif($p=="top10"){
		$order="click_day";
		$titles="实时热点";
	}elseif($p=="week"){
		$order="click_week";
		$titles="七日关注";
	}elseif($p=="month"){
		$order="click_month";
		$titles="当月关注";
	}elseif($p=="topkey"){
		$order="hits";
		$titles="热门搜索";
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>搜索风云榜</title>
<link rel="stylesheet" type="text/css" href="css/common.css">
<link rel="stylesheet" type="text/css" href="css/tree.css">
<link rel="stylesheet" type="text/css" href="css/list.css">
</head>
<body>
<?php
require_once("topleft.php");
?>
	<div class="r main-cont">
		<div class="crumbs"><a href="index.php" target="_blank">泽许风云榜</a>&nbsp;&nbsp;&gt;&nbsp; <?php echo $titles;?>排行榜</div>
		<div class="content">
			<h1 class="top10"><?php echo $titles;?>排行榜</h1>
			<div class="list">
				<table cellspacing="0">
					<tbody>
					<tr class="th"><td width="41">排名</td>
					<td colspan="2">关键词</td><td width="73">当日搜索量</td>
					<td width="67">7日搜索量</td>
					<td width="73">当月搜索量</td>
					<td width="68">总搜索量</td>
					</tr>
<?php
	$j=0;
	$key_query=$db->query("select * from ve123_keywords order by $order desc limit 50");
	while($key=$db->fetch_array($key_query))
	{$j++;
?>
					<tr>
						<th><?php echo $j;?></th>
						<td width="354" class="key"><?php echo "<a target=\"_blank\" href=\"../s/?wd=".urlencode($key["keyword"])."&s=".$s."\">".$key["keyword"]."</a>";?></td>
						<td width="11"><a href="http://www.baidu.com/baidu?cl=3&tn=baidutop10&fr=top1000&wd=%CA%E9%BC%C7%D6%AE%C5%AE%B3%D4%BF%D5%E2%C3" target="_blank" class="detail"></a></td>
						
						<td><?php echo $key["click_day"];?></td>
						<td><?php echo $key["click_week"];?></td>
                        <td><?php echo $key["click_month"];?></td>
                        <td><?php echo $key["hits"];?></td>
						</td>
               		  </tr>
<?php  }  ?> 
					</tbody>
				</table>
			</div>
		</div>
    
		<div class="footer">
			&copy;2012-2014&nbsp;泽许搜索&nbsp;
			<a target="_blank" href="http://sighttp.qq.com/authd?IDKEY=a4cd97ebd86d03be8726d40d21cf92fd9709df1e9b237b75"><img border="0"  src="http://wpa.qq.com/imgd?IDKEY=a4cd97ebd86d03be8726d40d21cf92fd9709df1e9b237b75&pic=50" alt="点击这里给我发消息" title="点击这里给我发消息"/></a>有事Q我</a>&nbsp;
			<a href="about_top.php" target="_blank">关于泽许风云榜</a>
		</div> 
	</div>
    
	<div class="cl"></div>
</div>

<div id="full" style="display:none; width:50px; height:95px; position:fixed; left:50%; top:480px; margin-left:493px;  z-index:100; text-align:center; cursor:pointer;"><a href='javascript:void(0)'><img src="img/return_top.gif" border=0 alt="返回顶部"></a></div>
<script src="js/news_top.js" type="text/javascript"></script>

</body>
</html>

