<!--#include file="0.asp"-->
<!--#include file="../../conn/zkconn.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../../css/css.css" rel="stylesheet" type="text/css">
</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=session("www.loogoo.com")
if request("x")<>"" then
conn.execute("Update user_name set name2='"&request("name2")&"',dz='"&request("dz")&"',pc='"&request("pc")&"',tel='"&request("tel")&"',fax='"&request("fax")&"',email='"&request("email")&"',email2='"&request("email2")&"' 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>
  <div align="center">
    <p>&nbsp;</p>
    <p><font color="#FF3333" class="b2"><strong>为了能及时与您联系，请确定您所填写的内容真实有效。<br>
      以下信息除了传真外其他均为必填</strong></font> <br>
    </p>
  </div>
  <table width="550" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
    <tr bgcolor="#FFFFFF"> 
      <td height="25" colspan="2" valign="middle" bgcolor="#f1f1f1">&nbsp; <font color="#FF3333">&gt;&gt;商家联系信息 
        </font></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="150" height="25" align="right" valign="middle">商店名称&nbsp;</td>
      <td width="350" height="25" valign="middle">&nbsp; <input name="name" type="text" class="wenbenkuang" id="name" value="<%=rs("name")%>" size="30" maxlength="40"  disabled></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="150" height="25" align="right" valign="middle">负责人&nbsp;</td>
      <td width="350" height="25" valign="middle">&nbsp; <input name="name2" type="text" class="wenbenkuang" id="name2" value="<%=rs("name2")%>" size="15" maxlength="20"></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="150" height="25" align="right" valign="middle">公司地址&nbsp;</td>
      <td width="350" height="25" valign="middle">&nbsp; <input name="dz" type="text" class="wenbenkuang" id="dz" value="<%=rs("dz")%>" size="50" maxlength="100"></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="150" height="25" align="right" valign="middle">邮编&nbsp;</td>
      <td width="350" height="25" valign="middle">&nbsp; <input name="pc" type="text" class="wenbenkuang" id="name4" value="<%=rs("pc")%>" size="15" maxlength="6"></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="150" height="25" align="right" valign="middle">电话&nbsp;</td>
      <td width="350" height="25" valign="middle">&nbsp; <input name="tel" type="text" class="wenbenkuang" id="name5" value="<%=rs("tel")%>" size="30" maxlength="40">
        区号-电话号码-分机号码</td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="150" height="25" align="right" valign="middle">传真&nbsp;</td>
      <td width="350" height="25" valign="middle">&nbsp; <input name="fax" type="text" class="wenbenkuang" id="name7" value="<%=rs("fax")%>" size="30" maxlength="40">
        可不埴</td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="150" height="25" align="right" valign="middle">E-mail信箱&nbsp;</td>
      <td width="350" height="25" valign="middle">&nbsp; <input name="email" type="text" class="wenbenkuang" id="name8" value="<%=rs("email")%>" size="10" maxlength="40"> 
        <font color="#FF3333" class="b2">@ </font><font size="3"> 
        <input name="email2" type="text" class="wenbenkuang" id="email2" value="<%=rs("email2")%>" size="15" maxlength="40">
        </font>保护信箱，防止垃圾邮件 </td>
    </tr>
  </table>
  <div align="center"><br>
    <input name="Submit" type="submit" class="go-wenbenkuang" value="提 交" onClick="javascript:return checksignup()">
    &nbsp; 
    <input name="Submit3" type="reset" class="go-wenbenkuang" value="重 置">
  </div>
</form>
</body>
</html>
<%rs.close
set rs=nothing%>