123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- <!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" />
- <title>体重分布统计图</title>
- <script type="text/javascript" src="js/huimv/tjt.js"></script>
- <script type="text/javascript">
- $(function(){
- $("#searchGt").attr("disabled","disabled");
- var list = $("#list").val();
- var arr = eval("("+ list +")");
- for (var i = 0; i < arr.length; i++) {
- if (arr[i].bz == 1) {
- getDwebTjt(arr[i].dweb);
- }
- }
- });
- function getDwebTjt(dweb) {
- if (dweb == "") {
- dweb = $("#dweb").val();
- }
- var list = $("#list").val();
- var lqid = $("#lqid").val();
- var tjt = $("#tjt").val();
- var arr = eval("("+ list +")");
- if (dweb != "") {
- jQuery.ajax({
- type : "get",
- url : "getDwebTjt.htm",
- data : {"dweb" : dweb, "lqid" : lqid, "tjt" : tjt},
- dataType : "json",
- async : true,
- success : function(data) {
- getHighchartTjt(data);
- for (var i = 0; i < arr.length; i++) {
- if (arr[i].dweb == dweb) {
- $("#dweb").val(dweb);
- $("#dqy").html(" 当前(" + arr[i].dweb + ") ");
- if (i == 0) {
- $("#syy").html(" ");
- $("#xyy").html("<a style='cursor:pointer' onclick='getDwebTjt(" + arr[i + 1].dweb + ")'><img src='images/next.png' title='" + arr[i + 1].dweb + "' /></a>");
- }
- if (i == arr.length - 1) {
- $("#syy").html("<a style='cursor:pointer' onclick='getDwebTjt(" + arr[i - 1].dweb + ")'><img src='images/pre.png' title='" + arr[i - 1].dweb + "' /></a>");
- $("#xyy").html(" ");
- }
- if (i > 0 && i < arr.length - 1) {
- $("#syy").html("<a style='cursor:pointer' onclick='getDwebTjt(" + arr[i - 1].dweb + ")'><img src='images/pre.png' title='" + arr[i - 1].dweb + "' /></a>");
- $("#xyy").html("<a style='cursor:pointer' onclick='getDwebTjt(" + arr[i + 1].dweb + ")'><img src='images/next.png' title='" + arr[i + 1].dweb + "' /></a>");
- }
- }
- }
- }
- });
- }
- }
- function back() {
- $("#gtszDiv").hide();
- $("#gtszTable").show();
- $("#searchGt").attr("disabled","");
- }
- </script>
- </head>
- <body>
- <input type="hidden" id="list" name="list" value='$!list' />
- <input type="hidden" id="lqid" name="lqid" value="$!lqid" />
- <input type="hidden" id="dweb" name="dweb"/>
- <div>
- <div style="height: 20%; ">
- <div class="td_back" style="float:left;">
- <ul>
- <li><a href="#" onclick="javascript:back();">返回</a></li>
- </ul>
- </div>
- <div style="float:left;width:220px"> </div>
- <div id="syy" style="float:left;"></div>
- <div id="dqy" style="float:left;padding-top:5px;"></div>
- <div id="xyy" style="float:left;"></div>
- <div style="float:right;margin:5px 30px;" onchange="getDwebTjt('')">
- <select id="tjt" style="width:120px;">
- <option value="qcwd" #if("$!tjt" == "qcwd") selected = "selected" #end>全程温度</option>
- <option value="tzbh" #if("$!tjt" == "tzbh") selected = "selected" #end>体重变化</option>
- <option value="zztjt" #if("$!tjt" == "zztjt") selected = "selected" #end>全程增长</option>
- </select>
- </div>
- </div>
- <div id="chartDiv" style="height: 80%; width: 100%;"></div>
- </div>
- </body>
- </html>
|