123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138 |
- <?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));?>
-
- <div class="we7-page-title">
- 模板管理
- </div>
- <ul class="we7-page-tab">
- <li <?php if($do == 'installed') { ?>class="active"<?php } ?>>
- <a href="<?php echo url('system/template/installed')?>" >已安装模板</a>
- </li>
- <li <?php if($do == 'not_install') { ?>class="active"<?php } ?>>
- <a href="<?php echo url('system/template/not_install')?>">未安装模板</a>
- </li>
- </ul>
- <div class="we7-page-search we7-padding-bottom clearfix">
- <form action="<?php if($do == 'not_install') { ?><?php echo url('system/template/not_install')?><?php } else { ?><?php echo url('system/template/installed')?><?php } ?>" method="post" role="form">
- <div class="input-group col-sm-4">
- <input name="keyword" value="<?php echo $_GPC['keyword'];?>" class="form-control" placeholder="" type="text">
- <span class="input-group-btn"><button class="btn btn-default"><i class="fa fa-search"></i></button></span>
- </div>
- </form>
- </div>
- <div class="system-template">
- <?php if($do == 'installed') { ?>
- <div class="btn-group we7-btn-group">
- <a href="<?php echo url('system/template/installed')?>" class="btn <?php if($_GPC['type'] == '') { ?>active<?php } ?>">全部</a>
- <?php if(is_array($temtypes)) { foreach($temtypes as $type) { ?>
- <a href="<?php echo url('system/template/installed', array('type' => $type['name']))?>" class="btn <?php if($_GPC['type'] == $type['name']) { ?>active<?php } ?>"><?php echo $type['title'];?></a>
- <?php } } ?>
- </div>
- <div class="system-template-list" id="js-system-template" ng-controller="templateCtrl" ng-cloak>
- <?php if(is_array($template_list)) { foreach($template_list as $template) { ?>
- <div class="system-template-item" ng-class="templateList.<?php echo $template['name'];?>.upgrade == 1 ? '' : 'active'">
- <div class="cover-lock">
- <div class="lock">
- <a href="" ng-if="templateList.<?php echo $template['name'];?>.upgrade == 1" class="btn btn-primary item-build-btn" role="button" ng-click="setUpgradeInfo('<?php echo $template['name'];?>')">更新</a>
- <a href="<?php echo url('system/template/uninstall', array('id' => $template['id']))?>" onclick="return confirm('确认删除模板吗?');" class="btn btn-danger item-build-btn" role="button">停用</a>
- </div>
- </div>
- <h2 class="system-template-title">
- <?php echo $template['title'];?>
- </h2>
- <div class="system-template-img">
- <img src="<?php echo tomedia('../app/themes/'. $template['name']. '/preview.jpg')?>"/>
- </div>
- </div>
- <?php } } ?>
- <div class="modal fade" id="upgradeInfo" tabindex="-1" role="dialog" aria-labelledby="myModalLabels" aria-hidden="true">
- <div class="modal-dialog we7-modal-dialog" style="width:800px">
- <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>
- <h4 class="modal-title">模板分支版本信息</h4>
- </div>
- <div class="modal-body">
-
- <div class="form-group">
- <div class="panel panel-default">
- <div class="panel-heading">
- {{ upgradeInfo.title }}---模板分支信息
- </div>
- <div class="panel-body">
- <div class="input-group col-sm-12" ng-repeat="branch in upgradeInfo.branches">
- <div class="col-sm-3">
- 分之名称 : {{ branch.name }}
- </div>
- <div class="col-sm-3">
- 升级价格 : {{ branch.id > upgradeInfo.site_branch.id ? branch.upgrade_price : 0 }}
- </div>
- <div class="col-sm-2">
- <button class="btn btn-default" onclick="$(this).parent().next().next().toggle();">升级说明</button>
- </div>
- <div class="col-sm-3">
- <a ng-href="{{ './index.php?c=cloud&a=process&t='+upgradeInfo.name+'&is_upgrade=1' }}" class="btn btn-default" onclick="return confirm('确定要升级到此分之的最新版吗?')" ng-if="branch.id == upgradeInfo.site_branch.id">免费升级到【{{branch.name}}】最新版本</a>
- <a ng-href="{{ './index.php?c=cloud&a=redirect&do=buybranch&type=theme&m='+upgradeInfo.name+'&branch='+branch.id+'&is_upgrade=1' }}" class="btn btn-default" ng-click="upgrade(branch.upgrade_price)" ng-if="branch.id > upgradeInfo.site_branch.id">付费升级到【{{branch.name}}】最新版本</a>
- </div>
- <div style="display: none">
- <span class="help-block" ng-bind-html=" branch.version.description">
- </span>
- </div>
- </div>
- </div>
- <div class="input-group col-sm-12">
- <div class="alert-info">
- <span><i class="fa fa-info-circle"></i></span>
- 模板分支按照等级顺序排列。
- </div>
- <div class="alert-info">
- <span><i class="fa fa-info-circle"></i></span>
- 如果要升级到其它分支最新版本,需要花费对应分支价格数量的交易币。
- </div>
- <div class="alert-info">
- <span><i class="fa fa-info-circle"></i></span>
- 已购买的模板分支可以免费升级到该分支的最新版本。
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
- </div>
- </div>
- </div>
- </div>
-
- </div>
- <div class="text-right">
- <?php echo $pager;?>
- </div>
- <script>
- angular.module('moduleApp').value('config', {
- 'templateList' : <?php echo json_encode($template_list)?>,
- 'url' : "<?php echo url('system/template/check_upgrade')?>",
- 'get_upgrade_info_url' : "<?php echo url('system/template/get_upgrade_info')?>"
- });
- angular.bootstrap($('#js-system-template'), ['moduleApp']);
- </script>
- <?php } else if($do == 'not_install') { ?>
- <?php if(is_array($uninstall_template)) { foreach($uninstall_template as $template) { ?>
- <div class="system-template-item">
- <div class="cover-lock">
- <div class="lock">
- <a href="<?php echo url('system/template/install', array('templateid' => $template['name']))?>" class="btn btn-warning item-build-btn" role="button">安装</a>
- </div>
- </div>
- <h2 class="system-template-title">
- <?php echo $template['title'];?>
- </h2>
- <div class="system-template-img">
- <img src="<?php echo tomedia($template['logo'])?>"/>
- </div>
- </div>
- <?php } } ?>
- <?php echo $pager;?>
- <?php } ?>
- </div>
-
- <?php (!empty($this) && $this instanceof WeModuleSite || 0) ? (include $this->template('common/footer', TEMPLATE_INCLUDEPATH)) : (include template('common/footer', TEMPLATE_INCLUDEPATH));?>
|