123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273 |
- {template 'common/header-base'}
- <div data-skin="default" class="skin-default {if $_GPC['main-lg']} main-lg-body {/if}">
- {php $frames = buildframes(FRAME);_calc_current_frames($frames);}
- <div class="head mixMenu-head">
- <nav class="navbar navbar-default" role="navigation">
- <div class="container {if !empty($frames['section']['platform_module_menu']['plugin_menu'])}plugin-head{/if}">
- <div class="navbar-header">
- <a class="navbar-brand" href="{if $_W['role'] == ACCOUNT_MANAGE_NAME_CLERK}{url 'module/display'}{else}{url 'account/display'}{/if}">
- <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">
- <span class="version hidden">{IMS_VERSION}</span>
- </a>
- </div>
- {if !empty($_W['uid'])}
- <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 $nav_custom=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 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>
- <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="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 permission_check_account_user('see_system_updatecache')}
- <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>
- {else}
- <div class="collapse navbar-collapse">
- <ul class="nav navbar-nav navbar-right">
- <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>
- </div>
- {/if}
- </div>
- </nav>
- </div>
- {if empty($_COOKIE['check_setmeal']) && !empty($_W['account']['endtime']) && ($_W['account']['endtime'] - TIMESTAMP < (6*86400))}
- <div class="system-tips we7-body-alert" id="setmeal-tips">
- <div class="container text-right">
- <div class="alert-info">
- <a href="{if $_W['isfounder']}{php echo url('user/edit', array('uid' => $_W['account']['uid']));}{else}javascript:void(0);{/if}">
- 该公众号管理员服务有效期:{php echo date('Y-m-d', $_W['account']['starttime']);} ~ {php echo date('Y-m-d', $_W['account']['endtime']);}.
- {if $_W['account']['endtime'] < TIMESTAMP}
- 目前已到期,请联系管理员续费
- {else}
- 将在{php echo floor(($_W['account']['endtime'] - strtotime(date('Y-m-d')))/86400);}天后到期,请及时付费
- {/if}
- </a>
- <span class="tips-close" onclick="check_setmeal_hide();"><i class="wi wi-error-sign"></i></span>
- </div>
- </div>
- </div>
- <script>
- function check_setmeal_hide() {
- util.cookie.set('check_setmeal', 1, 1800);
- $('#setmeal-tips').hide();
- return false;
- }
- </script>
- {/if}
- <div class="main">
- {if !defined('IN_MESSAGE')}
- <div class="container">
- <a href="javascript:;" class="js-big-main button-to-big color-gray" title="加宽">{if $_GPC['main-lg']}正常{else}宽屏{/if}</a>
- {if defined('FRAME') && in_array(FRAME, array('account', 'system', 'advertisement', 'wxapp', 'site', 'store', 'webapp', 'phoneapp', 'xzapp')) && !in_array($_GPC['a'], array('news-show', 'notice-show'))}
- <div class="panel panel-content main-panel-content {if !empty($frames['section']['platform_module_menu']['plugin_menu'])}panel-content-plugin{/if}">
- <div class="content-head panel-heading main-panel-heading">
- {if ($_GPC['c'] != 'cloud' && !empty($_GPC['m']) && !in_array($_GPC['m'], array('keyword', 'special', 'welcome', 'default', 'userapi', 'service'))) || defined('IN_MODULE')}
- {template 'common/header-module'}
- {else}
- {template 'common/header-' . FRAME}
- {/if}
- </div>
-
- <div class="panel-body clearfix main-panel-body {if !empty($_W['setting']['copyright']['leftmenufixed'])}menu-fixed{/if}">
- <div class="left-menu">
- {if empty($frames['section']['platform_module_menu']['plugin_menu'])}
- <div class="left-menu-content">
- {loop $frames['section'] $frame_section_id $frame_section}
-
-
- {if FRAME == 'store' && !($_W['isfounder'] && !user_is_vice_founder()) && !empty($frame_section['founder'])}
- {php continue;}
- {/if}
-
-
-
- {if !isset($frame_section['is_display']) || !empty($frame_section['is_display'])}
- <div class="panel panel-menu">
- {if $frame_section['title']}
- <div class="panel-heading">
- <span class="no-collapse" data-toggle="collapse" data-target="#frame-{$frame_section_id}" onclick="util.cookie.set('menu_fold_tag:{$frame_section_id}', util.cookie.get('menu_fold_tag:{$frame_section_id}') == 1 ? 0 : 1)">{$frame_section['title']}<i class="wi wi-down-sign-s pull-right setting"></i></span>
- </div>
- {/if}
-
- <ul class="list-group collapse {if $_GPC['menu_fold_tag:'.$frame_section_id] == 0}in{/if}" id="frame-{$frame_section_id}">
- {loop $frame_section['menu'] $menu_id $menu}
- {if !empty($menu['is_display'])}
- {if $menu_id == 'platform_module_more'}
- <li class="list-group-item list-group-more">
- <a href="{php echo $menu['url']}"><span class="label label-more">更多应用</span></a>
- </li>
- {else}
- {if $menu['active']}{php $active_sub_permission = $menu['sub_permission']}{/if}
- {if (in_array($_W['role'], array(ACCOUNT_MANAGE_NAME_OWNER, ACCOUNT_MANAGE_NAME_FOUNDER, ACCOUNT_MANAGE_NAME_VICE_FOUNDER)) && $menu_id == 'front_download' || $menu_id != 'front_download') && !($menu_id == 'platform_menu' && $_W['account']['level'] == ACCOUNT_SUBSCRIPTION) || $_W['account']['type'] == ACCOUNT_TYPE_XZAPP_NORMAL}
- <li class="list-group-item {if $menu['active']}active{/if}">
- <a href="{$menu['url']}" class="text-over" {if $frame_section_id == 'platform_module'}target="_blank"{/if}>
- {if $menu['icon']}
- {if $frame_section_id == 'platform_module'}
- <img src="{$menu['icon']}"/>
- {else}
- <i class="{$menu['icon']}"></i>
- {/if}
- {/if}
- {$menu['title']}
- {if !empty($menu['need_upload']) && $action != 'front-download'}<i class="wi wi-info-sign color-red" style="font-size:14px;position:relative;bottom:4px"></i>{/if}
- </a>
- </li>
- {/if}
- {/if}
- {/if}
- {/loop}
- </ul>
- </div>
- {/if}
- {/loop}
- </div>
- {else}
- <div class="plugin-menu clearfix">
- <div class="plugin-menu-main pull-left">
- <ul class="list-group">
- <li class="list-group-item{if $_W['current_module']['name'] == $frames['section']['platform_module_menu']['plugin_menu']['main_module']} active{/if}">
- <a href="{php echo url('home/welcome/ext', array('m' => $frames['section']['platform_module_menu']['plugin_menu']['main_module'], 'version_id' => intval($_GPC['version_id'])))}">
- <i class="wi wi-main-apply"></i>
- <div>主应用</div>
- </a>
- </li>
- <li class="list-group-item">
- <div>插件</div>
- </li>
- {loop $frames['section']['platform_module_menu']['plugin_menu']['menu'] $plugin_name $plugin}
- <li class="list-group-item{if $_W['current_module']['name'] == $plugin_name} active{/if}">
- <a href="{php echo url('home/welcome/ext', array('m' => $plugin_name, 'version_id' => intval($_GPC['version_id'])))}">
- <img src="{$plugin['icon']}" alt="" class="img-icon" />
- <div>{$plugin['title']}</div>
- </a>
- </li>
- {/loop}
- </ul>
- {php unset($plugin_name);}
- {php unset($plugin);}
- </div>
- <div class="plugin-menu-sub pull-left">
- {loop $frames['section'] $frame_section_id $frame_section}
- {if !isset($frame_section['is_display']) || !empty($frame_section['is_display'])}
- <div class="panel panel-menu">
- {if $frame_section['title']}
- <div class="panel-heading">
- <span class="no-collapse">{$frame_section['title']}<i class="wi wi-appsetting pull-right setting"></i></span>
- </div>
- {/if}
- <ul class="list-group panel-collapse">
- {loop $frame_section['menu'] $menu_id $menu}
- {if !empty($menu['is_display'])}
- {if $menu_id == 'platform_module_more'}
- <li class="list-group-item list-group-more">
- <a href="{url 'module/manage-account'}"><span class="label label-more">更多应用</span></a>
- </li>
- {else}
- <li class="list-group-item {if $menu['active']}active{/if}">
- <a href="{$menu['url']}" class="text-over" {if $frame_section_id == 'platform_module'}target="_blank"{/if}>
- {if $menu['icon']}
- {if $frame_section_id == 'platform_module'}
- <img src="{$menu['icon']}"/>
- {else}
- <i class="{$menu['icon']}"></i>
- {/if}
- {/if}
- {$menu['title']}
- </a>
- </li>
- {/if}
- {/if}
- {/loop}
- </ul>
- </div>
- {/if}
- {/loop}
- </div>
- </div>
- {/if}
- </div>
- <div class="right-content">
- {/if}
- {/if}
|