123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213 |
- {include file="public/layout" /}
- <body class="bodystyle" style="cursor: default; -moz-user-select: inherit;">
- <div id="append_parent"></div>
- <div id="ajaxwaitid"></div>
- {include file="member/left" /}
- <div class="page min-hg-c-10" style="min-width:auto;margin-left:100px;">
- <!-- <div class="fixed-bar">
- <div class="item-title">
- <ul class="tab-base nc-row">
- {eq name="'Member@attr_index'|is_check_access" value="1"}
- <li>
- <a {if condition="in_array($Request.action, ['attr_index','attr_add','attr_edit'])"}class="current"{/if} href='{:url("Member/attr_index")}'>
- <span>会员属性</span>
- </a>
- </li>
- {/eq}
- </ul>
- </div>
- </div> -->
- <div class="flexigrid">
- <!-- 操作说明 -->
- <div id="explanation" class="explanation">
- <div id="checkZoom" class="title"><i class="fa fa-lightbulb-o"></i>
- <h4 title="提示相关设置操作时应注意的要点">提示</h4>
- <span title="收起提示" id="explanationZoom" style="display: block;"></span>
- </div>
- <ul>
- <li>会员字段有效扩展注册流程时收集更多会员信息,按需求新建字段。</li>
- </ul>
- </div>
- <div class="mDiv">
- <div class="ftitle">
- {eq name="'Member@attr_add'|is_check_access" value="1"}
- <div class="fbutton">
- <a href="javascript:void(0);" data-href="{:url('Member/attr_add')}" onclick="openFullframe(this, '新增字段', '900px', '600px');">
- <div class="add" title="新增字段">
- <span><i class="layui-icon layui-icon-addition"></i>新增字段</span>
- </div>
- </a>
- </div>
- {/eq}
- </div>
- </div>
- <div class="hDiv">
- <div class="hDivBox">
- <table cellspacing="0" cellpadding="0" style="width: 100%">
- <thead>
- <tr>
-
- <th abbr="article_title" axis="col3" class="w40">
- <div class="tc">ID</div>
- </th>
- <th abbr="ac_id" axis="col4">
- <div class="text-l10">字段标题</div>
- </th>
- <th abbr="article_time" axis="col4" class="w150">
- <div class="tc">字段类型</div>
- </th>
- <th abbr="ac_id" axis="col4" class="w80">
- <div class="tc">字段必填</div>
- </th>
- <th abbr="ac_id" axis="col4" class="w80">
- <div class="tc">字段状态</div>
- </th>
- <th axis="col1" class="w120">
- <div class="tc">操作</div>
- </th>
- <th abbr="article_time" axis="col6" class="w60">
- <div class="tc">排序</div>
- </th>
- </tr>
- </thead>
- </table>
- </div>
- </div>
- <div class="bDiv" style="height: auto;">
- <div id="flexigrid" cellpadding="0" cellspacing="0" border="0">
- <table style="width: 100%">
- <tbody>
- {empty name="info"}
- <tr>
- <div class="no_row">
- <div class="no_pic"><img src="__SKIN__/images/null-data.png"></div>
- </div>
- </tr>
- {else/}
- {foreach name="info" item="vo" key="k" }
- <tr>
-
- <td class="sort">
- <div class="w40 tc">{$vo.para_id}</div>
- </td>
- <td style="width: 100%">
- <div class="text-l10">
- {eq name="'Member@attr_edit'|is_check_access" value="1"}
- <a href="javascript:void(0);" data-href="{:url('Member/attr_edit',array('id'=>$vo['para_id']))}" onclick="openFullframe(this, '编辑字段', '900px', '560px');">{$vo.title}</a>
- {else /}
- {$vo.title}
- {/eq}
- </div>
- </td>
- <td>
- <div class="w150 tc">
- {$vo.dtypetitle}
- </div>
- </td>
- <td>
- <div class="w80 tc">
- {if condition='$vo.is_required == 1'}
- <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>
- {else /}
- <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>
- {/if}
- </div>
- </td>
- <td>
- <div class="w80 tc">
- {if condition='$vo.is_hidden == 0'}
- <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>
- {else /}
- <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>
- {/if}
- </div>
- </td>
- <td class="operation">
- <div class="w120 tc">
- {eq name="'Member@attr_edit'|is_check_access" value="1"}
- <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>
- {/eq}
- {eq name="$vo.is_system" value="0"}
- {eq name="'Member@attr_del'|is_check_access" value="1"}
- <i></i>
- <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>
- {/eq}
- {else /}
- {eq name="'Member@attr_del'|is_check_access" value="1"}
- <i></i>
- <a class="btn grey" href="javascript:void(0);">删除</a>
- {/eq}
- {/eq}
- </div>
- </td>
- <td class="sort">
- <div class="w60 tc">
- {eq name="'Member@edit'|is_check_access" value="1"}
- <input class="tc" type="text" onchange="changeTableVal('users_parameter','para_id','{$vo.para_id}','sort_order',this);" size="4" value="{$vo.sort_order}" />
- {else /}
- {$vo.sort_order}
- {/eq}
- </div>
- </td>
- </tr>
- {/foreach}
- {/empty}
- </tbody>
- </table>
- </div>
- <div class="iDiv" style="display: none;"></div>
- </div>
- </div>
- </div>
- <script>
- $(document).ready(function(){
- // 表格行点击选中切换
- $('#flexigrid > table>tbody >tr').click(function(){
- $(this).toggleClass('trSelected');
- });
-
- // 点击刷新数据
- $('.fa-refresh').click(function(){
- location.href = location.href;
- });
- });
-
- // 删除
- function usersdel(obj){
- layer.confirm('确认彻底删除?该属性的数据将一起清空。', {
- shade: layer_shade,
- area: ['480px', '190px'],
- move: false,
- title: '提示',
- btnAlign:'r',
- closeBtn: 3,
- btn: ['确定','取消'] ,//按钮
- success: function () {
- $(".layui-layer-content").css('text-align', 'left');
- }
- }, function(){
- layer_loading('正在处理');
- // 确定
- $.ajax({
- type : 'post',
- url : $(obj).attr('data-url'),
- data : {del_id:$(obj).attr('data-id'),_ajax:1},
- dataType : 'json',
- success : function(data){
- layer.closeAll();
- if(data.code == 1){
- layer.msg(data.msg, {icon: 1});
- window.location.reload();
- }else{
- layer.alert(data.msg, {icon: 2, title:false});
- }
- }
- })
- }, function(index){
- layer.close(index);
- });
- return false;
- }
- </script>
-
- {include file="public/footer" /}
|