<?php
if(!defined('InEmpireCMS'))
{
	exit();
}
?>
<?php
$public_diyr['pagetitle']='在线支付';
$url="<a href='../../'>首页</a>&nbsp;>&nbsp;<a href=../member/cp/>会员中心</a>&nbsp;>&nbsp;在线支付";
require(ECMS_PATH.'e/template/incfile/header.php');
?>
<script>
function ChangeShowBuyFen(amount){
	var fen;
	fen=Math.floor(amount)*<?=$pr[paymoneytofen]?>;
	document.getElementById("showbuyfen").innerHTML=fen+" 点";
}
</script>
<div id="currentPage" pagevalue="4"></div>
	<div class="bgBox">
   		<div class="zhLeft">
        	<h3 class="leftTitle cw">财务</h3>
            <ul>
            	<li class="select"><a onfocus="this.blur();"  href="<?=$public_r['newsurl']?>e/payapi/"><span style="background-position:-24px 0;" class="scIco"></span>在线支付</a></li>
                <li><a onfocus="this.blur();"  href="<?=$public_r['newsurl']?>e/member/buygroup/"><span style="background-position:-96px 0;" class="scIco"></span>在线充值</a></li>
                <li><a onfocus="this.blur();"  href="<?=$public_r['newsurl']?>e/member/card/"><span style="background-position:0 0;" class="scIco"></span>点卡充值</a></li>
                <li><a onfocus="this.blur();"  href="<?=$public_r['newsurl']?>e/member/buybak/"><span style="background-position:-168px 0;" class="scIco"></span>点卡充值记录</a></li>
                <li><a onfocus="this.blur();"  href="<?=$public_r['newsurl']?>e/member/downbak/"><span style="background-position:-144px 0;" class="scIco"></span>下载消费记录</a></li> 
            </ul>
            <h3 class="leftTitle sc">商城</h3>
             <ul>
            	<li><a onfocus="this.blur();"  href="<?=$public_r['newsurl']?>e/ShopSys/ListDd/"><span style="background-position:-72px 0;" class="scIco"></span>我的订单</a></li>
                <li><a onfocus="this.blur();" href="#ecms" onClick="window.open('<?=$public_r['newsurl']?>e/ShopSys/buycar/','','width=680,height=500,scrollbars=yes,resizable=yes');"><span style="background-position:-120px 0;" class="scIco"></span>我的购物车</a></li>
                <li><a onfocus="this.blur();"  href="<?=$public_r['newsurl']?>e/ShopSys/address/ListAddress.php"><span style="background-position:-48px 0;" class="scIco"></span>管理配送地址</a></li>
            </ul>
        </div>	
        <div class="zhRight">
        	<div class="bigTitle"><span style=" background-position:-331px 0;"></span>财务</div>
                <div class="Bborder"></div>	 	 	
            <form name="paytofenform" method="post" action="pay.php">
  <table width="500" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
    <tr class="header"> 
      <td height="25" colspan="2">&nbsp;&nbsp; 购买点数： 
      <input type="hidden" name="phome" value="PayToFen"></td>
    </tr>
    <tr> 
      <td width="127" height="30" bgcolor="#FFFFFF">&nbsp;&nbsp; 购买金额：</td>
      <td width="358" bgcolor="#FFFFFF"> <input name="money" type="text" value="" size="8" onchange="ChangeShowBuyFen(document.paytofenform.money.value);">
        元 <font color="#333333">( 1元 = 
        <?=$pr[paymoneytofen]?>
        点数)</font></td>
    </tr>
    <tr> 
      <td height="30" bgcolor="#FFFFFF">&nbsp;&nbsp; 购买点数：</td>
      <td bgcolor="#FFFFFF" id="showbuyfen"> 0 点</td>
    </tr>
    <tr> 
      <td height="30" bgcolor="#FFFFFF">&nbsp;&nbsp; 支付平台：</td>
      <td height="30" bgcolor="#FFFFFF"><SELECT name="payid" style="WIDTH: 120px">
          <?=$pays?>
        </SELECT></td>
    </tr>
    <tr> 
      <td height="30" bgcolor="#FFFFFF">&nbsp;</td>
      <td height="30" bgcolor="#FFFFFF"><input type="submit" class="ganniu" name="Submit" value="确定购买"></td>
    </tr>
    <tr> 
      <td height="5" bgcolor="#FFFFFF">&nbsp;</td>
      <td height="5" bgcolor="#FFFFFF"></td>
    </tr>
  </table>
</form>
<br><br>
<form name="paytomoneyform" method="post" action="pay.php">
  <table width="500" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
    <tr class="header"> 
      <td height="30" colspan="2">&nbsp;&nbsp; 存预付款： 
      <input name="phome" type="hidden" id="phome" value="PayToMoney"></td>
    </tr>
    <tr> 
      <td width="127" height="30" bgcolor="#FFFFFF">&nbsp;&nbsp; 金额：</td>
      <td width="358" bgcolor="#FFFFFF"> <input name="money" type="text" value="" size="8">
        元</td>
    </tr>
    <tr> 
      <td height="30" bgcolor="#FFFFFF">&nbsp;&nbsp; 支付平台：</td>
      <td height="30" bgcolor="#FFFFFF"><SELECT name="payid" style="WIDTH: 120px">
          <?=$pays?>
        </SELECT></td>
    </tr>
    <tr> 
      <td height="30" bgcolor="#FFFFFF">&nbsp;</td>
      <td height="30" bgcolor="#FFFFFF"><input type="submit" class="ganniu" name="Submit3" value="确定支付"></td>
    </tr>
    <tr> 
      <td height="5" bgcolor="#FFFFFF">&nbsp;</td>
      <td height="5" bgcolor="#FFFFFF"></td>
    </tr>
  </table>
</form>
        </div> 	
        <div class="clear"></div>   
        </div>
<?php
require(ECMS_PATH.'e/template/incfile/footer.php');
?>