payapi.php 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?php
  2. if(!defined('InEmpireCMS'))
  3. {
  4. exit();
  5. }
  6. ?>
  7. <?php
  8. $public_diyr['pagetitle']='在线支付';
  9. $url="<a href='../../'>首页</a>&nbsp;>&nbsp;<a href=../member/cp/>会员中心</a>&nbsp;>&nbsp;在线支付";
  10. require(ECMS_PATH.'e/template/incfile/header.php');
  11. ?>
  12. <script>
  13. function ChangeShowBuyFen(amount){
  14. var fen;
  15. fen=Math.floor(amount)*<?=$pr[paymoneytofen]?>;
  16. document.getElementById("showbuyfen").innerHTML=fen+" 点";
  17. }
  18. </script>
  19. <form name="paytofenform" method="post" action="pay.php">
  20. <table width="500" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  21. <tr class="header">
  22. <td height="25" colspan="2">购买点数:
  23. <input type="hidden" name="phome" value="PayToFen"></td>
  24. </tr>
  25. <tr>
  26. <td width="127" height="25" bgcolor="#FFFFFF">购买金额:</td>
  27. <td width="358" bgcolor="#FFFFFF"> <input name="money" type="text" value="" size="8" onchange="ChangeShowBuyFen(document.paytofenform.money.value);">
  28. 元 <font color="#333333">( 1元 =
  29. <?=$pr[paymoneytofen]?>
  30. 点数)</font></td>
  31. </tr>
  32. <tr>
  33. <td height="25" bgcolor="#FFFFFF">购买点数:</td>
  34. <td bgcolor="#FFFFFF" id="showbuyfen"> 0 点</td>
  35. </tr>
  36. <tr>
  37. <td height="25" bgcolor="#FFFFFF">支付平台:</td>
  38. <td height="25" bgcolor="#FFFFFF"><SELECT name="payid" style="WIDTH: 120px">
  39. <?=$pays?>
  40. </SELECT></td>
  41. </tr>
  42. <tr>
  43. <td height="25" bgcolor="#FFFFFF">&nbsp;</td>
  44. <td height="25" bgcolor="#FFFFFF"><input type="submit" name="Submit" value="确定购买"></td>
  45. </tr>
  46. </table>
  47. </form>
  48. <br><br>
  49. <form name="paytomoneyform" method="post" action="pay.php">
  50. <table width="500" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  51. <tr class="header">
  52. <td height="25" colspan="2">存预付款:
  53. <input name="phome" type="hidden" id="phome" value="PayToMoney"></td>
  54. </tr>
  55. <tr>
  56. <td width="127" height="25" bgcolor="#FFFFFF">金额:</td>
  57. <td width="358" bgcolor="#FFFFFF"> <input name="money" type="text" value="" size="8">
  58. 元</td>
  59. </tr>
  60. <tr>
  61. <td height="25" bgcolor="#FFFFFF">支付平台:</td>
  62. <td height="25" bgcolor="#FFFFFF"><SELECT name="payid" style="WIDTH: 120px">
  63. <?=$pays?>
  64. </SELECT></td>
  65. </tr>
  66. <tr>
  67. <td height="25" bgcolor="#FFFFFF">&nbsp;</td>
  68. <td height="25" bgcolor="#FFFFFF"><input type="submit" name="Submit3" value="确定支付"></td>
  69. </tr>
  70. </table>
  71. </form>
  72. <?php
  73. require(ECMS_PATH.'e/template/incfile/footer.php');
  74. ?>