Geen omschrijving
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.

attr_index.htm 10KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. {include file="public/layout" /}
  2. <body class="bodystyle" style="cursor: default; -moz-user-select: inherit;">
  3. <div id="append_parent"></div>
  4. <div id="ajaxwaitid"></div>
  5. {include file="member/left" /}
  6. <div class="page min-hg-c-10" style="min-width:auto;margin-left:100px;">
  7. <!-- <div class="fixed-bar">
  8. <div class="item-title">
  9. <ul class="tab-base nc-row">
  10. {eq name="'Member@attr_index'|is_check_access" value="1"}
  11. <li>
  12. <a {if condition="in_array($Request.action, ['attr_index','attr_add','attr_edit'])"}class="current"{/if} href='{:url("Member/attr_index")}'>
  13. <span>会员属性</span>
  14. </a>
  15. </li>
  16. {/eq}
  17. </ul>
  18. </div>
  19. </div> -->
  20. <div class="flexigrid">
  21. <!-- 操作说明 -->
  22. <div id="explanation" class="explanation">
  23. <div id="checkZoom" class="title"><i class="fa fa-lightbulb-o"></i>
  24. <h4 title="提示相关设置操作时应注意的要点">提示</h4>
  25. <span title="收起提示" id="explanationZoom" style="display: block;"></span>
  26. </div>
  27. <ul>
  28. <li>会员字段有效扩展注册流程时收集更多会员信息,按需求新建字段。</li>
  29. </ul>
  30. </div>
  31. <div class="mDiv">
  32. <div class="ftitle">
  33. {eq name="'Member@attr_add'|is_check_access" value="1"}
  34. <div class="fbutton">
  35. <a href="javascript:void(0);" data-href="{:url('Member/attr_add')}" onclick="openFullframe(this, '新增字段', '900px', '600px');">
  36. <div class="add" title="新增字段">
  37. <span><i class="layui-icon layui-icon-addition"></i>新增字段</span>
  38. </div>
  39. </a>
  40. </div>
  41. {/eq}
  42. </div>
  43. </div>
  44. <div class="hDiv">
  45. <div class="hDivBox">
  46. <table cellspacing="0" cellpadding="0" style="width: 100%">
  47. <thead>
  48. <tr>
  49. <th abbr="article_title" axis="col3" class="w40">
  50. <div class="tc">ID</div>
  51. </th>
  52. <th abbr="ac_id" axis="col4">
  53. <div class="text-l10">字段标题</div>
  54. </th>
  55. <th abbr="article_time" axis="col4" class="w150">
  56. <div class="tc">字段类型</div>
  57. </th>
  58. <th abbr="ac_id" axis="col4" class="w80">
  59. <div class="tc">字段必填</div>
  60. </th>
  61. <th abbr="ac_id" axis="col4" class="w80">
  62. <div class="tc">字段状态</div>
  63. </th>
  64. <th axis="col1" class="w120">
  65. <div class="tc">操作</div>
  66. </th>
  67. <th abbr="article_time" axis="col6" class="w60">
  68. <div class="tc">排序</div>
  69. </th>
  70. </tr>
  71. </thead>
  72. </table>
  73. </div>
  74. </div>
  75. <div class="bDiv" style="height: auto;">
  76. <div id="flexigrid" cellpadding="0" cellspacing="0" border="0">
  77. <table style="width: 100%">
  78. <tbody>
  79. {empty name="info"}
  80. <tr>
  81. <div class="no_row">
  82. <div class="no_pic"><img src="__SKIN__/images/null-data.png"></div>
  83. </div>
  84. </tr>
  85. {else/}
  86. {foreach name="info" item="vo" key="k" }
  87. <tr>
  88. <td class="sort">
  89. <div class="w40 tc">{$vo.para_id}</div>
  90. </td>
  91. <td style="width: 100%">
  92. <div class="text-l10">
  93. {eq name="'Member@attr_edit'|is_check_access" value="1"}
  94. <a href="javascript:void(0);" data-href="{:url('Member/attr_edit',array('id'=>$vo['para_id']))}" onclick="openFullframe(this, '编辑字段', '900px', '560px');">{$vo.title}</a>
  95. {else /}
  96. {$vo.title}
  97. {/eq}
  98. </div>
  99. </td>
  100. <td>
  101. <div class="w150 tc">
  102. {$vo.dtypetitle}
  103. </div>
  104. </td>
  105. <td>
  106. <div class="w80 tc">
  107. {if condition='$vo.is_required == 1'}
  108. <span class="yes" {eq name="$Think.const.CONTROLLER_NAME.'@edit'|is_check_access" value="1"}onClick="changeTableVal('users_parameter','para_id','{$vo.para_id}','is_required',this);"{/eq}><i class="fa fa-check-circle"></i>是</span>
  109. {else /}
  110. <span class="no" {eq name="$Think.const.CONTROLLER_NAME.'@edit'|is_check_access" value="1"}onClick="changeTableVal('users_parameter','para_id','{$vo.para_id}','is_required',this);"{/eq}><i class="fa fa-ban"></i>否</span>
  111. {/if}
  112. </div>
  113. </td>
  114. <td>
  115. <div class="w80 tc">
  116. {if condition='$vo.is_hidden == 0'}
  117. <span class="yes" {eq name="$Think.const.CONTROLLER_NAME.'@edit'|is_check_access" value="1"} onClick="changeTableVal('users_parameter','para_id','{$vo.para_id}','is_hidden',this);" {/eq} data-yestext='<i class="fa fa-check-circle"></i>启用' data-notext='<i class="fa fa-ban"></i>禁用' data-value='1'><i class="fa fa-check-circle"></i>启用</span>
  118. {else /}
  119. <span class="no" {eq name="$Think.const.CONTROLLER_NAME.'@edit'|is_check_access" value="1"} onClick="changeTableVal('users_parameter','para_id','{$vo.para_id}','is_hidden',this);" {/eq} data-yestext='<i class="fa fa-check-circle"></i>启用' data-notext='<i class="fa fa-ban"></i>禁用' data-value='0'><i class="fa fa-ban"></i>禁用</span>
  120. {/if}
  121. </div>
  122. </td>
  123. <td class="operation">
  124. <div class="w120 tc">
  125. {eq name="'Member@attr_edit'|is_check_access" value="1"}
  126. <a href="javascript:void(0);" data-href="{:url('Member/attr_edit',array('id'=>$vo['para_id']))}" class="btn blue" onclick="openFullframe(this, '编辑字段', '900px', '600px');">编辑</a>
  127. {/eq}
  128. {eq name="$vo.is_system" value="0"}
  129. {eq name="'Member@attr_del'|is_check_access" value="1"}
  130. <i></i>
  131. <a class="btn red" href="javascript:void(0);" data-url="{:url('Member/attr_del')}" data-title="{$vo.title}" data-id="{$vo.para_id}" onClick="usersdel(this);">删除</a>
  132. {/eq}
  133. {else /}
  134. {eq name="'Member@attr_del'|is_check_access" value="1"}
  135. <i></i>
  136. <a class="btn grey" href="javascript:void(0);">删除</a>
  137. {/eq}
  138. {/eq}
  139. </div>
  140. </td>
  141. <td class="sort">
  142. <div class="w60 tc">
  143. {eq name="'Member@edit'|is_check_access" value="1"}
  144. <input class="tc" type="text" onchange="changeTableVal('users_parameter','para_id','{$vo.para_id}','sort_order',this);" size="4" value="{$vo.sort_order}" />
  145. {else /}
  146. {$vo.sort_order}
  147. {/eq}
  148. </div>
  149. </td>
  150. </tr>
  151. {/foreach}
  152. {/empty}
  153. </tbody>
  154. </table>
  155. </div>
  156. <div class="iDiv" style="display: none;"></div>
  157. </div>
  158. </div>
  159. </div>
  160. <script>
  161. $(document).ready(function(){
  162. // 表格行点击选中切换
  163. $('#flexigrid > table>tbody >tr').click(function(){
  164. $(this).toggleClass('trSelected');
  165. });
  166. // 点击刷新数据
  167. $('.fa-refresh').click(function(){
  168. location.href = location.href;
  169. });
  170. });
  171. // 删除
  172. function usersdel(obj){
  173. layer.confirm('确认彻底删除?该属性的数据将一起清空。', {
  174. shade: layer_shade,
  175. area: ['480px', '190px'],
  176. move: false,
  177. title: '提示',
  178. btnAlign:'r',
  179. closeBtn: 3,
  180. btn: ['确定','取消'] ,//按钮
  181. success: function () {
  182. $(".layui-layer-content").css('text-align', 'left');
  183. }
  184. }, function(){
  185. layer_loading('正在处理');
  186. // 确定
  187. $.ajax({
  188. type : 'post',
  189. url : $(obj).attr('data-url'),
  190. data : {del_id:$(obj).attr('data-id'),_ajax:1},
  191. dataType : 'json',
  192. success : function(data){
  193. layer.closeAll();
  194. if(data.code == 1){
  195. layer.msg(data.msg, {icon: 1});
  196. window.location.reload();
  197. }else{
  198. layer.alert(data.msg, {icon: 2, title:false});
  199. }
  200. }
  201. })
  202. }, function(index){
  203. layer.close(index);
  204. });
  205. return false;
  206. }
  207. </script>
  208. {include file="public/footer" /}