now_open.php
资源名称:Nsix.rar [点击查看]
上传用户:m68239277
上传日期:2014-10-12
资源大小:824k
文件大小:5k
源码类别:
Web服务器
开发平台:
PHP
- <?php
- session_start();
- set_time_limit(1800);
- include("../inc/conn.php");
- $user=$_SESSION["user"];
- 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 animal($num)
- {
- $a=array("鼠","牛","虎","兔","龙","蛇","马","羊","猴","鸡","狗","猪");
- $b=array("11.23.35.47","10.22.34.46","09.21.33.45","08.20.32.44","07.19.31.43","06.18.30.42","05.17.29.41","04.16.28.40","03.15.27.39","02.14.26.38","01.13.25.37.49","12.24.36.48");
- for($i=0;$i<=11;$i++)
- {
- if(strstr($b[$i],$num))
- {
- return $a[$i];
- exit;
- }
- }
- }
- 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;
- }
- }
- $sqlc=mysql_query("select * from now_open where ID='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"];
- ?><style type="text/css">
- <!--
- body {
- background-color: #4BA5DB;
- }
- -->
- </style>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <link href="../css/css2.CSS" rel="stylesheet" type="text/css">
- <table border="0" align=center cellpadding="0" cellspacing="0" class="tmove">
- <tr>
- <td height="45">
- <table border="0" align="center" cellpadding="0" cellspacing="1" class="t12">
- <tr class="t11"><td height="18" colspan="7"><div align="center" class="fw12"><strong>即时开奖</strong></div></td>
- </tr>
- <tr align="center" class="t11">
- <td height="18" class="fw12">一</td>
- <td height="18" class="fw12">二</td>
- <td height="18" class="fw12">三</td>
- <td height="18" class="fw12">四</td>
- <td height="18" class="fw12">五</td>
- <td height="18" class="fw12">六</td>
- <td height="18" class="fw12">特码</td>
- </tr>
- <tr class="t15">
- <td><div align="center">
- <table width="25" height="25" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td background="../img/<?=ball($pnum1)?>.gif" class="style4"><div align="center" class="fbback">
- <?=$pnum1?>
- </div></td>
- </tr>
- </table>
- </div></td>
- <td><div align="center">
- <table width="25" height="25" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td background="../img/<?=ball($pnum2)?>.gif" class="style4"><div align="center" class="fbback">
- <?=$pnum2?>
- </div></td>
- </tr>
- </table>
- </div></td>
- <td><div align="center">
- <table width="25" height="25" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td background="../img/<?=ball($pnum3)?>.gif" class="style4"><div align="center" class="fbback">
- <?=$pnum3?>
- </div></td>
- </tr>
- </table>
- </div></td>
- <td><div align="center">
- <table width="25" height="25" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td background="../img/<?=ball($pnum4)?>.gif" class="style4"><div align="center" class="fbback">
- <?=$pnum4?>
- </div></td>
- </tr>
- </table>
- </div></td>
- <td><div align="center">
- <table width="25" height="25" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td background="../img/<?=ball($pnum5)?>.gif" class="style4"><div align="center" class="fbback">
- <?=$pnum5?>
- </div></td>
- </tr>
- </table>
- </div></td>
- <td><div align="center">
- <table width="25" height="25" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td background="../img/<?=ball($pnum6)?>.gif" class="style4"><div align="center" class="fbback">
- <?=$pnum6?>
- </div></td>
- </tr>
- </table>
- </div></td>
- <td><div align="center">
- <table width="25" height="25" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td background="../img/<?=ball($pnum7)?>.gif" class="style4"><div align="center" class="fbback">
- <?=$pnum7?>
- </div></td>
- </tr>
- </table>
- </div></td>
- </tr>
- </table></td>
- </tr>
- </table>