{%set loadUrl = '/device/screen?ajax=1' %}
{% if data['ajax'] == False %}
<!DOCTYPE html>
<html>
    <head>
        {%include '../inc/header.html'%}
        <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 class="left w-half">
	                    <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']}}">{{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 class="right w-half" id="loadMain_1">
	                	{% end %}
	                	{%include 'inc/data.html'%}
	                	{% 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 %}