<?
include("../config/conn.php");
include("../config/function.php");
sesCheck();
?>
<!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="x-ua-compatible" content="ie=7" />
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>用户管理面板 - <?=webname?></title>
<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="css/personalCenter.css">
<link rel="stylesheet" type="text/css" href="css/global.css">
<link rel="stylesheet" type="text/css" href="css/index.css">
<!--<link rel="stylesheet" type="text/css" href="css/gameListStyle.css">
<link rel="stylesheet" type="text/css" href="css/oldstyle.css">-->
<link rel="stylesheet" type="text/css" href="css/layui.css">
<script language="javascript" src="../js/basic.js"></script>
<script language="javascript" src="js/index.js"></script>
</head>
<body style="background:#f7f7f7;">
<? include("top.php");?>



<div class="personal_center main_wrap clear">
<? include("left.php");?>
<div class="realName">
        <div class="rn_title">
            <span>订单管理</span>
        </div>

<!--RB-->
<div class="right">

 <? include("rcap14.php");?>
 <script language="javascript">
 $("rcap1").className="l1 l2";
 </script>

 <ul class="adlxcap">
 <li class="l1">选择</li>
 <li class="l2">广告位编号</li>
 <li class="l3">广告位说明</li>
 <li class="l4">剩余位置</li>
 <li class="l5">排队人数</li>
 </ul>
 <?
 while0("*","yjcode_adlx where admin=1 and zt=0 order by sj asc");while($row=mysql_fetch_array($res)){
 if(empty($row[maxnum])){$sywz="充足";}
 else{
  $a=$row[maxnum]-returncount("yjcode_ad where adbh='".$row[adbh]."' and zt=0");
  if($a<0){$sywz=0;}else{$sywz=$a;}
 }
 if($row[fflx]==1){$adlxu="adgd.php?bh=".$row[bh];}
 elseif($row[fflx]==2){$adlxu="adfd.php?bh=".$row[bh];}
 ?>
 <ul class="adlxlist" onclick="gourl('<?=$adlxu?>');" onmouseover="this.className='adlxlist adlxlist1';" onmouseout="this.className='adlxlist';">
 <li class="l1"><input name="R1" type="radio" value="<?=$row[bh]?>" /></li>
 <li class="l2"><?=$row[adbh]?></li>
 <li class="l3"><?=$row[tit]?></li>
 <li class="l4"><?=$sywz?></li>
 <li class="l5"><?=returncount("yjcode_ad where adbh='".$row[adbh]."' and zt=1")?></li>
 </ul>
 <? }?>

</div> 
<!--RE-->

</div>
<? include("bottom.php");?>
</body>
</html>