心理咨询网
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

group.html 7.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. {include file='common/head.html'}
  2. <div class="layui-body">
  3. {if([$list])}
  4. <div class="layui-tab layui-tab-brief" lay-filter="tab">
  5. <ul class="layui-tab-title">
  6. <li class="layui-this" lay-id="t1">会员等级列表</li>
  7. <li lay-id="t2">会员等级新增</li>
  8. </ul>
  9. <div class="layui-tab-content">
  10. <div class="layui-tab-item layui-show">
  11. <table class="layui-table">
  12. <thead>
  13. <tr>
  14. <th>等级编号</th>
  15. <th>等级名称</th>
  16. <th>等级描述</th>
  17. <th>是否启用</th>
  18. <th>积分下限</th>
  19. <th>积分上限</th>
  20. <th>操作</th>
  21. </tr>
  22. </thead>
  23. <tbody>
  24. {foreach $groups(key,value)}
  25. <tr>
  26. <td>[value->gcode]</td>
  27. <td>[value->gname]</td>
  28. <td>[value->description]</td>
  29. <td>
  30. {if($value->status)}
  31. <a href="{url./admin/'.C.'/mod/id/'.$value->id.'/field/status/value/0}"><i class='fa fa-toggle-on' title="点击禁用"></i></a>
  32. {else}
  33. <a href="{url./admin/'.C.'/mod/id/'.$value->id.'/field/status/value/1}"><i class='fa fa-toggle-off' title="点击启用"></i></a>
  34. {/if}
  35. </td>
  36. <td>[value->lscore]</td>
  37. <td>[value->uscore]</td>
  38. <td>
  39. {fun=get_btn_del($value->id)}
  40. {fun=get_btn_mod($value->id)}
  41. </td>
  42. </tr>
  43. {/foreach}
  44. </tbody>
  45. </table>
  46. <div class="page">{$pagebar}</div>
  47. </div>
  48. <div class="layui-tab-item">
  49. <form action="{url./admin/MemberGroup/add}" method="post" class="layui-form">
  50. <input type="hidden" name="formcheck" value="{$formcheck}" >
  51. <div class="layui-form-item">
  52. <label class="layui-form-label">等级编号</label>
  53. <div class="layui-input-block">
  54. <input type="text" name="gcode" required lay-verify="required" placeholder="请输入等级编号" class="layui-input">
  55. </div>
  56. </div>
  57. <div class="layui-form-item">
  58. <label class="layui-form-label">等级名称</label>
  59. <div class="layui-input-block">
  60. <input type="text" name="gname" required lay-verify="required" placeholder="请输入等级名称" class="layui-input">
  61. </div>
  62. </div>
  63. <div class="layui-form-item">
  64. <label class="layui-form-label">等级描述</label>
  65. <div class="layui-input-block">
  66. <input type="text" name="description" placeholder="请输入等级描述" class="layui-input">
  67. </div>
  68. </div>
  69. <div class="layui-form-item">
  70. <label class="layui-form-label">是否启用</label>
  71. <div class="layui-input-block">
  72. <input type="radio" name="status" value="1" title="启用" checked>
  73. <input type="radio" name="status" value="0" title="禁用">
  74. </div>
  75. </div>
  76. <div class="layui-form-item">
  77. <label class="layui-form-label">积分下限</label>
  78. <div class="layui-input-block">
  79. <input type="text" name="lscore" value="0" maxlength="10" required lay-verify="required" class="layui-input">
  80. </div>
  81. </div>
  82. <div class="layui-form-item">
  83. <label class="layui-form-label">积分上限</label>
  84. <div class="layui-input-block">
  85. <input type="text" name="uscore" value="9999999999" maxlength="10" required lay-verify="required" class="layui-input">
  86. </div>
  87. </div>
  88. <div class="layui-form-item">
  89. <div class="layui-input-block">
  90. <button class="layui-btn" lay-submit>立即提交</button>
  91. <button type="reset" class="layui-btn layui-btn-primary">重置</button>
  92. </div>
  93. </div>
  94. </form>
  95. </div>
  96. </div>
  97. </div>
  98. {/if}
  99. {if([$mod])}
  100. <div class="layui-tab layui-tab-brief" lay-filter="tab">
  101. <ul class="layui-tab-title">
  102. <li class="layui-this">会员等级修改</li>
  103. </ul>
  104. <div class="layui-tab-content">
  105. <div class="layui-tab-item layui-show">
  106. <form action="{url./admin/MemberGroup/mod/id/'.[$get.id].'}{$backurl}" method="post" class="layui-form">
  107. <input type="hidden" name="formcheck" value="{$formcheck}" >
  108. <div class="layui-form-item">
  109. <label class="layui-form-label">等级编号</label>
  110. <div class="layui-input-block">
  111. <input type="text" name="gcode" value="{$group->gcode}" required lay-verify="required" placeholder="请输入等级编号" class="layui-input">
  112. </div>
  113. </div>
  114. <div class="layui-form-item">
  115. <label class="layui-form-label">等级名称</label>
  116. <div class="layui-input-block">
  117. <input type="text" name="gname" value="{$group->gname}" required lay-verify="required" placeholder="请输入等级名称" class="layui-input">
  118. </div>
  119. </div>
  120. <div class="layui-form-item">
  121. <label class="layui-form-label">等级描述</label>
  122. <div class="layui-input-block">
  123. <input type="text" name="description" value="{$group->description}" placeholder="请输入等级描述" class="layui-input">
  124. </div>
  125. </div>
  126. <div class="layui-form-item">
  127. <label class="layui-form-label">是否启用</label>
  128. <div class="layui-input-block">
  129. <input type="radio" name="status" value="1" {if([$group->status]==1)}checked{/if} title="启用" checked>
  130. <input type="radio" name="status" value="0" {if([$group->status]==0)}checked{/if} title="禁用">
  131. </div>
  132. </div>
  133. <div class="layui-form-item">
  134. <label class="layui-form-label">积分下限</label>
  135. <div class="layui-input-block">
  136. <input type="text" name="lscore" value="{$group->lscore}" maxlength="10" required lay-verify="required" class="layui-input">
  137. </div>
  138. </div>
  139. <div class="layui-form-item">
  140. <label class="layui-form-label">积分上限</label>
  141. <div class="layui-input-block">
  142. <input type="text" name="uscore" value="{$group->uscore}" maxlength="10" required lay-verify="required" class="layui-input">
  143. </div>
  144. </div>
  145. <div class="layui-form-item">
  146. <div class="layui-input-block">
  147. <button class="layui-btn" lay-submit>立即提交</button>
  148. <button type="reset" class="layui-btn layui-btn-primary">重置</button>
  149. {fun=get_btn_back()}
  150. </div>
  151. </div>
  152. </form>
  153. </div>
  154. </div>
  155. </div>
  156. {/if}
  157. </div>
  158. {include file='common/foot.html'}