<!--#include virtual="/incs/config.asp"-->
<!--#include virtual="/incs/top.asp"-->
<!--#include virtual="/incs/present.asp"-->
<%
chk_log()
chk_newpwr 4,28,8
diytpe=2
s_prd=SafeRequest("gid")
if s_prd="" then
call errorpage(-2,"对不起，参数错误(1)！")
end if
conn.open constr
query="select * from pdttpe where pt_tag='ot2'"
rs.open query,conn,1,1
if not rs.eof then
ptnme=trim(rs("pt_nme"))
end if
rs.close
query="select * from v_pdtlst where g_prd='"&s_prd &"'"
rs.open query,conn,1,1
if rs.eof then
rs.close
call errorpage(-2,"对不起，该产品不存在或已下架！")
end if
g_nme=trim(rs("g_nme"))
rs.close
query="select * from othcfg where o_tpe="&diytpe
rs1.open query,conn,1,1
%>
<script language="javascript">
	function ot2_chk()
	{
		if (document.ot2_frm.s_nme.value=="")
		{
			alert ("\n\n必须输入<%=ptnme%>！");
			document.ot2_frm.s_nme.focus();
			return false;
		}
		ii=0;
     bString="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_";
    	 if(document.ot2_frm.s_nme.value.length <4 || document.ot2_frm.s_nme.value.length > 16)
		{
			alert("\n\n<%=ptnme%>必须是4-16位 a-z A-Z 0-9 之间的字母和数字组合。");
			document.ot2_frm.s_nme.focus();
			return false;
		}
	 while (ii<document.ot2_frm.s_nme.value.length)
	 {

		if (bString.indexOf(document.ot2_frm.s_nme.value.substring(ii,ii+1))==-1)
		{
			alert("\n\n<%=ptnme%>必须是4-16位 a-z A-Z 0-9 之间的字母和数字组合。");
			document.ot2_frm.s_nme.focus();
			return false;
		}
		ii=ii+1;
     }
 
		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><%=ptnme%>手工录入</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="ot2_rez.asp" method=post name=ot2_frm>
    <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="98%"  align="center">
                <tr> 
                  <td valign=center noWrap height=27 width="25%"> 服务型号:</td>
                  <td valign=center> 
                    <input style="font-size: 9pt"  type="text" name="s_nme2" maxlength=16 size=28  value="<%=g_nme%>(<%=s_prd%>)" readonly>
                  </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="s_prcstr" style="font-size: 9pt" size="1" >
                      <% 
					  p_cls=session("usrclass")
					  query="select * from v_prclst where p_prd='"&s_prd&"' and p_cls="&p_cls&" 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>
                <tr> 
                  <td> 申请总期限:</td>
                  <td> 
                    <input style="font-size: 9pt"  type="text" name="s_yarcnt" maxlength=16 size=10 value="1" >
                    年/份/套 </td>
                </tr>
                <tr> 
                  <td> 起始日期:</td>
                  <td> 
                    <input size=30 
                  name=s_addtme maxlength="50" value="<%=date()%>">
                    如：2003-8-11 </td>
                </tr>
                <tr> 
                  <td> 到期日期:</td>
                  <td> 
                    <input size=30 
                  name=s_exptme maxlength="50" value="<%=dateadd("yyyy",1,date())%>">
                    如：2004-8-11 </td>
                </tr>
                <tr> 
                  <td> 申请类型:</td>
                  <td> 
                    <select name="s_regtpe" style="font-size: 9pt" size="1" >
                      <option value="1" selected>购买</option>
                      <option value="5">赠送</option>
                    </select>
                  </td>
                </tr>
                <tr> 
                  <td> 申请状态:</td>
                  <td> 
                    <select name="s_regstt" style="font-size: 9pt" size="1" >
                      <option value="0">未开通</option>
                      <option value="1" selected>运行中</option>
                      <option value="2">暂停中</option>
                      <option value="3">处理中</option>
                      <option value="5">管理员停止</option>
                      <option value="6">待开通</option>
                    </select>
                  </td>
                </tr>
                <% end if %>
 
                                <tr> 
                  <td> <%=trim(rs1("o_o0"))%>:</td>
                  <td> 
                    <input style="font-size: 9pt"  type="text" name="s_nme" maxlength=50 size=28 >
                    <%=trim(rs1("o_o0inf"))%>
                  </td>
                </tr>
				<% for i=1 to 8
				if trim(rs1("o_o"&i))<>""then
				 %>
                <tr> 
                  <td width="20%"> <%=trim(rs1("o_o"&i))%>:</td>
                  <td style="line-height:150%"> 
				  <% if cint(rs1("o_o"&i&"t"))=1 then %>
                    <input style="font-size: 9pt" type="text" name="s_o<%=i%>" maxlength="50" size=28>
				  <% elseif cint(rs1("o_o"&i&"t"))=1 then %>
                    <input style="font-size: 9pt" type="password" name="s_o<%=i%>" maxlength="50" size=28>
				  <% else %>
                    <textarea style="font-size: 9pt" name="s_o<%=i%>" cols="58" rows="3"></textarea>
					<% end if %>
                    <%=trim(rs1("o_o"&i&"inf"))%></td>
                </tr>
				<%
				end if
				 next  

				 rs1.close
				 %>
       </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> 所属会员:</td>
                  <td> 
                    <input style="font-size: 9pt" type="text" name="s_unme" maxlength="50" size=28>
                    <input type="button" name="Submit22" value="获取信息" class=btxx  onClick="javascript:parent.frm_hid.location.href='/master/odradd/get_usr.asp?module=ot2&frmname='+window.name+'&usrnme='+document.ot2_frm.s_unme.value;">
                  </td>
                </tr>
                <tr> 
                  <td width="25%"> 公司名称:</td>
                  <td> 
                    <input style="font-size: 9pt" type="text" name="s_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="s_ctt_cn" maxlength="30" size=28  value="<%=u_ctt_cn%>">
                    如：张三 
                    <INPUT type=hidden value=<%=s_prd%> name=s_prd>
                  </td>
                </tr>
                <tr> 
                  <td> 省份城市:</td>
                  <td> 
                    <select name="s_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="s_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="s_cde" size=28  value="<%=u_cde%>">
                    如：100002</td>
                </tr>
                <tr> 
                  <td> 电话:</td>
                  <td> 
                    <input style="font-size: 9pt" type="text" name="s_tel" size=28 value="<%=u_tel%>">
                    如：+86.01012345678</td>
                </tr>
                <tr> 
                  <td> 传真:</td>
                  <td> 
                    <input style="font-size: 9pt" type="text" name="s_fax" size=28  value="<%=u_fax%>">
                    如：+86.01012345678</td>
                </tr>
                <tr> 
                  <td> 电子邮件:</td>
                  <td> 
                    <input style="font-size: 9pt" type="text" name="s_eml" size=28  value="<%=u_eml%>">
                    如：web@domain.com</td>
                </tr>
              </table>
            </td>
          </tr>
          <tr> 
            <td ><b>赠送产品</b></td>
          </tr>
          <tr> 
            <td class=datagroup> 
              <table align="center" border="0" cellpadding="0" cellspacing="0" width="98%" >
                <tr> 
                  <td    height="22" width="25%"> 赠送品一产品编号： </td>
                  <td> 
                    <select name="pstprd1">
                      <option value=""  >没有赠送品</option>
                      <% 
				query="select * from v_pdtlst  where pt_tag<>'set' order by pt_odr,pc_odr"
						rs1.open query,conn,1,1
						while not rs1.eof 
						response.write "<option style='color:"&trim(rs1("pt_clr"))&";' value="&rs1("g_prd")
						response.write ">"&rs1("g_nme")&"----"&trim(Rs1("pt_nme"))&"</option>"
						rs1.movenext
						wend
						rs1.close
						%>
                    </select>
                  </td>
                </tr>
                <tr> 
                  <td   height="22" > 赠送品一： </td>
                  <td  > 
                    <input type="text" size=28  name="pstnme1" value="">
                    填：域名/主机名/数据库名...</td>
                </tr>
                <tr> 
                  <td   height="22"> 赠送品二产品编号： </td>
                  <td> 
                    <select name="pstprd2">
                      <option value=""  >没有赠送品</option>
                      <% 
				query="select * from v_pdtlst  where pt_tag<>'set' order by pt_odr,pc_odr"
						rs1.open query,conn,1,1
						while not rs1.eof 
						response.write "<option style='color:"&trim(rs1("pt_clr"))&";' value="&rs1("g_prd")
						response.write ">"&rs1("g_nme")&"----"&trim(Rs1("pt_nme"))&"</option>"
						rs1.movenext
						wend
						rs1.close
						%>
                    </select>
                  </td>
                </tr>
                <tr> 
                  <td   height="22" > 赠送品二： </td>
                  <td    > 
                    <input type="text" size=28  name="pstnme2" value="">
                    填：域名/主机名/数据库名... </td>
                </tr>
                <tr> 
                  <td     height="22" > 赠送品三产品编号： </td>
                  <td   > 
                    <select name="pstprd3">
                      <option value=""  >没有赠送品</option>
                      <% 
				query="select * from v_pdtlst  where pt_tag<>'set' order by pt_odr,pc_odr"
						rs1.open query,conn,1,1
						while not rs1.eof 
						response.write "<option style='color:"&trim(rs1("pt_clr"))&";' value="&rs1("g_prd")
 						response.write ">"&rs1("g_nme")&"----"&trim(Rs1("pt_nme"))&"</option>"
						rs1.movenext
						wend
						rs1.close
						%>
                    </select>
                  </td>
                </tr>
                <tr> 
                  <td    height="22"> 赠送品三： </td>
                  <td   > 
                    <input type="text" size=28  name="pstnme3" value="">
                    填：域名/主机名/数据库名... </td>
                </tr>
                <tr> 
                  <td    height="22"> 获此赠品的产品编号： </td>
                  <td   > 
                    <select name="pstrotprd">
                      <option value=""  >非赠送品</option>
                      <% 
				query="select * from v_pdtlst  where pt_tag<>'set' order by pt_odr,pc_odr"
						rs1.open query,conn,1,1
						while not rs1.eof 
						response.write "<option style='color:"&trim(rs1("pt_clr"))&";' value="&rs1("g_prd")
						response.write ">"&rs1("g_nme")&"----"&trim(Rs1("pt_nme"))&"</option>"
						rs1.movenext
						wend
						rs1.close
						%>
                    </select>
                  </td>
                </tr>
                <tr> 
                  <td height="22"> 获此赠品的产品： </td>
                  <td   > 
                    <input type="text" size=28  name="pstrotnme" value="">
                    填：域名/主机名/数据库名... </td>
                </tr>
                <tr> 
                  <td   height="22" > 所属套餐ID编号： </td>
                  <td   > 
                    <input type="text" size=28  name="setnme" value="">
                    无则为空</td>
                </tr>
              </table>
            </td>
          </tr>
          <tr> 
            <td align="center" > 
              <input type="submit" name="Submit2" value="录 入" class=btxx  onClick="javascript:return ot2_chk();">
              <input type="reset" name="Submit3" value="重 填" class=btxx>
            </td>
          </tr>
        </table>
        <div align="center"><br>
          <br>
          <br>
        </div>
      </td>
    </tr>
  </form>
  </tbody> 
</table>
<br>
<br>
<!--#include virtual="/incs/bottom.asp"-->



