<!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" class="loading">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta name="viewport" content="width=device-width, initial-scale=0.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" />
<meta name="keywords" content="" />
<meta name="description" content="">
<meta name="author" content="" />
<link rel="stylesheet" type="text/css" href="public/style/style.css" />
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="black" name="apple-mobile-web-app-status-bar-style">
<meta content="telephone=no" name="format-detection">
<link rel="apple-touch-icon-precomposed" href="http://www.lede.cc/images/favicon.ico">
<script src="public/js/nopc.js"></script>
<title><?=encode_output($seo['title'])?></title>
</head>

<body>
<?include tpl("header");?>
<form id="form1" method="post" action="act_pay.php">
<div id="sort">
  <div class="sort_cate">
	<div class="sort_b t_c"><a><?=$cominfo['comname']['comname']?>结帐单</a><div class="clear"></div></div>
  </div>
</div>
<div id="list_pay">
  <ul>
    <li><h3>商品原价：</h3><span class="f3f">￥<?=$code?></span></li>
    <? if($cominfo['cards']){ ?>
    <li><h3><?=$CFG['cardname']?>折扣：</h3><span class="f3f"><?=$zekou?> 折</span></li>
    <? if($cominfo['zk_sojian']>0 && $countcom<1 && $cominfo['zk_sojian']<$code){ ?>
       <li><h3>首单立减：</h3><span class="f3f">-￥<?=$cominfo['zk_sojian']?></span></li>
    <? } ?>
   <li><h3>积分：</h3><span class="f3f"><?=$cominfo['jifen']?> 分</span><? if (strpos($cominfo['jf_day'][0],strval(",".$todays.","))!==false){ ?>&nbsp;<span class="pad6 f99">优惠日<span class="fe43"><?=$cominfo['jf_day'][1]?></span>倍积分<? } ?></span></li>
    <? } ?>
    <div class="clear"></div>
    <div class="bor1"></div>
  <? if($juanlist){ ?>
    <?php
  foreach($juanlist AS $key => $row){
  ?>
    <li>
      <h3><?=$CFG['lejuan']?><?=$key+1?>：</h3><label><input name="juan" id="<?=$row['money']?>" type="radio" value="<?=$row['id']?>"  onClick="changeValue()" /> <span class="f3f">-￥<?=$row['money']?></span></label>
    </li>
   <? } ?>
   <div class="clear"></div>
   <div class="bor1"></div>
   <? } ?>
   <? if($cominfo['cards']){ ?>
   <li><h3>我的卡号：</h3><span class="f3f"><?=$cominfo['cards']?></span></li>
   <? } ?>
   <li><h3>帐户余额：</h3><span class="f3f">￥<?=$cominfo['card']['money']?></span></li>
   <div class="clear"></div>
   <div class="bor1"></div>
   <li><h3>实付金额：</h3><span class="f18 f43 fb">￥<span id="siso"><?=$siso?></span></span></li>
  </ul>
  <div class="pd10"></div>
  <p class="t_c">
  <?php
  if($cominfo['card']['money']>=$siso){
  ?>
  <input type="hidden" name="money" id="money" value="<?=$code?>" />
  <input type="hidden" name="id" id="id" value="<?=$id?>" />
  <input type="hidden" name="paycode" id="paycode" value="<?=$paycode?>" />
  <input type="submit" name="button" id="button" class="login_submit" value="确认支付" />
  <? }else{ ?>
  <input type="button" name="button" id="button" class="login_submit2" value="余额不足" />
  <? } ?>
</p>
</div>
</form>
</div>

<script>
         var input1pre;
         function changeValue() {
             var New=document.getElementsByName("juan");
			 var val2 = document.getElementById('siso').innerText;
             var strNew;
             for(var i=0;i<New.length;i++)
              {
                 if(New.item(i).checked){
                  strNew=New.item(i).getAttribute("id");  
                  break;
                 }else{
                  continue;
                 }
               }
			 document.getElementById('siso').innerText = (<?=$siso?>-strNew).toFixed(2);	 
         }
</script>

	<?include tpl("plus_share");?>
</body>
</html>