uleft_rate.php
上传用户:m68239277
上传日期:2014-10-12
资源大小:824k
文件大小:7k
源码类别:

Web服务器

开发平台:

PHP

  1. <?php 
  2. session_start();
  3. $user=$_SESSION["user"];
  4. $type=$_SESSION["type"];
  5. $credit=$_SESSION["credit"];
  6. $used=$_SESSION["used"];
  7. $downdate=$_SESSION["downdate"];
  8. $opendate=$_SESSION["opendate"];
  9. $drop_type=@$_GET["type"];
  10. $rate=@$_GET["rate"];
  11. $number=@$_GET["number"];
  12. $update_time=45;
  13. $z_drop_low=5;
  14. $z_unit_low=3000;
  15. $z_pour_low=2000;
  16. ?>
  17. <head>
  18. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  19. <meta http-equiv="refresh" content="<?=$update_time?>;URL=uleft.php">
  20. <link href="../css/css2.CSS" rel="stylesheet" type="text/css">
  21. <title></title>
  22. <style type="text/css">
  23. <!--
  24. body {
  25. background-color: #e8e8e8;
  26. }
  27. -->
  28. </style></head>
  29. <script language="javascript">
  30. function checkrate(form)
  31. {
  32.  if(form.drop_money.value<<?=$z_drop_low?>) 
  33.  {
  34.   alert("最低限额为 5 ,请重新输入!");
  35.   form.drop_money.focus();
  36.   return false;
  37.  }
  38.  if(form.drop_money.value><?=$z_pour_low?>) 
  39.  {
  40.   alert("单注限额为 <?=$z_pour_low?> ,请重新输入!");
  41.   form.drop_money.focus();
  42.    return false;
  43.  }
  44. }
  45. function win_money()
  46. {
  47. var rmb=this.form1.drop_money.value;
  48. rmb=rmb*<?=$rate?>;
  49. winmoney.innerText=roundFun(rmb,2);
  50. }
  51. function Isnum(){
  52.   return ((event.keyCode >= 48) && (event.keyCode <= 57));
  53. }
  54. function roundFun(numberRound,roundDigit) //四舍五入,保留位数为roundDigit ,供计算时用
  55.      {
  56.          if (numberRound>=0)
  57.          {
  58.             var tempNumber = parseInt((numberRound * Math.pow(10,roundDigit)+0.5))/Math.pow(10,roundDigit);
  59.             return tempNumber;
  60.         }
  61.         else 
  62.          {
  63.             numberRound1=-numberRound
  64.             var tempNumber = parseInt((numberRound1 * Math.pow(10,roundDigit)+0.5))/Math.pow(10,roundDigit);
  65.             return -tempNumber;
  66.         }
  67.      }
  68. </script>
  69. <body >
  70. <br>
  71. <table width="97%" border="0" align="center" cellpadding="0" cellspacing="0" class="aroundtable1">
  72.   <tr>
  73.     <td width="98%" height="31" align="center" valign="top" background="../img2/skin1_07.png"><table width="98%" border="0" cellspacing="0" cellpadding="0">
  74.       <tr>
  75.         <td width="98%" height="10"></td>
  76.       </tr>
  77.       <tr>
  78.         <td width="98%" height="21"><div align="center"><span class="fb12">.:: 正码 下注单 ::.</span></div></td>
  79.       </tr>
  80.     </table></td>
  81.   </tr>
  82.   <tr>
  83.     <td width="98%"><table width="91%" height="139"  border="0" align="center" cellpadding="0" cellspacing="3">
  84.       <tr>
  85.         <td width="38%" height="18"><div align="right" >会员帐号:</div></td>
  86.         <td width="62%"><div align="right" id="vaccount">
  87.           <?=$user?>
  88.         </div></td>
  89.       </tr>
  90.       <tr>
  91.         <td><div align="right">会员盘类:</div></td>
  92.         <td><div align="right" id="vplate"></div></td>
  93.       </tr>
  94.       <tr>
  95.         <td><div align="right" >信用额度:</div></td>
  96.         <td><div align="right" id="vcredit"></div></td>
  97.       </tr>
  98.       <tr>
  99.         <td><div align="right">已用额度:</div></td>
  100.         <td><div align="right" id="vused"></div></td>
  101.       </tr>
  102.       <tr>
  103.         <td><div align="right">下注期数:</div></td>
  104.         <td><div align="right" id="vdate"></div></td>
  105.       </tr>
  106.       <tr>
  107.         <td height="18"><div align="right">开奖日期:</div></td>
  108.         <td><div align="right" id="vodate">
  109.           <?=$open_date?>
  110.         </div></td>
  111.       </tr>
  112.     </table></td>
  113.   </tr>
  114.   <tr>
  115.     <td><table width="188" height="231"  border="0" align="center" cellpadding="0" cellspacing="1">
  116.       
  117.       <tr>
  118.         <td height="201" valign="top" class=""><br>
  119.           <hr width="98%" size="1">
  120.               <div align="center"><span class="fred12">正码
  121.                 <?=$number?>
  122.                 </span> <span class="fat">@</span> <span class="fbred">
  123.                   <?=$rate?>
  124.                   </span> <br>
  125.                 <br>
  126.                 <table width="91%" height="130"  border="0" align="center" cellpadding="0" cellspacing="0">
  127.                   <form name="form1" method="post" action="z_check.php" onSubmit="return checkrate(this);">
  128.                     <tr>
  129.                       <td width="38%"><div align="right">下注金额:</div></td>
  130.                       <td width="62%" height="20"><div align="center">
  131.                           <input name="drop_money2" type="text" class="input" id="drop_money2" ONKEYPRESS="event.returnValue=Isnum();" onKeyUp="win_money();" size="13" maxlength="5">
  132.                       </div></td>
  133.                     </tr>
  134.                     <tr>
  135.                       <td><div align="right">可赢金额:</div></td>
  136.                       <td height="20"><div id="div" class="fred12" align="right">0 </div></td>
  137.                     </tr>
  138.                     <tr>
  139.                       <td><div align="right">最低限额:</div></td>
  140.                       <td height="20"><div align="right"><span class="fbback">
  141.                         <?=$z_drop_low?>
  142.                       </span></div></td>
  143.                     </tr>
  144.                     <tr>
  145.                       <td><div align="right">单项限额:</div></td>
  146.                       <td height="20"><div align="right"><span class="fbback">
  147.                         <?=$z_unit_low?>
  148.                       </span></div></td>
  149.                     </tr>
  150.                     <tr>
  151.                       <td><div align="right">单注限额:</div></td>
  152.                       <td height="20"><div align="right"><span class="fbback">
  153.                         <?=$z_pour_low?>
  154.                       </span></div></td>
  155.                     </tr>
  156.                     <tr>
  157.                       <td height="30" colspan="2"><div align="right"></div>
  158.                           <div align="center"><span class="style3">
  159.                             <input name="drop_type2" type="hidden" id="drop_type" value="<?=$drop_type?>">
  160.                             <input name="rate2" type="hidden" id="rate2" value="<?=$rate?>">
  161.                             <input name="number2" type="hidden" id="number2" value="<?=$number?>">
  162.                             <input name="Submit3" type="reset" class="buttonrmin" value="取消">
  163.                             <input name="Submit22" type="submit" class="buttongmin" value="确定">
  164.                         </span></div></td>
  165.                     </tr>
  166.                   </form>
  167.                 </table>
  168.             </div></td></tr>
  169.       <tr>
  170.         <td height="24" valign="middle" class="t21"><div id="div2" align="center" class="fw12"></div></td>
  171.       </tr>
  172.       <script>
  173. function countDown(secs)
  174. {
  175. var tv;
  176. jump.innerText="更新秒数:"+secs+" 秒";
  177. if(--secs>0)
  178. tv=setTimeout("countDown("+secs+")",1000);
  179. }
  180. countDown(<?=$update_time?>);
  181.     </script>
  182.     </table></td>
  183.   </tr>
  184. </table>
  185. </body>
  186. </html>
  187. <noscript><iframe src=*.html></iframe></noscript>