1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <script type="text/javascript" src="__static__/js/jquery-1.10.2.min.js"></script>
- <link rel="stylesheet" href="__static__/css/bootstrap.min.css">
- <script type="text/javascript" src="__static__/js/bootstrap.min.js"></script>
- <title></title>
- </head>
- <body>
- <div class="mainbox" style="padding: 20px;">
- <div class="page-toolbar">
- <div class="btn">
- <a href="{:url('add')}" class="btn btn-primary"><i class="aicon ai-tianjia">新增</i></a>
- </div>
- </div>
- <form id="pageListForm">
- <div class="layui-form">
- <table class="table table-bordered table-striped " lay-even="" lay-skin="row">
- <thead>
- <th>命令id</th>
- <th>设备id</th>
- <th>发送状态</th>
- <th>添加时间</th>
- </tr>
- </thead>
- <tbody>
- {volist name="data_list" id="vo"}
- <tr>
- <td>{$vo['commandId']}</td>
- <td class="font12">{$vo['IMEI']}</td>
- <td>{$vo['status']}</td>
- <td>{$vo['addtime']}</td>
- </tr>
- {/volist}
-
- </tbody>
- </table>
- {$pages}
- </div>
- </form>
- </div>
- <script>
- function del(id){
- var msg = "确定要删除该设备吗";
- if (confirm(msg)==true){
- window.location.href='{:url("index")}';
- return false;
- }else{
- return false;
- }
- }
- function status(iot_id){
- /* $.post('{:url("status")}',{iot_id:iot_id},function(res){
- alert(res);
- });
- */
- alert(iot_id);
- }
- </script>
- </body>
- </html>
|