<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>{?$jieqi_pagetitle?}</title>
<meta http-equiv="Content-Type" content="text/html; charset={?$jieqi_charset?}" />
<meta name="generator" content="jieqi.com" />
<link rel="stylesheet" type="text/css" media="all" href="{?$jieqi_url?}/templates/admin/frame.css" />
<script language="javascript" type="text/javascript">
var leftmenus = new Array('mu_system', 'mu_users', 'mu_tools', 'mu_database', 'mu_plguin');
{?section name=i loop=$jieqimodules?}
leftmenus['mod_{?$i['key']?}'] = 'mod_{?$i['key']?}';
{?/section?}

function showleftmenu(id) {
  for(k in leftmenus) {
    if(leftframe.document.getElementById(leftmenus[k])) {
	  if(leftmenus[k] == id){
	    leftframe.document.getElementById(leftmenus[k]).style.display = 'block';
		leftframe.document.getElementById('sm' + leftmenus[k].substr(leftmenus[k].indexOf('_'))).style.display = 'block';
	  }else{
	    leftframe.document.getElementById(leftmenus[k]).style.display = 'none';
	  }
    }
  }
}

function showmodmenu(){
  for(k in leftmenus) {
    if(leftframe.document.getElementById(leftmenus[k])) {
	  if(leftmenus[k].substr(0,4) == 'mod_'){
	    leftframe.document.getElementById(leftmenus[k]).style.display = 'block';
		leftframe.document.getElementById('sm_' + leftmenus[k].substr(4)).style.display = 'none';
	  }else{
	    leftframe.document.getElementById(leftmenus[k]).style.display = 'none';
	  }
    }
  }
}

function switchframe(){
  var am=document.getElementById('adminmiddle');
  var al=document.getElementById("adminleft");
  if (am.innerHTML=='3'){
    am.innerHTML='4';
    al.style.display='none';
  }else{
    am.innerHTML='3';
   al.style.display='';
  }
}

function adminmenuFix() {
  var sfEls = document.getElementById("admin_menu").getElementsByTagName("li");
  for (var i=0; i<sfEls.length; i++) {
    sfEls[i].onmouseover=function() {
      this.className+=(this.className.length>0? " ": "") + "sfhover";
    }
    sfEls[i].onMouseDown=function() {
      this.className+=(this.className.length>0? " ": "") + "sfhover";
    }
    sfEls[i].onMouseUp=function() {
      this.className+=(this.className.length>0? " ": "") + "sfhover";
    }
    sfEls[i].onmouseout=function() {
      this.className=this.className.replace(new RegExp("( ?|^)sfhover\\b"), "");
    }
  }
}
window.onload=adminmenuFix;
</script>
</head>
<body>
<table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0">
<tr height="35"><td>
<div id="logo"><img src="{?$jieqi_url?}/templates/admin/images/logo.gif"></div>
<div id="tops">
  <div id="nav_left">
    当前用户：{?$username?} &nbsp;&nbsp;&nbsp; 等　级：{?$usergroup?}
  </div>
  <div id="nav_right">      
    <a href="http://www.jieqi.com" target="_blank"> 官方网站</a>| 
    <a href="http://www.jieqi.com/modules/forum/index.php" target="_blank">官方论坛</a>|
    <a href="http://www.jieqi.com/modules/news/newslist.php?pid=13"  target="_blank">帮助中心</a>| 
    <a href="{?$jieqi_url?}/admin/license.php" target="mainframe">授权信息</a> 
  </div>
<div id="top_nav"><div id="nav_bg_l"></div>
 <ul id="admin_menu">

 <li class="l_ts"><a href="#" onClick="showleftmenu('mu_system'); return false;">系统管理</a></li>
<li class="l_ts"><a href="#" onClick="showmodmenu();">模块管理</a>
  <ul  class="l_tu">
  {?section name=i loop=$jieqimodules?}
	<li><a href="#" onClick="showleftmenu('mod_{?$i['key']?}'); return false;">{?$jieqimodules[i].caption?}</a></li>
  {?/section?}
  </ul>
</li>
<li class="l_ts"><a href="#" onClick="showleftmenu('mu_tools'); return false;">系统工具</a></li>
<li class="l_ts"><a href="#" onClick="showleftmenu('mu_database'); return false;">数据维护</a></li>
<li class="l_ts"><a href="#" onClick="return false;">帮助</a>
  <ul  class="l_tu">
    <li><a href="http://www.jieqi.com/" target="_blank">官方网站</a></li>
	<li><a href="http://www.jieqi.com/modules/forum/" target="_blank">官方论坛</a></li>
	<li><a href="{?$jieqi_url?}/admin/faq.php" target="mainframe">使用技巧</a></li>
	<li><a href="{?$jieqi_url?}/admin/license.php" target="mainframe">授权信息</a></li>
  </ul>
</li>
	</ul>			
<div id="nav_bg_r"></div>
	</div>
	<div id="banben">
	<a href="{?$jieqi_url?}/">JIEQI CMS {?$jieqi_version?} {?$jieqi_vtype?}</a>
	<a href="{?$jieqi_url?}/logout.php" target="_top">[退出系统]</a>
	</div>        
    </div>
</td></tr>
<tr valign="top"><td id="topsplit">
<table height="100%"  width="100%" cellspacing="0" cellpadding="0" border="0" id="adminframe">
  <tr>
	<td id="adminleft" name="adminleft"><iframe frameborder="0" id="leftframe" name="leftframe" scrolling="yes" src="{?$jieqi_adminleft?}" marginwidth="0" marginheight="0"></iframe></td>
	<td id="adminmiddle" name="adminmiddle" onClick="switchframe()">3</td>
	<td valign="top" id="adminright" name="adminright">
    <iframe frameborder="0" id="mainframe" name="mainframe" scrolling="auto" src="{?$jieqi_adminmain?}" marginwidth="0" marginheight="0"></iframe>
	</td>
  </tr>
</table>
</td></tr>
</table>
</body>
</html>