<?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"]));
?>
<!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/home.css">
<link rel="stylesheet" type="text/css" href="css/tree.css">
</head>
<body>
<div class="wrap">
  <?php
require_once("topleft.php");
?>
<div class="r main-cont">
 <div class="box-spe top10 l dis-rb">
	<h1>实时热点</h1>
	<div class="box">
		<div class="t_list">
           <table>
<?php
	$j=0;
	$key_query=$db->query("select * from ve123_keywords order by click_day desc limit 10");
	while($key=$db->fetch_array($key_query))
	{$j++;
?>           <tr>
                <td><span class="title no<?php echo $j;?>"><?php echo "<a target=\"_blank\" href=\"../s/?wd=".urlencode($key["keyword"])."&s=".$s."\">".$key["keyword"]."</a>";?></span></td>
	            <td><span class="clicks"><?php echo $key["click_day"];?></span></td>
             </tr>
<?php  }  ?> 
		  </table>
            
        </div>
      </div>
        <div class="bottom"></div>
</div>



<div class="box-spe weekhotspot l dis-rb">
	<h1>七日关注</h1>
        <div class="box">
                <div class="t_list">
			<table>
<?php
	$j=0;
	$key_query=$db->query("select * from ve123_keywords order by click_week desc limit 10");
	while($key=$db->fetch_array($key_query))
	{$j++;
?>
        	        <tr>
                        	<td><span class="title no<?php echo $j;?>"><?php echo "<a target=\"_blank\" href=\"../s/?wd=".urlencode($key["keyword"])."&s=".$s."\">".$key["keyword"]."</a>";?></span></td>
	                        <td><span class="clicks"><?php echo $key["click_week"];?></span></td>
           	  </tr>
<?php  }  ?> 
			</table>
                </div>
        </div>
        <div class="bottom"></div>
</div>

        
<div class="box-spe flash l">
	<h1>当月搜索</h1>
        <div class="box">
        	<div class="t_list">
                   <div class="bhot"><a href="#" target="_blank">泽许沸点</a></div>
                   <div class="word-adv" style="overflow:hidden;">
	                	<div id="oneNew">
                        		<a href="#" target="_blank">泽许搜索风云榜新版开通了！</a><br>
                        		<a href="#" target="_blank">一周搜索热词解读，实时热点！</a><br>
                		</div>
			       </div>
			<table>
<?php
	$j=0;
	$key_query=$db->query("select * from ve123_keywords order by click_month desc limit 10");
	while($key=$db->fetch_array($key_query))
	{$j++;
?>
        	        <tr>
                        	<td><span class="title no<?php echo $j;?>"><?php echo "<a target=\"_blank\" href=\"../s/?wd=".urlencode($key["keyword"])."&s=".$s."\">".$key["keyword"]."</a>";?></span></td>
	                        <td><span class="clicks"><?php echo $key["click_month"];?></span></td>
           	  </tr>
<?php  }  ?> 
			</table>
         </div>
	</div>
   <div class="bottom"></div>
</div>
        
<div class="cl"></div>

        <div class="group top_keyword" name="BLUEBA_OBJ_ID" id="BLUEBA_OBJ_ID">
            <div class="l top-list">
                <h1>热门搜索</h1>
               
                
                <div id="tabAC1-cont-0" class="">
                <table class="list-table" cellspacing="0">

<?php
	$j=0;
	$key_query=$db->query("select * from ve123_keywords order by hits desc limit 10");
	while($key=$db->fetch_array($key_query))
	{$j++;
?>
                <tr>
                   <td class="tno no<?php echo $j;?>"><?php echo "<a target=\"_blank\" href=\"../s/?wd=".urlencode($key["keyword"])."&s=".$s."\">".$key["keyword"]."</a>";?></td>
                   <td><em class="trend-t 
				   <?php $nums= mt_rand(0,5);
				   if($nums>2){ echo "down";}else{ echo "up";}
				    ?>
                    "></em></td>
                   <td>总：<?php echo $key["hits"];?></td>
                   <td>月：<?php echo $key["click_month"];?></td>
                   <td>周：<?php echo $key["click_week"];?></td>
                   <td>日：<?php echo $key["click_day"];?></td>
                  </tr>
<?php  }  ?> 
                  </table>
                </div>
                
            </div>

            <div class="r wind-vane">
                <ul id="tabC1" class="tab-title tabCX">
                    <li class="on" onmouseover="nTabs(this,0);" id="people">最新搜索</li>
                    <li class="nor" onmouseover="nTabs(this,1);" id="place">最新关键字</li>
                </ul>
                <div class="cl"></div>
                <ul id="tabC1-cont-0" class="days">
<?php
	$j=0;
	$key_query=$db->query("select * from ve123_keywords order by lasttime desc limit 10");
	while($key=$db->fetch_array($key_query))
	{$j++;
?>  
        	      <li><span class="title no<?php echo $j;?>"><?php echo "<a target=\"_blank\" href=\"../s/?wd=".urlencode($key["keyword"])."&s=".$s."\">".$key["keyword"]."</a>";?></span></li>
<?php  }  ?> 
                </ul>
                <ul id="tabC1-cont-1" class="days none">
<?php
	$j=0;
	$key_query=$db->query("select * from ve123_keywords order by kid desc limit 10");
	while($key=$db->fetch_array($key_query))
	{$j++;
?>
        	     <li><span class="title no<?php echo $j;?>"><?php echo "<a target=\"_blank\" href=\"../s/?wd=".urlencode($key["keyword"])."&s=".$s."\">".$key["keyword"]."</a>";?></span></li>
<?php  }  ?> 
                </ul>
            </div>
            <div class="cl"></div>
        </div>
		<div class="cl"></div>
		<div class="footer">
			&copy;2012-2014&nbsp;zxyt&nbsp;
			<a href="#" target="_blank">使用泽许前必读</a>&nbsp;
			<a href="#" target="_blank">关于泽许风云榜</a>
		</div>
  </div>
    
	<div class="cl"></div>
</div>

<script src="js/newscrollandtabs.js" type="text/javascript"></script>
<script type="text/javascript">
linkage('tabB2','tabB3','tabC1','cityList1','2',1);linkage('tabB4','tabB5','tabC2','cityList2','26',2);linkage('tabB6','tabB7','tabC3','cityList3','258',3);linkage('tabB8','tabB9','tabC4','cityList4','280',4);linkage('tabB10','tabB11','tabC5','cityList5','297',5);
init();
</script>
</body>
</html>
