{template 'common/header'} {template 'account/account-header'}

无主管理员时，创始人为默认主管理员，小程序拥有所有权限

会员权限组： {{owner.group.name}} {if $_W['role'] == ACCOUNT_MANAGE_NAME_FOUNDER && !in_array($owner['uid'], $founders) || $_W['role'] == ACCOUNT_MANAGE_NAME_VICE_FOUNDER && $owner['uid'] != $_W['uid']} | 修改 {else} | {/if}
--- | --- | ---
{{module_tpl.name}} | 收起 展开
小程序应用 {{ module.title }} 所有模块 |
小程序应用 |
模板 |

应用权限组 {if $_W['role'] == ACCOUNT_MANAGE_NAME_FOUNDER && !in_array($owner['uid'], $founders) || $_W['role'] == ACCOUNT_MANAGE_NAME_VICE_FOUNDER && $owner['uid'] != $_W['uid']} | 修改 {/if}
--- | ---
{{module_tpl.name}} | 收起 展开
小程序应用 {{ module.title }} 所有模块 |
小程序应用 |
模板 |

附加权限 {if $_W['role'] == ACCOUNT_MANAGE_NAME_FOUNDER && !in_array($owner['uid'], $founders) || $_W['role'] == ACCOUNT_MANAGE_NAME_VICE_FOUNDER && $owner['uid'] != $_W['uid']} | 修改 {/if}
--- | ---
{if !in_array($owner['uid'], $founders)}
小程序应用 {{ module.title }} 所有模块 ---
{/if}

{if !empty($account_buy_modules)}

商城购买模块 | 到期时间 | 操作
--- | --- | ---
小程序应用
{loop $account_buy_modules $module} {if $module['goods_id']}
| {$module['title']} | {php $expire_week = strtotime('-1 week', $module['expire_time']);} {if $module['expire_time'] > TIMESTAMP && $expire_week < TIMESTAMP} 即将到期 {/if} | {if $module['expire_time'] < TIMESTAMP} 已到期 {else} {php echo date('Y-m-d', $module['expire_time'])} {/if} {if permission_check_account_user('see_account_post_modules_tpl_edit_store_endtime')} 修改 {/if} | {if permission_check_account_user('see_modules_recharge')} 续费 {/if} {if permission_check_account_user('see_modules_deactivate')} 删除 {/if}
{/if} {/loop}

{/if}
设置到期时间
{php echo tpl_form_field_date('endtime', '');}
{if $_W['role'] == ACCOUNT_MANAGE_NAME_FOUNDER && !in_array($owner['uid'], $founders) || $_W['role'] == ACCOUNT_MANAGE_NAME_VICE_FOUNDER && $owner['uid'] != $_W['uid']}

#### 选择

{loop $modules $module_name $module} {if empty($module['issystem']) && $module['wxapp_support'] == 2}
{$module['title']}
{/if} {/loop}
{loop $templates $temp}
{$temp['title']}
{/loop}
全选

应用权限组（各权限组均包含系统模块和微站默认模板） | 操作
--- | ---
{if permission_check_account_user('see_account_manage_module_tpl_all_permission')}
所有服务 | 展开
应用权限 系统所有模块 模板权限 系统所有模板
{/if} {loop $uni_groups $package} {if !(is_array($owner['group']['package']) && in_array($package['id'], $owner['group']['package']))}
{$package['name']} | 展开
应用权限 系统模块 {loop $package['modules'] $module} {$module['title']} {/loop} 模板权限 微站默认模板 {loop $package['templates'] $template} {$template['title']} {/loop}
{/if} {/loop}

{/if}
{template 'common/footer'}