<!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" />
<title>香港华锋实业有限公司-大转盘抽奖系统</title>
<link type="text/css" rel="stylesheet" href="index.css" />
<script language="javascript" src="../incr/index.js"></script>
</head>
<?php
require_once('incul.php');
/*Echo "<div align='center' style=' width:450px; margin: 0 auto; padding-top: 50px'><h1 style='margin:0 auto;'>此活动已经结束了!感谢你的参与!</h1><a href='../index.php'>登录个人中心</a></div>";
die();*/
?>
<body>
<div id="top_nav" class="top_nav">
<?php
if(empty($_COOKIE['username'])){
?>
<div id="login">
<form method="post">
<table>
<tr>
<td style=" font-size: 14px; font-family: Microsoft YaHei; ">ID号:
<input class="login_input" type="text" id="username" name="username" width="400" />
密 码:<input class="login_input" type="password" id="password" name="password" width="400" />
验证码 :<input class="login_input code" style="width:60px;" name="yz" type="text" id="yz" title="请输入验证码" size="6" maxlength="4" autocomplete="off"/>
<img name="img1" id="img1" src="../incr/authimg.php" align="absmiddle" style="cursor:pointer;" title="刷新" onclick="sx();">
<input class="login_input smb" type="submit" name="sub_login" id="sub_login" value="登 录" /></td>
</tr>
</table>
</form>
</div>
<?php
}else{
require_once('../incr/mdbcontslymq.php');
if(mysql_fetch_object(mysql_query("select * from prize where uid='".$_COOKIE['username']."'"))){
$msg = "您已经抽过奖了,不能重复抽奖!";
}else{
$msg = "";
}
?>
<div id="login">
<form method="post">
<table>
<tr>
<td style=" font-size: 12px; "><span style=" height:20px; line-height:20px; color:#0C9; " ><font color="#FF0033"><b><?php echo $msg; ?></b></font>E宝宝ID号:<font color="#FF0033"><b><?php echo $_COOKIE['username']; ?></b></font> | 您现在的身份:<font color="#FF0033"><b><?php if($_COOKIE['sf'] == '1') {echo "客户"; }?></b></font> | <a style="color:#OC9:" href="../kehu/kifrmain.php" >进入个人中心</a> </span>
<td style=" font-size: 12px; "><input type="submit" name="sub_logout" id="sub_logout" value="退出" style=" width: 40px; height: 20px; line-height: 20px; font-size: 14px; border:#09F solid 1px;"/></td>
</tr>
</table>
</form>
</div>
<?php } ?>
<div id="t">
<ul>
<li><a href="http://www.szhff.com" target="_blank">E路航官网</a></li>
<li><a href="../index.php" target="_blank">E宝宝系统</a></li>
<li><a href="http://bbs.szhff.com" target="_blank">E路航论坛</a></li>
<li><a href="http://eroda.taobao.com" target="_blank">淘宝旗舰店</a></li>
<li><a href="http://shop.paipai.com/855002061" target="_blank">拍拍旗舰店</a></li>
<li><a href="#">抽奖说明</a></li>
</ul>
</div>
</div>
<div id="img_t"><img src="images/bg_01.jpg" ></img><img src="images/bg_02.jpg" ></img><img src="images/bg_03.jpg" ></img></div>
<div id="img_c">
<div id="t_left">
<div id="show_scroll">
<table>
<?php
$p_sql = "SELECT * FROM `prize` WHERE prize!=7 order by prize asc";
$rsl = mysql_query($p_sql);
$i = 0;
//print_r(mysql_fetch_object($rsl));
while($pr = mysql_fetch_object($rsl)){
//$uid = $pr->uid;
$prize = $pr->prize;
if($prize == '1'){
$pi = '一等奖';
}else if($prize == '2'){
$pi = '二等奖';
}else if($prize == '3'){
$pi = '三等奖';
}else if($prize == '4'){
$pi = '四等奖';
}else if($prize == '5'){
$pi = '20元红包';
}else if($prize == '6'){
$pi = '10元红包';
}
$date = date("Y-m-d",$pr->date);
?>
<tr>
<td><?php echo $pr->uid; ?></td>
<td><?php echo $pi; ?></td>
</tr>
<?php }?>
</table>
</div>
</div>
<div id="t_right">
<embed src="51chou.swf" width="586" height="420" align="absmiddle" scale="noborder" wmode="transparent" />
</div>
</div>
<div id="footer" class="footer">
<span>所有版权归香港华锋实业有限公司所有</span>
</div>
<script type="text/javascript">
var tab = document.getElementById("show_scroll");
var scrollUnit=1; //滚动高度
var interval=100; //时间间隔
setTimeout(scroll,interval);
function scroll()
{
obj.style.pixelTop-=scrollUnit;
setTimeout(scroll,interval);
}
</script>
</body>
</html>