index.html 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <div class="panel panel-default panel-intro">
  2. {:build_heading()}
  3. <div class="panel-body">
  4. <div id="myTabContent" class="tab-content">
  5. <div class="tab-pane fade active in" id="one">
  6. <div class="widget-body no-padding">
  7. <div id="toolbar" class="toolbar">
  8. {:build_toolbar('refresh')}
  9. </div>
  10. <table id="table" class="table table-striped table-bordered table-hover" width="100%">
  11. </table>
  12. </div>
  13. </div>
  14. </div>
  15. </div>
  16. </div>
  17. <script id="customformtpl" type="text/html">
  18. <!--form表单必须添加form-commsearch这个类-->
  19. <form action="" class="form-commonsearch">
  20. <div style="border-radius:2px;margin-bottom:10px;background:#f5f5f5;padding:15px 20px;">
  21. <h4>自定义搜索表单</h4>
  22. <hr>
  23. <div class="row">
  24. <div class="col-xs-12 col-sm-6 col-md-3">
  25. <div class="form-group">
  26. <label class="control-label">ID</label>
  27. <!--显式的operate操作符-->
  28. <div class="input-group">
  29. <div class="input-group-btn">
  30. <select class="form-control operate" data-name="id" style="width:60px;">
  31. <option value="=" selected>等于</option>
  32. <option value=">">大于</option>
  33. <option value="<">小于</option>
  34. </select>
  35. </div>
  36. <input class="form-control" type="text" name="id" placeholder="" value=""/>
  37. </div>
  38. </div>
  39. </div>
  40. <div class="col-xs-12 col-sm-6 col-md-3">
  41. <div class="form-group">
  42. <label class="control-label">标题</label>
  43. <!--隐式的operate操作符,必须携带一个class为operate隐藏的文本框,且它的data-name="字段",值为操作符-->
  44. <input class="operate" type="hidden" data-name="title" value="="/>
  45. <div>
  46. <input class="form-control" type="text" name="title" placeholder="请输入查找的标题" value=""/>
  47. </div>
  48. </div>
  49. </div>
  50. <div class="col-xs-12 col-sm-6 col-md-3">
  51. <div class="form-group">
  52. <label class="control-label">管理员ID</label>
  53. <div class="row" data-toggle="cxselect" data-selects="group,admin">
  54. <div class="col-xs-6">
  55. <select class="group form-control" name="group"
  56. data-url="example/bootstraptable/cxselect?type=group"></select>
  57. </div>
  58. <div class="col-xs-6">
  59. <select class="admin form-control" name="admin_id"
  60. data-url="example/bootstraptable/cxselect?type=admin"
  61. data-query-name="group_id"></select>
  62. </div>
  63. <input type="hidden" class="operate" data-name="admin_id" value="="/>
  64. </div>
  65. </div>
  66. </div>
  67. <div class="col-xs-12 col-sm-6 col-md-3">
  68. <div class="form-group">
  69. <label class="control-label">用户名</label>
  70. <input type="hidden" class="operate" data-name="username" value="="/>
  71. <div>
  72. <input id="c-category_id" data-source="auth/admin/index" data-primary-key="username"
  73. data-field="username" class="form-control selectpage" name="username" type="text"
  74. value="" style="display:block;">
  75. </div>
  76. </div>
  77. </div>
  78. <div class="col-xs-12 col-sm-6 col-md-3" style="min-height:68px;">
  79. <!--这里添加68px是为了避免刷新时出现元素错位闪屏-->
  80. <div class="form-group">
  81. <label class="control-label">IP</label>
  82. <input type="hidden" class="operate" data-name="ip" value="in"/>
  83. <div>
  84. <!--给select一个固定的高度-->
  85. <!--@formatter:off-->
  86. <select id="c-flag" class="form-control selectpicker" multiple name="ip" style="height:31px;">
  87. {foreach name="ipList" item="vo"}
  88. <option value="{$key}" {in name="key" value="" }selected{/in}>{$vo}</option>
  89. {/foreach}
  90. </select>
  91. <!--@formatter:on-->
  92. </div>
  93. </div>
  94. </div>
  95. <div class="col-xs-12 col-sm-6 col-md-3">
  96. <div class="form-group">
  97. <label class="control-label">创建时间</label>
  98. <input type="hidden" class="operate" data-name="createtime" value="RANGE"/>
  99. <div>
  100. <input type="text" class="form-control datetimerange" name="createtime" value=""/>
  101. </div>
  102. </div>
  103. </div>
  104. <div class="col-xs-12 col-sm-6 col-md-3">
  105. <div class="form-group">
  106. <label class="control-label"></label>
  107. <div class="row">
  108. <div class="col-xs-6">
  109. <input type="submit" class="btn btn-success btn-block" value="提交"/>
  110. </div>
  111. <div class="col-xs-6">
  112. <input type="reset" class="btn btn-primary btn-block" value="重置"/>
  113. </div>
  114. </div>
  115. </div>
  116. </div>
  117. </div>
  118. </div>
  119. </form>
  120. </script>