index.html 5.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. {extend name="layout/content"}
  2. {block name="content"}
  3. <div class="row">
  4. <div class="col-sm-12">
  5. <div class="ibox float-e-margins">
  6. <div class="ibox-title">
  7. <h5>批次管理</h5>
  8. </div>
  9. <div class="ibox-content">
  10. <div class="row row-lg">
  11. <div class="col-sm-12">
  12. <div class="row">
  13. <div class="col-sm-3">
  14. <div class="input-group input-group-sm">
  15. <div class="input-group-btn">
  16. <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">
  17. 申报类别
  18. </button>
  19. </div>
  20. <select class="form-control" id="type">
  21. <option value="">---请选择---</option>
  22. {volist name="declare_type_list" id="item"}
  23. <option value="{$item.code}">{$item.name}</option>
  24. {/volist}
  25. </select>
  26. </div>
  27. </div>
  28. <div class="col-sm-3">
  29. <div class="input-group input-group-sm">
  30. <div class="input-group-btn">
  31. <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">
  32. 是否有效
  33. </button>
  34. </div>
  35. <select class="form-control" id="active">
  36. <option value=""></option>
  37. <option value="1">有效</option>
  38. <option value="2">无效</option>
  39. </select>
  40. </div>
  41. </div>
  42. <div class="col-sm-3">
  43. <button type="button" class="btn btn-sm btn-primary " onclick="Batch.search()" id="">
  44. <i class="fa fa-search"></i>&nbsp;搜索
  45. </button>
  46. <button type="button" class="btn btn-sm btn-primary " onclick="Batch.reset()" id="">
  47. <i class="fa fa-trash"></i>&nbsp;重置
  48. </button>
  49. </div>
  50. </div>
  51. <div class="hidden-xs" id="BatchTableToolbar" role="group">
  52. {if condition="chkCommission('/admin/batch/add','/batch/add')"}
  53. <button type="button" class="btn btn-sm btn-primary " onclick="Batch.openAddBatch()" id="">
  54. <i class="fa fa-plus"></i>&nbsp;添加
  55. </button>
  56. {/if}
  57. {if condition="chkCommission('/admin/batch/edit','/batch/update')"}
  58. <button type="button" class="btn btn-sm btn-primary " onclick="Batch.openBatchDetail()" id="">
  59. <i class="fa fa-edit"></i>&nbsp;修改
  60. </button>
  61. {/if}
  62. {if condition="chkCommission('/admin/batch/delete','/batch/delete')"}
  63. <button type="button" class="btn btn-sm btn-primary " onclick="Batch.delete()" id="">
  64. <i class="fa fa-remove"></i>&nbsp;删除
  65. </button>
  66. {/if}
  67. {if condition="chkCommission('/admin/batch/setActive','/batch/setActive')"}
  68. <button type="button" class="btn btn-sm btn-danger " onclick="Batch.setActive()" id="">
  69. <i class="fa fa-toggle-off"></i>&nbsp;设置生效
  70. </button>
  71. {/if}
  72. {if condition="chkCommission('/admin/batch/setNotActive','/batch/setNotActive')"}
  73. <button type="button" class="btn btn-sm btn-danger " onclick="Batch.setNotActive()" id="">
  74. <i class="fa fa-toggle-off"></i>&nbsp;设置失效
  75. </button>
  76. {/if}
  77. </div>
  78. <table id="BatchTable" class="table-condensed" style="font-size: 14px;table-layout: fixed!important;" data-mobile-responsive="true" data-click-to-select="true">
  79. <thead>
  80. <tr>
  81. <th data-field="selectItem" data-checkbox="true"></th>
  82. </tr>
  83. </thead>
  84. </table>
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. <script type="text/javascript">
  92. document.write('<script src="/static/modular/system/batch/batch.js?v=' + (new Date()).getTime() + '"><\/script>');
  93. </script>
  94. {/block}