123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- {%set loadUrl = '/device/screens?ajax=1&ids=' + data['farm'] %}
- {% if data['ajax'] == False %}
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
- <meta content="yes" name="apple-mobile-web-app-capable">
- <meta content="black" name="apple-mobile-web-app-status-bar-style">
- <meta content="telephone=no" name="format-detection">
-
- <title>{{data['info']['welcome']}} - {{data['setting']['name']}}</title>
- <meta name="Keywords" content="" />
- <meta name="Description" content="" />
- <link href="{{static_url('pc/css/global.css')}}" rel="stylesheet">
- <link href="{{static_url('pc/lib/layer/hint.css')}}" rel="stylesheet">
- <script type="text/javascript" src="{{static_url('pc/lib/jquery/jquery-1.8.3.min.js')}}"></script>
- <link href="{{static_url('pc/css/pmjk.css')}}" rel="stylesheet">
- </head>
- <body>
- <div class="wrapper clearfix">
- <div class="right-cont">
- <div class="top">
- <h1>{{data['info']['welcome']}}</h1>
- </div>
- <div class="main">
- <div>
- <div class="pannel" name="chart" id="chart">
- <h2>今日(<span class="name">{{data['deviceInfo']['name']}}</span>)数据趋势</h2>
- <div class="box" id="main" style="width: 100%;height:300px;">
- </div>
- </div>
- <div id="loadMain_0">
- {% end %}
- {% if data['camera'] %}
- <div class="pannel">
- <h2>图像切换</h2>
- <div class="box">
- <div class="cam-list">
- <div class="cam"><img src="{{data['camera'][0]['value']}}" width="100%"></div>
- </div>
- <div class="cam-tabs">
- {% for v in data['camera'] %}
- <a href="javascript:;" class="cur" data-source="{{v['value']}}" onclick="$('.cam img').attr('src', '{{v['value']}}')">{{v['name']}}</a>
- {% end %}
- </div>
- </div>
- </div>
- {% end %}
- {% if data['logs'] %}
- <div class="pannel">
- <ul class="logs">
- {% for v in data['logs'] %}
- <li><h3>{{v['type']}}</h3><p>{{v['content']}}</p><p class="time">{{v['cdates']}}</p></li>
- {% end %}
- </ul>
- </div>
- {% end %}
- {% if data['ajax'] == False %}
- {% else %}
- ||
- {% end %}
- {% if data['ajax'] == False %}
- </div>
- </div>
- <div id="loadMain_1">
- {% end %}
- {% for k in data['deviceList'] %}
- {%set data['list']=data['deviceList'][k] %}
- {%include 'inc/data.html'%}
- {% end %}
- {% if data['ajax'] == False %}
- </div>
- </div>
- </div>
- </div>
- </div>
- {%include '../inc/footer.html'%}
- {%include '../inc/script.html'%}
- {%include 'chart/simple.html'%}
- {% else %}
- {%include 'chart/ajax.html'%}
- {% end %}
- {% if data['ajax'] == False %}
- {%include 'inc/load.html'%}
- </body>
- </html>
- {% end %}
|