<%
'商易仿淘宝4.0(多用户)
'ACCESS版演示网站：http://www.ftaobao.com(商易仿淘宝商城)
'SQL版演示网站：http://sql.ftaobao.com
'电话：0571-56907100
'QQ：1147100
%>
<!--#include file="top.asp"-->
<!--#include file="../include/money.asp"-->

<style type="text/css" media="screen">
@import url("../home/css/global/v1.2.css@t=20060512.css");
@import url("../home/css/component.php@t=20060315.css");
@import url("../home/css/sys/detail.php@t=20060522.css");
</style>

<%
hy "/user/login.asp"
'//是否已开店铺
set yz = conn.execute("select zt from shop where huiyuan='"&Request.Cookies(Rikee)("huiyuan")&"'")
if not yz.eof then
Select case yz(0)
case "4"
Response.redirect "note.asp?errid=2"
Response.end
case "3"
Response.redirect "note.asp?errid=3"
Response.end
End Select
Response.redirect "note.asp?errid=4"
Response.end
end if
yz.close:set yz=nothing
set rs = conn.execute("select yz from rz where username='"&Request.Cookies(Rikee)("huiyuan")&"'")
If rs.eof Then 
response.Write("<Script>alert('您还没有任何级别的身份认证，不能申请开店，点击确定到提交身份认证页！谢谢！');window.location='sfrz.asp';</script>")
Response.end
End if
If rs(0)<>2 Then 
response.Write("<Script>alert('您还没有任何级别的身份认证，不能申请开店，点击确定到提交身份认证页！谢谢！');window.location='sfrz.asp';</script>")
Response.end
End if
Select case to_url
case "0"
myurl="."&my_url
case "1"
myurl="@"&my_url
case "2"
myurl="www."&my_url&"/"
End Select%>
<script language="javascript">
function checksignup() {
if ( document.myform.lbid.value ==0 ) {
window.alert('请正确选择店铺的主营业务归类!');
document.myform.lbid.focus();
return false;}
if ( document.myform.name.value == '' ) {
window.alert('请输入商店名称!!');
document.myform.name.focus();
return false;}
if ( document.myform.name2.value == '' ) {
window.alert('请输入负责人姓名!!');
document.myform.name2.focus();
return false;}
if ( document.myform.dz.value == '' ) {
window.alert('请输入公司地址!!');
document.myform.dz.focus();
return false;}

if ( document.myform.pc.value == '' ) {
window.alert('请输入邮编!!');
document.myform.pc.focus();
return false;}

		if ((isNaN(document.myform.pc.value))||(document.myform.pc.value.length!=6)){
			window.alert('请填写6位数字的邮编!!');
			document.myform.pc.focus();
			return false;
		}
if ( document.myform.tel.value == '' ) {
window.alert('请输入手机号码!!');
document.myform.tel.focus();
return false;}
		if ((isNaN(document.myform.tel.value))||(document.myform.tel.value.length<7)){
			window.alert('请填写7位数字以上的电话号码!!');
			document.myform.tel.focus();
			return false;
		}

if ( document.myform.shouji.value == '' ) {
window.alert('请输入手机号码!!');
document.myform.shouji.focus();
return false;}
		if ((isNaN(document.myform.shouji.value))||(document.myform.shouji.value.length!=11)){
			window.alert('请填写11位数字的手机号码!!');
			document.myform.shouji.focus();
			return false;
		}

if ( document.myform.mail.value == '' ) {
window.alert('请输入mail地址!!');
document.myform.mail.focus();
return false;}
if ( document.myform.fw.value == '' ) {
window.alert('请输入营业范围!!');
document.myform.fw.focus();
return false;}
return true;}
</script> 

<table width="762" border="0" align="center" cellpadding="2" cellspacing="0" style='BORDER-COLLAPSE: collapse;MARGIN: 3px'>
  <tr> 
    <td height="15" colspan="2"></td>
  </tr>
  <tr> 
    <td width="180" valign="top"> 
      <!--#include file="left.asp"-->
<td width="582" height="280" valign="top"><table cellspacing="0" cellpadding="2" width="100%" border="0">
        <tbody>
          <tr>
            <td align="middle" height="10"><div align="center">
              <table cellspacing="0" cellpadding="0" width="100%" border="0">
                  <tbody>
                    <tr>
                      <td align="middle"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                          <tr>
                            <td><table border="0" align="left" cellpadding="0" cellspacing="0">
                                <tr>
                                  <td width="1"><IMG SRC="../images/mytaobaobj1_3.gif" WIDTH=3 HEIGHT=25 ALT=""></td>
                                  <td width="120" align="center" background="../images/mytaobaobj1_4.gif"><font color="#FFFFFF">申请店铺</font></td>
                                  <td width="1"><IMG SRC="../images/mytaobaobj1_6.gif" WIDTH=7 HEIGHT=25 ALT=""></td>
                                </tr>
                            </table></td>
                          </tr>
                        </table>
                          <table width="100%" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                              <td height="4" bgcolor="1E88C1"></td>
                            </tr>
                          </table>
                        <table width="100%" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                              <td height="5"></td>
                            </tr>
                        </table></td>
                    </tr>
                  </tbody>
                </table>
            </div></td>
          </tr>
        </tbody>
      </table>
  <div id="UserAgreement">&nbsp;请仔细完整的填写您的店铺资料</div>
  <br> 
      <table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#efefef">
        <form name="myform" id="myform" method="post" action="shopsave.asp">
          
          <tr bgcolor="#FFFFFF">
            <td height="21" colspan="2" align="right" valign="middle" background="../image/bk.gif">&nbsp;</td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td height="25" align="right" valign="middle">店铺归类&nbsp;</td>
            <td height="25" valign="middle">&nbsp;
                <%Response.Write "<select name=lbid size=1 class=wenbenkuang><option value=0 selected>店铺主营业务归类</option>"
set rs = conn.execute("select lbid,lbname from lb order by px desc,lbid")
do while not rs.eof
Response.Write "<option value="&rs("lbid")&">"&rs("lbname")&"</option>"
rs.movenext
loop
rs.close:set rs = nothing
Response.Write "</select>"
set rs = conn.execute("select * from huiyuan where huiyuan='"&Request.Cookies(Rikee)("huiyuan")&"'")%>
              &nbsp;<font color=red>*</font></td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td width="100" height="25" align="right" valign="middle">店铺名称&nbsp;</td>
            <td height="25" valign="middle">&nbsp;
                <input name="name" type="text" class="wenbenkuang" size="30" maxlength="40">
              <font color=red>*</font>不能更改 </td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td width="100" height="25" align="right" valign="middle">真实姓名&nbsp;</td>
            <td height="25" valign="middle">&nbsp;
              <input name="name2" type="text" class="wenbenkuang" size="15" maxlength="20" value="<%=rs("name")%>">
            <font color=red>*</font></td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td height="25" align="right" valign="middle">商家所在地&nbsp; </td>
            <td height="25" valign="middle">&nbsp;
            <input name="dz" type="text" class="wenbenkuang" id="dz" value="<%=rs("dz")%>" size="15" maxlength="20"></td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td width="100" height="25" align="right" valign="middle">商家地址&nbsp;</td>
            <td height="25" valign="middle">&nbsp;
                <input name="dizhi" type="text" class="wenbenkuang" id="dizhi" value="<%=rs("dizhi1")%>" size="40" maxlength="80"><font color=red>*</font></td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td width="100" height="25" align="right" valign="middle">邮编&nbsp;</td>
            <td height="25" valign="middle">&nbsp;
                <input name="pc" type="text" class="wenbenkuang" size="15" maxlength="6" value="<%=rs("yb")%>"><font color=red>*</font>6位数字</td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td width="100" height="25" align="right" valign="middle">电话&nbsp;</td>
            <td height="25" valign="middle">&nbsp;
                <input name="tel" type="text" class="wenbenkuang" size="30" maxlength="40" value="<%=rs("tel")%>"><font color=red>*</font>            </td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td width="100" height="25" align="right" valign="middle">手机&nbsp;</td>
            <td height="25" valign="middle">&nbsp;
                <input name="shouji" type="text" class="wenbenkuang" size="30" maxlength="40" value="<%=rs("shouji")%>"><font color=red>*</font>11位手机号码</td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td height="25" align="right" valign="middle">OICQ&nbsp; </td>
            <td height="25" valign="middle">&nbsp;
            <input name="oicq" type="text" class="wenbenkuang" id="oicq" value="<%=rs("oicq")%>" size="30" maxlength="40"></td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td width="100" height="25" align="right" valign="middle">传真&nbsp;</td>
            <td height="25" valign="middle">&nbsp;
                <input name="fax" type="text" class="wenbenkuang" size="30" maxlength="40">
              可选</td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td width="100" height="25" align="right" valign="middle">E-mail信箱&nbsp;</td>
            <td height="25" valign="middle">&nbsp;
            <input name="mail" type="text" class="wenbenkuang" id="mail" value="<%=rs("mail")%>" size="30" maxlength="40"></td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td width="100" height="25" align="right" valign="middle">开店类型&nbsp;</td>
            <td height="25" valign="middle">&nbsp;
                <input type="radio" name="sl" value="1" checked>
                <%=my_shop_b%>天免费型 /<%=my_info_a%><br>
&nbsp;
<input name="sl" type="radio" value="2">              
收费型(一年<%=my_shop_c%>元)
              /<%=my_info_B%><br>
              &nbsp;</td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td width="100" height="25" align="right" valign="middle">店铺介绍&nbsp;</td>
            <td height="25" valign="middle">&nbsp;
                <textarea name="fw" cols="48" rows="6" class="wenbenkuang" id="fw"></textarea>            </td>
          </tr>
          <tr valign="middle" bgcolor="#FFFFFF">
            <td height="25" colspan="2" align="center" bgcolor="#ffffff"><font color=#ff6600>您在<%=my_name%>申请入驻，即表示您已经阅读并同意遵守<a href="shop.asp">《<%=my_name%>商家入驻须知》</a>。</font></td>
          </tr>
          <tr valign="middle" bgcolor="#FFFFFF">
            <td height="25" colspan="2" align="center" bgcolor="#ffffff">
			  <input name="Submit" type="submit" class="go-wenbenkuang" value="提交申请" onClick="javascript:return checksignup()">
  &nbsp;
  <input name="Submit3" type="reset" class="go-wenbenkuang" value="重 置">  </td>
          </tr>
          <tr valign="middle" bgcolor="#FFFFFF">
            <td height="21" colspan="2" align="center" background="../image/bk1.gif" bgcolor="#ffffff">&nbsp;</td>
          </tr>
      </table>
      <br>
      <hr size="1">
      <div align="center">

  <br></form>
      </div>
      <p align="center"><a href="shopreg.asp"></a></p></td>
  </tr>
</table>
<!--#include file="../bottom.asp"-->
