📄 sitemodify.asp
字号:
<!--#include virtual="/include/conn.asp"-->
<!--#include virtual="/include/md5.asp"-->
<!--#include virtual="/include/check.asp"-->
<% CheckAdminIsLogin() %>
<%
set rs=conn.execute("Select * from Config where ConName='Email'")
Email=rs("Con1")
EmailLoginName=rs("Con2")
EmailLoginPass=rs("Con3")
DomainServer=rs("Con4")
SmtpServer=rs("Con5")
RsClose()
set rs=conn.execute("select * from ShopMember where MemberID=0")
RelName=rs("RelName")
CompanyName=rs("CompanyName")
Tel0=rs("Tel0")
Tel=rs("Tel")
Tel1=rs("Tel1")
fax0=rs("fax0")
fax=rs("fax")
fax1=rs("fax1")
Mobile=rs("Mobile")
MobileType=rs("MobileType")
Email1=rs("Email")
RsClose()
if request.querystring("action")="modify" then
conn.execute("Update Config set Con1='"&Request.Form("Email")&"',Con2='"&Request.Form("EmailLoginName")&"',Con3='"&Request.Form("EmailLoginPass")&"',Con4='"&Request.Form("DomainServer")&"',Con5='"&Request.Form("SmtpServer")&"' ")
conn.execute("Update ShopMember set RelName='"&Request.Form("RelName")&"',CompanyName='"&Request.Form("CompanyName")&"',Tel0='"&Request.Form("Tel0")&"',Tel='"&Request.Form("Tel")&"',Tel1='"&Request.Form("Tel1")&"',fax0='"&Request.Form("fax0")&"',fax='"&Request.Form("fax")&"',fax1='"&Request.Form("fax1")&"',Mobile='"&Request.Form("Mobile")&"',MobileType='"&Request.Form("MobileType")&"',Email='"&Request.Form("Email1")&"' where MemberID=0 ")
response.write"<script>alert('修改成功!');history.go(-1);</script>"
end if
ConnClose()
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css/style.css" rel="stylesheet" type="text/css">
<script language="javascript" src="/js/Manage.js" type="text/javascript"></script>
<style type="text/css">
.style1 {
font-size: 12px;
color: #000000;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
.hs {
COLOR: #999999; LINE-HEIGHT: 16px
}
</style>
</head>
<body>
<form name="config" method="post" action="?action=modify">
<table border="0" align="center" cellpadding="0" cellspacing="1" class="tableBorder" style="width: 100%">
<tr>
<th colspan="2">== 网站基本设置 ==</th>
</tr>
<tr>
<td width="40%" height="22" align="right" class="forumRowHighlight">网站邮箱:</td>
<td width="60%" class="forumRow">
<input name="Email" type="text" size="40" value="<%=Email%>"></td>
</tr>
<tr>
<td width="40%" height="22" align="right" class="forumRowHighlight">用户名:</td>
<td width="60%" class="forumRow">
<input name="EmailLoginName" type="text" size="40" value="<%=EmailLoginName%>"></td>
</tr>
<tr>
<td width="40%" height="22" align="right" class="forumRowHighlight">密
码:</td>
<td width="60%" class="forumRow">
<input name="EmailLoginPass" type="password" size="40" value="<%=EmailLoginPass%>"></td>
</tr>
<tr>
<td width="40%" height="22" align="right" class="forumRowHighlight">域名服务器:</td>
<td width="60%" class="forumRow">
<input name="DomainServer" type="text" size="40" value="<%=DomainServer%>"></td>
</tr>
<tr>
<td width="40%" height="22" align="right" class="forumRowHighlight">smtp服务器:</td>
<td width="60%" class="forumRow">
<input name="SmtpServer" type="text" size="40" value="<%=SmtpServer%>"></td>
</tr>
<tr>
<td width="40%" height="22" align="right" class="forumRowHighlight">联系人姓名:</td>
<td width="60%" class="forumRow">
<INPUT id=PassWord_Config style="WIDTH: 150px" maxLength=16 name=RelName onKeypress="if (event.keyCode < 48 || event.keyCode > 122 || (event.keyCode >57 && event.keyCode<65) || (event.keyCode>90&&event.keyCode<97) ) event.returnValue = false;" value='<%=RelName%>'></td>
</tr>
<tr>
<td width="40%" height="22" align="right" class="forumRowHighlight">公司名称:</td>
<td width="60%" class="forumRow">
<INPUT id=company maxLength=60
size=35 name=CompanyName value='<%=CompanyName%>'></td>
</tr>
<tr>
<td width="40%" height="22" align="right" class="forumRowHighlight">固定电话:</td>
<td width="60%" class="forumRow">
<SPAN class=style1> 区号
- 电话号码
- 分机(非必填)</SPAN><BR><SPAN class=style1>
<INPUT id=FaxCityCode0 maxLength=5 size=4 name=Tel0 value='<%=Tel0%>' style="height: 20px">-<INPUT id=CountryCode maxLength=28 size=15 name=Tel value='<%=Tel%>' style="height: 20px">
<INPUT id=ext_phone_number maxLength=28 size=6 name=Tel1 style="height: 20px" value='<%=Tel1%>'> </SPAN></td>
</tr>
<tr>
<td width="40%" height="22" align="right" class="forumRowHighlight">传真 </td>
<td width="60%" class="forumRow">
<SPAN class=style1> 区号 - 电话号码 - 分机</SPAN><SPAN
class=hs>(非必填)</SPAN><BR>
<INPUT id=FaxCityCode maxLength=5 size=4 name=fax0 value='<%=fax0%>'>-<INPUT id=fax_number maxLength=28 size=15 name=fax value='<%=fax%>' style="height: 20px">
<INPUT id=ext_fax_number maxLength=28 size=6 name=fax1 value='<%=fax1%>'> </td>
</tr>
<tr>
<td width="40%" height="22" align="right" class="forumRowHighlight">手机:</td>
<td width="60%" class="forumRow">
<DIV class=style1>
<INPUT id=mobile0 maxLength=11 size=24
name=Mobile value='<%=Mobile%>'></DIV>
<INPUT type=radio value=0 name=MobileType <% if MobileType=0 then %> checked="checked" <% end if %>> 不公开
<INPUT type=radio value=1 name=MobileType <% if MobileType=1 then %> checked="checked" <% end if %>> 公开
</td>
</tr>
<tr>
<td width="40%" height="22" align="right" class="forumRowHighlight">客户联系邮箱:</td>
<td width="60%" class="forumRow">
<INPUT id=email0 maxLength=50 size=25
name=Email1 value='<%=Email1%>'> <FONT color=#ff3300>*</FONT></td>
</tr>
<tr>
<td height="22" align="center" class="forumRowHighlight" colspan="2">
<input type=Submit class=button value="提 交" name=Submit>
<input type=reset name=Submit2 class=button value="清 除"> </td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -