<!--#include virtual="/incs/config.asp"-->
<!--#include virtual="/incs/top.asp"-->
<%
chk_log()
chk_newpwr 1,1,2
gid=SafeRequest("gid")
unme=SafeRequest("unme")
if unme="" then
unme=session("usrname")
end if
if gid="" then
call errorpage(-2,"对不起，参数错误！")
end if
conn.open constr
if unme<>"" then
query="select * from memlst where u_nme='"&unme &"'"
rs.open query,conn,1,1
if  rs.eof then
call errorpage(-2,"对不起，会员"&unme&"不存在！")
end if
uprc=rs("u_prc")
rs.close
query="select * from memdtl where u_nme='"& unme&"'"
rs.open query,conn,1,1
if rs.eof then
call errorpage(-2,"对不起，系统错误！")
else
u_copnme_cn=trim(rs("u_copnme_cn"))
u_ctt_cn=trim(rs("u_ctt_cn"))
u_adr_cn=trim(rs("u_adr_cn"))
u_prv_cn=trim(rs("u_prv_cn"))
u_cde=trim(rs("u_cde"))
u_tel=trim(rs("u_tel"))
u_fax=trim(rs("u_fax"))
u_eml=trim(rs("u_eml"))
end if
rs.close
end if
query="select * from v_pdtlst where g_prd='"&gid&"'"
rs.open query,conn,1,1
if rs.eof then
rs.close
call errorpage(-2,"对不起，该产品不存在或已下架！")
end if
iftest=rs("g_tst")
g_svrtpe=rs("g_svrtpe")
%>
<script language="javascript">
	function maila_chk()
	{
		if (document.maila_form.m_bindname.value=="")
		{
			alert ("\n\n必须输入邮局域名！");
			document.maila_form.m_bindname.focus();
			return false;
		}
		ii=0;
     bString="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_.-";
    	 if(document.maila_form.m_bindname.value.length <5 || document.maila_form.m_bindname.value.length > 31)
		{
			alert("\n\n邮局域名不符合命名规范。");
			document.maila_form.m_bindname.focus();
			return false;
		}
		if (document.maila_form.m_bindname.value.indexOf(".")==-1)
		{
			alert("\n\n邮局域名不符合命名规范。");
			document.maila_form.m_bindname.focus();
			return false;
		}
	 while (ii<document.maila_form.m_bindname.value.length)
	 {

		if (bString.indexOf(document.maila_form.m_bindname.value.substring(ii,ii+1))==-1)
		{
			alert("\n\n邮局域名不符合命名规范。");
			document.maila_form.m_bindname.focus();
			return false;
		}
		ii=ii+1;
     }
		if (document.maila_form.m_password.value=="")
		{
			alert ("\n\n必须输入邮局管理密码！");
			document.maila_form.m_password.focus();
			return false;
		}
		ii=0;
     bString="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_";
	 while (ii<document.maila_form.m_password.value.length)
	 {
		if (bString.indexOf(document.maila_form.m_password.value.substring(ii,ii+1))==-1)
		{
			alert("\n\n邮局管理密码必须是 a-z A-Z 0-9 之间的字母和数字组合。");
			document.maila_form.m_password.focus();
			return false;
		}
		ii=ii+1;
     }
		if ( document.maila_form.m_password.value.length < 5)
		{
			alert("\n\n输入密码不得少于5位");
			document.maila_form.m_password.focus();
			return false;
		}
		
			if (document.maila_form.m_copnme_cn.value==""||document.maila_form.m_ctt_cn.value==""||document.maila_form.m_adr_cn.value==""||document.maila_form.m_cde.value==""||document.maila_form.m_tel.value==""||document.maila_form.m_fax.value==""||document.maila_form.m_eml.value=="")
		{	alert('对不起，联系信息填写不完整.');
			return false;
		}
		
		if (confirm("是否确认提交此申请！"))
		return true;
		else
		return false;


	}

	</script>
<table cellspacing=2 cellpadding=0 width="100%" border=0>
  <tbody> 
  <tr> 
    <td  colspan=2 valign="middle"> 
      <table class=line cellspacing=0 cellpadding=0 width="100%" 
                  border=0 align="center">
        <tbody> 
        <tr> 
          <td valign=bottom width="25%" height=20><font color="#000000" class=ddropshadow><b><span class=enbold><strong>企业邮局申请</strong></span></b></font></td>
          <td valign=bottom noWrap align=right 
                        width="75%">&nbsp;</td>
        </tr>
        <tr> 
          <td align=middle width="100%" colspan=2 height=5> </td>
        </tr>
        <tr> 
          <td align=middle width="100%" colspan=2 height=2 class=menuline></td>
        </tr>
        </tbody> 
      </table>
    </td>
  </tr>
  <form action="eml_rez.asp" method=post name=maila_form>
    <tr> 
      <td  colspan=2 valign="top" height="28"> 
        <table width="65%" border="0" cellspacing="0" cellpadding="10" align="center" class=datalist>
          <tr> 
            <td ><b>基本信息</b></td>
          </tr>
          <tr> 
            <td class=datagroup> 
              <table border=0 cellpadding="0" cellspacing="0" width="100%"  align="center">
                <tr> 
                  <td valign=center noWrap height=27 width="20%"> 邮局型号:</td>
                  <td valign=center> 
                    <input style="font-size: 9pt"  type="text" name="prdss" maxlength=16 size=28  value="<%=rs("g_nme")%>(<%=gid%>)" readonly>
                  </td>
                </tr>
                <tr> 
                  <td valign=center noWrap height=27 width="20%"> 所属会员:</td>
                  <td valign=center> 
                    <input style="font-size: 9pt"  type="text" name="unme" maxlength=16 size=28  value="<%=unme%>" >
                    <input type="button" name="Submit22" value="确认" class=btxx  onClick="javascript:location.href='eml_frm.asp?gid=<%=gid%>&pstrotprd=<%=SafeRequest("pstrotprd")%>&pstrotnme=<%=SafeRequest("pstrotnme")%>&pstcolumn=<%=SafeRequest("pstcolumn")%>&unme='+maila_form.unme.value;">
                  </td>
                </tr>
                <% if SafeRequest("pstrotprd")="" then %>
                <tr> 
                  <td height="27"> 申请年限:</td>
                  <td> 
                    <input style="font-size: 9pt"  type="text" name="years" maxlength=32 size=8 value="1" >
                    X 
                    <select name="m_prcstr" style="font-size: 9pt" size="1" >
                      <% 
					  p_cls=session("usrclass")
					  query="select * from v_prclst where p_prd='"&gid&"' and p_cls="&uprc&" order by p_tmetpe,p_yar"
					  rs2.open query,conn,1,1
					  while not rs2.eof 
					  p_yar=rs2("p_yar")
					  if p_yar="1" then
					  p_yar=""
					  end if
					  response.write "<option value='"&rs2("p_prcstr")&"'>"&rs2("p_prc")&"元/"&p_yar&tmenmes(rs2("p_tmetpe"))&"</option>"
					  rs2.movenext
					  wend
					  rs2.close
					  %>
                    </select>
                  </td>
                </tr>
                <% if session("sysclass")>=4 then %>
                <tr > 
                  <td>特殊价格:</td>
                  <td   align="left" > 
                    <input type="text" name="newprice" class=normalform   size="28">
                    元 (如果特殊价格不为空，则所扣金额以特殊价格为准；特别注意：如果特殊价格填写为0，则扣款时将扣0元) </td>
                </tr>
                <% end if %>
                <% end if %>
                <tr> 
                  <td> 邮局域名:</td>
                  <td> 
                    <input size=28 
                  name=m_bindname maxlength="30" class=normalform>
                    如：usr@abc.com，则填abc.com
                    <% if SafeRequest("pstrotprd")<>"" then %>
                    <input type="hidden" name="m_prcstr">
                    <input type="hidden" name="years" value="1">
                    <% end if %>
                  </td>
                </tr>
                <tr> 
                  <td> 管理密码:</td>
                  <td> 
                    <input type="password" style="font-size: 9pt" name="m_password" size="28" value="">
                    由6-16位字母，数字和下划线组成</td>
                </tr>
                <tr> 
                  <td> 机房地址:</td>
                  <td> 
                    <select name="m_plc" style="font-size: 9pt" size="1" >
                      <% query="select distinct  sp_plc,sc_nme from v_svrplc where sp_tpe='"&g_svrtpe&"' order by sc_nme"
					  rs2.open query,conn,1,1
    				  while not rs2.eof 
					  response.write "<option value="&rs2("sp_plc")&">"&rs2("sc_nme")&"</option>"
					  rs2.movenext
					  wend
					  rs2.close
					  %>
                    </select>
                  </td>
                </tr>
                <%if SafeRequest("pstrotprd")="" then %>
                <% if session("usrid")="" then %>
                <tr> 
                  <td style="LINE-HEIGHT: 150%" height="25" width="20%"> 开通方式:</td>
                  <td style="LINE-HEIGHT: 150%"> 
                    <input type=radio value=1 name=bmode checked>
                    先下订单待付款后开通 </td>
                  <% else %>
                <tr> 
                  <td style="LINE-HEIGHT: 150%" width="20%" rowspan="3"> 开通方式:</td>
                  <td style="LINE-HEIGHT: 150%"> 
                    <input 

                  type=radio CHECKED value=0 name=bmode>
                    正式购买 </td>
                <tr> 
                  <td style="LINE-HEIGHT: 150%"> 
                    <input type=radio value=1 name=bmode>
                    提交订单 </td>
                <tr> 
                  <td style="LINE-HEIGHT: 150%"> 
                    <%if iftest<>"0" and isnull(iftest)=false and iftest<>"" then %>
                    <input type=radio 
                  value=2 name=bmode>
                    <font color=#ff0000>试用<%=iftest%>天（试用期间不用付款）</font> 
                    <% end if %>
                  </td>
                </tr>
                <% end if %>
                <%
					else
					 %>
                <tr> 
                  <td style="LINE-HEIGHT: 150%" width="20%" rowspan="3"> 开通方式:</td>
                  <td style="LINE-HEIGHT: 150%"> 
                    <input type=hidden name=bmode value=5>
                    <font color=#ff0000><b>赠送产品</b></font> 
                    <% end if %>
                  </td>
                </tr>
              </table>
            </td>
          </tr>
          <tr> 
            <td ><b>联系信息</b></td>
          </tr>
          <tr> 
            <td class=datagroup> 
              <table border=0 cellpadding="0" cellspacing="0" width="98%"  align="center">
                <tr> 
                  <td width="20%"> 公司名称:</td>
                  <td> 
                    <input style="font-size: 9pt" type="text" name="m_copnme_cn" maxlength="50" size=28 value="<%=u_copnme_cn%>">
                    如：北京市XXX贸易公司,个人填姓名</td>
                </tr>
                <tr> 
                  <td> 联系人:</td>
                  <td> 
                    <input style="font-size: 9pt" type="text" name="m_ctt_cn" maxlength="30" size=28  value="<%=u_ctt_cn%>">
                    如：张三 
                    <INPUT type=hidden value=<%=gid%> name=proid>
                  </td>
                </tr>
                <tr> 
                  <td> 省份城市:</td>
                  <td> 
                    <select name="m_prv_cn" size="1">
                      <option value="<%=u_prv_cn%>"><%=u_prv_cn%></option>
                      <option value="北京">北京</option>
                      <option value="香港">香港</option>
                      <option value="澳门">澳门</option>
                      <option value="台湾">台湾</option>
                      <option value="上海">上海</option>
                      <option value="广东">广东</option>
                      <option value="山东">山东</option>
                      <option value="四川">四川</option>
                      <option value="福建">福建</option>
                      <option value="江苏">江苏</option>
                      <option value="浙江">浙江</option>
                      <option value="天津">天津</option>
                      <option value="重庆">重庆</option>
                      <option value="河北">河北</option>
                      <option value="河南">河南</option>
                      <option value="黑龙江">黑龙江</option>
                      <option value="吉林">吉林</option>
                      <option value="辽宁">辽宁</option>
                      <option value="内蒙古">内蒙古</option>
                      <option value="海南">海南</option>
                      <option value="山西">山西</option>
                      <option value="陕西">陕西</option>
                      <option value="安徽">安徽</option>
                      <option value="江西">江西</option>
                      <option value="甘肃">甘肃</option>
                      <option value="新疆">新疆</option>
                      <option value="湖北">湖北</option>
                      <option value="湖南">湖南</option>
                      <option value="云南">云南</option>
                      <option value="广西">广西</option>
                      <option value="宁夏">宁夏</option>
                      <option value="贵州">贵州</option>
                      <option value="青海">青海</option>
                      <option value="西藏">西藏</option>
                    </select>
                    如：北京</td>
                </tr>
                <tr> 
                  <td> 地址:</td>
                  <td> 
                    <input style="font-size: 9pt" type="text" name="m_adr_cn" maxlength="120" size=28  value="<%=u_adr_cn%>">
                    如：北京市XX路XX大厦XX层</td>
                </tr>
                <tr> 
                  <td> 邮编:</td>
                  <td> 
                    <input style="font-size: 9pt" type="text" name="m_cde" size=28  value="<%=u_cde%>">
                    如：100002</td>
                </tr>
                <tr> 
                  <td> 电话:</td>
                  <td> 
                    <input style="font-size: 9pt" type="text" name="m_tel" size=28 value="<%=u_tel%>">
                    如：+86.01012345678</td>
                </tr>
                <tr> 
                  <td> 传真:</td>
                  <td> 
                    <input style="font-size: 9pt" type="text" name="m_fax" size=28  value="<%=u_fax%>">
                    如：+86.01012345678</td>
                </tr>
                <tr> 
                  <td> 电子邮件:</td>
                  <td> 
                    <input style="font-size: 9pt" type="text" name="m_eml" size=28  value="<%=u_eml%>">
                    如：web@domain.com</td>
                </tr>
              </table>
            </td>
          </tr>
          <tr> 
            <td align="center" > 
              <input type="submit" name="Submit2" value="申 请" class=btxx  onClick="javascript:return maila_chk();">
              <input type="reset" name="Submit3" value="重 填" class=btxx><input type="hidden" name="pstrotprd"  value="<%=SafeRequest("pstrotprd")%>" ><input type="hidden" name="pstrotnme"  value="<%=SafeRequest("pstrotnme")%>" ><input type="hidden" name="pstcolumn" value="<%=SafeRequest("pstcolumn")%>" >
            </td>
          </tr>
        </table>
        <div align="center"><br>
          <br>
          <br>
        </div>
      </td>
    </tr>
  </form>
  </tbody> 
</table>
<br>
<br>
<!--#include virtual="/incs/bottom.asp"-->
