<?php
require_once("../global/checkuser2.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
　　<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="index.css" />
<script type="text/javascript" src="../global/jquery-latest.min.js"></script>	
<script type="text/javascript" src="ajax2.js"></script>
<script type="text/javascript" src="../FusionCharts/FusionCharts.js"></script>	
	</head>
<body>
<?php
require_once("../global/connect.php");
$sql=mysql_query("select * from consulting order by id DESC limit 0,7");
$dianji="";
$money="";
$chengjiao="";
$shangmen="";
$youxiao="";
$zixun="";
$date="";
while($row=mysql_fetch_array($sql)){
$dianji .= "<td>".$row["dianji"]."</td>";
$money .= "<td>".$row["money"]."</td>";
$chengjiao .= "<td>".$row["chengjiao"]."</td>";
$shangmen .= "<td>".$row["shangmen"]."</td>";
$youxiao .= "<td>".$row["youxiao"]."</td>";
$zixun .= "<td>".$row["zixun"]."</td>";
$date .= "<td>".$row["date"]."</td>";
}
?>
<div class="list" style="border-bottom:none;">
<table cellspacing="0" cellpadding="0" id="div1"><tr style="background:#d3edf9;"><td style="width:72%;border-left:none;text-align:left;">&nbsp;&nbsp;&nbsp;点击量/竞价费用统计</td><td><a href="javascript:void(0)">一个月</a></td><td><a href="javascript:void(0)">二个月</a></td><td><a href="javascript:void(0)">三个月</a></td><td><a href="javascript:void(0)">一年</a><td></table>
<div id="dianjichart" style="width:100%;text-align:center;margin-top:5px;"></div>
<table cellspacing="0" cellpadding="0"><tr><td  style="border-left:none;width:100%;">最近7天点击量/竞价费用数据</td></tr></table>
<table cellspacing="0" cellpadding="0">
<tr><td style="border-left:none;">日期</td><?=$date?></tr>
<tr><td style="border-left:none;">点击量</td><?=$dianji?></tr>
<tr><td style="border-left:none;">竞价费用</td><?=$money?></tr>
</table>
<table cellspacing="0" cellpadding="0" id="div2" style="margin-top:10px;display:inline;border-top:1px solid #ccc;"><tr style="background:#d3edf9;"><td style="width:72%;border-left:none;text-align:left;">&nbsp;&nbsp;&nbsp;成交+上门+有效+咨询统计</td><td><a href="javascript:void(0)">一个月</a></td><td><a href="javascript:void(0)">二个月</a></td><td><a href="javascript:void(0)">三个月</a></td><td><a href="javascript:void(0)">一年</a><td></table>
<div id="chengjiaochart" style="width:100%;text-align:center;margin-top:5px;"></div>
<table cellspacing="0" cellpadding="0"><tr><td  style="border-left:none;width:100%;">最近7天成交+上门+有效+咨询数据</td></tr></table>
<table cellspacing="0" cellpadding="0">
<tr><td style="border-left:none;">日期</td><?=$date?></tr>
<tr><td style="border-left:none;">成交量</td><?=$chengjiao?></tr>
<tr><td style="border-left:none;">上门量</td><?=$shangmen?></tr>
<tr><td style="border-left:none;">有效量</td><?=$youxiao?></tr>
<tr><td style="border-left:none;">咨询量</td><?=$zixun?></tr>
</table>
</div>
</body>
</html>

