<?php
session_start();
require_once('inc/common.inc.php');
include_once('config/left.'.$kuWebsiteEditVersionLanguage.'.inc.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Kuwebs CMS Management System</title>
<link href="<?php echo $adminCssPath?>admin.css" rel="stylesheet" type="text/css" />
<script src="<?php echo $adminJsPath?>jquery.js"></script>
<script language="javascript">
function fnOnTabClick(tab)
{
  //修改Tab样式
    $("#header_tabs > ul > li").removeClass("current");
    $(tab).parent().parent().addClass("current");
}
function changelang()
{
  if('en' == $("#lang").val()){top.location.href='index.php?lang=en';}
  else top.location.href='index.php?lang=cn';
}
</script>
</head>

<body>
<body style="overflow:hidden">
<div id="header">
  <div id="logo"> <!--{$cfg.page.title}-->Kuwebs Management System</div>
  <div id="panel">

    <div id="header_tabs">
      <ul>
        <li class = "current">
          <span>
            <a href="left.php?lang=<?php echo $kuWebsiteEditVersionLanguage; ?>" onclick="fnOnTabClick(this);" target="menu"><?php echo $topMenuBasicConfig; ?></a>
          </span>
        </li>
        <li>
          <span>
            <a href="left.php?lang=<?php echo $kuWebsiteEditVersionLanguage; ?>&tab=content" onclick="fnOnTabClick(this);" target="menu"><?php echo $topMenuContentManage; ?></a>
          </span>
        </li>
        <li>
          <span>
            <a href="left.php?lang=<?php echo $kuWebsiteEditVersionLanguage; ?>&tab=block" onclick="fnOnTabClick(this);" target="menu"><?php echo $topMenuBlockManage; ?></a>
          </span>
        </li>
        <li>
          <span>
            <a href="left.php?lang=<?php echo $kuWebsiteEditVersionLanguage; ?>&tab=template" onclick="fnOnTabClick(this);" target="menu"><?php echo $topMenuSkinManage; ?></a>
          </span>
        </li>
        <li>
          <span>
            <a href="left.php?lang=<?php echo $kuWebsiteEditVersionLanguage; ?>&tab=advanced" onclick="fnOnTabClick(this);" target="menu"><?php echo $topMenuAdvancedConfig; ?></a>
          </span>
        </li>
        <li>
          <span>
            <a href="left.php?lang=<?php echo $kuWebsiteEditVersionLanguage; ?>&tab=administrator" onclick="fnOnTabClick(this);" target="menu"><?php echo $topMenuAdministration; ?></a>
          </span>
        </li>
      </ul>

      <div id="header_links">
        <p style="margin-right:20px;"><iframe style="margin:8px 0px 0px 0px;" src="http://www.kuwebs.com/news/rollnews_30.php" frameborder=0 scrolling=no width="600" height="20"></iframe></p>
        <p><?php echo $topRightLabelHello; ?><strong><?php echo $_SESSION['adminuser']; ?></strong> &nbsp;&nbsp;[&nbsp;<a target="_parent" href="index.php?lang=<?php echo $kuWebsiteEditVersionLanguage; ?>&path=login&menu=login_action&action=logout"><?php echo $leftLogOut; ?></a>&nbsp;]</p>
        <p><a href="http://docs.kuwebs.com/user/" class="btnlink" target="_blank"><?php echo $topOnlineHelp; ?></a> </p>
      </div>
      <div id="header_lang">
        <p>
          <?php echo $topCurrentEditLanguage; ?>
          <select onchange="changelang();" id="lang">
            <option value='cn' <?php if('cn' == $lang)echo "selected='selected'"; ?>>Chinese</option>
            <option value='en' <?php if('en' == $lang)echo "selected='selected'"; ?>>English</option>
          </select>
        </p>
      </div>
    </div>


  </div>
</div>
</body>
</html>