汇联通执法队后台管理系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <%@ page contentType="text/html;charset=utf-8"%>
  3. <%@ include file="/WEB-INF/jsp/include.jsp"%>
  4. <html xmlns="http://www.w3.org/1999/xhtml">
  5. <head>
  6. <%@ include file="/WEB-INF/jsp/head.jsp" %>
  7. <link rel="stylesheet" type="text/css" href="${rootUrl }css/jquery.jqplot.css" />
  8. <style type="text/css">
  9. #chartbox pre{
  10. width:1500px;background-color: white;margin: 10px;padding: 20px
  11. font-family: 黑体;font-size: 12pt;
  12. }
  13. #chart1,#chart2,#chart3{
  14. width:1018px;border: 1px gray solid;margin: 10px;
  15. }
  16. </style>
  17. <script src="${rootUrl }js/tjlib/jquery.jqplot.all.js" type="text/javascript"></script>
  18. <script type="text/javascript" id="script1">
  19. $(function(){
  20. //使用默认图表参数
  21. var mychart1=$("#chart1").mychart({url:"${rootUrl}app/sample/chart/data"});
  22. });
  23. </script>
  24. <script type="text/javascript" id="script2">
  25. $(function(){
  26. //设置图表参数
  27. var mychart2=$("#chart2").mychart({
  28. pagerForm:"noform", //pagerForm找不到时不再提交form,采用get请求。
  29. url:"${rootUrl}app/sample/chart/data",
  30. optionsCallback:function(chartModel,options){ //回调方法,chartModel为后台返回的数据,options为图表参数。
  31. options.canvasOverlay.show=true;
  32. },
  33. chartOptions:{
  34. title:"调度中心调派能力", //标题
  35. legend: {
  36. show: false, //不显示图例
  37. placement: 'none'
  38. },
  39. seriesDefaults:{
  40. renderer:$.jqplot.BarRenderer
  41. },
  42. canvasOverlay: { //在图表上画线
  43. show: false,
  44. objects: [
  45. {
  46. dashedHorizontalLine: {
  47. name: 'wilma',
  48. y: "{other[0]}",//水平线的高度
  49. lineWidth: 2,
  50. xOffset: '0',
  51. color: 'rgb(255,0,0)',
  52. shadow: true
  53. }
  54. }
  55. ]
  56. }
  57. }
  58. });
  59. });
  60. </script>
  61. <script type="text/javascript" id="script3">
  62. $(function(){
  63. var mychart3=$("#chart3").mychart({
  64. url:"${rootUrl}app/sample/chart/data",
  65. chartOptions:{
  66. seriesDefaults:{
  67. renderer:$.jqplot.BarRenderer
  68. }
  69. }
  70. });
  71. //图表绑定事件
  72. $('#chart3').bind('jqplotDataHighlight',
  73. function (ev, seriesIndex, pointIndex, data) {
  74. $('#info2b').html('series: '+seriesIndex+', point: '+pointIndex+', data: '+data+ ', pageX: '+ev.pageX+', pageY: '+ev.pageY);
  75. }
  76. );
  77. });
  78. </script>
  79. <script type="text/javascript" >
  80. $(function(){
  81. $("#code1").html($("#script1").html());
  82. $("#code2").html($("#script2").html());
  83. $("#code3").html($("#script3").html());
  84. });
  85. </script>
  86. </head>
  87. <body>
  88. <!-- LOGO -->
  89. <%@ include file="/WEB-INF/jsp/top.jsp" %>
  90. <!-- LOGO -->
  91. <div id="boxmain">
  92. <!-- 左侧菜单 -->
  93. <%@ include file="/WEB-INF/jsp/left.jsp" %>
  94. <!-- 左侧菜单 -->
  95. <!-- 内容页 -->
  96. <div id="boxright">
  97. <%@ include file="/WEB-INF/jsp/place.jsp" %>
  98. <form:form modelAttribute="queryModel" id="listForm" action="${rootUrl}sample/proxy/test.do" name="listForm" method="post">
  99. </form:form>
  100. <!-- 查询结果 -->
  101. <div id="chartbox" style="height: 2300px">
  102. <div id="chart1" ></div>
  103. <pre id="code1" ></pre>
  104. <div id="chart2" ></div>
  105. <pre id="code2"></pre>
  106. <div >
  107. <span>Clicked: </span>
  108. <span id="info2b">......</span>
  109. </div>
  110. <div id="chart3"></div>
  111. <pre id="code3"></pre>
  112. </div>
  113. </div>
  114. <!-- 内容页 -->
  115. </div>
  116. <!-- 版权页 -->
  117. <%@ include file="/WEB-INF/jsp/bottom.jsp" %>
  118. <!-- 版权页 -->
  119. </body>
  120. </html>