123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521 |
- <?php defined('IN_IA') or exit('Access Denied');?><?php (!empty($this) && $this instanceof WeModuleSite || 0) ? (include $this->template('common/header', TEMPLATE_INCLUDEPATH)) : (include template('common/header', TEMPLATE_INCLUDEPATH));?>
- <?php (!empty($this) && $this instanceof WeModuleSite || 0) ? (include $this->template('account/account-header', TEMPLATE_INCLUDEPATH)) : (include template('account/account-header', TEMPLATE_INCLUDEPATH));?>
- <div id="js-account-manage-modules-tpl" ng-controller="AccountMangeModulesTpl" ng-cloak>
- <div class="alert alert-info">
- <p><i class="fa fa-exclamation-circle"></i> 无主管理员时,创始人为默认主管理员,<?php echo $account->typeName?>拥有所有权限</p>
- </div>
-
- <?php if(!in_array($owner['uid'], $founders)) { ?>
- <table class="table we7-table table-hover" >
- <col />
- <col />
- <col />
- <col />
- <col />
- <col width="120px"/>
- <tr>
- <th colspan="5" class="text-left">
- <span class="we7-padding-right">会员权限组: {{owner.group.name}}</span>
- <span></span>
- </th>
-
- <?php if($_W['role'] == ACCOUNT_MANAGE_NAME_FOUNDER && !in_array($owner['uid'], $founders) || $_W['role'] == ACCOUNT_MANAGE_NAME_VICE_FOUNDER && $owner['uid'] != $_W['uid']) { ?>
- <th class="text-right"><a href="<?php if($owner['founder_groupid'] == ACCOUNT_MANAGE_GROUP_VICE_FOUNDER) { ?><?php echo url('founder/edit/edit_modules_tpl', array('uid' => $owner['uid']))?><?php } else { ?><?php echo url('user/edit/edit_modules_tpl',array('uid'=>$owner['uid']))?><?php } ?>" class="color-default">修改</a></th>
- <?php } else { ?>
- <th class="text-right"><a href="" class="color-default"></a></th>
- <?php } ?>
-
-
-
- </tr>
- <tbody ng-repeat="module_tpl in modules_tpl | filter:{'type':'default'}">
- <tr>
- <td colspan="5" class="text-left we7-padding-right" ng-init="module_tpl.show = true">
- <span>{{module_tpl.name}}</span>
- </td>
- <td>
- <div class="link-group">
- <a href="javascript:;" class="color-default" ng-show="module_tpl.show" ng-click="module_tpl.show = false">收起</a>
- <a href="javascript:;" class="color-default" ng-show="!module_tpl.show" ng-click="module_tpl.show = true">展开</a>
- <!--<a href="javascript:;" class="color-default">删除</a>-->
- </div>
- </td><!--默认展开-->
- </tr>
- <tr ng-show="module_tpl.show">
- <td colspan="5">
- <div class="col-sm-1 color-gray text-left we7-padding-none"><?php echo $account->typeName?>应用</div>
- <div class="col-sm-11">
- <div class="col-sm-3 text-left we7-margin-bottom"
- <?php if($account->typeSign == ACCOUNT_TYPE_SIGN) { ?> ng-repeat="module in module_tpl.modules"
- <?php } else if($account->typeSign == WXAPP_TYPE_SIGN) { ?> ng-repeat="module in module_tpl.wxapp"
- <?php } else if($account->typeSign == WEBAPP_TYPE_SIGN) { ?> ng-repeat="module in module_tpl.webapp"
- <?php } else if($account->typeSign == PHONEAPP_TYPE_SIGN) { ?> ng-repeat="module in module_tpl.phoneapp"
- <?php } else if($account->typeSign == XZAPP_TYPE_SIGN) { ?> ng-repeat="module in module_tpl.xzapp"
- <?php } else if($account->typeSign == ALIAPP_TYPE_SIGN) { ?> ng-repeat="module in module_tpl.aliapp"
- <?php } ?> >
- <div ng-if="module.name != 'all'" class="text-over text-left">
- <img ng-src="{{ module.logo }}" alt="" style="width:50px;height:50px;">
- {{ module.title }}
- </div>
- <label class="label label-info" ng-if="module.name == 'all'">所有模块</label>
- </div>
- </div>
- </td>
- <td class="we7-padding-right color-default"></td>
- </tr>
- <?php if($account->typeSign == ACCOUNT_TYPE_SIGN) { ?>
- <tr ng-show="module_tpl.show">
- <td colspan="5">
- <div class="col-sm-1 color-gray text-left we7-padding-none">模板</div>
- <div class="col-sm-11">
- <div class="col-sm-3 text-left we7-margin-bottom" ng-repeat="tpl in module_tpl.templates">
- <a href="javascript:;" class="label label-info" ng-bind="tpl.title"></a>
- </div>
- </div>
- </td>
- <td class="we7-padding-right color-default"></td>
- </tr>
- <?php } ?>
- </tbody>
- </table>
- <table class="table we7-table table-hover">
- <tr>
- <th colspan="5" class="text-left">
- <span class="we7-padding-right">应用权限组</span>
- <span></span>
- </th>
-
- <?php if($_W['role'] == ACCOUNT_MANAGE_NAME_FOUNDER && !in_array($owner['uid'], $founders) || $_W['role'] == ACCOUNT_MANAGE_NAME_VICE_FOUNDER && $owner['uid'] != $_W['uid']) { ?>
- <th class="text-right"><a class="color-default" data-toggle="modal" data-target="#change-group">修改</a></th>
- <?php } ?>
-
-
- </tr>
- <tbody ng-repeat="module_tpl in modules_tpl | filter:{'type':'extend'}">
- <tr>
- <td colspan="5" class="text-left we7-padding-right" ng-init="module_tpl.show = true">
- <span>{{module_tpl.name}}</span>
- </td>
- <td>
- <div class="link-group">
- <a href="javascript:;" class="color-default" ng-show="module_tpl.show" ng-click="module_tpl.show = false">收起</a>
- <a href="javascript:;" class="color-default" ng-show="!module_tpl.show" ng-click="module_tpl.show = true">展开</a>
- </div>
- </td><!--默认展开-->
- </tr>
- <tr ng-show="module_tpl.show">
- <td colspan="5">
- <div class="col-sm-1 color-gray text-left we7-padding-none"><?php echo $account->typeName?>应用</div>
- <div class="col-sm-11">
- <div class="col-sm-3 text-left we7-margin-bottom" ng-repeat="module in module_tpl.modules">
- <div ng-if="module.name != 'all'" class="text-over text-left">
- <img ng-src="{{ module.logo }}" alt="" style="width:50px;height:50px;">
- {{ module.title }}
- </div>
- <label class="label label-info" ng-if="module.name == 'all'">所有模块</label>
- </div>
- </div>
- </td>
- <td class="we7-padding-right color-default"></td>
- </tr>
- <?php if($account->typeSign == ACCOUNT_TYPE_SIGN) { ?>
- <tr ng-show="module_tpl.show">
- <td colspan="5">
- <div class="col-sm-1 color-gray text-left we7-padding-none">模板</div>
- <div class="col-sm-11">
- <div class="col-sm-3 text-left we7-margin-bottom" ng-repeat="tpl in module_tpl.templates">
- <a href="javascript:;" class="label label-info" ng-bind="tpl.title"></a>
- </div>
- </div>
- </td>
- <td class="we7-padding-right color-default"></td>
- </tr>
- <?php } ?>
- </tbody>
- </table>
- <table class="table we7-table table-hover account-package-extra">
- <tr>
- <th colspan="5" class="text-left">
- <span class="we7-padding-right">附加权限</span>
- <span></span>
- </th>
-
- <?php if($_W['role'] == ACCOUNT_MANAGE_NAME_FOUNDER && !in_array($owner['uid'], $founders) || $_W['role'] == ACCOUNT_MANAGE_NAME_VICE_FOUNDER && $owner['uid'] != $_W['uid']) { ?>
- <th class="text-right"><a class="color-default" data-toggle="modal" data-target="#jurisdiction-add">修改</a></th>
- <?php } ?>
-
-
- </tr>
- <?php if(!in_array($owner['uid'], $founders)) { ?>
- <tr>
- <td colspan="6">
- <div class="col-sm-1 color-gray text-left we7-padding-none"><?php echo $account->typeName?>应用</div>
- <div class="col-sm-11 js-extra-modules">
- <div class="col-sm-3 text-left we7-margin-bottom" ng-repeat="module in extend.modules" ng-if="extend.modules">
- <div ng-if="module.name != 'all'" class="text-over text-left">
- <img ng-src="{{ module.logo }}" alt="" style="width:50px;height:50px;">
- {{ module.title }}
- </div>
- <label class="label label-info" ng-if="module.name == 'all'">所有模块</label>
- </div>
- <div class="col-sm-3 text-left we7-margin-bottom" ng-if="!extend.modules">
- <a href="javascript:;">---</a>
- </div>
- </div>
- </td>
- </tr>
- <?php if($account->typeSign == ACCOUNT_TYPE_SIGN) { ?>
- <tr>
- <td colspan="6">
- <div class="col-sm-1 color-gray text-left we7-padding-none">模板</div>
- <div class="col-sm-11 js-extra-templates">
- <div class="col-sm-3 text-left we7-margin-bottom" ng-repeat="module in extend.templates" ng-if="extend.templates">
- <a href="javascript:;" class="label label-info" ng-bind="module.title"></a>
- </div>
- <div class="col-sm-3 text-left we7-margin-bottom" ng-if="!extend.templates">
- <a href="javascript:;">---</a>
- </div>
- </div>
- </td>
- </tr>
- <?php } ?>
- <?php } ?>
- </table>
- <?php } ?>
-
-
- <?php if(!empty($account_buy_modules)) { ?>
- <table class="table we7-table table-hover" >
- <tr>
- <th colspan="7" class="text-left">
- <span class="we7-padding-right">商城购买模块</span>
- <span></span>
- </th>
- <th class="text-left">
- <span class="we7-padding-right">到期时间</span>
- <span></span>
- </th>
- <th class="text-left">
- <span class="we7-padding-right">操作</span>
- <span></span>
- </th>
- </tr>
- <tbody>
- <tr>
- <td colspan="9">
- <?php echo $account->typeName?>应用
- </td>
- </tr>
- <?php if(is_array($account_buy_modules)) { foreach($account_buy_modules as $module) { ?>
- <?php if($module['goods_id']) { ?>
- <tr>
- <td>
- <img src="<?php echo $module['logo'];?>" class="img-responsive icon" alt="" style="width:50px;height:50px;">
- </td>
- <td>
- <?php echo $module['title'];?>
- </td>
- <td>
- <?php $expire_week = strtotime('-1 week', $module['expire_time']);?>
- <?php if($module['expire_time'] > TIMESTAMP && $expire_week < TIMESTAMP) { ?>
- <span class="text text-error">即将到期</span>
- <?php } ?>
- </td>
- <td colspan="5">
- <?php if($module['expire_time'] < TIMESTAMP) { ?>
- 已到期
- <?php } else { ?>
- <?php echo date('Y-m-d', $module['expire_time'])?>
- <?php } ?>
- <?php if(permission_check_account_user('see_account_post_modules_tpl_edit_store_endtime')) { ?>
- <a href="javascript:;" class="color-default" data-toggle="modal" ng-click="editEndTime('<?php echo date('Y-m-d', $module['expire_time'])?>', <?php echo $module['order_id'];?>)">修改</a>
- <?php } ?>
- </td>
- <td class="we7-padding-right color-default">
- <?php if(permission_check_account_user('see_modules_recharge')) { ?>
- <a href="<?php echo url('site/entry/goodsbuyer', array('direct' => 1, 'operate' => 'goods_info', 'm' => 'store', 'goods' => $module['goods_id']))?>">续费</a>
- <?php } ?>
- <?php if(permission_check_account_user('see_modules_deactivate')) { ?>
- <a href="<?php echo url('site/entry/deactivateOrder', array('direct' => 1, 'm' => 'store', 'order_id' => $module['order_id'], 'goods_id' => $module['goods_id'], 'uniacid' => $uniacid, 'type' => $_GPC['account_type']))?>">删除</a>
- <?php } ?>
- </td>
- </tr>
- <?php } ?>
- <?php } } ?>
- </tbody>
- </table>
- <?php } ?>
- <?php if(!empty($account_buy_package)) { ?>
- <table class="table we7-table table-hover" >
- <tr>
- <th colspan="2" class="text-left">
- <span class="we7-padding-right">商城购买权限组</span>
- <span></span>
- </th>
- <th colspan="4">
- 到期时间
- </th>
- </tr>
- <tbody ng-repeat="package in packagelist">
- <tr>
- <td colspan="3" class="text-left we7-padding-right" ng-init="module_tpl.show = true">
- <span>{{ package['name'] }}</span>
- <span class="text text-danger" ng-if="package.near_expire">即将到期</span>
- </td>
- <td>
- {{ package.expire_time }}
- <?php if(permission_check_account_user('see_account_post_modules_tpl_edit_store_endtime')) { ?><a href="javascript:;" class="color-default" data-toggle="modal" ng-click="editEndTime(package.expire_time, package.order_id)">修改</a><?php } ?>
- </td>
- <td>
- <a class="color-default" href="<?php echo url('site/entry/goodsbuyer', array('direct' => 1, 'operate' => 'goods_info', 'm' => 'store'))?>&goods={{ package.goods_id }}">续费</a>
- </td>
- <td>
- <div class="link-group">
- <a href="javascript:;" class="color-default" ng-show="module_tpl.show" ng-click="module_tpl.show = false">收起</a>
- <a href="javascript:;" class="color-default" ng-show="!module_tpl.show" ng-click="module_tpl.show = true">展开</a>
-
- </div>
- </td>
- </tr>
- <tr ng-show="module_tpl.show">
- <td colspan="5">
- <div class="col-sm-1 color-gray text-left we7-padding-none"><?php echo $account->typeName?>应用</div>
- <div class="col-sm-11">
- <div class="col-sm-3 text-left we7-margin-bottom"
- <?php if($account->typeSign == ACCOUNT_TYPE_SIGN) { ?> ng-repeat="module in package.modules"
- <?php } else if($account->typeSign == WXAPP_TYPE_SIGN) { ?> ng-repeat="module in package.wxapp"
- <?php } else if($account->typeSign == WEBAPP_TYPE_SIGN) { ?> ng-repeat="module in package.webapp"
- <?php } else if($account->typeSign == PHONEAPP_TYPE_SIGN) { ?> ng-repeat="module in package.phoneapp"
- <?php } else if($account->typeSign == XZAPP_TYPE_SIGN) { ?> ng-repeat="module in package.xzapp"
- <?php } else if($account->typeSign == ALIAPP_TYPE_SIGN) { ?> ng-repeat="module in package.aliapp"
- <?php } ?> >
- <div ng-if="module.name != 'all'" class="text-over text-left">
- <img ng-src="{{ module.logo }}" alt="" style="width:50px;height:50px;">
- {{ module.title }}
- </div>
- <label class="label label-info" ng-if="module.name == 'all'">所有模块</label>
- </div>
- </div>
- </td>
- <td class="we7-padding-right color-default"></td>
- </tr>
- <?php if($account->typeSign == ACCOUNT_TYPE_SIGN) { ?>
- <tr ng-show="module_tpl.show">
- <td colspan="5">
- <div class="col-sm-1 color-gray text-left we7-padding-none">模板</div>
- <div class="col-sm-11">
- <div class="col-sm-3 text-left we7-margin-bottom" ng-repeat="tpl in package.templates">
- <a href="javascript:;" class="label label-info" ng-bind="tpl.title"></a>
- </div>
-
- </div>
- </td>
- <td class="we7-padding-right color-default"></td>
- </tr>
- <?php } ?>
- </tbody>
- </table>
- <?php } ?>
- <div class="modal fade" id="endtime" role="dialog">
- <div class="we7-modal-dialog modal-dialog we7-form">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
- <div class="modal-title">设置到期时间</div>
- </div>
- <div class="modal-body">
- <div class="form-group">
- <?php echo tpl_form_field_date('endtime', '');?>
- </div>
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange()">确定</button>
- <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
- </div>
- </div>
- </div>
- </div>
-
-
- <div class="uploader-modal modal fade module" id="jurisdiction-add">
- <div class="modal-dialog modal-lg">
- <div class="modal-content ">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
- <h4 class="modal-title" id="myModalLabel2">选择</h4>
- </div>
- <div class="modal-body material-content clearfix">
- <div class="material-nav">
- <a href="javascript:;" ng-click="tabChange(0)" ng-class="{true:'active',false:''}[jurindex==0]" >应用</a>
- <?php if($account->typeSign == ACCOUNT_TYPE_SIGN) { ?><a href="javascript:;" ng-click="tabChange(1)" ng-class="{true:'active',false:''}[jurindex==1]">模板</a><?php } ?>
- </div>
- <div class="material-body" ng-show="jurindex==0" id="content-modules">
- <div class="row">
- <?php if(is_array($modules)) { foreach($modules as $module_name => $module) { ?>
- <?php if(empty($module['issystem']) && $module[$account->typeSign . '_support'] == 2) { ?>
- <div class="col-sm-2">
- <div class="item <?php if(is_array($current_module_names) && in_array($module_name, $current_module_names)) { ?>active<?php } ?>"
- data-title="<?php echo $module['title'];?>"
- data-name="<?php echo $module['name'];?>"
- ng-click="itemclick()"
- onclick="$(this).toggleClass('active')">
- <img ng-src="<?php echo $module['logo'];?>" alt="" class="icon"/>
- <div class="name"><?php echo $module['title'];?></div>
- <div class="mask">
- <span class="wi wi-right"></span>
- </div>
- </div>
- </div>
- <?php } ?>
- <?php } } ?>
- </div>
- </div>
- <?php if($account->typeSign == ACCOUNT_TYPE_SIGN) { ?>
- <div class="material-body" ng-show="jurindex==1" id="content-templates">
- <div class="row">
- <?php if(is_array($templates)) { foreach($templates as $temp) { ?>
- <div class="col-sm-2">
- <div ng-click="itemclick()" class="item <?php if(is_array($extend['templates']) && in_array($temp, $extend['templates'])) { ?>active<?php } ?>" data-title="<?php echo $temp['title'];?>" data-name="<?php echo $temp['name'];?>" data-id="<?php echo $temp['id'];?>" onclick="$(this).toggleClass('active')">
- <i class="wi wi-home" style="color: #ddd;font-size: 48px;position:relative; top:-15px; margin: 0;"></i>
- <div class="name"><?php echo $temp['title'];?></div>
- <div class="mask">
- <span class="wi wi-right"></span>
- </div>
- </div>
- </div>
- <?php } } ?>
- </div>
- </div>
- <?php } ?>
- </div>
- <div class="material-pager text-right clearfix">
- <div class="pull-left we7-form">
- <input type="checkbox" id="selected-all" ng-model="allmodule" ng-change="allmodulechange(allmodule)">
- <label for="selected-all">全选</label>
- </div>
- <ul class="pagination">
-
- </ul>
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-primary" ng-click="addExtend()">确定</button>
- <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
- </div>
- </div>
- </div>
- </div>
-
- <div class="modal" id="change-group">
- <div class="modal-dialog we7-modal-dialog">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
- </div>
- <div class="modal-body">
- <div class="tab-content we7-form">
- <table class="table we7-table table-hover">
- <tr>
- <th class="text-left bg-light-gray">应用权限组(各权限组均包含系统模块和微站默认模板)</th>
- <th class="text-right bg-light-gray">操作</th>
- </tr>
- <?php if(permission_check_account_user('see_account_manage_module_tpl_all_permission')) { ?>
- <tr>
- <td class="text-left">
- <input id="check-0" type="checkbox" name="package[]" autocomplete="off" value="-1" <?php if(is_array($owner['group']['package']) && in_array('-1', $owner['group']['package'])) { ?>checked disabled<?php } ?><?php if(is_array($extendpackage) && !empty($extendpackage['-1'])) { ?>checked <?php } ?> />
- <label for="check-0" class="we7-padding-left we7-margin-horizontal-none">所有服务</label>
- </td>
- <td class="text-left">
- <div class="link-group">
- <a href="javascript:;" class="color-default js-unfold" data-toggle="collapse" data-target="#extend0" ng-click="changeText($event)">展开</a>
- </div>
- </td>
- </tr>
- <tr class="collapse bg-light-gray" aria-expanded="true" id="extend0">
- <td colspan="2">
- <div class="col-sm-2 color-gray text-left we7-padding-none">应用权限</div>
- <div class="col-sm-10">
- <div class="col-sm-3 text-left">
- <span class="label label-danger">系统所有模块</span>
- </div>
- </div>
- <div class="col-sm-2 color-gray text-left we7-padding-none">模板权限</div>
- <div class="col-sm-10">
- <div class="col-sm-3 text-left">
- <span class="label label-danger">系统所有模板</span>
- </div>
- </div>
- </td>
- </tr>
- <?php } ?>
- <?php if(is_array($uni_groups)) { foreach($uni_groups as $package) { ?>
- <?php if(!(is_array($owner['group']['package']) && in_array($package['id'], $owner['group']['package']))) { ?>
- <tr>
- <td class="text-left">
- <input id="check-<?php echo $package['id'];?>" type="checkbox" name="package[]" autocomplete="off" <?php if(is_array($owner['group']['package']) && in_array($package['id'], $owner['group']['package'])) { ?>checked disabled<?php } ?> <?php if(is_array($extendpackage) && !empty($extendpackage[$package['id']])) { ?>checked <?php } ?> value="<?php echo $package['id'];?>" />
- <label for="check-<?php echo $package['id'];?>" class="we7-padding-left we7-margin-horizontal-none"><?php echo $package['name'];?></label>
- </td>
- <td>
- <div class="link-group">
- <a href="javascript:;" class="color-default js-unfold" data-toggle="collapse" data-target="#extend<?php echo $package['id'];?>" ng-click="changeText($event)">展开</a>
- </div>
- </td>
- </tr>
- <tr class="collapse bg-light-gray" aria-expanded="true" id="extend<?php echo $package['id'];?>">
- <td colspan="2">
- <div>
- <div class="col-sm-2 color-gray text-left we7-padding-none">应用权限</div>
- <div class="col-sm-10">
- <div class="col-sm-3 text-left" ng-style="{'margin-right': '35px','margin-bottom': '15px'}">
- <a href="javascript:;" class="label label-info">系统模块</a>
- </div>
- <?php if(is_array($package['modules'])) { foreach($package['modules'] as $module) { ?>
- <div class="col-sm-3 text-left" ng-style="{'margin-right': '35px','margin-bottom': '15px'}">
- <a href="javascript:;" class="label label-info"><?php echo $module['title'];?></a>
- </div>
- <?php } } ?>
- </div>
- </div>
- <div>
- <div class="col-sm-2 color-gray text-left we7-padding-none">模板权限</div>
- <div class="col-sm-10">
- <div class="col-sm-3 text-left" ng-style="{'margin-right': '35px','margin-bottom': '15px'}">
- <a href="javascript:;" class="label label-info">微站默认模板</a>
- </div>
- <?php if(is_array($package['templates'])) { foreach($package['templates'] as $template) { ?>
- <div class="col-sm-3 text-left" ng-style="{'margin-right': '35px','margin-bottom': '15px'}">
- <a href="javascript:;" class="label label-info"><?php echo $template['title'];?></a>
- </div>
- <?php } } ?>
- </div>
- </div>
- </td>
- </tr>
- <?php } ?>
- <?php } } ?>
- </table>
- </div>
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-primary" ng-click="changeGroup()">确定</button>
- <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
- </div>
- </div>
- </div>
- </div>
-
- </div>
- <script>
- angular.module('accountApp').value('config', {
- owner: <?php echo !empty($owner) ? json_encode($owner) : 'null'?>,
-
- packagelist: <?php echo !empty($account_buy_package) ? json_encode($account_buy_package) : 'null'?>,
-
- modules_tpl: <?php echo !empty($modules_tpl) ? json_encode($modules_tpl) : 'null'?>,
- extend: <?php echo !empty($extend) ? json_encode($extend) : 'null'?>,
- links: {
- postModulesTpl: "<?php echo url('account/post/modules_tpl', array('acid' => $acid, 'uniacid' => $uniacid))?>",
- },
- });
- angular.bootstrap($('#js-account-manage-modules-tpl'), ['accountApp']);
- </script>
- <?php (!empty($this) && $this instanceof WeModuleSite || 0) ? (include $this->template('common/footer', TEMPLATE_INCLUDEPATH)) : (include template('common/footer', TEMPLATE_INCLUDEPATH));?>
|