<?php
include_once("inc/conn.php");
include_once("inc/function.php");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>活动中心-<?=$web_name;?></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="keywords" content="<?=$web_keywords;?>" />
<meta name="description" content="<?=$web_description;?>" />
<META http-equiv=X-UA-Compatible content=IE=EmulateIE7>
<link href="style/default.css" rel="stylesheet" type="text/css" />
</head>
<?php include_once("top.php");?>
<script language="javascript">
qiehuan(5);
</script>
<DIV class="wrapper">
	<DIV class="page_content">
		<DIV class="webgame-activities-title">
			<H3>进行中活动</H3>
		</DIV>
			<UL class="webgame-activities">
				<?
				$query=$db->query("Select * from {$web_dbtop}activities where zt!=1 Order by id desc");
				while($rs=$db->fetch_array($query)){
				?>
				<LI><A title="<?=$rs["name"]?>" href="<?=$rs["url"]?>"><IMG alt="<?=$rs["name"]?>" src="<?=$web_webdir.$web_activitiesdir.$rs["pic"]?>"><SPAN class="bb"><?=$rs["name"]?></SPAN></A><SPAN class="bb">活动时间：<?=$rs["time"]?></SPAN><SPAN class="bb">参加对象：<?=$rs["dx"]?></SPAN></LI>
				<?
				}
				?>
			</UL>
		<div class="area960-b h5px"></div>
	</div>
	<div class="blank10"></div>
	<DIV class="page_content">
		<DIV class="webgame-activities-title">
			<H3>过期活动</H3>
		</DIV>
			<UL class="webgame-activities">
				<?
				$query=$db->query("Select * from {$web_dbtop}activities where zt=1 Order by id desc");
				while($rs=$db->fetch_array($query)){
				?>
				<LI><A title="<?=$rs["name"]?>" href="<?=$rs["url"]?>"><IMG alt="<?=$rs["name"]?>" src="<?=$$web_webdir.$web_activitiesdir.$rs["pic"]?>"><SPAN class="bb"><?=$rs["name"]?></SPAN></A><SPAN class="bb">活动时间：<?=$rs["time"]?></SPAN><SPAN class="bb">参加对象：<?=$rs["dx"]?></SPAN></LI>
				<?
				}
				?>
			</UL>
		<div class="area960-b h5px"></div>
	</div>
	<!--Flink End-->
	<div class="blank10"></div>
	<!--Footer Start-->
<?php include_once("footer.php");?>
</DIV>