<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Kcms.UI.admin._Default" %>
<!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 runat="server">
    <title>后台管理</title>
    <link href="skins/style.css" rel="stylesheet" type="text/css" />
    <script src="../scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="/inc/artDialog/artDialog.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $(".workBox").height($(window).height() - $(".mainBox").height());

            $(".nav a").click(function () {
                $(this).parent().addClass("on").siblings().removeClass("on");
                var index = $(".nav a").index(this);
                $(".applist div").css("display", "none").eq(index).css("display", "block");
                var channelHref = $(this).attr("href");
                getUrl(channelHref.replace("#channel=", "") + ".aspx");
            });

            $(".applist a").click(function () {
                $(".applist a").removeClass("on");
                $(this).addClass("on");
                var index = $(".applist div").index($(this).parent());
                var channelHref = $(".nav a").eq(index).attr("href");
                var appHref = $(this).attr("href").replace(channelHref, "");
                $(this).attr("href", channelHref + appHref);
                getUrl(appHref.replace("&app=", "") + ".aspx");
            });

            var hashUrl = window.location.hash;
            var channelUrl = "";
            var appUrl = "";
            if (hashUrl != "") {
                var para = (hashUrl + "&").split("&");
                channelUrl = para[0].replace("#channel=", "");
                appUrl = para[1].replace("app=", "");
            }

            if (appUrl != "" && channelUrl != "") {
                $(".nav a[href$='" + channelUrl + "']").click();
                $(".applist a[href$='" + appUrl + "']").click();
            }
            else if (channelUrl != "") {
                $(".nav a[href$='" + channelUrl + "']").click();
            }
        });

        function appclick(appurl) {
            var obj = $(".applist a[href$='" + appurl + "']");
            var index = $(".applist div").index(obj.parent());
            //alert(appurl+"||"+index);
            $(".nav a").eq(index).click();
            obj.click();
        }

        function getUrl(url) {
            $("#workArea").attr("src", url);
        }

        function showApp() {
            art.dialog.open('app.aspx', {
                id: "myapp",
                title: '全部应用',
                lock: true,
                fixed: true,
                width:380,
                height:390
            });
        }
    </script>
</head>
<body>
<div class="mainBox">
    <div class="top">
        <div class="topmsg">你好：<%=adminInfo.username %>，欢迎来到快聚合管理后台。　[<a href="loginout.aspx" onclick="return confirm('确定退出系统管理?')">退出?</a>]　[<a href="../" target="_blank">系统首页</a>]</div>
        <div class="channel">
         <div class="container">
          <ul class="nav">
           <li class="first on"><a href="#channel=main">后台首页</a></li> 
           <li><a href="#channel=News">实时内容</a></li>
           <li class="last"><a href="#channel=ask">在线问答</a></li>
           <li class="first"><a href="#channel=siteconfig">系统设置</a></li>
           <li><a href="#channel=special">聚合设置</a></li>
           <li><a href="#channel=user">用户管理</a></li>
           <li><a href="#channel=changpass">个人设置</a></li>
           <li class="last"><a href="#channel=report">其他应用</a></li>
          </ul>
         </div>
        </div>
    </div>
    <div class="mid">
     <div class="container midapp">
      <div class="applist clearfix">
       <div style="display:block">
        <%--首页--%>
        <a href="&app=special"><img src="skins/icon/procurementlist.gif" border="0" /><em>专题管理</em></a>
        <a href="&app=task"><img src="skins/icon/enumber.gif" border="0" /><em>计划任务</em></a>
        <a href="&app=report"><img src="skins/icon/countdown.gif" border="0" /><em>聚合报表</em></a>
        <a href="&app=robots"><img src="skins/icon/aliblog.gif" border="0" /><em>蜘蛛日志</em></a>
        <a href="&app=errlogs"><img src="skins/icon/complaintmanangement.gif" border="0" /><em>错误记录</em></a>
        <a href="&app=siteconfig"><img src="skins/icon/accountmanagement.gif" border="0" /><em>基本设置</em></a>
        <a href="&app=user"><img src="skins/icon/friends.gif" border="0" /><em>用户列表</em></a>
       </div>
       <div>
       <%--内容管理--%>
        <a href="&app=News"><img src="skins/icon/procurementcentre.gif" border="0" /><em>资讯</em></a>
        <a href="&app=Bowen"><img src="skins/icon/club.gif" border="0" /><em>博文</em></a>
        <a href="&app=Pic"><img src="skins/icon/imagemanager.gif" border="0" /><em>图片</em></a>
        <a href="&app=Video"><img src="skins/icon/servicecentre.gif" border="0" /><em>视频</em></a>
       </div>
       <div>
       <%--问答管理--%>
        <a href="&app=ask"><img src="skins/icon/club.gif" border="0" /><em>问答管理</em></a>
        <a href="&app=askclass"><img src="skins/icon/searchsentre.gif" border="0" /><em>问答分类</em></a>
        <a href="&app=askpara"><img src="skins/icon/toolsbox.gif" border="0" /><em>问答参数</em></a>
       </div>
       <div>
       <%--系统设置--%>
        <a href="&app=siteconfig"><img src="skins/icon/accountmanagement.gif" border="0" /><em>基本设置</em></a>
        <a href="&app=seourl"><img src="skins/icon/seotools.gif" border="0" /><em>Url优化</em></a>
        <a href="&app=seoinfo"><img src="skins/icon/eadvisor.gif" border="0" /><em>SEO信息</em></a>
        <a href="&app=template"><img src="skins/icon/multiaccount.gif" border="0" /><em>模版管理</em></a>
       </div>
       <div>
       <%--聚合设置--%>
        <a href="&app=special"><img src="skins/icon/procurementlist.gif" border="0" /><em>专题列表</em></a>
        <a href="&app=task"><img src="skins/icon/enumber.gif" border="0" /><em>计划任务</em></a>
        <a href="&app=gatherpara"><img src="skins/icon/toolsbox.gif" border="0" /><em>聚合参数</em></a>
        <a href="&app=channel"><img src="skins/icon/searchsentre.gif" border="0" /><em>内容频道</em></a>
       </div>
       <div>
       <%--用户管理--%>
        <a href="&app=user"><img src="skins/icon/friends.gif" border="0" /><em>用户列表</em></a>
        <a href="&app=regcontrol"><img src="skins/icon/servicecentre.gif" border="0" /><em>注册控制</em></a>
        <a href="&app=userrank"><img src="skins/icon/remarkmanagement.gif" border="0" /><em>等级方案</em></a>
        <a href="&app=userjifen"><img src="skins/icon/loans.gif" border="0" /><em>积分设置</em></a>
        <a href="&app=message"><img src="skins/icon/aliblog.gif" border="0" /><em>站内短信</em></a>
        <a href="&app=sendmail"><img src="skins/icon/postoffice.gif" border="0" /><em>邮件发送</em></a>
       </div>
       <div>
       <%--个人设置--%>
        <a href="&app=changpass"><img src="skins/icon/privateseller.gif" border="0" /><em>密码修改</em></a>
       </div>
       <div>
        <%--其他--%>
        <a href="&app=report"><img src="skins/icon/countdown.gif" border="0" /><em>聚合报表</em></a>
        <a href="&app=robots"><img src="skins/icon/aliblog.gif" border="0" /><em>蜘蛛日志</em></a>
        <a href="&app=errlogs"><img src="skins/icon/complaintmanangement.gif" border="0" /><em>错误记录</em></a>
       </div>
      </div>
      <div class="app"><a href="javascript:showApp();"></a></div>
     </div>
    </div>
</div> 
<div class="workBox"><iframe src="main.aspx" id="workArea" name="workArea" width="100%" height="100%" frameborder="0" scrolling="auto"></iframe></div>
</body>
</html>