123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163 |
- <!doctype html>
- <html>
- <head>
- <meta http-equiv="content-type" content="text/html;charset=utf-8">
- <title></title>
- <link rel="stylesheet" type="text/css" href="css/style.css">
- <script type="text/javascript" src="lib/jquery-1.11.3.min.js"></script>
- </head>
- <body>
- <div class="header">
- <ul class="nav clearfix">
- <li><a href="" title="">水润佳禾</a></li>
- <li><a href="" title="">雨农灌溉</a></li>
- <li><a href="" title="">灌溉商城</a></li>
- <li><a href="" title="">智慧农业</a></li>
- <li class="no-bg"><a href="" title="">登录新农宝盒云平台</a></li>
- </ul>
- </div>
- <div class="equip-top">
- <h3>大田一号管理</h3>
- <div class="avatar"><img src="img/equip2.jpg" width="106" height="106" alt=""></div>
- <img src="../img/equip1.jpg" alt="" class="bg">
- <div class="txt">E:1234.54,W:2233.43</div>
- </div>
- <div class="equip">
- <div class="tabs clearfix">
- <a href="equip.html" class="">设备控制</a>
- <a href="business.html">墒情分析</a>
- <a href="data.html" class="active">数据统计</a>
- <a href="log.html" class="no-bg">设备记录</a>
- </div>
- <div class="business-cavs" style="padding-top: 20px;">
- <div class="title">
- <select class="start-time">
- <option>开始时间</option>
- </select>
- <select class="end-time">
- <option>结束时间</option>
- </select>
- <select class="args">
- <option>查询参数</option>
- </select>
- <div class="submit-btn" id="J_submitBtn">提交</div>
- </div>
- <div class="business-list three-list data clearfix">
- <div class="business-item">
- <div class="num">28℃</div>
- <div class="name">平均温度</div>
- </div>
- <div class="business-item mlr35">
- <div class="num">85%rh</div>
- <div class="name">平均湿度</div>
- </div>
- <div class="business-item">
- <div class="num">20m/s</div>
- <div class="name">平均风速</div>
- </div>
- </div>
- <div id="container" style="min-width:700px;height:400px;margin-bottom:60px;"></div>
- </div>
- </div>
- <div class="footer">
- <div class="txt">京ICP备123456号 联系电话:4001231234</div>
- </div>
- <script type="text/javascript" src="../lib/date/WdatePicker.js"></script>
- <script type="text/javascript" src="http://cdn.hcharts.cn/highcharts/highcharts.js"></script>
- <script id="push">var Maze_Data = {};Maze_Data.dw = "℃";Maze_Data.url = "http://www.xinnongbaohe.com/data?farm=2&park=8";Maze_Data.name = "1号土壤温度";Maze_Data.data = [
- {
- "value": 1.1618426259,
- "date": "2012-08-28",
- "l": -2.6017329022,
- "u": 0.2949717757
- },
- {
- "value": 0.5828247293,
- "date": "2012-08-29",
- "l": -1.3166963635,
- "u": 0.1324086347
- },
- {
- "value": 0.3790770636,
- "date": "2012-08-30",
- "l": -0.8712221305,
- "u": 0.0956413566
- }
- ];</script>
- <script type="text/javascript">
- $(function () {
- var chart = new Highcharts.Chart({
- chart: {
- renderTo: 'container',
- type: 'spline'
- },
- title: {
- text: null
- },
- credits: {
- enabled: false
- },
- exporting: {
- enabled: false
- },
- xAxis: {
- type: 'datetime',
- dateTimeLabelFormats: {
- millisecond: '%H:%M:%S.%L',
- second: '%H:%M:%S',
- minute: '%H:%M',
- hour: '%H:%M',
- day: '%e. %b',
- week: '%e. %b',
- month: '%b \'%y',
- year: '%Y'
- }
- },
- yAxis: {
- title: {
- text: ''
- }
- },
- tooltip: {
- formatter: function()
- {
- return '<b>'+ Maze_Data.name +'</b><br/>'+
- Highcharts.dateFormat('%Y-%m-%d %H:%M:%S', this.x) +'<br />'+ this.y +' ' + Maze_Data.dw;
- }
- },
- series: Maze_Data.data
- });
- $('#J_submitBtn').bind('click', function()
- {
- var start = $("#search_start").val();
- var end = $("#search_end").val();
- var type = $("#search_type").val();
- var method = $("#search_method").val();
- var time = $("#search_time_value").val();
- location.href = Maze_Data.url + '&start=' + start + '&end=' + end + '&type=' + type + '&method=' + method + '&time=' + time + '#J_submitBtn';
- });
- });
- function time()
- {
- var value = $("#search_time").val();
- if(value)
- {
- var temp = value.split('||');
- $("#search_start").val(temp[0]);
- $("#search_end").val(temp[1]);
- $("#search_method").val(temp[2]);
- $("#search_time_value").val(temp[3]);
- $("#J_submitBtn").click();
- }
- }
- </script>
- </body>
- </html>
|