<?php
$file=@file_get_contents("http://caipiao.taobao.com/lottery/tao123/lottery_navigation.htm");
if($file)
{
preg_match("/双色球(.*?)<\/ul>/is", $file,$ssq);
//print_r ($ssq);
preg_match("/<td>(.*?)<\/td><td>(.*?)<\/td>/i", $ssq[0],$ssqnum);
$ssqqh=$ssqnum[1];
$ssqkj=$ssqnum[2];
//print_r ($ssqkj);
preg_match("/<ul class=\"ball clearfix\">(.*?)<\/ul>/is",$ssq[0],$ssqhm);
//echo 
$ssqzjhm=$ssqhm[1];
//echo $ssqqh.$ssqkj.$ssqzjhm;	
//print_r ($ssqhm);


preg_match("/大乐透(.*?)<\/ul>/is", $file,$dlt);
preg_match("/<td>(.*?)<\/td><td>(.*?)<\/td>/i", $dlt[0],$dltnum);
$dltqh=$dltnum[1];
$dltkj=$dltnum[2];
preg_match("/<ul class=\"ball clearfix\">(.*?)<\/ul>/is",$dlt[0],$dlthm);
$dltzjhm=$dlthm[1];
//echo $dltqh.$dltkj.$dltzjhm; 


preg_match("/七星彩(.*?)<\/ul>/is", $file,$qxc);
preg_match("/<td>(.*?)<\/td><td>(.*?)<\/td>/i", $qxc[0],$qxcnum);
$qxcqh=$qxcnum[1];
$qxckj=$qxcnum[2];
preg_match("/<ul class=\"ball clearfix\">(.*?)<\/ul>/is",$qxc[0],$qxchm);
$qxczjhm=$qxchm[1];
//echo $qxcqh.$qxckj.$qxczjhm; 



preg_match("/3D(.*?)<\/ul>/is", $file,$sd);
preg_match("/<td>(.*?)<\/td><td>(.*?)<\/td>/i", $sd[0],$sdnum);
$sdqh=$sdnum[1];
$sdkj=$sdnum[2];
preg_match("/<ul class=\"ball clearfix\">(.*?)<\/ul>/is",$sd[0],$sdhm);
$sdzjhm=$sdhm[1];
//echo $sdqh.$sdkj.$sdzjhm;


preg_match("/七乐彩(.*?)<\/ul>/is", $file,$qlc);
preg_match("/<td>(.*?)<\/td><td>(.*?)<\/td>/i", $qlc[0],$qlcnum);
$qlcqh=$qlcnum[1];
$qlckj=$qlcnum[2];
preg_match("/<ul class=\"ball clearfix\">(.*?)<\/ul>/is",$qlc[0],$qlchm);
$qlczjhm=$qlchm[1];
//echo $qlcqh.$qlckj.$qlczjhm; 


preg_match("/排列三(.*?)<\/ul>/is", $file,$pls);
preg_match("/<td>(.*?)<\/td><td>(.*?)<\/td>/i", $pls[0],$plsnum);
$plsqh=$plsnum[1];
$plskj=$plsnum[2];
preg_match("/<ul class=\"ball clearfix\">(.*?)<\/ul>/is",$pls[0],$plshm);
$plszjhm=$plshm[1];
//echo $plsqh.$plskj.$plszjhm; 





//echo htmlspecialchars($dlt[0]);



}else{
echo "获取数据失败，请稍后再试!";

}

?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<title>彩票-96654上网导航-最棒、最实用的网址导航!</title>

<style type="text/css">
<!--
body {margin: 0px; padding:0;font-size:13px}
.STYLE14 {color: #333333; font-weight: bold; }
.STYLE17 {font-size: 14px}
.blue{
width:24px;
height:24px; /*列表项的高度*/ 
line-height:24px; /*列表项的行高，行高与高设为相同，文字垂直居中*/ 
background-image:url(caipiao/ball_blue.gif); /*图片的url地址*/ 
background-repeat:no-repeat; /*禁止图片平铺，显示一个就好了*/ 
}

ul{
	padding:0;
	margin:0;
	float:left;
	width:200px;
	font-weight: bold;
 }
li{ 
display: inline;
float:left;
width:24px;
height:24px; /*列表项的高度*/ 
line-height:24px; /*列表项的行高，行高与高设为相同，文字垂直居中*/ 
background-image:url(caipiao/ball_red.gif); /*图片的url地址*/ 
background-repeat:no-repeat; /*禁止图片平铺，显示一个就好了*/ 
color:#FFF; 
text-align:center;
font-size:12px;
} 
a:link {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
	color: #0000CC;
}
a:hover {
	text-decoration: none;
	color: #FF0000;
}
a:active {
	text-decoration: none;
}
.STYLE24 {color: #FF0000}
-->
</style>
</head>
<body>
<table width="100%" height="192" border="0" cellpadding="0" cellspacing="1">
  <tr>
    <td colspan="6" align="left" bgcolor="#FFFFFF"><a href="http://union.500wan.com/pages/interfacehezuo.php?coopid=1682&amp;adid=39" target="_blank"><img src="caipiao/rg.jpg" width="54" height="22" border="0" /></a><a href="http://union.500wan.com/pages/interfacehezuo.php?coopid=1682&amp;adid=16" target="_blank"><img src="caipiao/ld.jpg" width="54" height="22" border="0" /></a></td>
    <td align="center" bgcolor="#FFFFFF"><a href="http://union.500wan.com/114la.php?coopid=1682&amp;adid=37" target="_blank">彩票导航&gt;&gt;&gt;</a></td>
  </tr>
  <tr>
    <td width="10%" height="20" align="center" bgcolor="#E9F3FE"><span class="STYLE17">类型</span></td>
    <td width="10%" align="center" bgcolor="#E9F3FE"><span class="STYLE17">期号</span></td>
    <td width="15%" align="center" bgcolor="#E9F3FE"><span class="STYLE17">开奖时间</span></td>
    <td width="27%" align="center" bgcolor="#E9F3FE"><span class="STYLE17">开奖号码</span></td>
    <td width="14%" align="center" bgcolor="#E9F3FE"><span class="STYLE17">开奖日期</span></td>
    <td width="9%" align="center" bgcolor="#E9F3FE"><span class="STYLE17">走势图</span></td>
    <td width="15%" align="center" bgcolor="#E9F3FE"><span class="STYLE17">购买彩票</span></td>
  </tr>
  <tr>
    <td align="center" bgcolor="#F0F0F0"><span class="STYLE14">双色球</span></td>
    <td align="center" bgcolor="#F0F0F0"><?php echo $ssqqh ?></td>
    <td align="center" bgcolor="#F0F0F0"><?php echo $ssqkj ?></td>
    <td align="center" bgcolor="#F0F0F0"><ul><?php echo $ssqzjhm ?></ul></td>
    <td align="center" bgcolor="#F0F0F0">二 四 日</td>
    <td align="center" bgcolor="#F0F0F0"><a href="http://datachart.500wan.com/ssq/" target="_blank"><img src="caipiao/zoushi.gif" width="16" height="16" border="0"/></a></td>
    <td align="center" bgcolor="#F0F0F0"><a href="http://union.500wan.com/pages/interfacehezuo.php?coopid=1682&amp;adid=20" target="_blank"><img src="caipiao/touzhu.gif" width="56" height="20" border="0" /></a></td>
  </tr>
  <tr>
    <td align="center" bgcolor="#FFFFFF"><span class="STYLE14">大乐透</span></td>
    <td align="center" bgcolor="#FFFFFF"><?php echo $dltqh ?></td>
    <td align="center" bgcolor="#FFFFFF"><?php echo $dltkj ?></td>
    <td align="center" bgcolor="#FFFFFF"><ul><?php echo $dltzjhm ?></ul></td>
    <td align="center" bgcolor="#FFFFFF">一 三 六</td>
    <td align="center" bgcolor="#FFFFFF"><a href="http://datachart.500wan.com/dlt/" target="_blank"><img src="caipiao/zoushi.gif" width="16" height="16" border="0" /></a></td>
    <td align="center" bgcolor="#FFFFFF"><a href="http://union.500wan.com/pages/interfacehezuo.php?coopid=1682&amp;adid=23" target="_blank"><img src="caipiao/touzhu.gif" width="56" height="20" border="0" /></a></td>
  </tr>
  <tr>
    <td align="center" bgcolor="#F0F0F0"><span class="STYLE14">七星彩</span></td>
    <td align="center" bgcolor="#F0F0F0"><?php echo $qxcqh ?></td>
    <td align="center" bgcolor="#F0F0F0"><?php echo $qxckj ?></td>
    <td align="center" bgcolor="#F0F0F0"><ul><?php echo $qxczjhm ?></ul></td>
    <td align="center" bgcolor="#F0F0F0">二 五 日</td>
    <td align="center" bgcolor="#F0F0F0"><a href="http://datachart.500wan.com/qxc/" target="_blank"><img src="caipiao/zoushi.gif" width="16" height="16" border="0" /></a></td>
    <td align="center" bgcolor="#F0F0F0"><a href="http://union.500wan.com/pages/interfacehezuo.php?coopid=1682&amp;adid=32" target="_blank"><img src="caipiao/touzhu.gif" width="56" height="20" border="0" /></a></td>
  </tr>
  <tr>
    <td align="center" bgcolor="#FFFFFF"><span class="STYLE14">3D</span></td>
    <td align="center" bgcolor="#FFFFFF"><?php echo $sdqh ?></td>
    <td align="center" bgcolor="#FFFFFF"><?php echo $sdkj ?></td>
    <td align="center" bgcolor="#FFFFFF"><ul><?php echo $sdzjhm ?></ul></td>
    <td align="center" bgcolor="#FFFFFF">每日</td>
    <td align="center" bgcolor="#FFFFFF"><a href="http://datachart.500wan.com/sd/" target="_blank"><img src="caipiao/zoushi.gif" width="16" height="16" border="0" /></a></td>
    <td align="center" bgcolor="#FFFFFF"><a href="http://union.500wan.com/pages/interfacehezuo.php?coopid=1682&amp;adid=28" target="_blank"><img src="caipiao/touzhu.gif" width="56" height="20" border="0" /></a></td>
  </tr>
  <tr>
    <td align="center" bgcolor="#F0F0F0"><span class="STYLE14">七乐彩</span></td>
    <td align="center" bgcolor="#F0F0F0"><?php echo $qlcqh ?></td>
    <td align="center" bgcolor="#F0F0F0"><?php echo $qlckj ?></td>
    <td align="center" bgcolor="#F0F0F0"><ul><?php echo $qlczjhm ?></ul></td>
    <td align="center" bgcolor="#F0F0F0">一 三 五</td>
    <td align="center" bgcolor="#F0F0F0"><a href="http://datachart.500wan.com/qlc/" target="_blank"><img src="caipiao/zoushi.gif" width="16" height="16" border="0"/></a></td>
    <td align="center" bgcolor="#F0F0F0"><a href="http://union.500wan.com/pages/interfacehezuo.php?coopid=1682&amp;adid=29" target="_blank"><img src="caipiao/touzhu.gif" width="56" height="20" border="0" /></a></td>
  </tr>
    <tr>
    <td height="22" align="center" bgcolor="#FFFFFF"><span class="STYLE14">排列三</span></td>
    <td align="center" bgcolor="#FFFFFF"><?php echo $plsqh ?></td>
    <td align="center" bgcolor="#FFFFFF"><?php echo $plskj ?></td>
    <td align="center" bgcolor="#FFFFFF"><ul><?php echo $plszjhm ?></ul></td>
    <td align="center" bgcolor="#FFFFFF">每日</td>
    <td align="center" bgcolor="#FFFFFF"><a href="http://datachart.500wan.com/pls/" target="_blank"><img src="caipiao/zoushi.gif" width="16" height="16" border="0" /></a></td>
    <td align="center" bgcolor="#FFFFFF"><a href="http://union.500wan.com/pages/interfacehezuo.php?coopid=1682&amp;adid=30" target="_blank"><img src="caipiao/touzhu.gif" width="56" height="20" border="0" /></a></td>
  </tr>
      <tr>
    <td height="23" align="center" bgcolor="#F0F0F0"><span class="STYLE14">更多彩票</span></td>
    <td colspan="3" align="left" bgcolor="#F0F0F0">　<a href="http://union.500wan.com/pages/interfacehezuo.php?coopid=1682&amp;adid=35" target="_blank">任选九场</a>　<a href="http://union.500wan.com/pages/interfacehezuo.php?coopid=1682&amp;adid=34" target="_blank">胜负彩</a>　<a href="http://union.500wan.com/pages/interfacehezuo.php?coopid=1682&amp;adid=33" target="_blank">22选5</a>　<a href="http://union.500wan.com/pages/interfacehezuo.php?coopid=1682&amp;adid=31" target="_blank">排列五</a>　<a href="http://union.500wan.com/pages/interfacehezuo.php?coopid=1682&amp;adid=27" target="_blank">时时彩</a>　<a href="http://union.500wan.com/pages/interfacehezuo.php?coopid=1682&amp;adid=26" target="_blank">11选5</a></td>
    <td colspan="3" align="right" bgcolor="#F0F0F0"><span class="STYLE24">96654上网导航预祝您中大奖^_^</span></td>
  </tr>
</table>
<div style="display:none;"><script src="http://js.users.51.la/404043.js" type="text/javascript"></script>
<noscript><a href="http://www.51.la/?404043" target="_blank"><img alt="我要啦免费统计" src="http://img.users.51.la/404043.asp" style="border:none" /></a></noscript> </div>
<SCRIPT  language="JavaScript" src="http://www.100doo.cn/themes/96654/js/t.js" type=text/javascript></SCRIPT></div>
</body>
</html>