<%@ page language="C#" autoeventwireup="true" inherits="Product_CartConfirmation, s1.chapk.com" %>
<%@ Register Src="../control/header.ascx" TagName="header" TagPrefix="uc1" %>
<%@ Register Src="../control/footer.ascx" TagName="footer" TagPrefix="uc2" %>

<!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>
    <title>结帐_<%=Application["title"]%></title>
    <link rel="stylesheet" type="text/css" href="../css/public.css" />    
    <link type="text/css" rel="stylesheet" href="../css/cart.css" /> 
    <script src="../js/jquery-1.2.6.pack.js" type="text/javascript"></script>
    <script src="../js/index.lib.js" type="text/javascript"></script>
    <script src="../js/nav.js" type="text/javascript"></script>  
    <script language="javascript" src="../js/three.js"></script>
</head>
<body onload="addressInit('cmbProvince', 'cmbCity', 'cmbArea', '<%=cmbProvince %>', '<%=cmbCity %>', '<%=cmbArea %>');">
<uc1:header ID="Header1" runat="server" />
<form id="form1" runat="server">
<div class="zuipin">
    <div class="cat_pro"><ul><li>1.我的购物车</li><li class="current">2.填写核对订单</li><li>3.成功提交订单</li></ul></div>
<div class="form-container">
    <div class="box">
        <div id="payment-div-view">
            <fieldset class="group-select">
                <legend>收货人信息<span></span></legend>
                <div class="items" id="payment_method">
<table width='100%' cellpadding='0' cellspacing='0' class='carttable'>
<tr>
<td><asp:RadioButtonList ID="udz1" runat="server" RepeatLayout="Flow"></asp:RadioButtonList></td>
</tr>
</table>
<script type="text/javascript">
function select()
{
  for(var i = 0;i<document.all.udz1.length;i++)
  {   
    if(document.all.udz1[i].checked==true)
    {   
        var udzvalue=document.all.udz1[i].value;
        if(udzvalue==0)
        {
            document.getElementById("java_dz").style.display="block";
        }
        else
        {
            document.getElementById("java_dz").style.display="none";
        }
    }   
  }
}

function check_form()
{
    var chk=true;
    var udzvalue="";
    var uzffsvalue="";
    var patternMobile = /^13\d{9}$|^15\d{9}$|^18\d{9}$|^17\d{9}$/;
    var patternPostcode = /^\d{6}$/;
    for(var i = 0;i<document.all.udz1.length;i++)
    {   
        if(document.all.udz1[i].checked==true)  
            udzvalue=document.all.udz1[i].value;
    }
    for(var i = 0;i<document.all.uzffs.length;i++)
    {   
        if(document.all.uzffs[i].checked==true)  
            uzffsvalue=document.all.uzffs[i].value;
    }
    if(uzffsvalue+"a"=="a")
    {
        alert ("请选择支付方式！");
		return false;
    }
    if(udzvalue+"a"=="a")
    {
        alert ("请选择收货地址！");
		return false;
    }
    else
    {
        if(udzvalue=="0")
        {
	if (document.all.ONAME.value=="")
	{
		alert ("请填写姓名！");
		document.all.ONAME.focus();
		return false;
	}
	
	if (document.all.OPHONE.value == "" && document.all.OTEL.value == "")
	{
		alert ("电话和手机必须选填其一！");
		document.all.OPHONE.focus();
		return false;
	}
	
    if (document.all.OPHONE.value != "")
	{
		if (!patternMobile.test(document.all.OPHONE.value))
		{
			alert ("请输入正确的手机号码！");
			document.all.OPHONE.focus();
			return false;
		}
	}
	
	if (document.all.OADDRESS.value=="")
	{
		alert ("请填写通信地址！");
		document.all.OADDRESS.focus();
		return false;
	}
	
    if (document.all.OCODE.value=="")
	{
		alert ("请填写邮编！");
		document.all.OCODE.focus();
		return false;
	}
	
	if (!patternPostcode.test(document.all.OCODE.value))
	{
		alert ("您的邮政编码不符合规则！");
		document.all.OCODE.focus();
		return false;
	}
	}
	}
}
</script>


  <table width='100%' cellpadding='0' cellspacing='1' id="java_dz" style="<%=sidz %>">
    <tr>
      <td> 姓名：</td>
      <td><asp:TextBox ID="ONAME" runat="server"></asp:TextBox> <span>请填写您的有效证件上的真实姓名，以免延误您按时收到货物</span></td>
    </tr>  
    <tr>
      <td> 手机：</td>
      <td><label>
        <asp:TextBox ID="OPHONE" runat="server"></asp:TextBox> <span>电话号码、手机号选填一项</span>
      </label></td>
    </tr>
    <tr>
      <td> 电话：</td>
      <td>
        <asp:TextBox ID="OTEL" runat="server"></asp:TextBox><span>格式：区号 - 电话号码 - 分机号</span></td>
    </tr>
    <tr>
      <td> 地区：</td>
      <td>
 <select id="cmbProvince" name="cmbProvince"></select>
<select id="cmbCity" name="cmbCity"></select>
<select id="cmbArea" name="cmbArea"></select> 
      </td>
    </tr>    
    <tr>
      <td> 地址：</td>
      <td><asp:TextBox ID="OADDRESS" runat="server" Width="300px"></asp:TextBox><span>格式：街道-小区-门牌号数-楼层</span></td>
    </tr>
    <tr>
      <td> 邮编：</td>
      <td><asp:TextBox ID="OCODE" runat="server"></asp:TextBox></td>
    </tr>
  </table>  
                </div>
            </fieldset>
        </div>
    </div>
<div class="box">
        <div>
            <fieldset class="group-select">
                <legend>支付方式<span></span></legend>
                <div class="items">
<asp:RadioButtonList ID="uzffs" runat="server" RepeatLayout="Flow">
<asp:ListItem Value="支付宝" Selected="True"><span style="color:#FF0000">支付宝</span></asp:ListItem>
<asp:ListItem Value="财付通">财付通</asp:ListItem>
<asp:ListItem Value="网银在线">网银在线</asp:ListItem>
<asp:ListItem Value="货到付款">货到付款</asp:ListItem>
</asp:RadioButtonList>

                </div>
            </fieldset>
        </div>
    </div>
<div class="box">
        <div>
            <fieldset class="group-select">
                <legend>发票信息<span></span></legend>
                <div class="items">
<asp:CheckBox ID="fpiao" runat="server" Text="请提供正规发票或结算收据" />

                </div>
            </fieldset>
        </div>
    </div>    
<div class="box">
        <div>
            <fieldset class="group-select">
                <legend>产品清单和结算<span><a href="default.aspx" id="A3">[返回购物车修改]</a></span></legend>
                <div class="cart_items">
                    <table width="100%" border="0" cellspacing="1" cellpadding="0" id="shopping-cart-table">
                            <tr>
                                <th width="11%">
                                    商品图片
                                </th>
                                <th width="40%">
                                    商品名称
                                </th>
                                <th width="10%">
                                    商城价
                                </th>
                                <th width="10%">
                                    会员价
                                </th>
                                <th width="10%">
                                    数量
                                </th>
                                <th width="8%">
                                    送积分
                                </th>
                                <th width="11%">
                                    小计
                                </th>
                            </tr>
                            <%=Pays%>
                    </table>
                </div>
                
                <div class="accounttotal">
                    <div class="preferential" id="coupon-form-edit">
                        <span class="fb">订单备注:&nbsp;&nbsp;&nbsp;&nbsp;</span>
                        <asp:TextBox ID="s_bz" runat="server" Width="520px" CssClass="inputtext"></asp:TextBox>
                        <div class="cgray">
                            (温馨提示：您可以在这里填写您的附加备注信息。)
                        </div>
                        <div class="cgray" id="bonustoselect">
                        </div>
                    </div>
                    <%=zMoney%>
                </div>
                <div class="ordokbuttonrow" id="co-review-form-submit">
                <asp:Button ID="btn_ok" runat="server" CssClass="ordokbtn" Text="确定订单 , 提交" onclick="btn_ok_Click1" />
                </div>
            </fieldset>
        </div>
    </div>  

</div>



</div>

</form>
    
    
<uc2:footer ID="Footer1" runat="server" />    
</body>
</html>
