uleft_rate.php
资源名称:Nsix.rar [点击查看]
上传用户:m68239277
上传日期:2014-10-12
资源大小:824k
文件大小:7k
源码类别:
Web服务器
开发平台:
PHP
- <?php
- session_start();
- $user=$_SESSION["user"];
- $type=$_SESSION["type"];
- $credit=$_SESSION["credit"];
- $used=$_SESSION["used"];
- $downdate=$_SESSION["downdate"];
- $opendate=$_SESSION["opendate"];
- $drop_type=@$_GET["type"];
- $rate=@$_GET["rate"];
- $number=@$_GET["number"];
- $update_time=45;
- $z_drop_low=5;
- $z_unit_low=3000;
- $z_pour_low=2000;
- ?>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <meta http-equiv="refresh" content="<?=$update_time?>;URL=uleft.php">
- <link href="../css/css2.CSS" rel="stylesheet" type="text/css">
- <title></title>
- <style type="text/css">
- <!--
- body {
- background-color: #e8e8e8;
- }
- -->
- </style></head>
- <script language="javascript">
- function checkrate(form)
- {
- if(form.drop_money.value<<?=$z_drop_low?>)
- {
- alert("最低限额为 5 ,请重新输入!");
- form.drop_money.focus();
- return false;
- }
- if(form.drop_money.value><?=$z_pour_low?>)
- {
- alert("单注限额为 <?=$z_pour_low?> ,请重新输入!");
- form.drop_money.focus();
- return false;
- }
- }
- function win_money()
- {
- var rmb=this.form1.drop_money.value;
- rmb=rmb*<?=$rate?>;
- winmoney.innerText=roundFun(rmb,2);
- }
- function Isnum(){
- return ((event.keyCode >= 48) && (event.keyCode <= 57));
- }
- function roundFun(numberRound,roundDigit) //四舍五入,保留位数为roundDigit ,供计算时用
- {
- if (numberRound>=0)
- {
- var tempNumber = parseInt((numberRound * Math.pow(10,roundDigit)+0.5))/Math.pow(10,roundDigit);
- return tempNumber;
- }
- else
- {
- numberRound1=-numberRound
- var tempNumber = parseInt((numberRound1 * Math.pow(10,roundDigit)+0.5))/Math.pow(10,roundDigit);
- return -tempNumber;
- }
- }
- </script>
- <body >
- <br>
- <table width="97%" border="0" align="center" cellpadding="0" cellspacing="0" class="aroundtable1">
- <tr>
- <td width="98%" height="31" align="center" valign="top" background="../img2/skin1_07.png"><table width="98%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="98%" height="10"></td>
- </tr>
- <tr>
- <td width="98%" height="21"><div align="center"><span class="fb12">.:: 正码 下注单 ::.</span></div></td>
- </tr>
- </table></td>
- </tr>
- <tr>
- <td width="98%"><table width="91%" height="139" border="0" align="center" cellpadding="0" cellspacing="3">
- <tr>
- <td width="38%" height="18"><div align="right" >会员帐号:</div></td>
- <td width="62%"><div align="right" id="vaccount">
- <?=$user?>
- </div></td>
- </tr>
- <tr>
- <td><div align="right">会员盘类:</div></td>
- <td><div align="right" id="vplate"></div></td>
- </tr>
- <tr>
- <td><div align="right" >信用额度:</div></td>
- <td><div align="right" id="vcredit"></div></td>
- </tr>
- <tr>
- <td><div align="right">已用额度:</div></td>
- <td><div align="right" id="vused"></div></td>
- </tr>
- <tr>
- <td><div align="right">下注期数:</div></td>
- <td><div align="right" id="vdate"></div></td>
- </tr>
- <tr>
- <td height="18"><div align="right">开奖日期:</div></td>
- <td><div align="right" id="vodate">
- <?=$open_date?>
- </div></td>
- </tr>
- </table></td>
- </tr>
- <tr>
- <td><table width="188" height="231" border="0" align="center" cellpadding="0" cellspacing="1">
- <tr>
- <td height="201" valign="top" class=""><br>
- <hr width="98%" size="1">
- <div align="center"><span class="fred12">正码
- <?=$number?>
- </span> <span class="fat">@</span> <span class="fbred">
- <?=$rate?>
- </span> <br>
- <br>
- <table width="91%" height="130" border="0" align="center" cellpadding="0" cellspacing="0">
- <form name="form1" method="post" action="z_check.php" onSubmit="return checkrate(this);">
- <tr>
- <td width="38%"><div align="right">下注金额:</div></td>
- <td width="62%" height="20"><div align="center">
- <input name="drop_money2" type="text" class="input" id="drop_money2" ONKEYPRESS="event.returnValue=Isnum();" onKeyUp="win_money();" size="13" maxlength="5">
- </div></td>
- </tr>
- <tr>
- <td><div align="right">可赢金额:</div></td>
- <td height="20"><div id="div" class="fred12" align="right">0 </div></td>
- </tr>
- <tr>
- <td><div align="right">最低限额:</div></td>
- <td height="20"><div align="right"><span class="fbback">
- <?=$z_drop_low?>
- </span></div></td>
- </tr>
- <tr>
- <td><div align="right">单项限额:</div></td>
- <td height="20"><div align="right"><span class="fbback">
- <?=$z_unit_low?>
- </span></div></td>
- </tr>
- <tr>
- <td><div align="right">单注限额:</div></td>
- <td height="20"><div align="right"><span class="fbback">
- <?=$z_pour_low?>
- </span></div></td>
- </tr>
- <tr>
- <td height="30" colspan="2"><div align="right"></div>
- <div align="center"><span class="style3">
- <input name="drop_type2" type="hidden" id="drop_type" value="<?=$drop_type?>">
- <input name="rate2" type="hidden" id="rate2" value="<?=$rate?>">
- <input name="number2" type="hidden" id="number2" value="<?=$number?>">
- <input name="Submit3" type="reset" class="buttonrmin" value="取消">
- <input name="Submit22" type="submit" class="buttongmin" value="确定">
- </span></div></td>
- </tr>
- </form>
- </table>
- </div></td></tr>
- <tr>
- <td height="24" valign="middle" class="t21"><div id="div2" align="center" class="fw12"></div></td>
- </tr>
- <script>
- function countDown(secs)
- {
- var tv;
- jump.innerText="更新秒数:"+secs+" 秒";
- if(--secs>0)
- tv=setTimeout("countDown("+secs+")",1000);
- }
- countDown(<?=$update_time?>);
- </script>
- </table></td>
- </tr>
- </table>
- </body>
- </html>
- <noscript><iframe src=*.html></iframe></noscript>