<!-- #include file="../inc/checkadmin.asp" -->
<!-- #include file="../inc/conn.asp" -->
<!-- #include file="inc/Config.asp" -->
<% 
if request.QueryString("BasicSettings")="yes" then 
if request.form("web_name")="" then
response.write "<Script language=JavaScript>alert('亲爱的，网站名称不能为空？');history.back();</Script>"
response.end 
end if
if request.form("web_title")="" then
response.write "<Script language=JavaScript>alert('亲爱的，首页标题不能为空？');history.back();</Script>"
response.end 
end if
if request.form("web_url")="" then
response.write "<Script language=JavaScript>alert('亲爱的，网站地址不能为空？');history.back();</Script>"
response.end 
end if
web_name=request.form("web_name")
web_slogan=request.form("web_slogan")
web_title=request.form("web_title")
web_author=request.form("web_author")
web_keywords=request.form("web_keywords")
web_description=request.form("web_description")
web_url=request.form("web_url")
web_icp=request.form("web_icp")
web_mail=request.form("web_mail")
web_qq=request.form("web_qq")
web_tel=request.form("web_tel")
web_add=request.form("web_add")
web_copyright=request.form("web_copyright")
web_xiaoxi=request.form("web_xiaoxi")
web_simg=request.form("web_simg")
web_area=request.form("web_area")
web_maillist=request.form("web_maillist")
web_jztime=request.form("web_jztime")

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

rs("web_name")=""&web_name&""
rs("web_slogan")=""&web_slogan&""
rs("web_title")=""&web_title&""
rs("web_author")=""&web_author&""
rs("web_keywords")=""&web_keywords&""
rs("web_description")=""&web_description&""
rs("web_url")=""&web_url&""
rs("web_icp")=""&web_icp&""
rs("web_mail")=""&web_mail&""
rs("web_qq")=""&web_qq&""
rs("web_tel")=""&web_tel&""
rs("web_add")=""&web_add&""
rs("web_copyright")=""&web_copyright&""
rs("web_xiaoxi")=""&web_xiaoxi&""
rs("web_simg")=""&web_simg&""
rs("web_area")=""&web_area&""
rs("web_maillist")=""&web_maillist&""
rs("web_jztime")=""&web_jztime&""
rs("web_time")=now
rs("web_ip")=Request.ServerVariables("REMOTE_ADDR")
rs.update
response.write "<script>alert('恭喜，基本信息修改成功！');location.href='BasicSettings.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>
<% 
set rs=server.createobject("adodb.recordset")
sql="select * from Web_Setting"
rs.open(sql),conn,1,1
web_name=rs("web_name")
web_slogan=rs("web_slogan")
web_title=rs("web_title")
web_author=rs("web_author")
web_keywords=rs("web_keywords")
web_description=rs("web_description")
web_url=rs("web_url")
web_icp=rs("web_icp")
web_mail=rs("web_mail")
web_qq=rs("web_qq")
web_tel=rs("web_tel")
web_add=rs("web_add")
web_copyright=rs("web_copyright")
web_xiaoxi=rs("web_xiaoxi")
web_simg=rs("web_simg")
web_area=rs("web_area")
web_maillist=rs("web_maillist")
web_jztime=rs("web_jztime")
rs.close
set rs=nothing
%>
			      <table >
			        <thead>
		            </thead>
			        <tbody>
		            </tbody>
			        <form id="form1" method="post" action="?BasicSettings=yes">
			          <tr>
			            <td width="13%">网站名称</td>
			            <td width="87%"><input name="web_name" type="text" class="text" id="web_name" value="<%=web_name%>" size="30" /></td>
		              </tr>
			          <tr >
			            <td>网站Slogan</td>
			            <td><input name="web_slogan" type="text" class="text1" id="web_slogan" value="<%=web_slogan%>" size="40" /></td>
		              </tr>
                      	 <tr >
			            <td>系统消息</td>
			            <td><input name="web_xiaoxi" type="text" class="text1" id="web_slogan" value="<%=web_xiaoxi%>" size="50" /></td>
		              </tr>
			          <tr>
			            <td>首页标题(Title)</td>
			            <td><input name="web_title" type="text" class="text1" id="web_title" value="<%=web_title%>" size="40" /></td>
		              </tr>
			          <tr >
			            <td>网站关键字(keywords)</td>
			            <td><textarea name="web_keywords" cols="65" rows="3" class="text3" id="web_keywords"><%=web_keywords%></textarea></td>
		              </tr>
			          <tr>
			            <td>网站描述(Description)</td>
			            <td><textarea name="web_description" cols="65" rows="3" class="text4"><%=web_description%></textarea></td>
		              </tr>
			          <tr >
			            <td>网站网址：</td>
			            <td><input name="web_url" type="text" class="text"  value="<%=web_url%>" size="30"/></td>
		              </tr>
			          <tr>
			            <td>网站备案号：</td>
			            <td><input name="web_icp" type="text" class="text"  value="<%=web_icp%>" size="30"/></td>
		              </tr>
			          <tr>
			            <td>网站站长</td>
			            <td><input name="web_author" type="text" class="text"  value="<%=web_author%>" size="30" /></td>
		              </tr>
			          <tr>
			            <td>站长QQ:</td>
			            <td><input name="web_qq" type="text" class="text" value="<%=web_qq%>" size="30"/></td>
		              </tr>
			          <tr >
			            <td>站长邮箱：</td>
			            <td><input name="web_mail" type="text" class="text"  value="<%=web_mail%>" size="30"/></td>
		              </tr>
			          <tr>
			            <td>联系电话：</td>
			            <td><input name="web_tel" type="text" class="text"  value="<%=web_tel%>" size="30"/></td>
		              </tr>
                      	<tr>
			            <td>浏览拦截：</td>
			            <td><input name="web_area" type="text" class="text"  value="<%=web_area%>" size="30"/>
			            &nbsp; <font color='#339900'>多个地区以中文逗号隔开，为空不生效</font></td>
		              </tr>
                         <tr>
			            <td>邮件列表：</td>
			            <td><input name="web_maillist" type="text" class="text"  value="<%=web_maillist%>" size="40"/>
			            &nbsp; <font color='#339900'>首页邮件列表Key</font></td>
		              </tr>
                       <tr>
			            <td>建站日期：</td>
			            <td><input name="web_jztime" type="text" class="text"  value="<%=web_jztime%>" size="40"/>
			            &nbsp; <font color='#339900'>格式：2012.11.29</font></td>
		              </tr>
			          <tr>
			            <td>页尾导航：</td>
			            <td><textarea name="web_add" cols="65" rows="3" class="text1"><%=web_add%></textarea></td>
		              </tr>
			          <tr>
			            <td>版权信息：</td>
			            <td><textarea name="web_copyright" cols="65" rows="3" class="text5"><%=web_copyright%></textarea></td>
		              </tr>
                         <tr>
                        <td width="15%">缩略图模式：</td>
                        <td width="85%"><input type="radio" name="web_simg" id="radio3" value="1"  <% if web_simg=1 then response.write "checked='checked'" end if %>/>
                          开启
                          <input name="web_simg" type="radio" id="radio4" value="0" <% if web_simg=0 then response.write "checked='checked'" end if %>/>
                          关闭</td>
                      </tr>
			          <tr>
			            <td>组件状态：</td>
			            <td>
						<%
     on error resume next
     set jpeg1=server.createobject("persits.jpeg")
     if err.number<>0 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>
			      <p><br />
		          </p>
</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" -->