1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- {%set loadUrl = '/device/mul?ajax=1' %}
- {% if data['ajax'] == False %}
- <!DOCTYPE html>
- <html>
- <head>
- {%include '../inc/header.html'%}
- <link href="{{static_url('mobile/css/station.css')}}" rel="stylesheet">
- <style>
- .buttons dt {
- margin-top: -9px;
- padding-bottom: 9px;
- }
- .buttons .btn-switch {
- border-radius: 0px;
- height:32px;
- width: 40px;
- font-size:12px;
- cursor: pointer;
- outline:none;
- margin-left:-9px;
- }
- .buttons .open {
- color:white;
- }
- .buttons .disabled {
- color:#bababa;
- }
- .buttons .loading {
- background-image: url(data:image/gif;base64,R0lGODlhIAAgALMAAP///7Ozs/v7+9bW1uHh4fLy8rq6uoGBgTQ0NAEBARsbG8TExJeXl/39/VRUVAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFBQAAACwAAAAAIAAgAAAE5xDISSlLrOrNp0pKNRCdFhxVolJLEJQUoSgOpSYT4RowNSsvyW1icA16k8MMMRkCBjskBTFDAZyuAEkqCfxIQ2hgQRFvAQEEIjNxVDW6XNE4YagRjuBCwe60smQUDnd4Rz1ZAQZnFAGDd0hihh12CEE9kjAEVlycXIg7BAsMB6SlnJ87paqbSKiKoqusnbMdmDC2tXQlkUhziYtyWTxIfy6BE8WJt5YEvpJivxNaGmLHT0VnOgGYf0dZXS7APdpB309RnHOG5gDqXGLDaC457D1zZ/V/nmOM82XiHQjYKhKP1oZmADdEAAAh+QQFBQAAACwAAAAAGAAXAAAEchDISasKNeuJFKoHs4mUYlJIkmjIV54Soypsa0wmLSnqoTEtBw52mG0AjhYpBxioEqRNy8V0qFzNw+GGwlJki4lBqx1IBgjMkRIghwjrzcDti2/Gh7D9qN774wQGAYOEfwCChIV/gYmDho+QkZKTR3p7EQAh+QQFBQAAACwBAAAAHQAOAAAEchDISWdANesNHHJZwE2DUSEo5SjKKB2HOKGYFLD1CB/DnEoIlkti2PlyuKGEATMBa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YJNXEoFCiEWDI9jCzESey7GwMM5doEwW4jJoypQQ743u1WcTV0CgFzbhJ5XClfHYd/EwZnHoYVDgiOfHKQNREAIfkEBQUAAAAsAAAPABkAEQAABGeQqUQruDjrW3vaYCZ5X2ie6EkcKaooTAsi7ytnTq046BBsNcTvItz4AotMwKZBIC6H6CVAJaCcT0CUBTgaTg5nTCu9GKiDEMPJg5YBBOpwlnVzLwtqyKnZagZWahoMB2M3GgsHSRsRACH5BAUFAAAALAEACAARABgAAARcMKR0gL34npkUyyCAcAmyhBijkGi2UW02VHFt33iu7yiDIDaD4/erEYGDlu/nuBAOJ9Dvc2EcDgFAYIuaXS3bbOh6MIC5IAP5Eh5fk2exC4tpgwZyiyFgvhEMBBEAIfkEBQUAAAAsAAACAA4AHQAABHMQyAnYoViSlFDGXBJ808Ep5KRwV8qEg+pRCOeoioKMwJK0Ekcu54h9AoghKgXIMZgAApQZcCCu2Ax2O6NUud2pmJcyHA4L0uDM/ljYDCnGfGakJQE5YH0wUBYBAUYfBIFkHwaBgxkDgX5lgXpHAXcpBIsRADs=);
- background-position: 50%;
- background-repeat: no-repeat;
- background-size: 15px 15px;
- }
- </style>
- </head>
- <body>
- {%set data['topName'] = '批量控制' %}
- {%set data['topUrl'] = '/device' %}
- {%include '../inc/top.html'%}
- <section class="has-bbar">
- <div id="loadMain">
- {% end %}
- {% for value in data['list'] %}
- {%set layer = '' %}
- {% if value['oper'] %}
- {%set layer = value['oper'] %}
- {% end %}
- {% if '成功' in layer or '批量' in layer or '正在' in layer %}
- {%set hint = 'hint--info' %}
- {% else %}
- {%set hint = 'hint--error' %}
- {% end %}
- {% if value['device_type'] == 1 %}
- <li class="form-input">
- <label><span>{{value['name']}}</span><p><a {% if layer %}data-hint="{{layer}}"{% end %} href="javascript:;" data-status="{% if value['value'] == '1' %}2{% else %}1{% end %}" onclick="Farm.Switch(this, '/device/mul', '{{value['id']}}')" class="{% if layer %}hint--left {{hint}} hint--always loading{% end %} btn btn-switch {% if value['value'] == '1' %}open{% end %}"><i></i></a></p></label>
- </li>
- {% else %}
- <li class="form-input buttons">
- <label><span>{{value['name']}}</span><p>
-
- <button {% if layer %}data-hint="{{layer}}"{% end %} onclick="Farm.Button(this, '/device/mul', '{{value['id']}}', 1, '#button_down_{{value['id']}}')" id="button_up_{{value['id']}}" class="btn btn-switch {% if layer and value['value'] in ('1','4') %}hint--left {{hint}} hint--always loading{% end %} {% if value['value'] in ('2','3') %}disabled{% end %} {% if value['value'] in ('1','4') %}open{% end %}">升</button>
- <button {% if layer %}data-hint="{{layer}}"{% end %} onclick="Farm.Button(this, '/device/mul', '{{value['id']}}', 5)" id="button_stop_{{value['id']}}" class="btn btn-switch {% if layer and value['value'] == '5' %}hint--left {{hint}} hint--always loading{% end %} {% if value['value'] == '5' %}open{% end %}">停</button>
- <button {% if layer %}data-hint="{{layer}}"{% end %} onclick="Farm.Button(this, '/device/mul', '{{value['id']}}', 2, '#button_up_{{value['id']}}')" id="button_down_{{value['id']}}" class="btn btn-switch {% if layer and value['value'] in ('2','3') %}hint--left {{hint}} hint--always loading{% end %} {% if value['value'] in ('1','4') %}disabled{% end %} {% if value['value'] in ('2','3') %}open{% end %}">降</button>
- </p></label>
-
- </dt>
- {% end %}
- {% end %}
- {% if data['ajax'] == False %}
- </div>
- </section>
- {%include '../inc/script.html'%}
- {%include 'inc/load.html'%}
- </body>
- </html>
- {% end %}
|