Your IP : 216.73.216.54


Current Path : /home/zqegovsj/public_html/us3.supplierlist.com/webmaster/
Upload File :
Current File : /home/zqegovsj/public_html/us3.supplierlist.com/webmaster/paiming.php

<?$inc_path = "../haibo/cn/";$ua_sm_compile_dir = "ua-admin/";require($inc_path."global.php");require($inc_path .APP_NAME. 'configs/db_session.php');if($_GET['stop']){	$str='';	if($_GET['stop']==2){		$str.=" ,`time`='".strtotime(date("Y-m-d",strtotime('+1 day')).' 00:00:00')."'";	}	$sql="update a_config set `value`='$_GET[stop]' $str where `key`='stop'";	$g_db->Execute($sql);}$sql = "SELECT * FROM a_paiming";$res = $g_db->GetAll($sql);$config=$g_db->GetAll("select `value`,`time` from a_config where `key`='stop'");$lastdate=date("Y年m月d日",$config[0]['time']);?><!-- CSS goes in the document HEAD or added to your external stylesheet --><style type="text/css">table.hovertable {	font-family: verdana,arial,sans-serif;	font-size:11px;	color:#333333;	border-width: 1px;	border-color: #999999;	border-collapse: collapse;}table.hovertable th {	background-color:#c3dde0;	border-width: 1px;	padding: 8px;	border-style: solid;	border-color: #a9c6c9;}table.hovertable tr {	background-color:#d4e3e5;}table.hovertable td {	border-width: 1px;	padding: 8px;	border-style: solid;	border-color: #a9c6c9;}</style><meta charset="utf-8"><!-- Table goes in the document BODY --><table class="hovertable"><tr><td><form action="" method="get"><input type="hidden" name="stop" value="<? if($config[0]['value']==1){	echo '2';}else{	echo '1';}?>"><input type="submit" value="<? if($config[0]['value']==1){	echo '已关闭'."($lastdate 统计)";}else{	echo '已开启';}?>">开启之后将会在每日零点开始更新</form></td></tr></table><table class="hovertable"><tr><th>关键字</th><th>google排名</th><th>站内链接</th><th>抓取日期</th></tr><? foreach($res as $k=>$v){?>
<? 
if ($v['google_pm']<11)$pg="首页";
else if ($v['google_pm']>11&&$v['google_pm']<21)$pg="第二页";
else if ($v['google_pm']>20&&$v['google_pm']<31)$pg="第三页";
if($v['google_pm']){ ?>
<tr onmouseover="this.style.backgroundColor='#ffff66';" onmouseout="this.style.backgroundColor='#d4e3e5';"><td><?=$v['keyword_name']?></td><td><?=$pg?></td><td><?=$v['link']?></td><td><?=$v['sign']?></td></tr><? } ?><?}?></table>