<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%
Dim NCheck:NCheck=false
%>
<!--#include file="cgi/Config.asp"-->
<%
Dim qudao,dinggouma
qudao=trim(request("qudao"))
dinggouma=mobj.CheckBadstr(trim(request("dinggouma")))
froma=mobj.CheckBadstr(trim(request("froma")))
lailu=mobj.CheckBadstr(trim(request("lailu")))
if not mobj.testreg(qudao,"^(\w|-){36}$") then mobj.jscheck "参数非法",1

mobj.crs rs
rs.open "select * from b2c_qudao where q_sn='"&qudao&"'",dstr,1,1
if rs.eof and rs.bof then 
	mobj.drs rs
	mobj.jscheck "参数非法",1
else
	q_id=rs("q_id")
	q_name=rs("q_name")
	q_check=rs("q_check")
	q_max=rs("q_max")
	q_yangshi=rs("q_yangshi")
	mobj.drs rs
end if
Dim RsA,hasRs,liHeight
hasRs=false
liHeight=25
mobj.crs rs
rs.open "select g_guid,g_name,g_default from b2c_goods where g_delete=0 and  g_qudao='"&qudao&"'" ,dstr,1,1 
if not (rs.eof and rs.bof) then 
	RsA=rs.getrows()
	hasRs=true
end if
mobj.drs rs

%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<script src="http://ajax.aspnetcdn.com/ajax/jquery.mobile/1.0/jquery.mobile-1.0.min.js"></script>  
<script>
(window.jQuery || document.write('<script src="/js/jquery-1.7.1.min.js"><\/script>'));   
</script>  
<script language="javascript" >
var mt=/^1((3[0-9])|(5[0-3])|(5[5-9])|(8[05-9])|(4[57]))\d{8}$/i;
</script>
<style>*{ margin:0px; padding:0px; border:0px;}
body{ font-size:12px; font-family:Arial, Helvetica, sans-serif; background-color:#FFFFFF; line-height:22px;}
input{ border:1px solid #999999; height:21px;}
textarea{ border:1px solid #999999; height:35px;}
.proselect{border:1px solid #999999;}
body,td,th {
	font-size: 12px;
}
</style>
</head>

<body>
<form id="liulanform" name="wfform" action="orderok.asp" method="post" target="_self">
	        <input type="hidden" name="p_count" value="1"  />
		   <input name="qudao" type="hidden" value="<%=qudao%>" />
           
<table width="320" border="0" align="center" cellpadding="0" cellspacing="0">
  
  <tr>
    <td height="28" colspan="2" align="center" valign="middle" bgcolor="#9933FF"><font style="color:#FFFFFF; font-weight:bold; font-size:14px;">套餐选择</font></td>
    </tr>
  <tr>
    <td height="40" colspan="2" align="left"><p style="padding-left:5px; line-height:18px;"><%
						if hasRs then 
						if q_yangshi=1 then
						for i=0 to ubound(RsA,2)
						%>
		 <label ><input type="radio"  name="p_id"  value="<%=RsA(0,i)%>" class="dxk" <%if RsA(2,i)=1 then response.Write("checked='checked'")%> /><%=RsA(1,i)%> </label><br />
							
						<%
						next
						%>
							<%else%>
							<select name="p_id" class="proselect">
							<%
							for i=0 to ubound(RsA,2)
							%>
							<option value="<%=RsA(0,i)%>" <%if RsA(2,i)=1 then response.Write("selected='selected'")%>><%=RsA(1,i)%></option>
							<%
							next
							%>
							</select>
	  <%
							end if
							end if
							
							%></p></td>
    </tr>
  
  
  <tr>
    <td width="92" height="28" align="right" valign="middle"><span style="color:#ff0000">*</span> 收货人姓名：</td>
    <td width="228" height="28" valign="middle"><input name="consignee" type="text" class="txt " id="consignee" size="16" maxlength="10" /></td>
    </tr>
  
  <tr>
    <td width="92" height="28" align="right" valign="middle"><span style="color:#ff0000">*</span> 手机号码：</td>
    <td height="28" valign="middle"><input name="mobile" type="text" class="txt kda" id="mobile" maxlength="11" /></td>
    </tr>
  
   <tr>
     <td width="92" height="28" align="right" valign="middle"><span style="color:#ff0000">*</span> 详细地址：</td>
     <td height="28" valign="middle"><input name="address" type="text" class="txt kdb" id="address" maxlength="60" /></td>
   </tr>
  
   <tr>
    <td width="92" height="40" align="right">留言：</td>
    <td height="40"><textarea name="user_note" class="guest kdb" style="font-size:12px;" id="user_note" onfocus="if(value=='请尽快发货，送货之前请电话联系，谢谢！'){value=''}" onblur="if (value ==''){value='请尽快发货，送货之前请电话联系，谢谢！'}">请尽快发货，送货之前请电话联系，谢谢！</textarea></td>
    </tr>
  
   <tr>
    <td height="30" colspan="2" align="center" valign="middle">
				    <input type="submit" name="wfsubmit"  value="立即提交订单" class="send" />
	    <input name="lailu" type="hidden" id="lailu" value="<%=lailu%>" /><input name="froma" type="hidden" value="<%=froma%>" /><input name="dinggouma" type="hidden" value="<%=dinggouma%>" />
				    <input name="isMobile" type="hidden" id="isMobile" value="1" /></td>
    </tr>
 </table>

           

         
</form>



<script type="text/javascript">
 $(document).ready(function(){

 });


function checkbookForm(){
	if($("#consignee").val()==""){alert("姓名不能为空！");$("#consignee").focus();return false;}
	if($("#mobile").val()==""){alert("联系电话不能为空！");$("#mobile").focus();return false;}
	if($("#address").val()==""){alert("送货地址不能为空！");$("#address").focus();return false;}
	
	$("#liulanform").submit();
}

</script>
<div style="float:left; white-space:nowrap; overflow:hidden; display:none; width:1px; height:1px;"><script src="http://s20.cnzz.com/stat.php?id=5230503&web_id=5230503" language="JavaScript"></script></div>
</body>
</html>
