12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- <!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>推送类型</th>
- <th>设备id</th>
- <th>设备名称</th>
- <th>推送数据</th>
-
- <th>添加时间</th>
- <!-- <th>操作</th> -->
- </tr>
- </thead>
- <tbody>
- {volist name="data_list" id="vo"}
- <tr>
- <td class="font12">{$vo['notifyType']}</td>
- <td>{$vo['device_id']}</td>
- <td>{$vo['name']}</td>
- <td>{$vo['data']}</td>
- <td>{$vo['addtime']}</td>
- <!-- <td>
- <a onclick="del({$vo['id']})" style="cursor: pointer;">删除</a>
- </td> -->
- </tr>
- {/volist}
-
- </tbody>
- </table>
- {$pages}
- </div>
- </form>
- </div>
- <script>
- function del(id){
- var msg = "确定要删除该设备吗";
- if (confirm(msg)==true){
- window.location.href='{:url("delete")}?id='+id;
- return true;
- }else{
- return false;
- }
- }
- function status(iot_id){
- /* $.post('{:url("status")}',{iot_id:iot_id},function(res){
- alert(res);
- });
- */
- alert(iot_id);
- }
- </script>
- </body>
- </html>
|