screen.html 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. {%set loadUrl = '/device/screen?ajax=1' %}
  2. {% if data['ajax'] == False %}
  3. <!DOCTYPE html>
  4. <html>
  5. <head>
  6. {%include '../inc/header.html'%}
  7. <link href="{{static_url('pc/css/pmjk.css')}}" rel="stylesheet">
  8. </head>
  9. <body>
  10. <div class="wrapper clearfix">
  11. <div class="right-cont">
  12. <div class="top">
  13. <h1>{{data['info']['welcome']}}</h1>
  14. </div>
  15. <div class="main">
  16. <div class="left w-half">
  17. <div class="pannel" name="chart" id="chart">
  18. <h2>今日(<span class="name">{{data['deviceInfo']['name']}}</span>)数据趋势</h2>
  19. <div class="box" id="main" style="width: 100%;height:300px;">
  20. </div>
  21. </div>
  22. <div id="loadMain_0">
  23. {% end %}
  24. {% if data['camera'] %}
  25. <div class="pannel">
  26. <h2>图像切换</h2>
  27. <div class="box">
  28. <div class="cam-list">
  29. <div class="cam"><img src="{{data['camera'][0]['value']}}" width="100%"></div>
  30. </div>
  31. <div class="cam-tabs">
  32. {% for v in data['camera'] %}
  33. <a href="javascript:;" class="cur" data-source="{{v['value']}}" onclick="$('.cam img').attr('src', '{{v['value']}}')">{{v['name']}}</a>
  34. {% end %}
  35. </div>
  36. </div>
  37. </div>
  38. {% end %}
  39. {% if data['logs'] %}
  40. <div class="pannel">
  41. <ul class="logs">
  42. {% for v in data['logs'] %}
  43. <li><h3>{{v['type']}}</h3><p>{{v['content']}}</p><p class="time">{{v['cdates']}}</p></li>
  44. {% end %}
  45. </ul>
  46. </div>
  47. {% end %}
  48. {% if data['ajax'] == False %}
  49. {% else %}
  50. ||
  51. {% end %}
  52. {% if data['ajax'] == False %}
  53. </div>
  54. </div>
  55. <div class="right w-half" id="loadMain_1">
  56. {% end %}
  57. {%include 'inc/data.html'%}
  58. {% if data['ajax'] == False %}
  59. </div>
  60. </div>
  61. </div>
  62. </div>
  63. </div>
  64. {%include '../inc/footer.html'%}
  65. {%include '../inc/script.html'%}
  66. {%include 'chart/simple.html'%}
  67. {% else %}
  68. {%include 'chart/ajax.html'%}
  69. {% end %}
  70. {% if data['ajax'] == False %}
  71. {%include 'inc/load.html'%}
  72. </body>
  73. </html>
  74. {% end %}