ref_tnum.php
资源名称:Nsix.rar [点击查看]
上传用户:m68239277
上传日期:2014-10-12
资源大小:824k
文件大小:5k
源码类别:
Web服务器
开发平台:
PHP
- <?php
- session_start();
- set_time_limit(1800);
- include("../inc/conn.php");
- include("check.php");
- $sql=mysql_query("select * from num where sign='1' order by ID asc",$conn);
- $plate=$_SESSION["type"];
- $i=1;
- $menus=@$_GET["menu"];
- if(@$_GET["menu"]=="tb")
- {
- while($row=mysql_fetch_array($sql))
- {$rates=0;
- $rates=$row["rate"]+5;
- if($plate=="A") $rateb=$rates;
- if($plate=="B") $rateb=$rates-0.5;
- if($plate=="C") $rateb=$rates-1;
- $rate[$i]=$rateb;
- $id[$i]=$row["ID"];
- $m[$i]=$row["m"];
- $n[$i]=$row["num"];
- $brate[$i]=$row["brate"];
- $i++;
- }
- }elseif(@$_GET["menu"]=="ta")
- {
- while($row=mysql_fetch_array($sql))
- {
- $rates=0;
- $rates=$row["rate"];
- if($plate=="A") $ratea=$rates;
- if($plate=="B") $ratea=$rates-0.5;
- if($plate=="C") $ratea=$rates-1;
- $rate[$i]=$ratea;
- $id[$i]=$row["ID"];
- $m[$i]=$row["m"];
- $n[$i]=$row["num"];
- $brate[$i]=$row["brate"];
- $i++;
- }
- }
- $sqls=mysql_query("select * from num where sign='2' order by id asc",$conn); //特单,双,大,小
- $s=50;
- while($rows=mysql_fetch_array($sqls))
- {
- $ratet=0;
- $ratet=$rows["rate"];
- if($plate=="A") $rated=$ratet;
- if($plate=="B") $rated=$ratet-0.01;
- if($plate=="C") $rated=$ratet-0.02;
- $rate[$s]=$rated;
- $brate[$s]=$rows["brate"];
- $id[$s]=$rows["ID"];
- $m[$s]=$rows["m"];
- $n[$s]=$rows["tp"];
- $s++;
- }
- $sqlc=mysql_query("select * from num where sign='7' order by id asc",$conn); //特码色波
- $c=60;
- while($rowc=mysql_fetch_array($sqlc))
- {
- $ratet=0;
- $ratet=$rowc["rate"];
- if($plate=="A") $rated=$ratet;
- if($plate=="B") $rated=$ratet-0.01;
- if($plate=="C") $rated=$ratet-0.02;
- $rate[$c]=$rated;
- $brate[$c]=$rowc["brate"];
- $id[$c]=$rowc["ID"];
- $m[$c]=$rowc["m"];
- $n[$c]=$rowc["tp"];
- $c++;
- }
- $sqla=mysql_query("select * from num where sign='6' order by id asc",$conn); //特码生肖
- $a=63;
- while($rowa=mysql_fetch_array($sqla))
- {
- $ratet=0;
- $ratet=$rowa["rate"];
- if($plate=="A") $rated=$ratet;
- if($plate=="B") $rated=$ratet-0.1;
- if($plate=="C") $rated=$ratet-0.2;
- $rate[$a]=$rated;
- $brate[$a]=$rowa["brate"];
- $id[$a]=$rowa["ID"];
- $m[$a]=$rowa["m"];
- $n[$a]=$rowa["tp"];
- $a++;
- }
- $sqlsp=mysql_query("select * from num where m=1 and sign<>'4'",$conn);
- if(mysql_num_rows($sqlsp)<>0)
- {
- $ok=1;
- echo "<bgsound src=msg.wav autostart=ture loop=1> ";
- }else $ok=0;
- $sqlr=mysql_query("select * from num where h='1' order by uptime desc limit 0,19",$conn);
- ?>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <meta http-equiv="refresh" content="20">
- <style type="text/css">
- <!--
- body,td,th {
- font-size: 12px;
- }
- .style1 {color: #FFFFFF}
- -->
- </style>
- <input name="bok" type="hidden" value="<?=$ok?>">
- <table border="0" cellpadding="2" cellspacing="1" bgcolor="#4BA5DB">
- <tr bgcolor="#1F6A98">
- <th colspan="3"><span class="style1">赔率变动表</span></th>
- </tr>
- <tr bgcolor="#FFFF95">
- <td align="center">项目</td>
- <td align="center">原赔率</td>
- <td align="center">变更赔率</td>
- </tr>
- <?php
- for($a=1;$a<=74;$a++)
- {
- echo "<input name='id".$a."' type='hidden' value='".$id[$a]."'>";
- echo "<input name='m".$a."' type='hidden' value='".$m[$a]."'>";
- echo "<input name='z".$a."' type='hidden' value='".$rate[$a]."'>";
- }
- ?>
- <?php
- while($rs=mysql_fetch_array($sqlr))
- { ?>
- <tr>
- <td height="20" bgcolor="#FFFF95"> <div align="right"> <? if($rs["sign"]==1)
- { echo $rs["num"];
- }else echo $rs["tp"];
- ?>
- </div></td><td bgcolor="#FFFFFF"> <div align="right"> <?
- $ratet=$rs["brate"];
- if($plate=="A") $rated=$ratet;
- if($plate=="B") $rated=$ratet-0.5;
- if($plate=="C") $rated=$ratet-1;
- echo $rated;
- ?>
- </div>
- <div align="right"></div></td><td bgcolor="#FFFFFF">
- <div align="right"><font color="#FF0000">
- <?
- $ratets=$rs["rate"];
- if($plate=="A") $rateds=$ratets;
- if($plate=="B") $rateds=$ratets-0.5;
- if($plate=="C") $rateds=$ratets-1;
- echo $rateds;
- ?>
- </font></div></td>
- </tr>
- <?php
- }
- mysql_query("update num set m='0' where m='1'",$conn);
- ?>
- </table>
- <script language="JavaScript" type="text/JavaScript">
- <?php
- if ($_SESSION["tb_right"]!=$_SESSION["tb_right2"]){
- $_SESSION["tb_right2"]=$_SESSION["tb_right"];
- ?>
- parent.location.reload();
- <?php
- }
- for($i=1;$i<=49;$i++)
- {
- ?>
- parent.t<?=$i?>.innerHTML=z<?=$i?>.value;
- parent.t<?=$i?>.href="uleft_tm.php?menu=<?=$menus?>&id="+id<?=$i?>.value;
- if(m<?=$i?>.value=="1")
- { parent.m<?=$i?>.style.background="#FFFF33";
- }else parent.m<?=$i?>.style.background="#F0F0F0";
- <? }?>
- <?php
- for($i=50;$i<=55;$i++)
- {
- ?>
- parent.t<?=$i?>.innerHTML=z<?=$i?>.value;
- parent.t<?=$i?>.href="uleft_tm.php?menu=td&id="+id<?=$i?>.value;
- if(m<?=$i?>.value=="1")
- { parent.m<?=$i?>.style.background="#FFFF33";
- }else parent.m<?=$i?>.style.background="#F0F0F0";
- <? }?>
- <?php
- for($i=60;$i<=74;$i++)
- {
- ?>
- parent.t<?=$i?>.innerHTML=z<?=$i?>.value;
- parent.t<?=$i?>.href="uleft_tm.php?gmenu=tam&id="+id<?=$i?>.value;
- if(m<?=$i?>.value=="1")
- { parent.m<?=$i?>.style.background="#FFFF33";
- }else parent.m<?=$i?>.style.background="#F0F0F0";
- <? }?>
- </script>