<!-- #include file="../inc/checkadmin.asp" -->
<!-- #include file="../inc/conn.asp" -->
<!-- #include file="inc/Config.asp" -->

<% 
if request.QueryString("AdvancedSettings")="yes" then 

lysh=request.form("lysh")
plsh=request.form("plsh")
pltz=request.form("pltz")
lytz=request.form("lytz")

huifupl=request.form("huifupl")
huifuly=request.form("huifuly")

fjryx=request.form("fjryx")
fjrmc=request.form("fjrmc")
hxdz=request.form("hxdz")
faname=request.form("faname")
fapass=request.form("fapass")
smtpname=request.form("smtpname")
z_jsmail=request.form("z_jsmail")
z_title=request.form("z_title")

h_title=request.form("h_title")


set rs=server.createobject("adodb.recordset")
sql="select * from Web_Advanced_Settings"
rs.open sql,conn,1,3

rs("lysh")=""&lysh&""
rs("plsh")=""&plsh&""
rs("pltz")=""&pltz&""
rs("lytz")=""&lytz&""

rs("huifupl")=""&huifupl&""
rs("huifuly")=""&huifuly&""

rs("fjryx")=""&fjryx&""
rs("fjrmc")=""&fjrmc&""
rs("hxdz")=""&hxdz&""
rs("faname")=""&faname&""
rs("fapass")=""&fapass&""
rs("smtpname")=""&smtpname&""
rs("z_jsmail")=""&z_jsmail&""
rs("z_title")=""&z_title&""

rs("h_title")=""&h_title&""


rs.update
response.write "<script>alert('恭喜，高级信息修改成功！');location.href='AdvancedSettings.asp'</script>"
rs.close
set rs=nothing
response.end
end if
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
		
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
		
		<title>高级设置 - <%=admin_name%></title>
		
		<!--                       CSS                       -->
	  
		<!-- Reset Stylesheet -->
		<link rel="stylesheet" href="images/css/reset.css" type="text/css" media="screen" />
	  
		<!-- Main Stylesheet -->
		<link rel="stylesheet" href="images/css/style.css" type="text/css" media="screen" />
		
		<!-- Invalid Stylesheet. This makes stuff look pretty. Remove it if you want the CSS completely valid -->
		<link rel="stylesheet" href="images/css/invalid.css" type="text/css" media="screen" />	
		
		<!-- Colour Schemes
	  
		Default colour scheme is green. Uncomment prefered stylesheet to use it.
		
		<link rel="stylesheet" href="images/css/blue.css" type="text/css" media="screen" />
		
		<link rel="stylesheet" href="images/css/red.css" type="text/css" media="screen" />  
	 
		-->
		
		<!-- Internet Explorer Fixes Stylesheet -->
		
		<!--[if lte IE 7]>
			<link rel="stylesheet" href="images/css/ie.css" type="text/css" media="screen" />
		<![endif]-->
		
		<!--                       Javascripts                       -->
  
		<!-- jQuery -->
		<script type="text/javascript" src="images/scripts/jquery-1.3.2.min.js"></script>
		
		<!-- jQuery Configuration -->
		<script type="text/javascript" src="images/scripts/simpla.jquery.configuration.js"></script>
		
		<!-- Facebox jQuery Plugin -->
		<script type="text/javascript" src="images/scripts/facebox.js"></script>
		
		<!-- jQuery WYSIWYG Plugin -->
		<script type="text/javascript" src="images/scripts/jquery.wysiwyg.js"></script>
		
		<!-- jQuery Datepicker Plugin -->
		<script type="text/javascript" src="images/scripts/jquery.datePicker.js"></script>
		<script type="text/javascript" src="images/scripts/jquery.date.js"></script>
		<!--[if IE]><script type="text/javascript" src="images/scripts/jquery.bgiframe.js"></script><![endif]-->

		
		<!-- Internet Explorer .png-fix -->
		
		<!--[if IE 6]>
			<script type="text/javascript" src="images/scripts/DD_belatedPNG_0.0.7a.js"></script>
			<script type="text/javascript">
				DD_belatedPNG.fix('.png_bg, img, li');
			</script>
		<![endif]-->
		
	</head>
  
	<body><div id="body-wrapper"> <!-- Wrapper for the radial gradient background -->
		<!-- #include file="Menu.asp" -->
		 <!-- End #sidebar -->
		
		<div id="main-content"> <!-- Main Content Section with everything -->
      			<noscript> <!-- Show a notification if the user has disabled javascript -->
				<div class="notification error png_bg">
					<div>
						亲爱的，你的浏览器不支持。请升级您的浏览器。</div>
				</div>
</noscript>
			
			<!-- Page Head -->
			<div class="content-box">
			  <!-- Start Content Box -->
			  <div class="content-box-header">
			    <h3>高级设置</h3>
			    <ul class="content-box-tabs">
			      <li></li>
			      <!-- href must be unique and match the id of target div -->
		        </ul>
			    <div class="clear"></div>
		      </div>
			  <!-- End .content-box-header -->
			  <div class="content-box-content">
			    <div class="tab-content default-tab" id="tab1">
			      <!-- This is the target div. id must match the href of this div's tab -->
			      <div class="notification attention png_bg"> <a href="#" class="close"><img src="images/images/icons/cross_grey_small.png" title="Close this notification" alt="close" /></a>
			        <div> 操作提示：在这里您可以设置网站的评论、通知等功能。</div>
		          </div>

                  <table width="80%" >
                    <thead>
                    </thead>
                    <tbody>
                      <% 
set rs=server.createobject("adodb.recordset")
sql="select * from Web_Advanced_Settings"
rs.open(sql),conn,1,1
Adva_id=rs("Adva_id")
lysh=rs("lysh")
plsh=rs("plsh")
pltz=rs("pltz")
lytz=rs("lytz")

huifupl=rs("huifupl")
huifuly=rs("huifuly")
fjryx=rs("fjryx")
fjrmc=rs("fjrmc")

hxdz=rs("hxdz")
faname=rs("faname")
fapass=rs("fapass")
smtpname=rs("smtpname")

z_jsmail=rs("z_jsmail")

z_title=rs("z_title")

h_title=rs("h_title")

rs.close
set rs=nothing
%>
                    </tbody>
                    <form id="form1" method="post" action="?AdvancedSettings=yes">
                      <tr>
                        <td width="15%">留言审核：</td>
                        <td width="85%"><input type="radio" name="lysh" id="radio3" value="1"  <% if lysh=1 then response.write "checked='checked'" end if %>/>
                          开启
                          <input name="lysh" type="radio" id="radio4" value="0" <% if lysh=0 then response.write "checked='checked'" end if %>/>
                          关闭</td>
                      </tr>
                      <tr >
                        <td>评论审核：</td>
                        <td><input type="radio" name="plsh" id="radio" value="1" <% if plsh=1 then response.write "checked='checked'" end if %>/>
                          开启
                          <input type="radio" name="plsh" id="radio2" value="0" <% if plsh=0 then response.write "checked='checked'" end if %> />
                          关闭</td>
                      </tr>
                      <tr >
                        <td colspan="2"><strong>发信配置：</strong></td>
                      </tr>
                      <tr >
                        <td>发件人邮箱：</td>
                        <td><input name="fjryx" type="text" class="text" id="fjryx" value="<%=fjryx%>" size="30"/>
                          &nbsp; 必填</td>
                      </tr>
                      <tr>
                        <td>发件人名称：</td>
                        <td><input name="fjrmc" type="text" class="text" id="fjrmc" value="<%=fjrmc%>" size="30"/>
                          &nbsp; 必填</td>
                      </tr>
                      <tr >
                        <td>指定回信地址：</td>
                        <td><input name="hxdz" type="text" class="text" value="<%=hxdz%>" size="30"/>
                          &nbsp; 必填</td>
                      </tr>
                      <tr>
                        <td>邮件发送服务器登录名称：</td>
                        <td><input name="faname" type="text" class="text" value="<%=faname%>" size="30"/>
                          &nbsp; 必填</td>
                      </tr>
                      <tr >
                        <td>邮件发送服务器登录密码：</td>
                        <td><input name="fapass" type="password" class="text" value="<%=fapass%>" size="30"/>
                          &nbsp; 必填</td>
                      </tr>
                      <tr>
                        <td>SMTP服务器名称：</td>
                        <td><input name="smtpname" type="text" class="text" value="<%=smtpname%>" size="30"/>
                          &nbsp; 必填</td>
                      </tr>
                      <tr >
                        <td colspan="2"><strong>通知站长：</strong></td>
                      </tr>
                      <tr >
                        <td>评论通知：</td>
                        <td><input type="radio" name="pltz" id="radio5" value="1" <% if pltz=1 then response.write "checked='checked'" end if %>/>
                          开启
                          <input type="radio" name="pltz" id="radio6" value="0" <% if pltz=0 then response.write "checked='checked'" end if %>/>
                          关闭</td>
                      </tr>
                      <tr >
                        <td>留言通知：</td>
                        <td><input type="radio" name="lytz" id="radio5" value="1" <% if lytz=1 then response.write "checked='checked'" end if %>/>
                          开启
                          <input type="radio" name="lytz" id="radio6" value="0" <% if lytz=0 then response.write "checked='checked'" end if %>/>
                          关闭</td>
                      </tr>
                      <tr >
                        <td>接收通知的邮箱：</td>
                        <td><input name="z_jsmail" type="text" class="text"  value="<%=z_jsmail%>" size="30"/></td>
                      </tr>
                      <tr>
                        <td>发送通知的邮件标题：</td>
                        <td><input name="z_title" type="text" class="text" id="z_title" value="<%=z_title%>" size="30"/>
                          &nbsp;评论/留言 （系统智能判断）</td>
                      </tr>
                      <tr >
                        <td colspan="2"><strong>通知访客：</strong></td>
                      </tr>
                      <tr >
                        <td>评论回复通知：</td>
                        <td><input type="radio" name="huifupl"  value="1"  <%if huifupl=1 then response.write "checked='checked'" end if%>/>
                          开启
                          <input type="radio" name="huifupl"  value="0" <%if huifupl=0 then response.write "checked='checked'" end if%> />
                          关闭</td>
                      </tr>
                      <tr >
                        <td>留言回复通知：</td>
                        <td><input type="radio" name="huifuly" id="radio5" value="1" <% if huifuly=1 then response.write "checked='checked'" end if %>/>
                          开启
                          <input type="radio" name="huifuly" id="radio6" value="0" <% if huifuly=0 then response.write "checked='checked'" end if %>/>
                          关闭</td>
                      </tr>
                      <tr >
                        <td>发送通知的邮件标题：</td>
                        <td><input name="h_title" type="text" class="text" value="<%=h_title%>" size="30"/>
                          &nbsp;留言/评论有了新的回复 （系统智能判断）</td>
                      </tr>
                      <tr >
                        <td>组件状态：</td>
                        <td>
						<%
On Error Resume Next
 Dim JMail
 Set JMail=Server.CreateObject("JMail.Message")
 If JMail Is Nothing  Then 
 Response.Write "<font color='#FF0000'>×</font>"
Else
 Response.Write "<font color='#339900'>√</font>"
End If 
%>
</td>
                      </tr>
                       <tr >
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                      </tr>
                      <tr >
                        <td>&nbsp;</td>
                        <td>
                          <input type="submit" name="button" id="button" value="提交" />
                          &nbsp;
                          <input type="reset" name="button2" id="button2" value="重置" />
                        </td>
                      </tr>
                    </form>
                  </table>
</div>
			    <!-- End #tab1 -->
			    <div class="tab-content" id="tab2"></div>
			    <!-- End #tab2 -->
		      </div>
		  <!-- End .content-box-content --></div> <!-- End .clear --><!-- End .content-box --><!-- End .content-box --><!-- End .content-box -->

			
			
			<!-- Start Notifications --><!-- End Notifications -->
			
<div id="footer">
				<small> <!-- Remove this notice or replace it with whatever you want -->
						<%=Copyright%>
				</small>
			</div><!-- End #footer -->
			
		</div> <!-- End #main-content -->
		
	</div></body>
  

</html>
<!-- #include file="../inc/close.asp" -->