<!--#include file="conn.asp"-->
<html><head><title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../images/css.css" rel="stylesheet" type="text/css">
</head>
<body>
<%dim shjiaid
	shjiaid=request.querystring("id")
	set rs=server.createobject("adodb.recordset")
	rs.open "select * from [shjia] where shjiaid="&shjiaid ,conn,1,1%> <script language=JavaScript>
function IsDigit()
{
  return ((event.keyCode >= 48) && (event.keyCode <= 57));
}
function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}
function checkuserinfo()
{
 if(document.userinfo.useremail.value.length!=0)
  {
    if (document.userinfo.useremail.value.charAt(0)=="." ||        
         document.userinfo.useremail.value.charAt(0)=="@"||       
         document.userinfo.useremail.value.indexOf('@', 0) == -1 || 
         document.userinfo.useremail.value.indexOf('.', 0) == -1 || 
         document.userinfo.useremail.value.lastIndexOf("@")==document.userinfo.useremail.value.length-1 || 
         document.userinfo.useremail.value.lastIndexOf(".")==document.userinfo.useremail.value.length-1)
     {
      alert("Email地址格式不正确！");
      document.userinfo.useremail.focus();
      return false;
      }
   }
 else
  {
   alert("Email不能为空！");
   document.userinfo.useremail.focus();
   return false;
   }
     
  if(checkspace(document.userinfo.dz.value)) {
	document.userinfo.dz.focus();
    alert("对不起，请填写您的详细地址！");
	return false;
  }
  if(checkspace(document.userinfo.pc.value)) {
	document.userinfo.pc.focus();
    alert("对不起，请填写邮编！");
	return false;
  }
  if(document.userinfo.pc.value.length!=6) {
	document.userinfo.pc.focus();
    alert("对不起，请正确填写邮编！");
	return false;
  } 
    if(checkspace(document.userinfo.tel.value)) {
	document.userinfo.tel.focus();
    alert("对不起，请留下您的联系电话！");
	return false;
  }
}
</script> <table class="tableBorder" width="90%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF"> 
<form name="userinfo" method="post" action="saveshjiainfo.asp?id=<%=rs("shjiaid")%>"> 
    <tr background="../img/green.gif"> 
      <td colspan="2" align="center"><b><font color="#ffffff">商家详细资料</font></b></td>
    </tr> 
<tr> <td width="30%" bgcolor="#ffffff" align="right">商店名称：</td><td width="70%" bgcolor="#ffffff" style="PADDING-LEFT: 10px"> 
<font color=red><%=trim(rs("name"))%></font> <!--<input name="name" type="text" id="name" size="30" maxlength="40" value="<%=trim(rs("name"))%>">--> 
</td></tr> <tr> <td bgcolor="#ffffff" align="right">管理员ID：</td><td bgcolor="#ffffff" style="PADDING-LEFT: 10px"> 
<font color=red><%=trim(rs("username"))%></font> <!--<input name="username" type="text" id="username" size="30" maxlength="40" value="<%=trim(rs("username"))%>">--> 
</td></tr> <tr> <td bgcolor="#ffffff" align="right">管理员密码：</td><td bgcolor="#ffffff" style="PADDING-LEFT: 10px"> 
<input name="password" type="password" id="password" size="30" maxlength="30"> 
<font color="#FF0000">不修改为空</font></td></tr> <tr> <td bgcolor="#ffffff" align="right">负责人姓名：</td><td bgcolor="#ffffff" style="PADDING-LEFT: 10px"> 
<input name="name2" type="text" id="name" size="30" maxlength="40" value="<%=trim(rs("name2"))%>"> 
<font color="#FF0000">**</font></td></tr> <tr> <td bgcolor="#ffffff" align="right">电子邮件：</td><td bgcolor="#ffffff" style="PADDING-LEFT: 10px"> 
<input name=useremail type="text" id="useremail" size="30" maxlength="40" value="<%=trim(rs("useremail"))%>"> 
<font color="#FF0000">**</font></td></tr> <tr> <td bgcolor="#ffffff" align="right">详细地址：</td><td bgcolor="#ffffff" style="PADDING-LEFT: 10px"> 
<input name=dz type=text size="40" maxlength="40" value="<%=trim(rs("dz"))%>"> 
<font color="#FF0000">**</font></td></tr> <tr> <td bgcolor="#ffffff" align="right">联系电话：</td><td bgcolor="#ffffff" style="PADDING-LEFT: 10px"> 
<input name=tel type=text  value="<%=trim(rs("tel"))%>" size="12"> <font color="#FF0000">**</font></td></tr> 
<tr> <td bgcolor="#ffffff" align="right">邮政编码：</td><td bgcolor="#ffffff" style="PADDING-LEFT: 10px"> 
<input name=pc type=text  value="<%=trim(rs("pc"))%>" ONKEYPRESS="event.returnValue=IsDigit();" size="12"> 
<font color="#FF0000">**</font></td></tr> <tr> <td bgcolor="#ffffff" align="right">QQ号码：</td><td bgcolor="#ffffff" style="PADDING-LEFT: 10px"> 
<input name=QQ type=text  value="<%=trim(rs("oicq"))%>" size="12" maxlength="12"> 
<font color="#FF0000">**</font></td></tr> <tr> <td bgcolor="#ffffff" align="right">商家二级域名：</td><td bgcolor="#ffffff" style="PADDING-LEFT: 10px">HTTP:// 
<input name=url type=text id=url value="<%=trim(rs("url"))%>" size="33"> </td></tr> 
<tr> <td bgcolor="#ffffff" align="right">商家LOGO地址：</td><td bgcolor="#ffffff" style="PADDING-LEFT: 10px"> 
<input name=logo type=text id=logo value="<%=trim(rs("logo"))%>" size="40"><br> 
<input type="button" name="Submit" value="上传LOGO图片" onClick="window.open('../upload_flash.asp?formname=userinfo&editname=logo&uppath=bookpic&filelx=jpg','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')"> 
<font color="#FF0000">固定 150×60 像素</font></td></tr><tr><td bgcolor="#ffffff" align="right">商家LOGO地址2：</td><TD BGCOLOR="#ffffff" STYLE="PADDING-LEFT: 10px"> 
<INPUT NAME=logo2 TYPE=text ID=logo2 VALUE="<%=trim(rs("logo2"))%>" SIZE="40"><BR> 
<INPUT TYPE="button" NAME="Submit" VALUE="上传LOGO图片" ONCLICK="window.open('../upload_flash.asp?formname=userinfo&editname=logo2&uppath=bookpic&filelx=jpg','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')"> 
<FONT COLOR="#FF0000">固定 560×100 像素</FONT></TD></tr> <tr> <td bgcolor="#ffffff" align="right">公司简介：</td><td bgcolor="#ffffff" style="PADDING-LEFT: 10px"> 
<textarea name="content" rows="6" cols="40"><%=trim(rs("content"))%></textarea> 
</td></tr> <tr> <td bgcolor="#ffffff" align="right">现有订单数：</td><td bgcolor="#ffffff" style="PADDING-LEFT: 10px"> 
<%dim rs2
			set rs2=server.CreateObject("adodb.recordset")
			rs2.open "select distinct(dingdan) from shop_action where shjiaid="&shjiaid&" and zhuangtai<=5",conn,1,1
			response.write rs2.recordcount&" 笔订单"
			rs2.close
			set rs2=nothing
			%> </td></tr> <%rs.close
set rs=nothing
conn.close
set conn=nothing%> <tr> <td bgcolor="#ffffff" height="30"></td><td bgcolor="#ffffff"> 
<input type="submit" name="Submit" value="确认提交">&nbsp; <input type="button" name="Submit2" value="返回上一页" onClick='javascript:history.go(-1)'> 
</td></tr> </form></table><!--#include file="copyright.asp"--> 
</body>
</html>