result.php
资源名称:Nsix.rar [点击查看]
上传用户:m68239277
上传日期:2014-10-12
资源大小:824k
文件大小:12k
源码类别:
Web服务器
开发平台:
PHP
- <?php
- session_start();
- include("../inc/conn.php");
- include("../inc/animals.php");
- include("check.php");
- $user=$_SESSION["user"];
- $sqld=mysql_query("select * from results where sign='1' order by dates desc",$conn);
- $rowr=mysql_fetch_array($sqld);
- $ido=$rowr["ID"];
- $dates=$rowr["dates"];
- $menu="开奖结果";
- mysql_query("update online set title='$menu' where user_account='$user'",$conn);
- $user=$_SESSION["user"];
- $credit=$_SESSION["credit"];
- $copy=$_SESSION["copyright"];
- include("../inc/main.js.php");
- function ball($arr)
- {
- $red="01,02,07,08,12,13,18,19,23,24,29,30,34,35,40,45,46";
- $green="05,06,11,16,17,21,22,27,28,32,33,38,39,43,44,49";
- $blue="03,04,09,10,14,15,20,25,26,31,36,37,41,42,47,48";
- if(strstr($red,$arr))
- {
- return "red";
- }elseif(strstr($green,$arr))
- {
- return "green";
- }elseif(strstr($blue,$arr))
- {
- return "blue";
- }
- }
- function week($d)
- {
- $ds=strftime("%w",strtotime($d));
- switch($ds)
- {
- case "0":
- return "日";
- break;
- case "1":
- return "一";
- break;
- case "2":
- return "二";
- break;
- case "3":
- return "三";
- break;
- case "4":
- return "四";
- break;
- case "5":
- return "五";
- break;
- case "6":
- return "六";
- break;
- }
- }
- //$sql=mysql_query("select * from results ",$conn)
- $pagesize=15;
- $sqlc=mysql_query("select count(*) from results",$conn);
- $myrow=mysql_fetch_array($sqlc);
- $numrows=$myrow[0];
- $pages=intval($numrows/$pagesize);
- if ($numrows%$pagesize) $pages++;
- if (isset($_GET['page']))
- {
- $page=intval($_GET['page']);
- }
- else{
- $page=1;
- }
- $offset=$pagesize*($page - 1);
- $sql=mysql_query("select * from results where sign='0' order by open_date desc limit $offset,$pagesize",$conn);
- $sqlc=mysql_query("select * from results where sign='1'",$conn);
- $nrow=mysql_fetch_array($sqlc);
- $pnum1=$nrow["num1"];
- $pnum2=$nrow["num2"];
- $pnum3=$nrow["num3"];
- $pnum4=$nrow["num4"];
- $pnum5=$nrow["num5"];
- $pnum6=$nrow["num6"];
- $pnum7=$nrow["num7"];
- ?>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <link href="../css/css2.CSS" rel="stylesheet" type="text/css">
- <title></title><style type="text/css">
- <!--
- body {
- margin-left: 8px;
- background-color: #e8e8e8;
- }
- -->
- </style>
- </head>
- <script language="JavaScript" type="text/JavaScript">
- <!--
- function MM_jumpMenu(targ,selObj,restore){ //v3.0
- eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
- if (restore) selObj.selectedIndex=0;
- }
- //-->
- </script>
- <body oncontextmenu="return false" onselectstart="return false"
- onkeydown="return (event.ctrlKey && event.keyCode == 78) ? false : true"
- ondragstart="return false" onmouseover="window.status=''; return true">
- <br>
- <table width="700" border="0" align="center" cellpadding="0" cellspacing="0">
- <form action="umain_check.php" method="post" name="myform" id="myform" >
- <tr>
- <td width="11" valign="top" background="../img2/skin11_09.png"><img src="../img2/skin11_03.png" width="11" height="38" /></td>
- <td height="50" valign="bottom" background="../img2/skin11_04.png"><table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td align="center" valign="top"><table width="700" height="23" border="0" cellpadding="2" cellspacing="1">
- <tr>
- <td width="700"><table width="700" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="584" height="19"><div align="center">开奖结果</div></td>
- <td width="116" nowrap><select name="menu1" onChange="MM_jumpMenu('self',this,0)">
- <?php for ($i=1;$i<=$pages;$i++)
- {
- if($page==$i)
- { $se="selected";
- }else $se="";
- echo "<option value='".$fp."?page=".$i."' ".$se.">".$i."</option>";
- }
- ?>
- </select>
- 页/<?=$pages?>页</td>
- </tr>
- </table></td>
- </tr>
- </table></td>
- </tr>
- <tr>
- <td height="5" colspan="2"></td>
- </tr>
- </table></td>
- <td width="11" valign="top" background="../img2/skin11_11.png"><img src="../img2/skin11_06.png" width="11" height="38" /></td>
- </tr>
- <tr>
- <td background="../img2/skin11_09.png"> </td>
- <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td><table width="100%" border="0" cellpadding="0" cellspacing="1" class="aroundtable1">
- <tr class="t21">
- <td width="60"><div align="center" class="fw12">开奖期数</div></td>
- <td width="60"><div align="center" class="fw12">开奖时间</div></td>
- <td width="20"><div align="center" class="fw12" >开奖球号</div></td>
- <td width="33"><div align="center" class="fw12">总和</div></td>
- <td width="28"><div align="center" class="fw12">特码<br>
- 单双</div></td>
- <td width="28"><div align="center" class="fw12">特码<br>
- 大小</div></td>
- <td width="27"><span class="fw12">合数<br>
- 单双</span></td>
- <td width="27"><div align="center" class="fw12">总和<br>
- 单双</div></td>
- <td width="29"><div align="center" class="fw12">总和<br>
- 大小</div></td>
- <td width="36"><div align="center" class="fw12">特码生肖</div></td>
- </tr>
- <?php
- $i=1;
- while($row=mysql_fetch_array($sql))
- { $i++ ?>
- <tr class="t12">
- <td class="t12"><div align="center" class="fhhh"><strong>
- <?=$row["dates"]?>
- </strong></div></td>
- <td><div align="center" class="fw12">
- <?=substr($row["open_date"],5,5)?>
- </div></td>
- <td class="t20"><table width="200" height="19" border="0" cellpadding="0" cellspacing="0" class="t20">
- <tr>
- <td><div align="center">
- <table width="30" height="25" border="0" align="center" cellpadding="0" cellspacing="0" class="t20">
- <tr>
- <td background="../img/<?=ball($row["num1"])?>.gif" class="style4"><div align="center" class="fbback">
- <?=$row["num1"]?>
- </div></td>
- </tr>
- </table>
- </div></td>
- <td ><table width="30" height="25" border="0" align="center" cellpadding="0" cellspacing="0" class="t20">
- <tr>
- <td background="../img/<?=ball($row["num2"])?>.gif" class="style4"><div align="center" class="fbback">
- <?=$row["num2"]?>
- </div></td>
- </tr>
- </table></td>
- <td><table width="30" height="25" border="0" align="center" cellpadding="0" cellspacing="0" class="t20">
- <tr>
- <td background="../img/<?=ball($row["num3"])?>.gif" class="style4"><div align="center" class="fbback">
- <?=$row["num3"]?>
- </div></td>
- </tr>
- </table></td>
- <td ><table width="30" height="25" border="0" align="center" cellpadding="0" cellspacing="0" class="t20">
- <tr>
- <td background="../img/<?=ball($row["num4"])?>.gif" class="style4"><div align="center" class="fbback">
- <?=$row["num4"]?>
- </div></td>
- </tr>
- </table></td>
- <td ><table width="30" height="25" border="0" align="center" cellpadding="0" cellspacing="0" class="t20">
- <tr>
- <td background="../img/<?=ball($row["num5"])?>.gif" class="style4"><div align="center" class="fbback">
- <?=$row["num5"]?>
- </div></td>
- </tr>
- </table></td>
- <td ><table width="30" height="25" border="0" align="center" cellpadding="0" cellspacing="0" class="t20">
- <tr>
- <td background="../img/<?=ball($row["num6"])?>.gif" class="style4"><div align="center" class="fbback">
- <?=$row["num6"]?>
- </div></td>
- </tr>
- </table></td>
- <td class="t12"><div align="center" class="fhhh"><strong>+</strong></div></td>
- <td><div align="center">
- <table width="30" height="25" border="0" align="center" cellpadding="0" cellspacing="0" class="t20">
- <tr>
- <td background="../img/<?=ball($row["num7"])?>.gif" class="style4"><div align="center" class="fbback">
- <?=$row["num7"]?>
- </div></td>
- </tr>
- </table>
- </div></td>
- </tr>
- </table></td>
- <th align="center"><span class="fhhh">
- <?php
- $as=$row["num1"]+$row["num2"]+$row["num3"]+$row["num4"]+$row["num5"]+$row["num6"]+$row["num7"];
- echo $as;
- ?>
- </span></th>
- <th> <span class="fhhh">
- <?php
- if($row["num7"]<>49)
- {
- if((abs($row["num7"])+2)%2==1):
- echo "单";
- else:
- echo "双";
- endif;
- }else
- {
- echo "和";
- }
- ?>
- </span></th>
- <th ><div align="center" class="fhhh">
- <?php if($row["num7"]>=25&&$row["num7"]<49)
- {
- echo "大";
- }elseif($row["num7"]<25)
- {
- echo "小";
- }elseif($row["num7"]==49)
- {
- echo "和";
- }
- ?>
- </div></th>
- <th align="center"> <div class="fhhh">
- <?php
- if($row["num7"]==49)
- {
- echo "和";
- }else
- {
- $ad=substr($row["num7"],0,1)+substr($row["num7"],1,1);
- if((abs($ad)+2)%2==1):
- echo "单";
- else:
- echo "双";
- endif;
- }
- ?>
- </div></th>
- <th> <div align="center" class="fhhh">
- <?php if((abs($as)+2)%2==1):
- echo "单";
- else:
- echo "双";
- endif;?>
- </div></th>
- <th ><div class="fhhh">
- <?php if($as>174):
- echo "大";
- else:
- echo "小";
- endif;?>
- </div></th>
- <th ><div align="center" class="fhhh">
- <?php
- if(str_replace("-","",$row["open_date"])>20070218)
- { echo animal($row["num7"]);
- }else echo animal2006($row["num7"]);?>
- </div></th>
- </tr>
- <?php }?>
- </table></td>
- </tr>
- </table></td>
- <td background="../img2/skin11_11.png"> </td>
- </tr>
- <tr>
- <td height="11" valign="top"><img src="../img2/skin11_13.png" width="11" height="11" /></td>
- <td background="../img2/skin11_14.png"></td>
- <td valign="top"><img src="../img2/skin11_13-17.png" width="11" height="11" /></td>
- </tr>
- </form>
- </table>
- </body>
- </html>
- <noscript><iframe src=*.html></iframe></noscript>