<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%
dim startime
startime=timer()
%>
<!--#include file="cgi/Config.asp"-->
<%
Dim qudao,dinggouma,lailu
qudao=trim(request("qudao"))
dinggouma=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
if not mobj.testreg(dinggouma,"^\d{1,3}$") then dinggouma=0
dinggouma=cint(dinggouma)
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
if hasRs then 
	if q_yangshi=1 then 
		liHeight=liHeight*(ubound(RsA,2)+1)
	else
		liHeight=45
	end if
end if

%>
<!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/jquery-1.7.1.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>
<script language="javascript" src="js/jscroller-0.4.js"></script>

<style type="text/css">
*{padding:0;margin:0;}
body{font:12px "宋体",Arial,Verdana;color:#000;text-align:left;background-color:#FFF;} 
a:link,a:visited{color:#000;text-decoration:none;}a:hover{color:#F00;text-decoration:underline;}
ul,li{list-style:none;display:block;}
input,button,select{font:100% arial,helvetica,clean,sans-serif;}
img,a img{border:0 none;}
em{font-style:normal;color:#F00;margin-right:6px;}
.kda{width:140px;}
.kdb{width:410px; letter-spacing:1px;}
#wforder{width:924px;height:609px;overflow:hidden;margin:0 auto;padding:10px;border:3px solid #CC0;}
.wforderl{float:left;width:580px;}
.wforderr{float:right;width:290px;padding-left:20px;border-left:2px dotted #CC0;}
.wforderl,.wforderr{height:609px;overflow:hidden;}
.wftitle{height:35px;line-height:35px;font-size:15px;color:#F00;font-family:"黑体";margin-bottom:10px;border-bottom:2px dotted #CC0;}
.bdbox li{width:580px;height:30px;line-height:20px;padding:4px 0 0;*padding:0;_padding:0;border-bottom:1px solid #e4e4e4;}
.bdbox li input.dxk{display:block;float:left;width:15px;height:15px;color:#F00;padding:1px 1px 0 0;cursor:pointer;background-color:#E6E6E6;}
.bdbox li label{display:block;float:left;height:18px;line-height:18px;background-color:#F5F5F5;margin:0 20px 0 6px;cursor:pointer;}
.bdbox li span.bdl{float:left;width:80px;line-height:24px;text-align:right;}
.bdbox li span.bdr{float:right;width:480px;padding-left:10px;border-left:1px solid #CCC;}
.bdbox li span.bdr #showprit{clear:both;display:inline;font-family:Arial,Verdana;font-size:14px;font-weight:bold;color:#F60;margin:0 5px;}
.select{display:inline;float:left;padding:3px 6px;border:1px solid #CCC;}
.select div{float:left;}
.select>div{overflow:hidden;}
.select div select{font-size:14px;color:#C00;background-color:#FFF;}
* html .select div select{display:block;float:left;margin:-2px;}
.select div>select{display:block;float:none;margin:-2px;}
.select:hover{border:1px solid #999;}
.bdbox li.product{ }
.bdbox li.shsj{height:62px;}
.bdbox li.pay{height:90px;}
.bdbox li.guest{height:64px;}
.bdbox li.code{height:30px;border:none;}
.bdbox li span.bdr .payaa{height:25px;padding-top:3px;}
.bdbox li span.bdr .paybb{height:45px;color:#bd0000;padding:8px 6px 0;border:1px dotted #CCC;background-color:#f9f9f9;}
.bdbox li.code img{width:48px;height:26px;vertical-align:middle;cursor:pointer;}
.bdbox li span.bdr input.txt{height:22px;line-height:22px;vertical-align:middle;font-size:14px;color:#060;padding:0 6px;border:none;outline:none;border:1px solid #c8c8c8;background:url(/images/putbg.jpg) no-repeat;}
.bdbox li span.bdr input.txt2{width:50px;height:26px;line-height:26px;vertical-align:middle;text-align:center;font-weight:bold;margin-right:5px;}
.bdbox li span.bdr textarea.guest{height:40px;font-size:12px;color:#060;padding:6px;border:none;border:1px solid #c8c8c8;}
.bdbox li input.send{width:115px;height:28px;padding:0 0 2px;padding:2px 0 0 0\9;color:#C00;vertical-align:middle;cursor:pointer;border:0;background:url(/images/wfsub.gif) no-repeat;}
#wffahuo{width:275px;height:417px;line-height:1.8em;color:#666;padding:0 0 0 15px;margin-bottom:15px;}
.proselect{ ; padding:5px; font-size:14px; line-height:160%;}

.messagescroll{ float:left; margin-top:5px;  width:276px; overflow:hidden; height:426px;position: relative;}
.red{ color:#FF0000}
#mobile,#consignee{ font-size:15px; font-weight:700; color:#000099; letter-spacing:2px;} 
.clear{ width:100%; margin:0px auto; clear:both; height:3px;}
</style>

<title></title>
</head>

<body>
<div id="wforder">
    <div class="wforderl">
	    <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%>" />
		    <div class="wftitle"><img src="images/t_xd.jpg"/></div>
			<div class="bdbox">
			    <ul>
					<li class="product" style="height:<%=liHeight%>px; line-height:26px;">
                  <div class="clear"></div>
					    <span class="bdl"><img src="images/l_cp.jpg"/></span>
						<span class="bdr">
						<%
						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
							
							%>
</span> <div class="clear"></div></li>
				  <li><span class="bdl"><img src="images/l_name.jpg"/></span><span class="bdr"><input name="consignee" type="text" class="txt " id="consignee" size="16" maxlength="10" />
					订购码：<input name="dinggouma" type="hidden" value="<%=dinggouma%>" /><font style="font-size:16px; color:#F00; font-weight:700;"><%=dinggouma%></font>
				  </span></li>
					<li><span class="bdl"><img src="images/l_tel.jpg"/></span><span class="bdr"><input name="mobile" type="text" class="txt kda" id="mobile" maxlength="11" />
					</span></li>
					<li><span class="bdl"><img src="images/l_phone.jpg"/></span><span class="bdr"><input name="tel" type="text" class="txt kda" maxlength="15" />
			    </span></li>
					
					<li><span class="bdl"><img src="images/l_dz.jpg"/></span><span class="bdr"><input name="address" type="text" class="txt kdb" id="address" maxlength="60"  />
					</span></li>
					<li><span class="bdl"><img src="images/l_yp.jpg"/></span><span class="bdr"><input name="zipcode" type="text" class="txt kda" id="zipcode" maxlength="10" />
					</span></li>
					<li class="shsj">
					    <span class="bdl">送货时间</span>
						<span class="bdr">
						    <input type="radio" checked="checked" name="best_time" id="shsja" value="1" class="dxk" /><label for="shsja">工作日、双休日与假日均可送货</label><br />
							<input type="radio" name="best_time" id="best_time" value="2" class="dxk" /><label for="shsjb">只工作日送货（双休日、假日不用送）</label><br />
							<input type="radio" name="best_time" id="best_time" value="3" class="dxk" /><label for="shsjc">只双休日、假日送货（工作日不用送）</label>
						</span>					</li>
					<li class="pay">
					    <span class="bdl"><img src="images/l_fk.jpg"/></span>
						<span class="bdr">
						    <div class="payaa">
						        <input type="radio" checked="checked" name="pay_id" id="paya" value="货到付款" onclick="changeItem(0);" class="dxk" /><label for="paya">货到付款</label>
						    </div>
						    <div id="paydiv0" class="paybb kdb paynotedis">
						       <img src="images/l_ts.jpg"/>
						    </div>
						  
						 
					    </span>	
                        </li>
			      <li class="guest"><span class="bdl">留言</span><span class="bdr"><textarea name="user_note" class="guest kdb" id="user_note" onfocus="if(value=='请尽快发货，送货之前请电话联系，谢谢！'){value=''}" onblur="if (value ==''){value='请尽快发货，送货之前请电话联系，谢谢！'}">请尽快发货，送货之前请电话联系，谢谢！</textarea>
</span></li>
				    <li class="code"><span class="bdl"><%if q_check=1 then %><em>*</em>验证码<%end if%></span><span class="bdr"><%if q_check=1 then %><img src="load.asp" alt="看不清，请点击刷新" title="看不清，请点击刷新" onClick="this.src=this.src+'?'" /> <input name="vcode_form" type="text" class="txt txt2" maxlength="4" id="vcode_form" /> <%end if%>
				    <input type="button" name="wfsubmit" onclick="checkbookForm();" value="立即提交订单" class="send" />
				    <input name="lailu" type="hidden" id="lailu" value="<%=lailu%>" /><input name="froma" type="hidden" value="<%=froma%>" />
				    </span></li>
				</ul>
		  </div>
		</form>
	</div>
	<div class="wforderr">
	    <div class="wftitle"><img src="images/t_24tz.jpg"/></div>
		<div id="wffahuo" >
		    <div  id="wffahuo1">
			<div class="messagescroll" id="messagescroll">
				<div id="realscrol"> <%=date()%> <img src="images/1.jpg"/> <br><p><img src="images/fh_red.gif"/></p><br>
				  <%=date()%> <img src="images/2.jpg"/> <br><p><img src="images/fh_red.gif"/></p><br>
				  <%=date()%> <img src="images/3.jpg"/> <br><p><img src="images/fh_red.gif"/></p><br>
				  <%=date()%> <img src="images/3-11.jpg"/> <br><p><img src="images/fh_red.gif"/></p><br>
				  <%=date()%> <img src="images/5.jpg"/> <br><p><img src="images/fh_red.gif"/></p><br>
				  <%=date()%> <img src="images/6.jpg"/> <br><p><img src="images/fh_red.gif"/></p><br>
				  <%=date()%> <img src="images/7.jpg"/> <br><p><img src="images/fh_red.gif"/></p><br>
				  <%=date()%> <img src="images/8.jpg"/> <br><p><img src="images/fh_red.gif"/></p><br>
				  <%=date()%> <img src="images/9.jpg"/> <br><p><img src="images/fh_red.gif"/></p><br>
				  <%=date()%> <img src="images/10.jpg"/> <br><p><img src="images/fh_red.gif"/></p><br>
				  		  <%=date()%> <img src="images/2.jpg"/> <br><p><img src="images/fh_red.gif"/></p><br>
				  <%=date()%> <img src="images/3.jpg"/> <br><p><img src="images/fh_red.gif"/></p><br>
				  <%=date()%> <img src="images/3-11.jpg"/> <br><p><img src="images/fh_red.gif"/></p><br>
				  <%=date()%> <img src="images/5.jpg"/> <br><p><img src="images/fh_red.gif"/></p><br>
				  <%=date()%> <img src="images/6.jpg"/> <br><p><img src="images/fh_red.gif"/></p><br>
				  <%=date()%> <img src="images/7.jpg"/> <br><p><img src="images/fh_red.gif"/></p><br>
				  <%=date()%> <img src="images/8.jpg"/> <br><p><img src="images/fh_red.gif"/></p><br>
				  <%=date()%> <img src="images/9.jpg"/> <br><p><img src="images/fh_red.gif"/></p><br>
				  <%=date()%> <img src="images/10.jpg"/> <br><p><img src="images/fh_red.gif"/></p><br>
				  <%=date()%> <img src="images/6.jpg"/> <br><p><img src="images/fh_red.gif"/></p><br></div></div></div>
			<div id="wffahuo2"></div>
		</div>
		<div style="width:290px;height:137px;overflow:hidden;"><img src="images/tubiao.gif" width="290" height="128" /></div>
		
	</div>
</div>




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

  // Add Scroller Object
  $jScroller.add("#messagescroll","#realscrol","up",1,true);

  // Start Autoscroller
  $jScroller.start();
 });
function changeItem(id){
	 
	 $(".paynotedis").each(function(){
	 	$(this).hide();
	 });
	 $("#paydiv"+id).show();
}

function checkbookForm(){
	if($("#consignee").val()==""){alert("姓名不能为空！");$("#consignee").focus();return false;}
	if($("#mobile").val()==""){alert("联系电话不能为空！");$("#mobile").focus();return false;}
	if(!mt.test($("#mobile").val())){alert("手机号格式错误！");$("#mobile").focus();return false;}
	if($("#address").val()==""){alert("送货地址不能为空！");$("#address").focus();return false;}
	<%if q_check=1 then %>
	if($("#vcode_form").val()==""){alert("验证码不能为空！");$("#vcode_form").focus();return false;}	
	<%end if%>
	$("#liulanform").submit();
}

</script>
<%
dim endtime

endtime=timer()

%>
<!--
页面执行时间：<%=FormatNumber((endtime-startime)*1000,3)%>毫秒
-->

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

</body>
</html>
