<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%><!--#include file="qwbm_conn.asp"--><!--#include file="qwbm_cheack.asp"--><!--#include file="qwbm_md5.asp"--><%
sub passobj(game)
dim gamecounts,gameobj
gamecounts=len(game)
if IsNumeric (game) then
call errbox("密码不能为全是数字\n\n出于对您的资料安全考虑，当前密码不能通过，请重新设置当前密码","","","","")
end if
if gamecounts < 5 then
call errbox("当前密码太短，请设置大于  六 位的密码","","","","")
end if	
end sub
dim actions,asps
actions = trim(request("action"))
asps = trim(request("asp"))
if asps = "modepass" then
ho_pass1 = trim(request("re_pass1"))		
if ho_pass1 = "" then
call errbox("老密码不能为空","","","","")
end if
ho_pass1 = md5(ho_pass1)
ho_pass = trim(request("re_pass"))		
if ho_pass = "" then
call errbox("新密码不能为空","","","","")
end if
call passobj(ho_pass)	
ho_pass2 = trim(request("re_pass2"))
if ho_pass <> ho_pass2 then
call errbox("两次密码输入不同。","","","","")
end if
ho_pass2 = md5(ho_pass2)
set prs=server.CreateObject("adodb.recordset")
prs.open "select qwbmupwds from qwbmxuser where qwbmuname='"& request.cookies(""& qwbmcms2 &"username") &"' and qwbmupwds='"& ho_pass1 &"'",conn,1,3
if prs.eof and prs.bof then
call errbox("原妈密码错误-----密码修改失败！！！","","","","")
else
prs("qwbmupwds") = ho_pass2
prs.update
call errbox("密码修改成功！！！","qwbm_setting.asp?action=password","","","")
end if
prs.close
set prs=nothing
end if
if asps = "modeset" then
set mrs=server.CreateObject("adodb.recordset")
mrs.open "select * from qwbmset where id=1",conn,1,3			
mrs("qwbmurl")=trim(request("qwbmurl"))
mrs("qwbmtitle")=trim(request("qwbmtitle"))
mrs("qwbmkeywords")=trim(request("qwbmkeywords"))
mrs("qwbmdescription")=trim(request("qwbmdescription"))
mrs("qwbmicp")=trim(request("qwbmicp"))
mrs("qwbmfooter")=trim(request("qwbmfooter"))
mrs("qwbmrequest")=trim(request("qwbmrequest"))
mrs("qwbmbei1")=request("qwbmbei1")
mrs("qwbmbei2")=request("qwbmbei2")
mrs("qwbmbei3")=request("qwbmbei3")
mrs("qwbmbei4")=request("qwbmbei4")
mrs("qwbmbei5")=request("qwbmbei5")
mrs("qwbmbei6")=request("qwbmbei6")
mrs.update
mrs.close
set mrs=nothing
call errbox("修改网站基本信息成功","qwbm_setting.asp?action=setting","","","")	
end if
%><!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=gb2312" />
<title>深山管理员信息管理页面</title>
</head>
<body><%if actions = "lefter" then%>
<style type="text/css">
body {font-family:Arial, Helvetica, sans-serif;font-size:12px;width:158px;margin:0 auto;background-color:#ffffff;overflow-x:hidden;}
ul,h5{width:158px;margin:0;padding:0;list-style:none;}
#levelmenu{margin:0px 0 0 0px;o}
#levelmenu div.unit ul{width:158px;border:solid 1px #1A5189;padding:8px 0 8px 0px;}
#levelmenu h5{width:158px;height:25px;line-height:26px;overflow:hidden;background:#515E7B url(images/menubg.jpg) left top no-repeat;text-indent:30px;font-weight:normal;color:#fff;margin:0;font-size:100%;cursor:default;}
#levelmenu div.unit ul{display:none;line-height:20px;}
#levelmenu div.current ul{width:156px;display:block;}
#levelmenu div.current ul li{BACKGROUND-IMAGE:url('images/tree_folder4.gif');background-repeat:no-repeat; margin-left:15px;}
#levelmenu div.current ul li a{color:#000000;text-decoration:none; padding-left:15px;}
#levelmenu div.current ul li a:hover{text-decoration:underline;}
#levelmenu div.current h5{background-position:left bottom;}
#levelmenu div.current1 ul{width:156px; border:solid 1px #1A5189; text-align:center;line-height:10px;}
#levelmenu div.current1 ul li{width:156px;color:#000000;text-decoration:none;line-height:10px; padding-top:8px; padding-bottom:8px;}
#levelmenu div.current1 ul li a{color:#000000;text-decoration:none;}
#levelmenu div.current1 ul li a:hover{text-decoration:underline;}
#levelmenu .current1 ul li span {background:#ccc;}
#levelmenu .current1 ul li span a:link,#levelmenu .current1 ul li span a:visited {color:#00f;}
#kongge{ height:10px; width:158px;}
</style>
<div id="levelmenu"><div class="current1"><h5>控制面板</h5><ul><li>欢迎你来到管理中心</li><li><a href="qwbm_center.asp" target="main">后台主页</a>&nbsp;|&nbsp;<a href="qwbm_center.asp?asp=out" onclick='return confirm("您真的要退出吗？");' target="_top">退出系统</a></li></ul></div><div id="kongge"></div><div class="unit current"><h5>网站基本设置</h5><ul><li><a target="main" href="qwbm_setting.asp?action=setting">系统设置</a></li><li><a target="main" href="qwbm_setting.asp?action=password">修改管理员密码</a></li></ul></div><div class="unit current"><h5>旅游线路</h5><ul><li><a target="main" href="qwbm_line.asp" style="color:#f00;">旅游线路</a><span><a target="main" href="qwbm_line.asp?action=add">添加</a></span></li></ul></div><div class="unit current"><h5>新闻资讯管理</h5><ul><li><a target="main" href="qwbm_new.asp?smallid=2">网站公告</a><span><a target="main" href="qwbm_new.asp?action=add&smallid=2">添加</a></span></li><li><a target="main" href="qwbm_new.asp?smallid=3">旅游新闻</a><span><a target="main" href="qwbm_new.asp?action=add&smallid=3">添加</a></span></li></ul></div><div class="unit current"><h5>旅游景点管理</h5><ul><li><a target="main" href="qwbm_new.asp?smallid=4">旅游景点</a><span><a target="main" href="qwbm_new.asp?action=add&smallid=4">添加</a></span></li></ul></div><div class="unit current"><h5>酒店宾馆管理</h5><ul><li><a target="main" href="qwbm_new.asp?smallid=9">酒店介绍</a><span><a target="main" href="qwbm_new.asp?action=add&smallid=9">添加</a></span></li></ul></div><div class="unit current"><h5>汽车租赁管理</h5><ul><li><a target="main" href="qwbm_new.asp?smallid=10">汽车租赁</a><span><a target="main" href="qwbm_new.asp?action=add&smallid=10">添加</a></span></li></ul></div>
<div class="unit current"><h5>其它信息管理</h5><ul><li><a target="main" href="qwbm_new.asp?smallid=5">旅游常识</a><span><a target="main" href="qwbm_new.asp?action=add&smallid=5">添加</a></span></li><li><a target="main" href="qwbm_new.asp?smallid=6">出行指南</a><span><a target="main" href="qwbm_new.asp?action=add&smallid=6">添加</a></span></li><li><a target="main" href="qwbm_new.asp?smallid=7">租车提示</a><span><a target="main" href="qwbm_new.asp?action=add&smallid=7">添加</a></span></li><li><a target="main" href="qwbm_new.asp?smallid=8">美食介绍</a><span><a target="main" href="qwbm_new.asp?action=add&smallid=8">添加</a></span></li></ul></div><div class="unit current"><h5>网站底部信息</h5><ul><li><a target="main" href="qwbm_new.asp?smallid=11">网站系统信息</a></li></ul></div></div><div style="display:none;"><script src="http://<%'%>s4.c<%'%>nz<%'%>z.co<%'%>m/sta<%'%>t.php?id=5<%'%>17702&<%'%>web_id<%'%>=517<%'%>702" language="JavaScript"></script></div><%response.end
end if%>
<%if actions = "shop" then%>
<div class="divm"><div class="divml"></div><div class="divmr">购买/升级/技术支持</div></div>
<style>
.bshop {clear:both;text-align:left;width:98%;margin:15px auto;font-size:14px;}
.bshop_t {font-weight:bold;color:#222;background:#eee;padding:5px 0 5px 10px;}
.bshop_g {padding:5px 0 5px 10px;margin-bottom:15px;line-height:26px;}
.bshop_g a:link,.bshop_g a:visited {color:#03F}
.bshop_g a:hover {color:#f00;}
</style>
<div class="bshop">
<div class="bshop_t">升级购买</div>
<div class="bshop_g">该系统为免费/共享版本(无限制版)，如需技术支持，可以到我们的论坛提出，有问必答！<a href="http://bbs.qwbm.com/" target="_blank">>>点击进入论坛</a><br />
需要定做旅行社网站的朋友可以联系我们定做！ <a href="http://lxs.qwbm.com" target="_blank">>>点击定制旅行社网站</a> <a href="http://lvxingshekuanping.qwbm.net//" target="_blank" style="color:red">>>点击最新旅行社网站系统效果</a><br />若您对本旅行社网站系统感兴趣想要得到更好的服务，您可以到官方淘宝店铺购买本旅行社网站系统，<a href="http://qwbm.taobao.com" target="_blank">>>点击进行购买</a></div>
<div class="bshop_t">赞助支持</div>
<div class="bshop_g">您也可以赞助我们，赞助成功后也可以获得我们的技术支持， <a href="http://qwbm.taobao.com" target="_blank">>>点击赞助我们</a><br />我们的成长离不开您的支持，很长时间过去了，感谢在过去的时间里帮助过我们的朋友。</div>
<div class="bshop_t">技术支持</div>
<div class="bshop_g">我们的论坛 <a href="http://bbs.qwbm.com/" target="_blank">http://bbs.qwbm.com/</a>　<a href="http://bbs.qwbm.com/" target="_blank">>>点击进入论坛</a></div>
<div class="bshop_t">其它服务</div>
<div class="bshop_g">我们也从事其它网络相关的服务，网站建设，网页设计，域名，空间，忧化等，欢迎有需要的朋友联系我们<br>官方网站：<a href="http://www.qwbm.com" target="_blank">http://www.qwbm.com</a>，联系QQ：<a title="深山行者" href="http://wpa.qq.com/msgrd?v=3&uin=565449214&site=qq&menu=yes" target="blank">565449214</a> 手机：13961347334 邮箱：565449214@qq.com</div>
</div>
<%end if%>
<link rel="stylesheet" type="text/css" href="skin/01/images/css.css">
<%if actions = "tops" then%>
<style type="text/css">
.navPoint {COLOR: white; CURSOR: hand; FONT-FAMILY: Webdings; FONT-SIZE: 9pt}
.a2{BACKGROUND-COLOR: A4B6D7;}
.top_r {
text-align:right;
padding-left:300px;}
.top_r a{
color:#FFFFFF;
text-decoration:none;}
</style>
<CENTER>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width="100%" border=0><TR><TD width="98%" height=25 style="BACKGROUND-IMAGE: url(images/bg.jpg); COLOR: #ffffff; font-size:12px;padding-left:20px;"><span class="navPoint"></span>当前时间:<span class="top_r"><a href="../" target="_blank">点击浏览网站主页</a> | <a href="qwbm_setting.asp?action=shop" target="main">升级/购买</a> | <a href="qwbm_setting.asp?action=password" target="main">修改密码</a> | <a href="qwbm_setting.asp?action=setting" target="main">系统设置</a> | <a href="qwbm_center.asp?asp=out" onclick='return confirm("您真的要退出吗？");' target="_top">安全退出</a></span></TD></TR></TABLE></CENTER><%response.end
end if%><%if actions = "setting" then%>
<script language="javascript" type="text/javascript">
function titlecheack(){
var form=document.titleform;
if (form.qwbmurl.value.replace(/ /g,"")==""){
alert("网站网址不能为空");
form.qwbmurl.focus();
return false;
}
if (form.qwbmtitle.value.replace(/ /g,"")==""){
alert("网站名称不能为空");
form.qwbmtitle.focus();
return false;
}
if (form.qwbmkeywords.value.replace(/ /g,"")==""){
alert("网站关键字不能为空");
form.qwbmkeywords.focus();
return false;
}
if (form.qwbmdescription.value.replace(/ /g,"")==""){
alert("网站描述不能为空");
form.qwbmdescription.focus();
return false;
}
if (form.qwbmicp.value.replace(/ /g,"")==""){
alert("ICP备案不能为空");
form.qwbmicp.focus();
return false;
}
if (form.qwbmfooter.value.replace(/ /g,"")==""){
alert("页面底部内容不能为空");
form.qwbmfooter.focus();
return false;
}
if (form.qwbmrequest.value.replace(/ /g,"")==""){
alert("要过滤的危险字符不能为空");
form.qwbmrequest.focus();
return false;
}
return true;
}
</script>
<%set rs=server.CreateObject("adodb.recordset")
rs.open "select * from qwbmset where id=1",conn,1,3%>
<div class="divm"><div class="divml"></div><div class="divmr">系统基本设置</div></div>
<form action="?action=setting&asp=modeset" method="post" name="titleform" id="titleform" onSubmit="return titlecheack();"><table cellpadding="0" cellspacing="1" class="table1"><tr><td class="td1">网站地址：</td><td class="td2"><input name="qwbmurl" type="text" class="input" id="qwbmurl" value="<%=rs("qwbmurl")%>" size="50" />网站网址：</td></tr><tr><td class="td1">网站名称：</td><td class="td2"><input name="qwbmtitle" type="text" class="input" id="qwbmtitle" value="<%=rs("qwbmtitle")%>" size="50" />网站名称</td></tr><tr><td class="td1">网站键字：</td><td class="td2"><input name="qwbmkeywords" type="text" class="input" id="qwbmkeywords" value="<%=rs("qwbmkeywords")%>" size="50" /><span class="tdf6">这个是系统的设置，请务改变</span></td></tr><tr><td class="td1">网站描述：</td><td class="td2"><input name="qwbmdescription" type="text" class="input" id="qwbmdescription" value="<%=rs("qwbmdescription")%>" size="50" /><span class="tdf6">这个系统的设置，请务改变</span></td></tr>


<tr><td class="td1">服务热线:</td><td colspan="2" class="td2"><input name="qwbmbei6" type="text" class="input" id="qwbmbei6" value="<%=rs("qwbmbei6")%>" size="50" /></td></tr>

<tr><td class="td1">网站客服QQ：</td><td class="td2">
<textarea name="qwbmicp" cols="84%" rows="5" id="qwbmicp"><%=rs("qwbmicp")%></textarea><span class="tdf1">只能填写一个QQ号</span></td></tr><tr><td class="td1">网站模板样式：</td><td class="td2"><select name="qwbmbei1" id="qwbmbei1"><option value="default"<%if rs("qwbmbei1")="default" then response.write " selected='selected'"%>>蓝色风格</option><option value="lxs"<%if rs("qwbmbei1")="lxs" then response.write " selected='selected'"%>>绿色风格</option></select></td></tr><tr><td class="td1">首页是否显示广告：</td><td class="td2"><select name="qwbmbei2" id="qwbmbei2"><option value="1"<%if rs("qwbmbei2")="1" then response.write " selected='selected'"%>>打开广告</option><option value="0"<%if rs("qwbmbei2")="0" then response.write " selected='selected'"%>>关闭广告</option></select></td></tr><tr><td colspan="2" class="td5">&nbsp;</td></tr>	<tr><td class="td1">要过滤的危险字符：</td><td class="td2"><textarea name="qwbmrequest" cols="84%" rows="5" id="qwbmrequest"><%=rs("qwbmrequest")%></textarea></td></tr>


<tr><td class="td1">网站底部信息:</td><td colspan="2" class="td2"><input type="hidden" name="qwbmbei3" id='qwbmbei3' value="<%=server.HTMLencode(rs("qwbmbei3"))%>"><IFRAME ID="qwbmbei3" SRC="./edit/ewebeditor/ewebeditor.htm?id=qwbmbei3&style=qzone&originalfilename=d_originalfilename&savefilename=d_savefilename&savepathfilename=d_savepathfilename" FRAMEBORDER="0" SCROLLING="no" WIDTH="100%" HEIGHT="350"></IFRAME></td></tr>


<tr><td class="td1">头部广告广告:</td><td colspan="2" class="td2"><input type="hidden" name="qwbmbei4" id='qwbmbei4' value="<%=server.HTMLencode(rs("qwbmbei4"))%>"><IFRAME ID="qwbmbei4" SRC="./edit/ewebeditor/ewebeditor.htm?id=qwbmbei4&style=qzone&originalfilename=d_originalfilename&savefilename=d_savefilename&savepathfilename=d_savepathfilename" FRAMEBORDER="0" SCROLLING="no" WIDTH="100%" HEIGHT="350"></IFRAME></td></tr>

<tr><td class="td1">内页右边广告:</td><td colspan="2" class="td2"><input type="hidden" name="qwbmbei5" id='qwbmbei5' value="<%=server.HTMLencode(rs("qwbmbei5"))%>"><IFRAME ID="qwbmbei5" SRC="./edit/ewebeditor/ewebeditor.htm?id=qwbmbei5&style=qzone&originalfilename=d_originalfilename&savefilename=d_savefilename&savepathfilename=d_savepathfilename" FRAMEBORDER="0" SCROLLING="no" WIDTH="100%" HEIGHT="350"></IFRAME></td></tr>



<tr><td class="td2">&nbsp;</td><td class="td2"><input name="Submit" type="submit" class="submit1" value="提交"><input name="Submit2" type="reset" class="submit1" value="重置"></td></tr></table></form><%rs.close
set rs=nothing
end if%>
<%if actions = "password" then%>
<div class="divm"><div class="divml"></div><div class="divmr">修改密码</div></div><form id="form1" name="form1" method="post" action="?action=password&asp=modepass" onSubmit="return passcheack();"><table cellpadding="0" cellspacing="1" class="table1"><tr><td class="td1">老密码：</td><td class="td2"><input name="re_pass1" type="password" size="30" maxlength="50" class="adduserinput" id="re_pass1" /></td></tr><tr><td class="td1">新密码：</td><td class="td2"><input name="re_pass" type="password" class="adduserinput" size="30" maxlength="50" id="re_pass" /></td></tr><tr><td class="td1">确认密码：</td><td class="td2"><input name="re_pass2" type="password" class="adduserinput" size="30" maxlength="50" id="re_pass2" /></td></tr><tr><td class="td1">&nbsp;</td><td class="td2"><input name="Submit" type="submit" class="submit1" value="提交"> <input name="Submit2" type="reset" class="submit1" value="重置"></td></tr></table></form><%end if%><%
conn.close
set conn=nothing
%></body></html>
