<!doctype html>
<html dir="{-:*_LD_-}">
<head>
<meta charset="utf-8" />
<title>{-:@MANAGE-}</title>
{-include:meta-}
<script>
var GV = {
	_LD_ : '{-:*_LD_-}',
	LANG_NAME : '{-:*LANG_NAME-}',
	URL : {
		'LOCK_SCREEN' : '{-url:admin@login/lock_screen-}',
		'CHECK_SCREEN_LOCK' : '{-url:admin@login/_check_screen_lock-}'+'&'+Math.random(),
		'CHECK_NEW_VERSION' : '{-url:admin@index/_check_new_version?type=system-}'+'&'+Math.random(),
		'SOFT_AUTHOR_URL' : '{-:*SOFT_AUTHOR_URL-}'
	}
};
</script>
</head>
<body>
<div id="screenLock" {-if:'on' == ASession::get('LOCK_SCREEN_SWITCH')-}{-else:-}style="display:none;"{-:/if-}>
	<div class="screen-lock form">
		<fieldset>
			<legend><i class="icon-lock"></i> <span id="lockTips">{-:@SCREEN_LOCK_TIP-}</span></legend>
			<div class="form-group">
				<input type="password" placeholder="{-:@PASSWORD-}" id="lockPassword" class="control-input" size="36">
			</div>
			<div class="form-group">
				<span class="btn btn-info btn-block check_screenlock">{-:@UNLOCK-}</span>
			</div>
		</fieldset>
	</div>
</div><!--/#screenLock-->

<nav id="navbar" class="navbar navbar-attached">
	<ul class="navbar-nav">
		<li data-dropdown class="nav-parent">
			<a class="navbar-brand" href="{-url:admin@index/index-}" title="{-:@MANAGE-}"><i class="icon-loga-h icon-3x"></i></a>
			<div class="dropdown dropdown-sm dropdown-navbar">
				<ul class="nav nav-navbar">
					<li><a href="{-url:admin@index/show_system_info-}" target="mainiFrame"><i class="icon-info-r"></i> {-:@SYSTEM_INFO-}</a></li>
					<li><a href="{-:*SOFT_OFFICIAL_FORUM_URL-}" target="_blank"><i class="icon-comments"></i> {-:@OFFICIAL_FORUM-}</a></li>
					<li><a href="{-:*SOFT_ONLINE_MANUAL_URL-}" target="_blank"><i class="icon-book"></i> {-:@HELP_MANUAL-}</a></li>
				</ul>
			</div>
		</li>
	</ul>
	<ul class="navbar-nav">
	{-foreach:$_M,$m-}
		<li data-dropdown class="nav-parent">
			<a href="">{-:$m['m_name']-} <i class="icon-caret-down"></i></a>
			<div class="dropdown dropdown-sm dropdown-navbar">
				<ul class="nav nav-navbar">
				{-foreach:$m['m_sub'],$ms-}
					<li class="nav-header">{-:$ms['m_group_name']-}</li>
					{-foreach:$ms['m_menus'],$menu-}
					<li><a href="{-:$menu['m_url']-}" target="mainiFrame">{-:$menu['m_name']-}</a></li>
					{-:/foreach-}
				{-:/foreach-}
				</ul>
			</div>
		</li>
	{-:/foreach-}
	</ul>

	<div class="navbar-flip">
		<ul class="navbar-nav">
			<li><a href="{-url:admin@login/logout_do-}"><i class="icon-sign-out"></i></a></li>
			<li><a id="screenLockSwitch"><i class="icon-desktop"></i></a></li>
			<li><a href="{-url:home@index/index-}" target="_blank" class="navbar-icon" title="{-:@VIEW_SITE-}"><i class="icon-home"></i></a></li>
			<li><a href="{-url:admin@index/show_dashboard-}" target="mainiFrame" class="navbar-icon" title="{-:@DASHBOARD-}"><i class="icon-dashboard"></i></a></li>
			<li><a id="operationMapSwitch" href="#" title="{-:@OPERATION_MAP-}"><i class="icon-sitemap"></i></a></li>
			<li data-dropdown class="nav-parent">
				<a href=""><i class="icon-lightning"></i></a>
				<div class="dropdown dropdown-sm dropdown-navbar dropdown-flip">
					<ul class="nav nav-navbar">
					{-foreach:$_SL,$s-}
						<li><a href="{-:$s['shortcut_url']|get_url-}" target="mainiFrame">{-:$s['shortcut_title']-}</a></li>
					{-:/foreach-}
					</ul>
				</div>
			</li>
			{-if:C('LANG.DETECT')-}
			<li data-dropdown class="nav-parent">
				<a href=""><i class="icon-globe"></i></a>
				<div class="dropdown dropdown-sm dropdown-navbar dropdown-flip">
					<ul class="nav nav-navbar">
					{-foreach:$_LS,$alias,$lang-}
						<li{-if:LANG_NAME == $alias-} class="active"{-:/if-}>
							<a href="{-url:admin@common/_toggle_lang?l={$alias}-}">{-:$lang-}</a>
						</li>
					{-:/foreach-}
					</ul>
				</div>
			</li>
			{-:/if-}
		</ul>
	</div>
</nav>

<div id="mainContent">
<iframe width="100%" height="100%" frameborder="0" src="{-url:admin@index/show_dashboard-}" scrolling="auto" name="mainiFrame" id="mainiFrame"></iframe>
</div>

<div id="footer" class="text-right">
	&copy;{-php:echo date('Y');-} <a href="{-:*SOFT_AUTHOR_URL-}" target="_blank">{-:*SOFT_AUTHOR-}</a>, Powered by <dfn title="{-:*SOFT_VERSION-} {-:*SOFT_CHARSET-}">{-:*SOFT_NAME-} {-:*SOFT_CODENAME-}</dfn>
	{-if:!is_null($LICENCE)-}
		<span class="text-success text-strong">
		{-if:1==$LICENCE['type']-}
			{-:@BUSINESS_EDITION-}
		{-elseif:2==$LICENCE['type']-}
			{-:@BUSINESS_COLLABORATION_EDITION-}
		{-else:-}
			{-:@AUTHORIZED_EDITION-}
		{-:/if-}
		</span>
	{-else:-}
		<span class="text-muted">{-:@UNAUTHORIZED-}</span>
	{-:/if-}
</div>
<div id="operationMap" style="display:none">
	{-foreach:$_M,$m-}
	<dl class="mapTop">
		<dt class="bigItem">{-:$m['m_name']-}</dt>
		<dd>
			{-foreach:$m['m_sub'],$ms-}
			<dl class="mapItem">
				<dt>{-:$ms['m_group_name']-}</dt>
				<dd>
					<ul class="list-unstyled item">
						{-foreach:$ms['m_menus'],$menu-}
						<li><a href="{-:$menu['m_url']-}" target="mainiFrame">{-:$menu['m_name']-}</a></li>
						{-:/foreach-}
					</ul>
				</dd>
			</dl>
			{-:/foreach-}
		</dd>
	</dl>
	{-:/foreach-}
	<div class="c"></div>
</div>
<script src="{-:*__RES__-}js/loga.js"></script>
<script src="{-:*__RES__-}js/jquery.js"></script>
<script src="{-:*__RES__-}fea/js/fea.min.js"></script>
<script src="{-:*__STYLE__-}js/common.js"></script>
<script src="{-:*__STYLE__-}js/index.js"></script>
</body>
</html>