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/zhuanhua.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');
$sql = "SELECT * FROM a_zhuanhua";

$res = $g_db->GetAll($sql);
$res1 = $g_db->GetAll("SELECT count(id) as tj FROM a_zhuanhua where bytype=1 ");
$res2 = $g_db->GetAll("SELECT count(id) as tj FROM a_zhuanhua where bytype=2 ");

$res3 = $g_db->GetAll("SELECT count(id) as tj FROM a_zhuanhua where webtype=1 ");
$res4 = $g_db->GetAll("SELECT count(id) as tj FROM a_zhuanhua where webtype=2 ");



?><!-- 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>总计<?=($res1[0]['tj'])+($res2[0]['tj'])?></td>
    <td>通过反馈单 <?=($res1[0]['tj'])?></td>
    <td>通过邮件 <?=($res2[0]['tj'])?></td>
    <td>WEB端 <?=($res3[0]['tj'])?></td>
    <td>AMP端 <?=($res4[0]['tj'])?></td>
</tr>
</table>


<table class="hovertable"><tr><th>日期</th><th>IP</th><th>类型</th><th>终端</th><th>语言</th><th>页面</th></tr><? foreach($res as $k=>$v){?>
<tr onmouseover="this.style.backgroundColor='#ffff66';" onmouseout="this.style.backgroundColor='#d4e3e5';"><td>
<?=date("Y-m-d",$v['created'])?>
</td><td><?=$v['ip']?></td><td><? if ($v['bytype']=='1') { ?>Feedback<? } else { ?>E-Mail<? } ?></td><td><? if ($v['webtype']==1) { ?>WEB<? } else { ?>AMP<? } ?></td><td><?=$v['fromlang']?></td><td><a href="<?=$v['frompage']?>" target="_blank"><?=$v['frompage']?></a></td></tr><? } ?></table>