<%@ Page Language="C#" AutoEventWireup="true" Inherits="Admin_Index, QianboCMS" EnableEventValidation="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>千博站群系统 - 后台管理面板</title>
<link href="AdminDefaultTheme/index.css" type="text/css" rel="stylesheet" />
<link href="AdminDefaultTheme/MasterPage.css" type="text/css" rel="stylesheet" />
<link href="AdminDefaultTheme/Guide.css" type="text/css" rel="stylesheet" />
<script language="javascript" src="../Js/jquery.js" type="text/javascript"></script>
<script language="javascript" src="AdminDefaultTheme/Scripts/AdminIndex.js" type="text/javascript"></script>
<script language="javascript" src="AdminDefaultTheme/Scripts/FrameTab.js" type="text/javascript"></script>
<script type="text/javascript">
function Onload() {
    var width = document.body.clientWidth - 207;
    var lHeight = document.body.clientHeight - 78;
    var rHeight = lHeight - (jQuery("#FrameTabs").height() || 0);
    document.getElementById("main_right").style.width = width > 0 ? width : 0;
    document.getElementById("main_right").style.height = rHeight > 0 ? rHeight : 0;
    document.getElementById("left").style.height = lHeight > 0 ? lHeight : 0;
    jQuery("#FrameTabs").width(width);
    if (CheckFramesScroll) {
        CheckFramesScroll();
    }
}
window.onresize = Onload;
function InitSideBarState() {
    var existentSideBarCookie = getCookie("SideBarCookie");
    var SideBarKey = document.getElementById("left").src.substring(document.getElementById("left").src.lastIndexOf('/') + 1, document.getElementById("left").src.lastIndexOf('.'));
    if (existentSideBarCookie.length != 0 && SideBarKey.length != 0 && existentSideBarCookie.indexOf(SideBarKey) != -1) {
        var arrKV = existentSideBarCookie.split("&");
        for (var v in arrKV) {
            if (arrKV[v].indexOf(SideBarKey) != -1) {
                var currentValue = arrKV[v].split("=");
                ChangeSideBarState(currentValue[1]);
            }
        }
    }
    else {
        var obj = document.getElementById("switchPoint");
        obj.alt = "关闭左栏";
        obj.src = "AdminDefaultTheme/Images/butClose.gif";
        document.getElementById("frmTitle").style.display = "block";
        Onload();
    }
}
function ChangeSideBarState(temp) {
    var obj = document.getElementById("switchPoint");
    if (temp == "none") {
        obj.alt = "打开左栏";
        obj.src = "AdminDefaultTheme/Images/butOpen.gif";
        document.getElementById("frmTitle").style.display = "none";
        var width, height;
        width = document.body.clientWidth - 12;
        height = document.body.clientHeight - 70;
        document.getElementById("main_right").style.height = height;
        document.getElementById("main_right").style.width = width;
        document.getElementById("FrameTabs").style.width = width;
        if (CheckFramesScroll) {
            CheckFramesScroll();
        }
    }
    else {
        obj.alt = "关闭左栏";
        obj.src = "AdminDefaultTheme/Images/butClose.gif";
        document.getElementById("frmTitle").style.display = "block";
        Onload();
    }
}
function killErrors()
{
    return true;
}
window.onerror = killErrors;
</script>
</head>

<body id="Indexbody" onLoad="Onload();">
<form name="form1" runat="server">
  <table border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td colspan="3"><div id="content">
          <ul id="ChannelMenuItems">
            <li id="MenuMyDeskTop" onClick="ShowHideLayer('ChannelMenu_MenuMyDeskTop')"><a href="javascript:" id="AChannelMenu_MenuMyDeskTop" onClick="ShowMain('Left.aspx?Id=1','SystemInfo.aspx')"><span id="SpanChannelMenu_MenuMyDeskTop">我的控制台</span></a></li>
            <span runat="server" id="System">
            <li id="System" onClick="ShowHideLayer('ChannelMenu_System')"><a href="javascript:" id="AChannelMenu_System" onClick="ShowMain('Left.aspx?Id=2','WebSite/SetSiteInfo.aspx')"><span id="SpanChannelMenu_System">系统设置</span></a></li>
            </span>
            <span runat="server" id="Channel">
            <li id="Channel" onClick="ShowHideLayer('ChannelMenu_Channel')"><a href="javascript:" id="AChannelMenu_Channel" onClick="ShowMain('Left.aspx?Id=3','Info/ChannelList.aspx')"><span id="SpanChannelMenu_Channel">栏目|内容管理</span></a></li>
            </span>
            <span runat="server" id="Label">
            <li id="Label" onClick="ShowHideLayer('ChannelMenu_Label')"><a href="javascript:" id="AChannelMenu_Label" onClick="ShowMain('Left.aspx?Id=4','Template/CreateFolder.aspx')"><span id="SpanChannelMenu_Label">模板标签管理</span></a></li>
            </span>
            <span runat="server" id="Users">
            <li id="Users" onClick="ShowHideLayer('ChannelMenu_Users')"><a href="javascript:" id="AChannelMenu_Users" onClick="ShowMain('Left.aspx?Id=5','UserGroupModel/UserGroupModelList.aspx')"><span id="SpanChannelMenu_Users">用户管理</span></a></li>
            </span>
            <span runat="server" id="Expand">
            <li id="Expand" onClick="ShowHideLayer('ChannelMenu_Expand')"><a href="javascript:" id="AChannelMenu_Expand" onClick="ShowMain('Left.aspx?Id=6','WebSite/DictionaryList.aspx')"><span id="SpanChannelMenu_Expand">扩展功能</span></a></li>
            </span>
            <span runat="server" id="SubSites">
            <li id="SubSite" onClick="ShowHideLayer('ChannelMenu_SubSites')"><a href="javascript:" id="AChannelMenu_SubSites" onClick="ShowMain('Left.aspx?Id=7','SubSite/SiteList.aspx')"><span id="SpanChannelMenu_SubSites">分站管理</span></a></li>
            </span>
          </ul>
          <div id="SubMenu">
            <div id="ChannelMenu_MenuMyDeskTop" style="width: 100%;">
              <ul>
                <li>当前用户：<asp:Literal runat="server" ID="litUserName"></asp:Literal>
                  身份：<asp:Literal runat="server" ID="litGroupName"></asp:Literal>
                </li>
              </ul>
            </div>
            <div id="ChannelMenu_System" style="width: 100%; display: none;">
              <ul>
              </ul>
            </div>
            <div id="ChannelMenu_Channel" style="width: 100%; display: none;">
              <ul>
              </ul>
            </div>
            <div id="ChannelMenu_Label" style="width: 100%; display: none;">
              <ul>
              </ul>
            </div>
            <div id="ChannelMenu_Users" style="width: 100%; display: none;">
              <ul>
              </ul>
            </div>
            <div id="ChannelMenu_Expand" style="width: 100%; display: none;">
              <ul>
              </ul>
            </div>
            <div id="ChannelMenu_SubSites" style="width: 100%; display: none;">
              <ul>
              </ul>
            </div>
          </div>
          <div id="Announce"><a href="../" target="_blank"><img src="AdminDefaultTheme/Images/Home.gif" width="37" height="14" border="0" alt="前台首页" /></a>
            <a href="javascript:ClearCache()"><img src="AdminDefaultTheme/Images/clear.gif" width="37" height="14" border="0" alt="清除缓存" /></a>
            <a href="SignOut.aspx"><img src="AdminDefaultTheme/Images/Exit.gif" width="37" height="14" border="0" alt="安全退出" /></a></div>
        </div></td>
    </tr>
    <tr style="vertical-align: top;">
      <td id="frmTitle"><iframe tabid="1" frameborder="0" id="left" name="left" scrolling="auto" src="Left.aspx?Id=1" style="width: 195px; height: 800px; visibility: inherit; z-index: 2;"></iframe></td>
      <td onClick="switchSysBar();" class="but"><img id="switchPoint" src="AdminDefaultTheme/Images/butClose.gif" alt="关闭左栏" style="border: 0px; width: 12px;" /></td>
      <td><div id="FrameTabs" style="overflow: hidden;"></div>
        <div id="main_right_frame">
          <iframe tabid="1" frameborder="0" id="main_right" name="main_right" scrolling="yes" src="SystemInfo.aspx" onload="SetTabTitle(this)" style="width: 1280px; height: 800px; visibility: inherit; z-index: 2; overflow-x: hidden;"></iframe>
          <div class="clearbox2" />
        </div></td>
    </tr>
  </table>
</form>
</body>
</html>
<script type="text/javascript">
function ClearCache()
{
    Admin_Index.ClearCache();
    alert('缓存更新成功！');
}
</script>