<!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>購物車 - 下單購買{dede:var.carts.orders_id/}</title>
<meta http-equiv="Content-Type" content="text/html; charset={dede:global.cfg_soft_lang/}" />
<meta name="generator" content="DedeCMS V5.6" />
<meta name="author" content="desdev.cn" />
<link href="{dede:global.cfg_templets_skin/}/style/dedecms.css" rel="stylesheet" media="screen" type="text/css" />
<link href="{dede:global.cfg_templets_skin/}/style/table.css" rel="stylesheet" media="screen" type="text/css" />
</head>
<body class="buycarpage">
<div class="header">
  <div class="top w960 center">
    <div class="title">
      <h1><a href="{dede:global.cfg_basehost/}" title="{dede:global.cfg_webname/}"><img src="{dede:global.cfg_templets_skin/}/images/logo.gif" alt="{dede:global.cfg_webname/}"/></a> </h1>
    </div>
    <!-- /title -->
    <div class="welcome">
      <?php
            if($cfg_ml->IsLogin()){
            ?>
      <b><?php echo $cfg_ml->M_UserName; ?></b>,歡迎您的登陸。 <a href="<?php echo $cfg_memberurl; ?>/index.php">會員中心</a> | <a href="<?php echo $cfg_memberurl; ?>/edit_fullinfo.php">我的資料</a> | <a href="<?php echo $cfg_memberurl; ?>/index.php?uid=<?php echo urlencode($cfg_ml->M_LoginID);?>">我的空間</a> | <a href="<?php echo $cfg_memberurl; ?>/index_do.php?fmdo=login&dopost=exit">退出登錄</a>
      <?php
            }
            ?>
    </div>
    <!-- /banner -->
  </div>
  <!-- /top -->
</div>
<!-- /header -->
<div class="w960 clear center mt1 cmt-box">
  <div class="sp-title">
    <h2>商品購買</h2>
  </div>
  <div class="buycar">
    <?php if(!$cfg_ml->IsLogin()){ ?>
    <table cellpadding="0" cellspacing="0" class="flow">
      <tr>
        <td style="color:#F00">您好,歡迎來到本網站, 請 <a href="../member/login.php?gourl=<?php echo urlencode(GetCurUrl());?>">登錄</a> 或 <a href="../member/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="flow">
        <tr>
          <td class="thisclass">下單購買</td>
          <td>買家付款</td>
          <td>確認收貨</td>
          <td>交易結束 </td>
        </tr>
      </table>
      <table width="100%" border="0" cellpadding="0" cellspacing="0" class="dede_table">
        <thead>
          <tr>
            <td colspan="6">確認訂單信息</td>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td width="180" class="td1">訂單編號</td>
            <td><strong>{dede:var.carts.orders_id/}</strong></td>
          </tr>
          <tr>
            <td width="180" class="td1">訂單價格</td>
            <td><strong class="fc-f60" id="priceCount">{dede:var.carts.price_count/}</strong> 元</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%" border="0" cellpadding="0" cellspacing="0" class="dede_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><strong>{dede:value.dname/}</strong> <span class="fc-f90">手續費：{dede:value.price/}元</span> <small>{dede:value.des/}.</small> </p></td>
        </tr>
        {/dede:array}
        </tbody>
        
      </table>
      <table width="100%" border="0" cellpadding="0" cellspacing="0" class="dede_table">
        <thead>
          <tr>
            <td colspan="8">支付方式</td>
          </tr>
        </thead>
        <tbody>
        <tr>
          <td class="td1">&nbsp;</td>
          <td align="center" valign="middle" style="vertical-align:middle;"><strong>名稱</strong></td>
          <td align="center"><strong>描述</strong></td>
          <td align="center"><strong>手續費</strong></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%" border="0" cellpadding="0" cellspacing="0" class="dede_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%" border="0" cellpadding="0" cellspacing="0" class="dede_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><a name="mate_vdimgck" />
              <input name="vdcode" id="vdcode" type="text" class="ipt-txt" size="10" style="text-transform:uppercase;" />
              <a href="#mate_vdimgck"><img id="vdimgck_img" src="../include/vdimgck.php" hspace="6" align="absmiddle" onClick="vdimgck();" title="看不清換一張" /></a> <a href="#mate_vdimgck" onClick="vdimgck();">看不清換一張</a></td>
          </tr>
        </tbody>
        <tfoot>
          <tr>
            <td colspan="2"><button type="submit" class="btn-2">確認下單</button></td>
          </tr>
        </tfoot>
      </table>
    </form>
  </div>
</div>
<script language="JavaScript" type="text/javascript">
function vdimgck()
{
	document.getElementById("vdimgck_img").src = '../include/vdimgck.php?'+Math.random();
}
</script>
{dede:include filename="../default/footer.htm"/}
</body>
</html>