Пример #1
0
<?php

require 'class/DataEngine.class.php';
error_reporting(0);
$dataEngine = new DataEngine();
$yesterday_num = 0;
//昨天投诉量
$today_num = 0;
//今天投诉量
$yesterday_num = $dataEngine->get_Yesterday_TS_Num();
$today_num = $dataEngine->get_Today_TS_Num();
$increasement = $today_num - $yesterday_num;
//增加的投诉量
$persent = $increasement / $yesterday_num;
$hour_data = $dataEngine->get_Hour_TS_Num();
$month_data = $dataEngine->get_Month_TS_Num();
$automaker_data = $dataEngine->get_complaint_top_automaker();
$location_data = $dataEngine->get_complaint_location_data();
?>

<!DOCTYPE HTML>
<html>
<head>
	<meta charset="utf-8" />
	<title>中国互联网汽车投诉数据分析平台</title>
	<script src="resource/js/jquery-1.11.1.min.js"></script>
	<script src="resource/js/d3.js"></script>
	<script src="resource/js/index.js" ></script>
	<link rel="stylesheet" href="resource/css/index.css" />
	<script>
        $(document).ready(function(){