lianxi.asp

来自「电子商务系统Easy_Buy是一个在线销售系统」· ASP 代码 · 共 129 行

ASP
129 行
字号
<!--#include file="0.asp"-->
<!--#include file="../../conn/conn.asp"-->
<!--#include file="../../conn/nosql.asp" -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../../css/css.css" rel="stylesheet" type="text/css">
<STYLE>
BODY {
	SCROLLBAR-FACE-COLOR: #799ae1;
	SCROLLBAR-HIGHLIGHT-COLOR: #799ae1;
	SCROLLBAR-SHADOW-COLOR: #799ae1;
	SCROLLBAR-3DLIGHT-COLOR: #799ae1;
	SCROLLBAR-ARROW-COLOR: #fcfcfc;
	SCROLLBAR-TRACK-COLOR: #aabfec;
	SCROLLBAR-DARKSHADOW-COLOR: #799ae1;
	SCROLLBAR-BASE-COLOR: #799ae1;
	background-color: #CAD7F7;
}
.STYLE3 {
	color: #FFFFFF;
	font-weight: bold;
}
</STYLE>
</head>
<body>
<script language="javascript">
	<!--//
	function checksignup() {
		if ( document.form.name.value == '' ) {
			window.alert('请输入商店名称!!');
			document.form.name.focus();
			return false;
		}
		if ( document.form.name2.value == '' ) {
			window.alert('请输入负责人姓名!!');
			document.form.name2.focus();
			return false;
		}
		if ( document.form.dz.value == '' ) {
			window.alert('请输入公司地址!!');
			document.form.dz.focus();
			return false;
		}
		if ( document.form.pc.value == '' ) {
			window.alert('请输入邮编!!');
			document.form.pc.focus();
			return false;
		}
		if ( document.form.tel.value == '' ) {
			window.alert('请输入联系电话!!');
			document.form.tel.focus();
			return false;
		}
		if ( document.form.email.value == '' ) {
			window.alert('请输入email地址前缀!!');
			document.form.email.focus();
			return false;
		}
		if ( document.form.email2.value == '' ) {
			window.alert('请输入email地址后缀!!');
			document.form.email2.focus();
			return false;
		}
			return true;
			}
	//-->
</script><%name=nosql(session("www.wygk.cn"))
if request("x")<>"" then
Set s= Server.CreateObject("abodb.recordset")
conn.execute("Update user_name set dz='"&nosql(replace(request("dz"),"'",""))&"',pc='"&nosql(replace(request("pc"),"'",""))&"',name2='"&nosql(replace(request("name2"),"'",""))&"',tel='"&nosql(replace(request("tel"),"'",""))&"',qq='"&nosql(replace(request("qq"),"'",""))&"',fax='"&nosql(replace(request("fax"),"'",""))&"',email='"&nosql(replace(request("email"),"'",""))&"',email2='"&nosql(replace(request("email2"),"'",""))&"',sj3='"&now()&"' where name='"&name&"'")
Response.Write("<script>alert(""设置成功"");location.href=""lianxi.asp"";</script>")
end if
 set rs = conn.execute("select * from user_name where name='"&name&"'") %>
<form name="form" method="post" action=?x=yes>
<br>
  <table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
    <tr bgcolor="#FFFFFF"> 
      <td height="25" colspan="2" valign="middle" background="../../images/admin_bg_11.gif" bgcolor="#f1f1f1">&nbsp; <span class="STYLE3">商家联系信息        </span></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="139" height="25" align="right" valign="middle" bgcolor="#E8F1FF">商店名称&nbsp;</td>
      <td width="843" height="25" valign="middle" bgcolor="#E8F1FF">&nbsp; <input name="name" type="text" id="name" value="<%=rs("name")%>" size="30" maxlength="40"  disabled></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="139" height="25" align="right" valign="middle" bgcolor="#E8F1FF">负责人&nbsp;</td>
      <td width="843" height="25" valign="middle" bgcolor="#E8F1FF">&nbsp; <input name="name2" type="text" id="name2" value="<%=rs("name2")%>" size="15" maxlength="20"></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="139" height="25" align="right" valign="middle" bgcolor="#E8F1FF">公司地址&nbsp;</td>
      <td width="843" height="25" valign="middle" bgcolor="#E8F1FF">&nbsp; <input name="dz" type="text" id="dz" value="<%=rs("dz")%>" size="15" maxlength="100"> 
      此处可以保持不做修改 详细地址可以写在自己店铺的介绍里 </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="139" height="25" align="right" valign="middle" bgcolor="#E8F1FF">邮编&nbsp;</td>
      <td width="843" height="25" valign="middle" bgcolor="#E8F1FF">&nbsp; <input name="pc" type="text" id="name4" value="<%=rs("pc")%>" size="15" maxlength="6"></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="139" height="25" align="right" valign="middle" bgcolor="#E8F1FF">电话&nbsp;</td>
      <td width="843" height="25" valign="middle" bgcolor="#E8F1FF">&nbsp; <input name="tel" type="text" id="name5" value="<%=rs("tel")%>" size="30" maxlength="40">
      区号-电话号码-分机号码</td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="139" height="25" align="right" valign="middle" bgcolor="#E8F1FF">传真&nbsp;</td>
      <td width="843" height="25" valign="middle" bgcolor="#E8F1FF">&nbsp; <input name="fax" type="text" id="name7" value="<%=rs("fax")%>" size="30" maxlength="40">
      可不埴</td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td width="139" height="25" align="right" valign="middle" bgcolor="#E8F1FF">商Q通&nbsp;</td>
      <td height="12" valign="middle" bgcolor="#E8F1FF">&nbsp;&nbsp;<input name="qq" type="text" id="name10" value="<%=rs("qq")%>" size="30" maxlength="40">
      <SPAN style="COLOR: #ff0000"><SPAN 
style="COLOR: #000000">QQ、</SPAN>强烈建意填以方便在线沟通!</SPAN></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="139" height="25" align="right" valign="middle" bgcolor="#E8F1FF">E-mail信箱&nbsp;</td>
      <td width="843" height="25" valign="middle" bgcolor="#E8F1FF">&nbsp; <input name="email" type="text" id="name8" value="<%=rs("email")%>" size="10" maxlength="40"> 
        <font color="#FF3333" size="3">@ </font><font size="3"> 
        <input name="email2" type="text" id="email2" value="<%=rs("email2")%>" size="15" maxlength="40">
      </font>保护信箱,防止垃圾邮件 </td>
    </tr>
  </table>
  <div align="center"><br>
    <input name="Submit" type="submit" value="提 交" onClick="javascript:return checksignup()">
    &nbsp; 
    <input name="Submit3" type="reset" value="重 置">
  </div>
</form>
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?