123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437 |
- {template 'common/header-base'}
- {php $frames = buildframes(FRAME);_calc_current_frames($frames);}
- <div data-skin="default" class="skin-default {if $_GPC['main-lg']} main-lg-body {/if}">
- {if $_W['template'] == 'black'}
- <div class="skin-black" data-skin="black">
- <div class="head">
- <nav class="navbar navbar-default" role="navigation">
- <div class="container ">
- <div class="navbar-header">
- <a class="navbar-brand" href="{$_W['siteroot']}">
- <img src="{if !empty($_W['setting']['copyright']['blogo'])}{php echo to_global_media($_W['setting']['copyright']['blogo'])}{else}./resource/images/logo/logo.png{/if}" class="pull-left" width="110px" height="35px">
- </a>
- </div>
- <div class="collapse navbar-collapse">
-
- <ul class="nav navbar-nav navbar-left">
- {php global $top_nav}
- {php $nav_top_fold=array()}
- {php $nav_top_tiled=array()}
- {php $platform_url=url('account/display')}
- {php $nav_top_fold[] = array('name' => 'all', 'title'=>'全部', 'type' => 'all', 'url' => $platform_url)}
- {loop $top_nav $nav}
- {if in_array($nav['name'], array(ACCOUNT_TYPE_SIGN, WXAPP_TYPE_SIGN, WEBAPP_TYPE_SIGN, PHONEAPP_TYPE_SIGN, XZAPP_TYPE_SIGN, ALIAPP_TYPE_SIGN))}
- {php $nav_top_fold[]=$nav}
- {elseif in_array($nav['name'], array('platform', 'module', 'system', 'site'))}
- {php $nav_top_tiled_system[]=$nav}
- {elseif in_array($nav['name'], array('appmarket', 'store', 'help', 'advertisement'))}
- {php $nav_top_tiled_other[]=$nav}
- {elseif $nav['name']=='custom_help'}
- {php $nav_top_help=$nav}
- {else}
- {php $nav_top_tiled_other[]=$nav}
- {/if}
- {/loop}
-
- {loop $nav_top_tiled_system $nav}
- <li {if FRAME == $nav['name'] && !defined('IN_MODULE')} class="active" {/if}>
- <a href="{if empty($nav['url'])}{php echo url('home/welcome/' . $nav['name']);}{else}{$nav['url']}{/if}" {if !empty($nav['blank'])}target="_blank"{/if}>{$nav['title']}</a>
- </li>
- {/loop}
-
- <ul class="other nav navbar-nav navbar-left">
- {loop $nav_top_tiled_other $nav}
- <li {if $nav['name'] == 'store'} class="active" {/if}>
- <a href="{if empty($nav['url'])}{php echo url('home/welcome/' . $nav['name']);}{else}{$nav['url']}{/if}" {if !empty($nav['blank'])}target="_blank"{/if}> {$nav['title']} </a>
- </li>
- {/loop}
- </ul>
- </ul>
-
- <ul class="nav navbar-nav navbar-right">
- {if !empty($nav_top_help)}
- <li>
- <a href="{if empty($nav_top_help['url'])}{php echo url('home/welcome/' . $nav_top_help['name']);}{else}{$nav_top_help['url']}{/if}" data-toggle="tooltip" data-placement="bottom" title="帮助" {if !empty($nav_top_help['blank'])}target="_blank"{/if}>
- <i class="wi wi-explain-sign color-gray" ></i>
- </a>
- </li>
- {/if}
-
- {php $frames_site = buildframes('site')}
- {php $workorder_nav=$frames_site['section']['workorder']['menu']['system_workorder']}
- {if $workorder_nav['is_display']}
- {if permission_check_account_user('see_workorder')}
- <li>
- <a href="{php echo url('system/workorder/display')}" data-toggle="tooltip" data-placement="bottom" title="工单">
- <i class="wi wi-system-work color-gray" ></i>
- </a>
- </li>
- {/if}
- {/if}
-
- {template 'common/header-notice'}
- <li class="dropdown">
- <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown"><i class="wi wi-user color-gray"></i>{$_W['user']['username']} <span class="caret"></span></a>
- <ul class="dropdown-menu color-gray" role="menu">
- <li>
- <a href="{url 'user/profile'}" target="_blank"><i class="wi wi-account color-gray"></i> 我的账号</a>
- </li>
- <li class="divider"></li>
-
- {if permission_check_account_user('see_system_upgrade')}
- <li><a href="{url 'cloud/upgrade'}" target="_blank"><i class="wi wi-update color-gray"></i> 自动更新</a></li>
- {/if}
-
- {if $_W['role'] != ACCOUNT_MANAGE_NAME_CLERK}
- <li><a href="{url 'system/updatecache'}" target="_blank"><i class="wi wi-cache color-gray"></i> 更新缓存</a></li>
- <li class="divider"></li>
- {/if}
-
- <li>
- <a href="{url 'user/logout'}"><i class="fa fa-sign-out color-gray"></i> 退出系统</a>
- </li>
- </ul>
- </li>
- </ul>
- </div>
- </div>
- </nav>
- </div>
-
- <div class="main">
- <div class="container">
- <div class="panel panel-content main-panel-content ">
- <div class="panel-body clearfix main-panel-body ">
- <div class="left-menu">
- <div class="left-menu-content">
- <div class="left-menu-top skin-black">
- <div class="account-info-name">
- <span class="account-name"><i class="wi wi-store"></i><a href="./index.php?c=home&a=welcome&do=account&">商城</a></span>
- </div>
- </div>
- {loop $this->left_menus $key $menus}
- {if (($key == 'store_manage' || $key == 'store_payments') && !($_W['isfounder'] && !user_is_vice_founder()))}
- {php continue;}
- {/if}
- <div class="panel panel-menu">
- <div class="panel-heading">
- <span class="" data-toggle="collapse" data-target="#frame-{$key}" onclick="util.cookie.set('menu_fold_tag:{$key}', util.cookie.get('menu_fold_tag:{$key}') == 1 ? 0 : 1)">{$menus['title']}<i class="wi wi-down-sign-s pull-right"></i></span>
- </div>
- <ul class="list-group collapse {if $_GPC['menu_fold_tag:'.$key] == 0}in{/if}" id="frame-{$key}">
- {loop $menus['menu'] $menu_key $menu}
- {if $key == 'store_goods' && !empty($_W['setting']['store'][$menu_key])}
- {php continue;}
- {/if}
- <li class="list-group-item {if ($_GPC['type'] == $menu['type'] && $_GPC['do'] == 'goodsbuyer') || ($_GPC['do'] == $menu['type'] && $_GPC['do'] != 'goodsbuyer')}active{/if}">
- <a href="{$menu['url']}" class="text-over" >
- <i class="{$menu['icon']}"></i> {$menu['title']}</a>
- </li>
- {/loop}
- </ul>
- </div>
- {/loop}
- </div>
- </div>
- <div class="right-content">
- {elseif $_W['template'] == 'classical'}
- <style>
- .tooltip.right .tooltip-arrow{border-right-color: #428bca;}
- .tooltip.bottom .tooltip-arrow{border-bottom-color: #428bca;}
- .tooltip-inner{background-color: #428bca; padding: 6px 12px;}
- </style>
- <div class="skin-classical" data-skin="classical">
- <div class="first-sidebar">
- <div class="{if !empty($frames['section']['platform_module_menu']['plugin_menu'])}plugin-head{/if}">
- <a class="logo-wrap" href="{$_W['siteroot']}">
- <img src="{if !empty($_W['setting']['copyright']['blogo'])}{php echo to_global_media($_W['setting']['copyright']['blogo'])}{else}./resource/images/logo/logo.png{/if}" class="logo">
- </a>
- {if !empty($_W['uid'])}
- <div class="nav">
- <ul class="main-nav">
- {php global $top_nav}
- {php $nav_top_fold=array()}
- {php $nav_top_tiled=array()}
- {php $platform_url=url('account/display')}
- {php $nav_top_fold[] = array('name' => 'all', 'title'=>'全部', 'type' => 'all', 'url' => $platform_url)}
- {loop $top_nav $nav}
- {if in_array($nav['name'], array(ACCOUNT_TYPE_SIGN, WXAPP_TYPE_SIGN, WEBAPP_TYPE_SIGN, PHONEAPP_TYPE_SIGN, XZAPP_TYPE_SIGN, ALIAPP_TYPE_SIGN))}
- {php $nav_top_fold[]=$nav}
- {elseif in_array($nav['name'], array('platform', 'module', 'system', 'site'))}
- {php $nav_top_tiled_system[]=$nav}
- {elseif in_array($nav['name'], array('appmarket', 'store', 'help', 'advertisement'))}
- {php $nav_top_tiled_other[]=$nav}
- {elseif $nav['name']=='custom_help'}
- {php $nav_top_help=$nav}
- {else}
- {php $nav_top_tiled_other[]=$nav}
- {/if}
- {/loop}
-
- {loop $nav_top_tiled_system $nav}
- <li {if FRAME == $nav['name'] && !defined('IN_MODULE')} class="active" {/if}>
- <a href="{if empty($nav['url'])}{php echo url('home/welcome/' . $nav['name']);}{else}{$nav['url']}{/if}" {if !empty($nav['blank'])}target="_blank"{/if}>
- <i class="{$nav['icon']}"></i>{$nav['title']}</a>
- </li>
- {/loop}
-
- {loop $nav_top_tiled_other $nav}
- <li {if $nav['name'] == 'store'} class="active" {/if}>
- <a href="{if empty($nav['url'])}{php echo url('home/welcome/' . $nav['name']);}{else}{$nav['url']}{/if}" {if !empty($nav['blank'])}target="_blank"{/if}>
- <i class="{$nav['icon']}"></i>{$nav['title']} </a>
- </li>
- {/loop}
- </ul>
- <ul class="user-info">
- <li class="dropdown">
- <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown"><i class="wi wi-user"></i>{$_W['user']['username']}<span class="caret"></span></a>
- <ul class="dropdown-menu color-gray dropdown-menu-right" role="menu">
- <li>
- <a href="{url 'user/profile'}" target="_blank"><i class="wi wi-account color-gray"></i> 我的账号</a>
- </li>
- <li class="divider"></li>
-
- {if permission_check_account_user('see_system_upgrade')}
- <li><a href="{url 'cloud/upgrade'}" target="_blank"><i class="wi wi-update color-gray"></i> 自动更新</a></li>
- {/if}
-
- {if $_W['role'] != ACCOUNT_MANAGE_NAME_CLERK}
- <li><a href="{url 'system/updatecache'}" target="_blank"><i class="wi wi-cache color-gray"></i> 更新缓存</a></li>
- <li class="divider"></li>
- {/if}
-
- <li>
- <a href="{url 'user/logout'}"><i class="fa fa-sign-out color-gray"></i> 退出系统</a>
- </li>
- </ul>
- </li>
-
- {template 'common/header-notice'}
-
- {if !empty($nav_top_help)}
- <li>
- <a href="{if empty($nav_top_help['url'])}{php echo url('home/welcome/' . $nav_top_help['name']);}{else}{$nav_top_help['url']}{/if}" data-toggle="tooltip" data-placement="bottom" title="帮助" {if !empty($nav_top_help['blank'])}target="_blank"{/if}>
- <i class="wi wi-explain-sign color-gray" ></i>
- </a>
- </li>
- {/if}
-
- {php $frames_site = buildframes('site')}
- {php $workorder_nav=$frames_site['section']['workorder']['menu']['system_workorder']}
- {if $workorder_nav['is_display']}
- {if permission_check_account_user('see_workorder')}
- <li>
- <a href="{php echo url('system/workorder/display')}" data-toggle="tooltip" data-placement="bottom" title="工单">
- <i class="wi wi-system-work color-gray" ></i>
- </a>
- </li>
- {/if}
- {/if}
- </ul>
- </div>
- {else}
- <ul class="user-info">
- <li class="dropdown"><a href="{php echo url('user/register');}">注册</a></li>
- <li class="dropdown"><a href="{php echo url('user/login');}">登录</a></li>
- </ul>
- {/if}
- </div>
- </div>
- <script>
- $(function(){
- var $dropdownLi = $('.msg.dropdown');
- $dropdownLi.mouseover(function() {
- $(this).addClass('open');
- }).mouseout(function() {
- $(this).removeClass('open');
- });
- });
- </script>
-
-
- <div class="main main-classical">
- <div class="right-fixed-top"></div>
- <div class="container">
- <div class="panel panel-content main-panel-content {if !empty($frames['section']['platform_module_menu']['plugin_menu'])}panel-content-plugin{/if}">
- <div class="panel-body clearfix main-panel-body {if $_GPC['menu_fold_tag:classical'] == 1}folded{/if}">
- <div class="icon-unfold js-folded" onclick="util.cookie.set('menu_fold_tag:classical', util.cookie.get('menu_fold_tag:classical') == 1 ? 0 : 1)">
- <span class="wi wi-folded"></span>
- </div>
- <div class="left-menu-container">
- <div class="left-menu">
- {loop $this->left_menus $key $menus}
- {if (($key == 'store_manage' || $key == 'store_payments') && !($_W['isfounder'] && !user_is_vice_founder()))}
- {php continue;}
- {/if}
- <div class="panel panel-menu">
- <div class="panel-heading">
- <span class="no-collapse"{if $_GPC['menu_fold_tag:'.$key] == 1}collapsed{/if}" data-toggle="collapse" data-target="#frame-{$key}" onclick="util.cookie.set('menu_fold_tag:{$key}', util.cookie.get('menu_fold_tag:{$key}') == 1 ? 0 : 1)">{$menus['title']}<i class="wi wi-appsetting pull-right setting"></i></span>
- </div>
- <ul class="list-group collapse {if $_GPC['menu_fold_tag:'.$key] == 0}in{/if}" id="frame-{$key}"">
- {loop $menus['menu'] $menu_key $menu}
- {if $key == 'store_goods' && !empty($_W['setting']['store'][$menu_key])}
- {php continue;}
- {/if}
- <li class="list-group-item {if ($_GPC['type'] == $menu['type'] && $_GPC['do'] == 'goodsbuyer') || ($_GPC['do'] == $menu['type'] && $_GPC['do'] != 'goodsbuyer')}active{/if}">
- <a href="{$menu['url']}" class="text-over" >
- <span class="nav-icon" data-container="body" data-toggle="tooltip" data-placement="right" title="{$menu['title']}"><i class="{$menu['icon']}"></i></span> <span class="nav-title">{$menu['title']}</span>
- </a>
- </li>
- {/loop}
- </ul>
- </div>
- {/loop}
- </div>
- </div>
- <script>
- $(function(){
- $('.left-menu-container').slimScroll({
- width: '210px',
- height: 'calc(100vh - 51px)',
- opacity: .4,
- color: '#aaa',
- });
- $('.main-panel-content .icon-unfold').click(function(){
- $('.main-panel-content').find('.main-panel-body').toggleClass('folded');
- });
- $('.nav-icon').tooltip('hide');
- });
- </script>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/jQuery-slimScroll/1.3.8/jquery.slimscroll.min.js"></script>
- <div class="right-content">
- <div class="content">
- {else}
- <div class="head">
- <nav class="navbar navbar-default" role="navigation">
- <div class="container ">
- <div class="navbar-header">
- <a class="navbar-brand" href="{$_W['siteroot']}">
- <img src="{if !empty($_W['setting']['copyright']['blogo'])}{php echo to_global_media($_W['setting']['copyright']['blogo'])}{else}./resource/images/logo/logo.png{/if}" class="pull-left" width="110px" height="35px">
- </a>
- </div>
- <div class="collapse navbar-collapse">
- <style>
- .nav > li:hover .dropdown-menu {display: block;}
- </style>
- {php global $top_nav}
- {php $nav_top_fold=array()}
- {php $nav_top_tiled=array()}
- {php $platform_url=url('account/display')}
- {php $nav_top_fold[] = array('name' => 'all', 'title'=>'全部', 'type' => 'all', 'url' => $platform_url)}
- {loop $top_nav $nav}
- {if in_array($nav['name'], array(ACCOUNT_TYPE_SIGN, WXAPP_TYPE_SIGN, WEBAPP_TYPE_SIGN, PHONEAPP_TYPE_SIGN, XZAPP_TYPE_SIGN, ALIAPP_TYPE_SIGN))}
- {php $nav_top_fold[]=$nav}
- {elseif in_array($nav['name'], array('platform', 'module', 'system', 'site'))}
- {php $nav_top_tiled_system[]=$nav}
- {elseif in_array($nav['name'], array('appmarket', 'store', 'help', 'advertisement'))}
- {php $nav_top_tiled_other[]=$nav}
- {elseif $nav['name']=='custom_help'}
- {php $nav_top_help=$nav}
- {else}
- {php $nav_top_tiled_other[]=$nav}
- {/if}
- {/loop}
- <ul class="nav navbar-nav navbar-left">
- {loop $nav_top_tiled_system $nav}
- <li {if FRAME == $nav['name'] && !defined('IN_MODULE')} class="active" {/if}>
- <a href="{if empty($nav['url'])}{php echo url('home/welcome/' . $nav['name']);}{else}{$nav['url']}{/if}" {if !empty($nav['blank'])}target="_blank"{/if}>{$nav['title']}</a>
- </li>
- {/loop}
-
- <ul class="other nav navbar-nav navbar-left">
- {loop $nav_top_tiled_other $nav}
- <li {if $nav['name'] == 'store'} class="active" {/if}>
- <a href="{if empty($nav['url'])}{php echo url('home/welcome/' . $nav['name']);}{else}{$nav['url']}{/if}" {if !empty($nav['blank'])}target="_blank"{/if}>{$nav['title']}</a>
- </li>
- {/loop}
- </ul>
- </ul>
- <ul class="nav navbar-nav navbar-left hidden">
- {php global $top_nav}
- {loop $top_nav $nav}
- <li {if FRAME == $nav['name'] && !defined('IN_MODULE')} class="active"{/if}><a href="{if empty($nav['url'])}{php echo url('home/welcome/' . $nav['name']);}{else}{$nav['url']}{/if}" {if !empty($nav['blank'])}target="_blank"{/if}>{$nav['title']}</a></li>
- {/loop}
- </ul>
- <ul class="nav navbar-nav navbar-right">
- {if !empty($nav_top_help)}
- <li>
- <a href="{if empty($nav_top_help['url'])}{php echo url('home/welcome/' . $nav_top_help['name']);}{else}{$nav_top_help['url']}{/if}" data-toggle="popover" data-placement="bottom" data-trigger="hover" data-content="帮助" {if !empty($nav_top_help['blank'])}target="_blank"{/if}>
- <i class="wi wi-explain-sign" ></i>
- </a>
- </li>
- {/if}
-
- {php $frames_site = buildframes('site')}
- {php $workorder_nav=$frames_site['section']['workorder']['menu']['system_workorder']}
- {if $workorder_nav['is_display']}
- {if permission_check_account_user('see_workorder')}
- <li>
- <a href="{php echo url('system/workorder/display')}" data-toggle="tooltip" data-placement="bottom" title="工单">
- <i class="wi wi-system-work color-gray" ></i>
- </a>
- </li>
- {/if}
- {/if}
-
- {template 'common/header-notice'}
- <li class="dropdown">
- <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown"><i class="wi wi-user color-gray"></i>{php echo $_W['username']} <span class="caret"></span></a>
- <ul class="dropdown-menu color-gray" role="menu">
- <li>
- <a href="{url 'user/profile'}" target="_blank"><i class="wi wi-account color-gray"></i> 我的账号</a>
- </li>
- <li class="divider"></li>
-
- {if permission_check_account_user('see_system_upgrade')}
- <li><a href="{url 'cloud/upgrade'}" target="_blank"><i class="wi wi-update color-gray"></i> 自动更新</a></li>
- {/if}
-
- {if $_W['role'] != ACCOUNT_MANAGE_NAME_CLERK}
- <li><a href="{url 'system/updatecache'}" target="_blank"><i class="wi wi-cache color-gray"></i> 更新缓存</a></li>
- <li class="divider"></li>
- {/if}
-
- <li>
- <a href="{url 'user/logout'}"><i class="fa fa-sign-out color-gray"></i> 退出系统</a>
- </li>
- </ul>
- </li>
- </ul>
- </div>
- </div>
- </nav>
- </div>
-
- <div class="main">
- <div class="container">
- <a href="javascript:;" class="js-big-main button-to-big color-gray" title="加宽">宽屏</a>
- <div class="panel panel-content main-panel-content">
- <div class="content-head panel-heading main-panel-heading">
- <span class="font-lg"><i class="wi wi-store"></i> 商城</span></div>
- <div class="panel-body clearfix main-panel-body">
- <div class="left-menu">
- <div class="left-menu-content">
- {loop $this->left_menus $key $menus}
- {if (($key == 'store_manage' || $key == 'store_payments') && !($_W['isfounder'] && !user_is_vice_founder()))}
- {php continue;}
- {/if}
- <div class="panel panel-menu">
- <div class="panel-heading">
- <span class="no-collapse">{$menus['title']}<i class="wi wi-appsetting pull-right setting"></i></span>
- </div>
- <ul class="list-group">
- {loop $menus['menu'] $menu_key $menu}
- {if $key == 'store_goods' && !empty($_W['setting']['store'][$menu_key])}
- {php continue;}
- {/if}
- <li class="list-group-item {if ($_GPC['type'] == $menu['type'] && $_GPC['do'] == 'goodsbuyer') || ($_GPC['do'] == $menu['type'] && $_GPC['do'] != 'goodsbuyer')}active{/if}">
- <a href="{$menu['url']}" class="text-over" >
- <i class="{$menu['icon']}"></i> {$menu['title']}</a>
- </li>
- {/loop}
- </ul>
- </div>
- {/loop}
- </div>
- </div>
- <div class="right-content" style="overflow: hidden;">
- {/if}
|