f50835442d5a9ba78839af60e4dd5164.php 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?php if (!defined('THINK_PATH')) exit();?><div class="bjui-pageHeader" data-layout-fixed="true">
  2. <div class="bjui-searchBar">
  3. <div class="btn-group">
  4. <button type="button" class="btn-green" >查询</button>
  5. <!-- showMoreSearch 记住显示状态data-name="custom2" -->
  6. <button type="button" class="btn-green" data-toggle="moresearch" title="更多查询条件"><i class="fa fa-angle-double-down"></i></button>
  7. </div>
  8. <span><a class="btn btn-orange" href="javascript:;" onclick="loadpage(this)" data-icon="undo"> 刷新</a></span>
  9. <form data-toggle="ajaxsearch" data-options="{searchDatagrid:$.CurrentNavtab.find('#Dianweisub')}" id="Dianwei_form">
  10. <div class="bjui-moreSearch">
  11. <fieldset>
  12. <legend style="font-weight:normal;">搜索:</legend>
  13. <div style="margin:0; padding:1px 5px 5px;">
  14. <span>设备id:</span>
  15. <input name="device_code" size="15">&nbsp;
  16. <span>状态:</span>
  17. <select name="status">
  18. <option value="1">未更新</option>
  19. <option value="2">更新</option>
  20. </select>
  21. <div class="btn-group">
  22. <button type="submit" class="btn-green" onclick="formnone()" data-icon="search">查询!</button>
  23. <button type="reset" class="btn-orange" data-icon="times">重置</button>
  24. </div>
  25. </div>
  26. </fieldset>
  27. </div>
  28. </form>
  29. </div>
  30. </div>
  31. <div class="bjui-pageContent">
  32. <table id='Dianweisub'>
  33. <thead>
  34. <tr>
  35. <th data-options="{name:'owner_code',width:230}">设备id</th>
  36. <th data-options="{name:'min'}">压力最小值</th>
  37. <th data-options="{name:'max'}">压力最大值</th>
  38. <th data-options="{name:'status'}">是否更新</th>
  39. <th data-options="{name:'time'}">最后操作时间</th>
  40. <th data-options="{render:'Dianwei_opert',align:'center',quicksort:false}">操作</th>
  41. </tr>
  42. </thead>
  43. </table>
  44. </div>
  45. <script>
  46. mypage('#Dianweisub',true,false,'/jdxf/admin1.php/Home/Dianwei/WaterGage/list/1');//表id ,取值url
  47. function updatestatus (tr,data){
  48. var buff='<img src="/jdxf/Public/images/locked.gif" style="cursor: pointer;border:none;"/>';
  49. if(data.is_enable==1){
  50. buff='<img src="/jdxf/Public/images/ok.gif" border="0"/>';
  51. }
  52. return buff;
  53. }
  54. function Dianwei_opert(tr,data){
  55. 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>'+
  56. '';
  57. }
  58. function Dianwei_sx(){
  59. $('#Dianweisub').datagrid('refresh', {'filterFlag':true});
  60. }
  61. </script>