screens.html 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. {%set loadUrl = '/device/screens?ajax=1&ids=' + data['farm'] %}
  2. {% if data['ajax'] == False %}
  3. <!DOCTYPE html>
  4. <html>
  5. <head>
  6. <meta charset="utf-8">
  7. <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
  8. <meta content="yes" name="apple-mobile-web-app-capable">
  9. <meta content="black" name="apple-mobile-web-app-status-bar-style">
  10. <meta content="telephone=no" name="format-detection">
  11. <title>{{data['info']['welcome']}} - {{data['setting']['name']}}</title>
  12. <meta name="Keywords" content="" />
  13. <meta name="Description" content="" />
  14. <link href="{{static_url('pc/css/global.css')}}" rel="stylesheet">
  15. <link href="{{static_url('pc/lib/layer/hint.css')}}" rel="stylesheet">
  16. <script type="text/javascript" src="{{static_url('pc/lib/jquery/jquery-1.8.3.min.js')}}"></script>
  17. <link href="{{static_url('pc/css/pmjk.css')}}" rel="stylesheet">
  18. </head>
  19. <body>
  20. <div class="wrapper clearfix">
  21. <div class="right-cont">
  22. <div class="top">
  23. <h1>{{data['info']['welcome']}}</h1>
  24. </div>
  25. <div class="main">
  26. <div>
  27. <div class="pannel" name="chart" id="chart">
  28. <h2>今日(<span class="name">{{data['deviceInfo']['name']}}</span>)数据趋势</h2>
  29. <div class="box" id="main" style="width: 100%;height:300px;">
  30. </div>
  31. </div>
  32. <div id="loadMain_0">
  33. {% end %}
  34. {% if data['camera'] %}
  35. <div class="pannel">
  36. <h2>图像切换</h2>
  37. <div class="box">
  38. <div class="cam-list">
  39. <div class="cam"><img src="{{data['camera'][0]['value']}}" width="100%"></div>
  40. </div>
  41. <div class="cam-tabs">
  42. {% for v in data['camera'] %}
  43. <a href="javascript:;" class="cur" data-source="{{v['value']}}" onclick="$('.cam img').attr('src', '{{v['value']}}')">{{v['name']}}</a>
  44. {% end %}
  45. </div>
  46. </div>
  47. </div>
  48. {% end %}
  49. {% if data['logs'] %}
  50. <div class="pannel">
  51. <ul class="logs">
  52. {% for v in data['logs'] %}
  53. <li><h3>{{v['type']}}</h3><p>{{v['content']}}</p><p class="time">{{v['cdates']}}</p></li>
  54. {% end %}
  55. </ul>
  56. </div>
  57. {% end %}
  58. {% if data['ajax'] == False %}
  59. {% else %}
  60. ||
  61. {% end %}
  62. {% if data['ajax'] == False %}
  63. </div>
  64. </div>
  65. <div id="loadMain_1">
  66. {% end %}
  67. {% for k in data['deviceList'] %}
  68. {%set data['list']=data['deviceList'][k] %}
  69. {%include 'inc/data.html'%}
  70. {% end %}
  71. {% if data['ajax'] == False %}
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. {%include '../inc/footer.html'%}
  78. {%include '../inc/script.html'%}
  79. {%include 'chart/simple.html'%}
  80. {% else %}
  81. {%include 'chart/ajax.html'%}
  82. {% end %}
  83. {% if data['ajax'] == False %}
  84. {%include 'inc/load.html'%}
  85. </body>
  86. </html>
  87. {% end %}