<? if (!defined('ROOT')) exit('Can\'t Access !'); ?>

<!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 content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title><?=$this->title?></title>
<meta name="keywords" content="<?=$this->keywords?>" />
<meta name="description" content="<?=$this->description?>" />
<link rel="stylesheet" href="<?=$this->tempdir?>images/header.css" type="text/css" />
<link rel="stylesheet" href="<?=$this->tempdir?>images/member.css" type="text/css" />
<script type="text/javascript" src="<?=$this->tempdir?>images/member.js" ></script>
<script type="text/javascript" src="<?=$this->appdir?>jquery.js" ></script>
<script type="text/javascript" src="<?=$this->appdir?>public.js" ></script>
</head>
<body>
<? include template('member_header','wjgw/member'); ?>
<div id="container" class="win1000">
  <div class="wraper-border"></div>
  <div id="wraper" class="clearfix"> 
<? include template('member_left','wjgw/member'); ?>
    <div id="right-con-user" class="right">
      <div class="minheightout" style="background-color:#fff; width:799px;">
        <div class="detail">
          <div class="detail_tit">
            <div class="myjf"> <strong><?=$this->member['username']?></strong>，目前您的现金：<b class="red"><?=$this->member['money']?></b></span>元</b></span> </div>
            <div class="c"></div>
          </div>
                <form action="" name="addform" method="post" onsubmit="return checkform()">
          <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tbmyinfo">
            <tr>
              <th>商品名称</th>
              <th style="width:400px">商品价格</th>
              <th style="width:100px">删除</th>
            </tr>
            <? if(is_array($this->cart)) { foreach($this->cart as $v) { ?>            <? $koumoney_all+=$v['shop']['money']; ?>            <tr>
              <td style="font-size:12px;"><p><?=$v['shop']['name']?></p></td>
              <td style="font-size:12px;">单价：<span style="color:#F30; font-weight:bolder;" id="koumoney_<?=$v['id']?>"><?=$v['shop']['money']?></span>元</td><input type="hidden" name="id[]" value="<?=$v['shop']['id']?>" /><input type="hidden" name="name[]" value="<?=$v['shop']['name']?>" />
              <td><a href="<?=$v['delurl']?>">删除</a></td>
            </tr>
            <? } } ?>            <tr>
              <td style="font-size:12px;padding:10px 0;" colspan="2">&nbsp;&nbsp;&nbsp;您的姓名：<input type="text" name="yourname" id="yourname" style="width:80px; height:18px; line-height:18px;" value="<?=$this->member['truename']?>">&nbsp;&nbsp;&nbsp;联系电话：<input type="text" name="dianhua" id="dianhua" style="width:100px; height:18px; line-height:18px;" value="<?=$this->member['userphone']?>">&nbsp;&nbsp;&nbsp;收货地址：<input type="text" name="shouhuodizhi" id="shouhuodizhi" style="width:200px; height:18px; line-height:18px;" value="<?=$this->member['address']?>"></td>
              <td style="font-size:12px;padding:10px 0;">总计：<span style="color:#F30;font-weight:bolder;" id="koumoney_all"><?=$koumoney_all?></span>元<input type="hidden" name="koumoneyall" id="koumoneyall" value="<?=$koumoney_all?>" /></td>
            </tr>
          </table>
          <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tbmyinfo">
            <tr>
              <td>        <p style="width:500px; margin:0 auto; padding:10px 0;"><?=config::stopoutenable(); ?>      <input type="image" name="submit" src="<?=$this->tempdir?>images/goumai.png" style="border:0;display:block; float:left; margin-right:50px">  <img src="<?=$this->tempdir?>images/xuanchanpin.png" onclick="javascript:location.href='<?=Purl('shop_main')?>'" style="display:block; float:left;margin-right:50px; cursor:pointer;"> <img src="<?=$this->tempdir?>images/empty.png" onclick="javascript:location.href='<?=rewrite::request("?mod=member&act=shopcart&get=empty");; ?>'"  style="display:block; float:left;cursor:pointer;"><div style="clear:both;"></div></p> </td>
            </tr>
          </table>
                </form>
        </div>
        <div class="c"></div>
      </div>
    </div>
  </div>
  <div class="wraper-border"></div>
</div>
<? include template('member_footer','wjgw/member'); ?>
<script language="javascript">
function checkform(){  
   if(document.addform.yourname.value.length < 1)
  {
    alert("对不起，请填写您的姓名!")
    document.addform.yourname.focus()
    return false
  }
   if(document.addform.dianhua.value.length < 1)
  {
    alert("对不起，请填写您的联系方式!")
    document.addform.dianhua.focus()
    return false
  }
   if(document.addform.shouhuodizhi.value.length < 1)
  {
    alert("对不起，请填写您的收货地址!")
    document.addform.shouhuodizhi.focus()
    return false
  }
 return true 
 
} 
</script>
<script language="javascript">
$("document").ready(function(){$("#<?=$this->action?>").addClass('open');});
</script>
</body></html>