<!DOCTYPE html>
<html>
	<head>
		<meta charset="{dede:global name='cfg_soft_lang'/}">
		<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
		<title>购物车-下单购买{dede:var.carts.orders_id/}</title>
		<link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/bootstrap.min.css">
		<link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/font/css/font-awesome.min.css">
		<link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/style.css">
		<link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/index.css">
		<script src="{dede:global.cfg_cmsurl/}/static/web/js/jquery.min.js"></script>
	</head>
	<body class="buycarpage">
		<?php include(DEDETEMPLATE."/plus/plus_header.htm") ;?>
		<div class="container">
			<div class="sp-title">
				<h3>商品购买</h3>
			</div>
			<div class="buycar">
				<?php if(!$cfg_ml->IsLogin()){ ?>
				<table cellpadding="0" cellspacing="0" class="table">
					<tr>
						<td style="color:#F00">您好，欢迎来到本网站，请 <a href="../user/login.php?gourl=<?php echo urlencode(GetCurUrl());?>">登录</a> 或 <a href="../user/index_do.php?fmdo=user&dopost=regnew">注册</a></td>
					</tr>
				</table>
				<?php } ?>
				<form id="fixupformid" name="fixupform" action="carbuyaction.php" method="post">
					<input name="do" type="hidden" value="clickout">
					<table cellpadding="0" cellspacing="0" class="table">
						<tr>
							<td class="thisclass">下单购买</td>
							<td>买家付款</td>
							<td>确认收货</td>
							<td>交易结束 </td>
						</tr>
					</table>
					<table width="100%" cellpadding="0" cellspacing="0" class="table">
						<thead>
							<tr>
								<td colspan="6">确认订单信息</td>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td width="180" class="td1">订单编号</td>
								<td>{dede:var.carts.orders_id/}</td>
							</tr>
							<tr>
								<td width="180" class="td1">订单价格</td>
								<td><strong class="fc-f60" id="priceCount">{dede:var.carts.price_count/} 元</td>
							</tr>
							<tr>
								<td width="180" class="td1">商品总数</td>
								<td>{dede:var.carts.cart_count/}件</td>
							</tr>
							<tr>
								<td width="180" class="td1">状态</td>
								<td>下单</td>
							</tr>
						</tbody>
					</table>
					<table width="100%" cellpadding="0" cellspacing="0" class="table">
						<thead>
							<tr>
								<td colspan="6">配送方式</td>
							</tr>
						</thead>
						<tbody>
							{dede:array.shops_deliveryarr}
							<tr>
								<td width="10%" class="td1"><input type="radio" name="pid" value="{dede:value.pid/}">
								</td>
								<td width="90%">
									<p>{dede:value.dname/} <span class="fc-f90">手续费：{dede:value.price/}元</span> <small>{dede:value.des/}.</small></p>
								</td>
							</tr>
							{/dede:array}
						</tbody>
					</table>
					<table width="100%" cellpadding="0" cellspacing="0" class="table">
						<thead>
							<tr>
								<td colspan="8">支付方式</td>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td class="td1"></td>
								<td align="center" valign="middle" style="vertical-align:middle;">名称</td>
								<td align="center">描述</td>
								<td align="center">手续费</td>
							</tr>
							{dede:array.shops_paymentarr}
							<tr onMouseMove="javascript:this.bgColor='#f8f8f8';" onMouseOut="javascript:this.bgColor='#ffffff';">
								<td width="10%" align="right" style="vertical-align:middle;"><input name="paytype" type="radio" value="{dede:value.id/}"></td>
								<td width="20%" valign="middle" style="vertical-align:middle;"> {dede:value.name/} </td>
								<td width="60%"> {dede:value.description/} </td>
								<td width="10%" align="center"> <span class="fc-f60">{dede:value.fee/}元</span></td>
							</tr>
							{/dede:array}
						</tbody>
					</table>
					<table width="100%" cellpadding="0" cellspacing="0" class="table">
						<thead>
							<tr>
								<td colspan="6">确认订单信息</td>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td width="180" class="td1">街道地址</td>
								<td>
									<input name="address" id="address" type="text" class="ipt-txt" size="50">
									<span class="red">*</span>
									<small>请填写街道地址，不能为空!</small>
								</td>
							</tr>
							<tr>
								<td width="180" class="td1">收货人</td>
								<td>
									<input name="postname" id="postname" type="text" class="ipt-txt" size="20">
									<span class="red">*</span><small>请填写收货人姓名</small>
								</td>
							</tr>
							<tr>
								<td width="180" class="td1">E-Mail</td>
								<td>
									<input name="email" id="email" type="text" class="ipt-txt" size="30">
									<small>可选，联系您的电子邮箱</small>
								</td>
							</tr>
							<tr>
								<td width="180" class="td1">手机/电话</td>
								<td><input name="tel" id="tel" type="text" class="ipt-txt" size="30">
									<span class="red">*</span><small>请填写可以联系到您的电话</small>
								</td>
							</tr>
							<tr>
								<td width="180" class="td1">邮编</td>
								<td>
									<input name="zip" id="zip" type="text" class="ipt-txt" size="30">
									<span class="red">*</span><small>请填写格式如：300030</small>
								</td>
							</tr>
						</tbody>
					</table>
					<table width="100%" cellpadding="0" cellspacing="0" class="table">
						<thead>
							<tr>
								<td colspan="6">确认订单信息</td>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td width="180" class="td1">购买留言</td>
								<td>
									<textarea name="des" id="des" cols="50" rows="5" class="ipt-txt"></textarea>
									<p><small>请在购买留言中填写您对商品的特殊要求，如“我要红色的小码”(100个字以内)</small></p>
								</td>
							</tr>
							<tr>
								<td width="180" class="td1">验证码</td>
								<td>
									<input name="validate" type="text" id="vdcode2" size="10" class="ipt-txt" style="text-transform:uppercase">
									<img src="../apps/vdimgck.php" style="cursor:pointer" onclick="this.src=this.src+'?'" title="验证码" alt="验证码">
								</td>
							</tr>
						</tbody>
						<tfoot>
							<tr>
								<td colspan="2"><button type="submit" class="btn btn-success btn-sm">确认下单</button></td>
							</tr>
						</tfoot>
					</table>
				</form>
			</div>
		</div>
		<script>
			function vdimgck() {
				document.getElementById("vdimgck_img").src = '../apps/vdimgck.php?' + Math.random();
			}
		</script>
		<?php include(DEDETEMPLATE."/plus/plus_footer.htm") ;?>
	</body>
</html>