<!--#include file="conn.asp"-->
<!--#include file="admin.asp"-->
<!-- #include file="Inc/Head.asp" -->
<%
dim action
action=request.QueryString("action")
'//保存信息
if action="save" then
call manflag
set rs=server.CreateObject("adodb.recordset")
rs.Open "select * from web_config ",conn,1,3
rs("webname")=trim(request("webname"))
rs("wmeta")=trim(request("wmeta"))
rs("webshortname")=trim(request("webshortname"))
rs("webemail")=trim(request("webemail"))
rs("dizhi")=trim(request("dizhi"))
rs("youbian")=trim(request("youbian"))
rs("dianhua")=trim(request("dianhua"))
rs("copyright")=trim(request("copyright"))
rs("weblogo")=trim(request("weblogo"))
rs("webbanner")=trim(request("webbanner"))
rs("weburl")=trim(request("weburl"))
rs("qq")=trim(request("qq"))
rs("icp")=trim(request("icp"))
rs("mailaddress")=request("mailaddress")
rs("mailusername")=request("mailusername")
rs("mailuserpass")=request("mailuserpass")
rs("mailname")=request("mailname")
rs("mailsend")=request("mailsend")
rs.update
rs.close
set rs=nothing
response.Write "<script language=javascript>alert('网站资料修改成功！');history.go(-1);</script>"
end if%>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr> 
    <td width="68" align="center" valign="top" bgcolor="#A0CCD8"><!--#include file="adminleft.asp"--></td>
    <td width="925" align="center" valign="top"> 
      <div align="center">
        <table width="100%" height="0"  border="0" cellpadding="5" cellspacing="0">
          <tr>
            <td height="24" background="image/usercenter_3.jpg">
              <div align="left"> <font color="#FFFFFF"> </font> </div></td>
          </tr>
        </table>
<table class="tableBorder" width="100%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<form name="form1" method="post" action="webconfig.asp?action=save">
<%set rs=server.CreateObject("adodb.recordset")
rs.Open "select * from web_config",conn,1,1%>
<tr bgcolor="#E8F1FF"> 
<td width="30%" align="right" bgcolor="#EFEEE9">网站网址：</td>
<td width="70%" bgcolor="#EFEEE9" style="PADDING-LEFT: 10px">HTTP:// 
  <input name="weburl" type="text" id="weburl" size="21" value="<%=trim(rs("weburl"))%>">
<font color=#ff0000>**</font>
</td>
</tr>
<tr bgcolor="#E8F1FF"> 
<td align="right" bgcolor="#EFEEE9">网站标题：</td>
<td bgcolor="#EFEEE9" style="PADDING-LEFT: 10px"> 
<input name="webname" type="text" id="webname" size="28" value="<%=trim(rs("webname"))%>">
<font color=#ff0000>**</font>
</td>
</tr>
<tr bgcolor="#E8F1FF"> 
<td align="right" bgcolor="#EFEEE9">网站简称：</td>
<td bgcolor="#EFEEE9" style="PADDING-LEFT: 10px"> 
<input name="webshortname" type="text" id="webshortname" size="28" value="<%=trim(rs("webshortname"))%>">
<font color=#ff0000>**</font>
</td>
</tr>
<tr bgcolor="#E8F1FF"> 
<td align="right" bgcolor="#EFEEE9">网站关键字：</td>
<td bgcolor="#EFEEE9" style="PADDING-LEFT: 10px"> 
<input name="wmeta" type="text" id="wmeta" size="28" value="<%=trim(rs("wmeta"))%>">
<font color=#ff0000>**</font>
</td>
</tr>
<tr bgcolor="#E8F1FF"> 
<td align="right" bgcolor="#EFEEE9">公司 e-mail：</td>
<td bgcolor="#EFEEE9" style="PADDING-LEFT: 10px"> 
<input name="webemail" type="text" id="webemail" size="28" value="<%=trim(rs("webemail"))%>">
<font color=#ff0000>**</font>
</td>
</tr>
<tr bgcolor="#E8F1FF"> 
<td align="right" bgcolor="#EFEEE9">公司地址：</td>
<td bgcolor="#EFEEE9" style="PADDING-LEFT: 10px"> 
<input name="dizhi" type="text" id="dizhi" size="28" value="<%=trim(rs("dizhi"))%>">
<font color=#ff0000>**</font>
</td>
</tr>
<tr bgcolor="#E8F1FF"> 
<td align="right" bgcolor="#EFEEE9">公司邮编：</td>
<td bgcolor="#EFEEE9" style="PADDING-LEFT: 10px">
<input name="youbian" type="text" id="youbian" size="28" value="<%=trim(rs("youbian"))%>"	onKeyPress	= "return regInput(this,	/^[0-9]*$/,		String.fromCharCode(event.keyCode))"
onpaste		= "return regInput(this,	/^[0-9]*$/,		window.clipboardData.getData('Text'))"
ondrop		= "return regInput(this,	/^[0-9]*$/,		event.dataTransfer.getData('Text'))">
<font color=#ff0000>**</font>
</td>
</tr>
<tr bgcolor="#E8F1FF"> 
<td align="right" bgcolor="#EFEEE9">公司电话：</td>
<td bgcolor="#EFEEE9" style="PADDING-LEFT: 10px"> 
<input name="dianhua" type="text" id="dianhua" size="28" value="<%=trim(rs("dianhua"))%>">
<font color=#ff0000>**</font>
</td>
</tr>
<tr bgcolor="#E8F1FF"> 
<td align="right" bgcolor="#EFEEE9">网站版权：</td>
<td bgcolor="#EFEEE9" style="PADDING-LEFT: 10px"> 
<input name="copyright" type="text" size="28" value="<%=trim(rs("copyright"))%>">
<font color=#ff0000>**</font>
</td>
</tr>
<tr bgcolor="#E8F1FF"> 
<td align="right" bgcolor="#EFEEE9">在线QQ：</td>
<td bgcolor="#EFEEE9" style="PADDING-LEFT: 10px"> 
<input name="qq" type="text" id="qq" size="28" value="<%=trim(rs("qq"))%>">
<font color=#ff0000>**</font>
</td>
</tr>
<tr bgcolor="#E8F1FF"> 
<td align="right" bgcolor="#EFEEE9">ICP备案证：</td>
<td bgcolor="#EFEEE9" style="PADDING-LEFT: 10px"> 
<input name="icp" type="text" id="icp" size="28" value="<%=trim(rs("icp"))%>">
<font color=#ff0000>**</font>
</td>
</tr>
<!--<tr bgcolor="#E8F1FF"> 
<td align="right">网站Logo：</td>
<td style="PADDING-LEFT: 10px"> 
<input name="weblogo" type="text" id="weblogo" size="28" value="<%=trim(rs("weblogo"))%>">
<font color=#ff0000>**</font>
</td>
</tr>
<tr bgcolor="#E8F1FF"> 
<td align="right">BANNER地址：</td>
<td style="PADDING-LEFT: 10px"> 
<input name="webbanner" type="text" id="webbanner" size="28" value="<%=trim(rs("webbanner"))%>">
<font color=#ff0000>**</font>
760×100
</td>
</tr>--->
<tr bgcolor="#E8F1FF"> 
<td colspan="2" align="center" bgcolor="#EFEEE9">发送邮件的配置 </td>
</tr>
<tr bgcolor="#E8F1FF"> 
<td align="right" bgcolor="#EFEEE9">POP3邮件服务器地址：</td>
<td bgcolor="#EFEEE9" style="PADDING-LEFT: 10px"> 
<input name="mailaddress" type="text" id="mailaddress" size="36" value="<%=trim(rs("mailaddress"))%>">
</td>
</tr>
<tr bgcolor="#E8F1FF"> 
<td align="right" bgcolor="#EFEEE9">设定发送到的邮箱：</td>
<td bgcolor="#EFEEE9" style="PADDING-LEFT: 10px"> 
<input name="mailsend" type="text" id="mailsend" size="36" value="<%=trim(rs("mailsend"))%>">
</td>
</tr>
<tr bgcolor="#E8F1FF"> 
<td align="right" bgcolor="#EFEEE9">邮箱登录名：</td>
<td bgcolor="#EFEEE9" style="PADDING-LEFT: 10px"> 
<input name="mailusername" type="text" id="mailusername" size="36" value="<%=trim(rs("mailusername"))%>">
</td>
</tr>
<tr bgcolor="#E8F1FF"> 
<td align="right" bgcolor="#EFEEE9">登录密码：</td>
<td bgcolor="#EFEEE9" style="PADDING-LEFT: 10px"> 
<input name="mailuserpass" type="password" id="mailuserpass" size="36" value="<%=trim(rs("mailuserpass"))%>">
</td>
</tr>
<tr bgcolor="#E8F1FF"> 
<td align="right" bgcolor="#EFEEE9">在邮件标题中显示的字符：</td>
<td bgcolor="#EFEEE9" style="PADDING-LEFT: 10px"> 
<input name="mailname" type="text" id="mailname" size="36" value="<%=trim(rs("mailname"))%>">
</td>
</tr>
<tr bgcolor="#E8F1FF">
<td bgcolor="#EFEEE9"></td>
<td bgcolor="#EFEEE9" style="PADDING-LEFT: 10px"> 
<input type="submit" name="Submit" value=" 修改保存 ">&nbsp;
<input type="reset" name="Submit2" value=" 重新添写 ">
</td>
</tr>
</form>
</table>
<%rs.Close
  set rs=nothing
  %>        
      </div></td>
  </tr>
</table>
<!-- #include file="Inc/Foot.asp" -->
<script>
	function regInput(obj, reg, inputStr)
	{
		var docSel	= document.selection.createRange()
		if (docSel.parentElement().tagName != "INPUT")	return false
		oSel = docSel.duplicate()
		oSel.text = ""
		var srcRange	= obj.createTextRange()
		oSel.setEndPoint("StartToStart", srcRange)
		var str = oSel.text + inputStr + srcRange.text.substr(oSel.text.length)
		return reg.test(str)
	}
</script>