<!--#include file="utf-8.asp" -->
<!--#include file="js/Function.asp" -->
<!--#include file="CheckAdmin.asp" -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<META NAME="copyright" CONTENT="Copyright 2010-2012 - yidacms.com" />
<META NAME="Author" CONTENT="世纪伟成  yidacms.com" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="js/admin.css" rel="stylesheet" type="text/css">
<title>条件参数！</title>
</head>
<body>
<%
'版权：世纪伟成(http://yidacms.com)
'本信息不会影响您网站的正常访问，无论免费用户或是收费用户请保留这里的信息.
'如果您删除了这里的版权信息,将追究法律责任.


        if request("shuaiweb")="condition" Then
                if request("shuaiweb_validation") <> validation  then
					response.write"<script language=javascript>alert('口令码错误，不能修改项目！');history.back(-1);</script>" 
					response.end
                end if 
		Set rs = Server.CreateObject("ADODB.Recordset")
		sql = "SELECT * FROM book_management"
		rs.open sql,dbok,1,3
			rs("book")=trim(request.form("book"))
			rs("wait_mayi")=trim(request.form("wait_mayi"))
			rs("wait_maer")=trim(request.form("wait_maer"))
			rs("wait_masan")=trim(request.form("wait_masan"))
			rs("wait_masi")=trim(request.form("wait_masi"))
			rs("asp_html")=trim(request.form("asp_html"))
			rs("tang_qq")=trim(request.form("tang_qq"))
			rs("language")=trim(request.form("language"))
			rs("shuaiweb_db")=trim(request.form("shuaiweb_db"))
			rs("shuaiweb_upleibie")=trim(request.form("shuaiweb_upleibie"))
			rs("shuaiweb_updaxiao")=trim(request.form("shuaiweb_updaxiao"))
			rs("shuaiweb_mp3")=trim(request.form("shuaiweb_mp3"))
			rs("shuaiweb_buyyes")=trim(request.form("shuaiweb_buyyes"))
			rs("shuaiweb_admintemp")=trim(request.form("shuaiweb_admintemp"))
		rs.update
		rs.close
		set rs=nothing
		response.write "<script language=javascript> alert('成功！');location.replace('admin_condition.asp');parent.location.reload();</script>"
        End If 
		
		set rs = server.createobject("adodb.recordset")
		sql="select * from book_management"
		rs.open sql,dbok,1,1
		
		response.write " <table width=""98%"" border=""0"" cellpadding=""15"" cellspacing=""0"" bordercolor=""#666666"" style=""border-collapse:collapse;"" bgcolor=""#FFFFFF""  align=""center"">"&vbcrlf
		response.write " <form id=""form1"" name=""form1"" method=""post"" action=""admin_condition.asp?shuaiweb=condition"">"&vbcrlf
		response.write "   <tr>"&vbcrlf
		%><td onMouseOver="this.id='aa'" onMouseOut="this.id='bb'" class="cc" style="border-bottom:1px #CCCCCC dashed;">网站总开关<br /><input name="wait_masan" id="wait_masan" type="radio" value="301" <%if rs("wait_masan")="301" then response.write "checked" end if %> > 打开网站  <input type="radio" name="wait_masan" id="wait_masan" value="302" <%if rs("wait_masan")="302" then response.write "checked" end if %> > 关闭网站 <br /><input name="wait_masi" id="wait_masi" type="text" value="输入关闭网站的理由..." onMouseOver="this.focus()" onBlur="if (this.value =='') this.value='输入关闭网站的理由...'" onFocus="this.select()" onClick="if (this.value=='输入关闭网站的理由...') this.value=''"class="win3"></td><%
		response.write "   </tr>"&vbcrlf
		response.write "   <tr>"&vbcrlf
		%><td onMouseOver="this.id='aa'" onMouseOut="this.id='bb'" class="cc" style="border-bottom:1px #CCCCCC dashed;">留言本设置<br /><input name="book" type="radio" value="1" <%if rs("book")="1" then response.write "checked" end if %> /> 开放性留言 <input type="radio" name="book" value="2" <%if rs("book")="2" then response.write "checked" end if %> /> 审核留言内容 <input type="radio" name="book" value="3" <%if rs("book")="3" then response.write "checked" end if %> />  关闭留言板 </td><%
		response.write "   </tr>"&vbcrlf
		response.write "   <tr>"&vbcrlf
		%><td onMouseOver="this.id='aa'" onMouseOut="this.id='bb'" class="cc" style="border-bottom:1px #CCCCCC dashed;">订单系统设置<br /><input name="shuaiweb_buyyes" type="radio" value="1" <%if rs("shuaiweb_buyyes")="1" then response.write "checked" end if %> /> 允许提交订单  <input type="radio" name="shuaiweb_buyyes" value="2" <%if rs("shuaiweb_buyyes")="2" then response.write "checked" end if %> />  关闭提交订单 </td><%
		response.write "   </tr>"&vbcrlf
		response.write "   <tr>"&vbcrlf
		%><td onMouseOver="this.id='aa'" onMouseOut="this.id='bb'" class="cc" style="border-bottom:1px #CCCCCC dashed;">在线编辑模板权限<br /><input name="shuaiweb_admintemp" type="radio" value="yes" <%if rs("shuaiweb_admintemp")="yes" then response.write "checked" end if %> /> 开启  <input type="radio" name="shuaiweb_admintemp" value="no" <%if rs("shuaiweb_admintemp")="no" then response.write "checked" end if %> />  关闭 </td><%
		response.write "   </tr>"&vbcrlf
		response.write "   <tr>"&vbcrlf
		%><td onMouseOver="this.id='aa'" onMouseOut="this.id='bb'" class="cc" style="border-bottom:1px #CCCCCC dashed;">生成网页静态或动态<br /><input name="asp_html" type="radio" value="asp" <%if rs("asp_html")="asp" then response.write "checked" end if %> /> Asp <input name="asp_html" type="radio" value="html" <%if rs("asp_html")="html" then response.write "checked" end if %> disabled /> Html <input name="asp_html" type="radio" value="asphtml" <%if rs("asp_html")="asphtml" then response.write "checked" end if %> /> 伪静态(须支持Rewrite组件 <a href="SysCome.asp">查看</a>)</td></tr><%
		response.write "   <tr>"&vbcrlf
		%><td onMouseOver="this.id='aa'" onMouseOut="this.id='bb'" class="cc" style="border-bottom:1px #CCCCCC dashed;">启动双语言网页<br /><input name="Language" type="radio" value="zh" <%if rs("Language")="zh" then response.write "checked" end if %> /> 简体中文 <input type="radio" name="Language" value="en" <%if rs("Language")="en" then response.write "checked" end if %> disabled /> 简体中文 + English </td><%
		response.write "   </tr>"&vbcrlf
		response.write "   <tr>"&vbcrlf
		%><td onMouseOver="this.id='aa'" onMouseOut="this.id='bb'" class="cc" style="border-bottom:1px #CCCCCC dashed;">启动打开页面时播放的语音<br /><input name="wait_mayi" type="radio" value="101" <%if rs("wait_mayi")="101" then response.write "checked" end if %> /> 启动 <input type="radio" name="wait_mayi" value="102" <%if rs("wait_mayi")="102" then response.write "checked" end if %> /> 关闭  <br /><input type="text" name="shuaiweb_mp3" value="<%=rs("shuaiweb_mp3")%>" class="win3"/> <div class="admintitlebg">1.标签 {gb:music} <br />2.这里可以设置网页背景音乐，仅支持MP3 WAV格式哦！<br />3.请用http://开头，默认欢迎语音地址 images/welcom.wav</div></td><%
		response.write "  </tr>"&vbcrlf
		response.write "   <tr>"&vbcrlf
		%><td onMouseOver="this.id='aa'" onMouseOut="this.id='bb'" class="cc" style="border-bottom:1px #CCCCCC dashed;">启动辅助插件功能<br /><input name="wait_maer" type="radio" value="201" <%if rs("wait_maer")="201" then response.write "checked" end if %> /> 启动 <input type="radio" name="wait_maer" value="202" <%if rs("wait_maer")="202" then response.write "checked" end if %> /> 关闭 <br /><div class="admintitlebg">1.启动后，请刷新后台就会在左侧发现插件管理</div></td><%
 		response.write "  </tr>"&vbcrlf
		response.write "   <tr>"&vbcrlf
 		%><td onMouseOver="this.id='aa'" onMouseOut="this.id='bb'" class="cc" style="border-bottom:1px #CCCCCC dashed;">启动右侧浮动QQ客服<br /><input name="tang_qq" type="radio" value="no" <%if rs("tang_qq")="no" then response.write "checked" end if %> /> 启动 <input type="radio" name="tang_qq" value="off" <%if rs("tang_qq")="off" then response.write "checked" end if %> /> 关闭 </td><%
		response.write "   </tr>"&vbcrlf
		response.write "   <tr>"&vbcrlf
		response.write "     <td onMouseOver=""this.id='aa'"" onMouseOut=""this.id='bb'"" class=""cc"" style=""border-bottom:1px #CCCCCC dashed;"">许可上传文件格式<br /><input type=""text"" name=""shuaiweb_upleibie"" value="""&rs("shuaiweb_upleibie")&""" class=""win3""/> <br /><div class=""admintitlebg"">1.格式如 jpg|gif 请用|格开<br />2.为了您的网站安全，建意您不要把<font color=red> htm asp txt php </font>等程序文件格式设置为许可上传格式<br/></td>"&vbcrlf
		response.write "   </tr>"&vbcrlf
		response.write "   <tr>"&vbcrlf
		response.write "     <td onMouseOver=""this.id='aa'"" onMouseOut=""this.id='bb'"" class=""cc"" style=""border-bottom:1px #CCCCCC dashed;"">上传文件大小控制<br /><input type=""text"" name=""shuaiweb_updaxiao"" value="""&rs("shuaiweb_updaxiao")&""" class=""win3""/> KB<br /><div class=""admintitlebg"">1.单位:KB，1024KB=1M</div> </td>"&vbcrlf
		response.write "   </tr>"&vbcrlf
		response.write "   <tr>"&vbcrlf
		response.write "     <td onMouseOver=""this.id='aa'"" onMouseOut=""this.id='bb'"" class=""cc"" style=""border-bottom:1px #CCCCCC dashed;""><font color=red>*</font> 添写数据库名<br /><input name=""shuaiweb_db"" id=""shuaiweb_db"" type=""text"" value="""&rs("shuaiweb_db")&""" onMouseOver=""this.focus()"" onBlur=""if (this.value =='') this.value='输入数据库名...'"" onFocus=""this.select()"" onClick=""if (this.value=='输入数据库名...') this.value=''"" class=""win3""> <br /><div class=""admintitlebg"">1.如果您从来都没改过数据库名，这在里请保持默认！<br />2.这里是备份数据库的数据库名</div></td>"&vbcrlf
		response.write "   </tr>"&vbcrlf
		response.write "   <tr>"&vbcrlf           
		response.write "     <td onMouseOver=""this.id='aa'"" onMouseOut=""this.id='bb'"" class=""cc"" style=""border-bottom:1px #CCCCCC dashed;""><font color=red>*</font> 口令码<br /><input name=""shuaiweb_validation"" id=""shuaiweb_validation"" type=""password"" class=""win3""></td>"&vbcrlf
		response.write "   </tr>"&vbcrlf
                if validation = 12345 then 
		response.write "   <tr><td><div class=""admintitlebg""><font color=red>口令码默认是 12345 为了安全请及时修改</font></div></td></tr>"&vbcrlf
                else
		response.write ""&vbcrlf
                end if
		response.write "   <tr>"&vbcrlf
		response.write "     <td><input type=""submit"" name=""Submit"" value=""提 交"" class=""inanniu""/></td>"&vbcrlf
		response.write "   </tr>"&vbcrlf
		response.write "  </form>"&vbcrlf
		response.write " </table>"&vbcrlf
		%>
</body>
</html>