12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <?php if (!defined('THINK_PATH')) exit();?><div class="bjui-pageHeader" data-layout-fixed="true">
- <div class="bjui-searchBar">
- <div class="btn-group">
- <button type="button" class="btn-green" >查询</button>
- <!-- showMoreSearch 记住显示状态data-name="custom2" -->
- <button type="button" class="btn-green" data-toggle="moresearch" title="更多查询条件"><i class="fa fa-angle-double-down"></i></button>
- </div>
- <span><a class="btn btn-orange" href="javascript:;" onclick="loadpage(this)" data-icon="undo"> 刷新</a></span>
- <form data-toggle="ajaxsearch" data-options="{searchDatagrid:$.CurrentNavtab.find('#Dianweisub')}" id="Dianwei_form">
- <div class="bjui-moreSearch">
- <fieldset>
- <legend style="font-weight:normal;">搜索:</legend>
- <div style="margin:0; padding:1px 5px 5px;">
- <span>设备id:</span>
- <input name="device_code" size="15">
- <span>状态:</span>
- <select name="status">
- <option value="1">未更新</option>
- <option value="2">更新</option>
- </select>
- <div class="btn-group">
- <button type="submit" class="btn-green" onclick="formnone()" data-icon="search">查询!</button>
- <button type="reset" class="btn-orange" data-icon="times">重置</button>
- </div>
- </div>
- </fieldset>
- </div>
- </form>
- </div>
- </div>
- <div class="bjui-pageContent">
- <table id='Dianweisub'>
- <thead>
- <tr>
- <th data-options="{name:'owner_code',width:230}">设备id</th>
- <th data-options="{name:'min'}">压力最小值</th>
- <th data-options="{name:'max'}">压力最大值</th>
- <th data-options="{name:'status'}">是否更新</th>
- <th data-options="{name:'time'}">最后操作时间</th>
- <th data-options="{render:'Dianwei_opert',align:'center',quicksort:false}">操作</th>
- </tr>
- </thead>
- </table>
- </div>
- <script>
- mypage('#Dianweisub',true,false,'/jdxf/admin1.php/Home/Dianwei/WaterGage/list/1');//表id ,取值url
- function updatestatus (tr,data){
- var buff='<img src="/jdxf/Public/images/locked.gif" style="cursor: pointer;border:none;"/>';
- if(data.is_enable==1){
- buff='<img src="/jdxf/Public/images/ok.gif" border="0"/>';
- }
- return buff;
- }
- function Dianwei_opert(tr,data){
- return '<a class="btn btn-green" data-toggle="dialog" data-options={id:"Dianwei_edit",url:"/jdxf/admin1.php/Home/Dianwei/water_edit/code/'+data.owner_code+'",width:"450",height:"400",onClose:"Dianwei_sx"} data-mask="true" >编辑</a>'+
- '';
- }
- function Dianwei_sx(){
- $('#Dianweisub').datagrid('refresh', {'filterFlag':true});
- }
- </script>
|