<!--#include file="inc/AspCms_SettingClass.asp" -->
<%
if isnul(session("adminName")) or Session("sitepath")<>SitePath then response.Redirect("login.asp"):response.End()

dim id, rsObj
id=getForm("id","get")
if not isnul(id) then
	set rsObj=conn.exec("select * from {prefix}Language where LanguageID="&id,"exe")
	if not rsObj.eof then 
		session("languageID")=id
		session("languagePath")=rsObj("LanguagePath")
		session("LanguageAlias")=rsObj("Alias")
	else
		alertMsgAndGo "没有这个语言","-1"
	end if
	rsObj.close : set rsObj=nothing
	response.Redirect("index.asp")
end if

dim SceneID
SceneID=getForm("SceneID","get")
if not isnul(SceneID) then
	set rsObj=conn.exec("select * from {prefix}Scene where SceneID="&SceneID,"exe")
	if not rsObj.eof then 
		'wCookie"SceneID",id
		session("SceneMenu")=rsObj("SceneMenu")
	else		
		alertMsgAndGo "没有这个场景","-1"
	end if
	rsObj.close : set rsObj=nothing
	response.Redirect("index.asp")
end if

'获取当前语种状态
dim tlanguageid,tlanguagename,tlRs
tlanguageid=Session("languageID")
'获取当前语言
set tlrs=conn.exec("select languagename from {prefix}Language where LanguageID="&tlanguageid,"exe")
if not tlrs.eof then
tlanguagename=tlrs(0)
end if
tlrs.close : set tlrs=nothing
%>
<!DOCTYPE HTML>
<html>
<head>
<title>CMS后台管理系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="assets/css/dpl-min.css" rel="stylesheet" type="text/css" />
<link href="assets/css/bui-min.css" rel="stylesheet" type="text/css" />
<link href="assets/css/main-min.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="header">
    <div class="dl-title">
【<%=tlanguagename%>】管理后台
<span>切换到：</span>
<%
'循环列出所有语言
set tlrs=conn.exec("select LanguageID,languagename from {prefix}Language order by LanguageOrder desc,LanguageID desc","exe")
while not tlrs.eof
%>
<%if int(tlrs(0))=int(tlanguageid) then response.Write("<span><a style='color:#d0d0d0;text-decoration:none;'>当前语言</a></span>") else response.Write("<span><a href='index.asp?id="&tlrs(0)&"' title='点击切换' target='_parent'>"&tlrs(1)&"</a></span>")%>
<%
tlrs.movenext
wend
tlrs.close : set tlrs=nothing
%>
    </div>
	<div class="dl-log">欢迎您：<span class="dl-log-user"><%=session("adminName")%>（<%=session("GroupName")%>）</span><a href="login.asp?action=logout" title="退出系统" target="_top" class="dl-log-quit">[退出]</a> <a href="/" target="_blank" class="dl-log-quit">[浏览网站]</a></div>
</div>
<div class="content">
    <div class="dl-main-nav">
        <div class="dl-inform"><div class="dl-inform-title"><s class="dl-inform-icon dl-up"></s></div></div>
<ul id="J_Nav"  class="nav-list ks-clear">
<li class="nav-item dl-selected"><div class="nav-item-inner nav-home">基本信息</div></li>		
<li class="nav-item dl-selected"><div class="nav-item-inner nav-cost">内容维护</div></li>
<li class="nav-item dl-selected"><div class="nav-item-inner nav-storage">扩展功能</div></li>
<li class="nav-item dl-selected"><div class="nav-item-inner nav-user">会员管理</div></li>
<li class="nav-item dl-selected"><div class="nav-item-inner nav-register">网站配置</div></li>
</ul>
    </div>
    <ul id="J_NavContent" class="dl-tab-conten">

    </ul>
</div>
<script type="text/javascript" src="assets/js/jquery-1.8.1.min.js"></script>
<script type="text/javascript" src="assets/js/bui-min.js"></script>
<script type="text/javascript" src="assets/js/common/main-min.js"></script>
<script type="text/javascript" src="assets/js/config-min.js"></script>
<script>
    BUI.use('common/main',function(){
        var config = [
{id:'1',homePage : '1',menu:[
{text:'基本信息',items:[{id:'1',text:'后台首页',href:'right.asp'},{id:'2',text:'功能导航',href:'home.asp'},{id:'3',text:'修改密码',href:'editPass.asp'}]},
{text:'语言设置',items:[{id:'4',text:'多语种管理',href:'_system/_language/AspCms_Language.asp'}]},
{text:'业务信息',items:[{id:'5',text:'留言信息管理',href:'_content/_Comments/AspCms_Message.asp'},{id:'6',text:'网站评论管理',href:'_content/_Comments/AspCms_Comments.asp'},{id:'7',text:'产品订单管理',href:'_content/_Order/AspCms_Order.asp'},{id:'8',text:'应聘信息管理',href:'_content/_Apply/AspCms_Apply.asp'}]}
]},

{id:'2',homePage : '1',menu:[{text:'内容维护',items:[{id:'1',text:'单篇内容管理',href:'_content/_About/AspCms_About.asp'},{id:'2',text:'新闻资讯管理',href:'_content/_Content/AspCms_ContentList.asp?sortType=2'},{id:'3',text:'产品案例管理',href:'_content/_Content/AspCms_ContentList.asp?sortType=3'},{id:'4',text:'资料下载管理',href:'_content/_Content/AspCms_ContentList.asp?sortType=4'},{id:'5',text:'招聘信息管理',href:'_content/_Content/AspCms_ContentList.asp?sortType=5'},{id:'6',text:'荣誉资质管理',href:'_content/_Content/AspCms_ContentList.asp?sortType=6'},{id:'8',text:'网站视频管理',href:'_content/_Content/AspCms_ContentList.asp?sortType=8'},{id:'9',text:'内容参数管理',href:'_content/_Spec/AspCms_Spec.asp'},{id:'10',text:'内容回收站',href:'_content/_Content/AspCms_Recycling.asp'}]},
{text:'静态维护',items:[{id:'11',text:'HTML页面更新',href:'_seo/AspCms_MakeHtml.asp?actType=html'},{id:'12',text:'网站地图生成',href:'_seo/AspCms_MakeHtml.asp?actType=map'},{id:'13',text:'RSS生成',href:'_seo/AspCms_MakeHtml.asp?actType=rss'}]}
]},

{id:'3',homePage : '1',menu:[{text:'高级扩展',items:[{id:'1',text:'数据库备份/恢复',href:'_expand/_data/AspCms_Data.asp'},{id:'2',text:'友情链接管理',href:'_expand/_Links/AspCms_Links.asp'},{id:'3',text:'自动内链设置',href:'_expand/_key/AspCms_key.asp'},{id:'4',text:'幻灯图片管理',href:'_expand/_slide/AspCms_Slide.asp'},{id:'5',text:'网站数据统计',href:'_expand/_statistics/AspCms_CNZZ.asp'},{id:'6',text:'DIY表单管理',href:'_expand/_form/AspCms_Custom.asp'},{id:'7',text:'上传文件管理',href:'_expand/_file/AspCms_FileManger.asp'},{id:'8',text:'冗余文件检测',href:'_expand/_file/AspCms_RedundancyFile.asp'},{id:'9',text:'搜索引擎登陆',href:'_seo/AspCms_SearchEngine.asp'},{id:'10',text:'其他插件管理',href:'_plug/AspCms_plug.asp'}]},
{text:'广告管理',items:[{id:'11',text:'自定义广告',href:'_adv/AspCms_Advlist.asp'},{id:'12',text:'漂浮广告',href:'_adv/AspCms_AdvEditPF.asp?action=savejs&id=4'},{id:'13',text:'对联广告',href:'_adv/AspCms_AdvEditDL.asp?action=savejs&id=5'},{id:'14',text:'右下角广告',href:'_adv/AspCms_AdvEditTC.asp?action=savejs&id=6'}]}]},

{id:'4',homePage : '1',menu:[{text:'会员管理',items:[{id:'1',text:'会员等级管理',href:'_user/_User/AspCms_UserGroupList.asp'},{id:'2',text:'会员信息管理',href:'_user/_User/AspCms_UserList.asp'},{id:'3',text:'管理员组设置',href:'_user/_Admin/AspCms_AdminGroupList.asp'},{id:'4',text:'管理员列表',href:'_user/_Admin/AspCms_AdminList.asp'}]}]},

{id:'5',homePage : '1',menu:[{text:'系统设置',items:[{id:'1',text:'网站信息设置',href:'_system/AspCms_ComplanySetting.asp'},{id:'2',text:'网站参数配置',href:'_system/AspCms_SiteSetting.asp'},{id:'3',text:'网站栏目管理',href:'_content/_Sort/AspCms_Sort.asp'},{id:'4',text:'TAG标签管理',href:'_content/_Tag/AspCms_Tag.asp'},{id:'5',text:'支付信息设置',href:'_system/AspCms_PayMentSetting.asp'}]},
{text:'界面设置',items:[{id:'6',text:'网站模板切换',href:'_style/AspCms_Style.asp'},{id:'7',text:'模板在线编辑',href:'_style/AspCms_Template.asp'},{id:'8',text:'模板标签管理',href:'_style/_Label/AspCms_Label.asp'}]}]}
];
        new PageUtil.MainPage({
            modulesConfig : config
        });
    });
</script>
</body>
</html>