心理咨询网
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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. <th>操作</th>
  22. </tr>
  23. </thead>
  24. <tbody>
  25. {foreach $areas(key,value)}
  26. <tr>
  27. <td>[num]</td>
  28. <td class='left'>
  29. [value->blank]
  30. {if($value->son)}
  31. <i class="fa fa-folder-open-o" aria-hidden="true"></i>
  32. {else}
  33. <i class="fa fa-folder-o" aria-hidden="true"></i>
  34. {/if}
  35. [value->name]
  36. </td>
  37. <td>[value->acode]</td>
  38. <td>[value->domain]</td>
  39. <td>{if($value->is_default)}是{else}否{/if}</td>
  40. <td>[value->create_user]</td>
  41. <td>[value->update_time]</td>
  42. <td>
  43. {fun=get_btn_del($value->acode,'acode')}
  44. {fun=get_btn_mod($value->acode,'acode')}
  45. </td>
  46. </tr>
  47. {/foreach}
  48. </tbody>
  49. </table>
  50. <div class="page">{$pagebar}</div>
  51. </div>
  52. <div class="layui-tab-item">
  53. <form action="{url./admin/Area/add}" method="post" class="layui-form">
  54. <input type="hidden" name="formcheck" value="{$formcheck}" >
  55. <div class="layui-form-item">
  56. <label class="layui-form-label">区域名称</label>
  57. <div class="layui-input-block">
  58. <input type="text" name="name" required lay-verify="required" placeholder="请输入区域名称,如:中文" class="layui-input">
  59. </div>
  60. </div>
  61. <div class="layui-form-item">
  62. <label class="layui-form-label">区域编码</label>
  63. <div class="layui-input-block">
  64. <input type="text" name="acode" required lay-verify="required" placeholder="请输入区域编码,如:cn" class="layui-input">
  65. </div>
  66. </div>
  67. <div class="layui-form-item">
  68. <label class="layui-form-label">绑定域名</label>
  69. <div class="layui-input-block">
  70. <input type="text" name="domain" placeholder="请不要填写重复的域名,不区分就不填!" class="layui-input">
  71. </div>
  72. </div>
  73. <div class="layui-form-item">
  74. <label class="layui-form-label">是否默认</label>
  75. <div class="layui-input-block">
  76. <input type="radio" name="is_default" value="1" title="是">
  77. <input type="radio" name="is_default" value="0" title="否" checked>
  78. </div>
  79. </div>
  80. <div class="layui-form-item">
  81. <div class="layui-input-block">
  82. <button class="layui-btn" lay-submit>立即提交</button>
  83. <button type="reset" class="layui-btn layui-btn-primary">重置</button>
  84. </div>
  85. </div>
  86. </form>
  87. </div>
  88. </div>
  89. </div>
  90. {/if}
  91. {if([$mod])}
  92. <div class="layui-tab layui-tab-brief" lay-filter="tab">
  93. <ul class="layui-tab-title">
  94. <li class="layui-this">区域修改</li>
  95. </ul>
  96. <div class="layui-tab-content">
  97. <div class="layui-tab-item layui-show">
  98. <form action="{url./admin/Area/mod/acode/'.[$get.acode].'}{$backurl}" method="post" class="layui-form">
  99. <input type="hidden" name="formcheck" value="{$formcheck}" >
  100. <div class="layui-form-item">
  101. <label class="layui-form-label">区域名称</label>
  102. <div class="layui-input-block">
  103. <input type="text" name="name" required lay-verify="required" value="{$area->name}" placeholder="请输入区域名称,如:中文" class="layui-input">
  104. </div>
  105. </div>
  106. <div class="layui-form-item">
  107. <label class="layui-form-label">区域编码</label>
  108. <div class="layui-input-block">
  109. <input type="text" name="acode" required lay-verify="required" readonly value="{$area->acode}" placeholder="请输入区域编码,如:cn" class="layui-input readonly">
  110. </div>
  111. </div>
  112. <div class="layui-form-item">
  113. <label class="layui-form-label">绑定域名</label>
  114. <div class="layui-input-block">
  115. <input type="text" name="domain" value="{$area->domain}" placeholder="请不要填写重复的域名,不区分就不填!" class="layui-input">
  116. </div>
  117. </div>
  118. <div class="layui-form-item">
  119. <label class="layui-form-label">是否默认</label>
  120. <div class="layui-input-block">
  121. <input type="radio" name="is_default" value="1" title="是" {if([$area->is_default]==1)}checked="checked"{/if}>
  122. <input type="radio" name="is_default" value="0" title="否" {if([$area->is_default]==0)}checked="checked"{/if}>
  123. </div>
  124. </div>
  125. <div class="layui-form-item">
  126. <div class="layui-input-block">
  127. <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
  128. <button type="reset" class="layui-btn layui-btn-primary">重置</button>
  129. {fun=get_btn_back()}
  130. </div>
  131. </div>
  132. </form>
  133. </div>
  134. </div>
  135. </div>
  136. {/if}
  137. </div>
  138. {include file='common/foot.html'}