|
|
{include file="../../../application/admin/view/public/head" /} |
|
|
<div class="page-container p10"> |
|
|
<form class="layui-form layui-form-pane" method="post" action=""> |
|
|
<input id="group_id" name="group_id" type="hidden" value="{$info.group_id}"> |
|
|
<div class="layui-form-item"> |
|
|
<label class="layui-form-label">{:lang('name')}:</label> |
|
|
<div class="layui-input-block "> |
|
|
<input type="text" class="layui-input" value="{$info.group_name}" placeholder="" lay-verify="group_name" name="group_name"> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
{if condition="$info.group_id gt 2"} |
|
|
<div class="layui-form-item"> |
|
|
<label class="layui-form-label">{:lang('admin/group/pack_day')}{:lang('points')}:</label> |
|
|
<div class="layui-input-inline"> |
|
|
<input type="text" class="layui-input" value="{$info.group_points_day}" placeholder="" lay-verify="group_points_day" name="group_points_day"> |
|
|
</div> |
|
|
<label class="layui-form-label">{:lang('admin/group/pack_week')}{:lang('points')}:</label> |
|
|
<div class="layui-input-inline"> |
|
|
<input type="text" class="layui-input" value="{$info.group_points_week}" placeholder="" lay-verify="group_points_week" name="group_points_week"> |
|
|
</div> |
|
|
</div> |
|
|
<div class="layui-form-item"> |
|
|
<label class="layui-form-label">{:lang('admin/group/pack_month')}{:lang('points')}:</label> |
|
|
<div class="layui-input-inline"> |
|
|
<input type="text" class="layui-input" value="{$info.group_points_month}" placeholder="" lay-verify="group_points_month" name="group_points_month"> |
|
|
</div> |
|
|
<label class="layui-form-label">{:lang('admin/group/pack_year')}{:lang('points')}:</label> |
|
|
<div class="layui-input-inline"> |
|
|
<input type="text" class="layui-input" value="{$info.group_points_year}" placeholder="" lay-verify="group_points_year" name="group_points_year"> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div class="layui-form-item"> |
|
|
<label class="layui-form-label">{:lang('status')}:</label> |
|
|
<div class="layui-input-block"> |
|
|
<input name="group_status" type="radio" value="0" title="{:lang('disable')}" {if condition="$info['group_status'] neq 1"}checked {/if}> |
|
|
<input name="group_status" type="radio" value="1" title="{:lang('enable')}" {if condition="$info['group_status'] eq 1"}checked {/if}> |
|
|
</div> |
|
|
</div> |
|
|
{/if} |
|
|
|
|
|
<div class="layui-form-item "> |
|
|
<label class="layui-form-label">{:lang('admin/group/popedom')}:</label> |
|
|
<div class="layui-input-block"> |
|
|
<blockquote class="layui-elem-quote layui-quote-nm"> |
|
|
{:lang('admin/group/popedom_tip')} |
|
|
</blockquote> |
|
|
|
|
|
<div class="role-list-form "> |
|
|
{volist name="type_tree" id="vo" key="k1"} |
|
|
<dl class="role-list-form-top permission-list"> |
|
|
<dt> |
|
|
{:lang('type')}:<input type="checkbox" value="{$vo.type_id}" name="group_type[]" data-id="{$k1}" lay-skin="primary" lay-filter="roleAuth1" title="{$vo.type_name}" {if condition="strpos(','.$info['group_type'],','.$vo['type_id'].',')>0"}checked {/if}> |
|
|
{:lang('popedom')}:<input type="checkbox" name="group_popedom[{$vo.type_id}][1]" value="1" lay-skin="primary" title="{:lang('admin/group/popedom_list')}" {if condition="!empty($info['group_popedom'][$vo.type_id][1])"}checked {/if}> |
|
|
<input type="checkbox" name="group_popedom[{$vo.type_id}][2]" value="2" lay-skin="primary" title="{:lang('admin/group/popedom_detail')}" {if condition="!empty($info['group_popedom'][$vo.type_id][2])"}checked {/if}> |
|
|
{if condition="$vo.type_mid eq 1"} |
|
|
<input type="checkbox" name="group_popedom[{$vo.type_id}][3]" value="3" lay-skin="primary" title="{:lang('admin/group/popedom_play')}" {if condition="!empty($info['group_popedom'][$vo.type_id][3])"}checked {/if}> |
|
|
<input type="checkbox" name="group_popedom[{$vo.type_id}][4]" value="4" lay-skin="primary" title="{:lang('admin/group/popedom_down')}" {if condition="!empty($info['group_popedom'][$vo.type_id][4])"}checked {/if}> |
|
|
<input type="checkbox" name="group_popedom[{$vo.type_id}][5]" value="5" lay-skin="primary" title="{:lang('admin/group/popedom_trysee')}" {if condition="!empty($info['group_popedom'][$vo.type_id][5])"}checked {/if}> |
|
|
{/if} |
|
|
</dt> |
|
|
</dl> |
|
|
{volist name="$vo.child" id="sub" key="k2"} |
|
|
<dl class="role-list-form-top permission-list"> |
|
|
<dt> |
|
|
{:lang('type')}:<input type="checkbox" value="{$sub.type_id}" name="group_type[]" data-id="{$k1}" lay-skin="primary" lay-filter="roleAuth1" title="---{$sub.type_name}" {if condition="strpos(','.$info['group_type'],','.$sub ['type_id'].',')>0"}checked {/if}> |
|
|
{:lang('popedom')}:<input type="checkbox" name="group_popedom[{$sub.type_id}][1]" value="1" lay-skin="primary" title="{:lang('admin/group/popedom_list')}" {if condition="!empty($info['group_popedom'][$sub.type_id][1])"}checked {/if}> |
|
|
<input type="checkbox" name="group_popedom[{$sub.type_id}][2]" value="2" lay-skin="primary" title="{:lang('admin/group/popedom_detail')}" {if condition="!empty($info['group_popedom'][$sub.type_id][2])"}checked {/if}> |
|
|
{if condition="$sub.type_mid eq 1"} |
|
|
<input type="checkbox" name="group_popedom[{$sub.type_id}][3]" value="3" lay-skin="primary" title="{:lang('admin/group/popedom_play')}" {if condition="!empty($info['group_popedom'][$sub.type_id][3])"}checked {/if}> |
|
|
<input type="checkbox" name="group_popedom[{$sub.type_id}][4]" value="4" lay-skin="primary" title="{:lang('admin/group/popedom_down')}" {if condition="!empty($info['group_popedom'][$sub.type_id][4])"}checked {/if}> |
|
|
<input type="checkbox" name="group_popedom[{$sub.type_id}][5]" value="5" lay-skin="primary" title="{:lang('admin/group/popedom_trysee')}" {if condition="!empty($info['group_popedom'][$sub.type_id][5])"}checked {/if}> |
|
|
{/if} |
|
|
</dt> |
|
|
</dl> |
|
|
{/volist} |
|
|
{/volist} |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div class="layui-form-item center"> |
|
|
<div class="layui-input-block"> |
|
|
<button type="button" class="layui-btn layui-btn-normal formCheckAll" lay-filter="formCheckAll" >{:lang('check_all')}</button> |
|
|
<button type="button" class="layui-btn layui-btn-normal formCheckOther" lay-filter="formCheckOther">{:lang('check_other')}</button> |
|
|
<button type="submit" class="layui-btn" lay-submit="" lay-filter="formSubmit" data-child="true">{:lang('btn_save')}</button> |
|
|
<button class="layui-btn layui-btn-warm" type="reset">{:lang('btn_reset')}</button> |
|
|
</div> |
|
|
</div> |
|
|
</form> |
|
|
|
|
|
</div> |
|
|
{include file="../../../application/admin/view/public/foot" /} |
|
|
|
|
|
<script type="text/javascript"> |
|
|
layui.use(['form', 'layer'], function () { |
|
|
|
|
|
var form = layui.form |
|
|
, layer = layui.layer |
|
|
, $ = layui.jquery; |
|
|
|
|
|
|
|
|
form.verify({ |
|
|
group_name: function (value) { |
|
|
if (value == "") { |
|
|
return "{:lang('name_empty')}"; |
|
|
} |
|
|
} |
|
|
}); |
|
|
|
|
|
$('.formCheckAll').click(function(){ |
|
|
var child = $('.role-list-form').find('input'); |
|
|
|
|
|
child.each(function(index, item) { |
|
|
item.checked = true; |
|
|
}); |
|
|
form.render('checkbox'); |
|
|
}); |
|
|
$('.formCheckOther').click(function(){ |
|
|
var child = $('.role-list-form').find('input'); |
|
|
|
|
|
child.each(function(index, item) { |
|
|
item.checked = (item.checked ? false : true); |
|
|
}); |
|
|
form.render('checkbox'); |
|
|
}); |
|
|
}); |
|
|
|
|
|
</script> |
|
|
|
|
|
</body> |
|
|
</html> |