<?php require_once('../../include/class.inc.php'); ?>
<!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" />
<link rel="stylesheet" href="../inc/css.css" type="text/css" />
<title>无标题文档</title>
<style type="text/css">
<!--
.STYLE5 {color: #FFFFFF; font-weight: bold; }
-->
</style>
</head>

<body>
<table width="1055" border="0" align="center" cellpadding="0" cellspacing="0">
 <tr>
    <td colspan="2"><div align="center">查看投票分类 
</div></td>
  </tr> <tr>
    <td width="960"><?php
	$my->showpage();
	?></td>
    <td width="95"><a href="../vote/add_class.php">添加分类主题</a></td>
  </tr>
  <tr>
    <td colspan="2"><table width="1052" border="0" align="center" cellpadding="2" cellspacing="1" bordercolor="#799AE1" class="tableBorder">
      <tbody>
        <tr bgcolor="#CCCCCC">
          <td height="20" bgcolor="#4455aa"><div align="center" class="STYLE5">编　号</div></td>
          <td bgcolor="#4455aa"><div align="center" class="STYLE5">主题</div></td>
          <td width="189" height="20" bgcolor="#4455aa"><div align="center" class="STYLE5">选项</div></td>
          <td width="219" height="20" bgcolor="#4455aa"><div align="center" class="STYLE5">设置</div></td>
          <td height="20" bgcolor="#4455aa"><div align="center" class="STYLE5">操 作</div></td>
        </tr>
<?php
$sql="select * from voteclass order by VoteID desc";
$result=$my->data_work($sql);
while($rs=mysql_fetch_array($result)){
?> 
        <tr bgcolor="#DEE5FA">
          <td width="45" align="center" class="txlrow"><div align="center"><?php echo $rs["VoteID"];?></div></td>
          <td width="346" align="center" class="txlrow"><div align="center"><?php echo $rs["VoteName"];?></div></td>
          <td align="center" class="txlrow"><?php if($rs["class"]=="radio"){?>
            单选
              <?php }else{?>多选
            <?php }?></td>
          <td align="center" class="txlrow"><div align="center">
            <?php if($rs["jihuo"]=="1"){?>
            <a href="../vote/vote_jihuo.php?VoteID=<?php echo $rs["VoteID"]?>">已激活状态</a>
            <?php }else{?>
            <a href="../vote/vote_jihuo.php?VoteID=<?php echo $rs["VoteID"]?>&jihuo=yes"> 未激活</a>
            <?php }?>
          </div></td>
          <td width="225" align="center" class="txlrow"><div align="center"><a href="../vote/vote_class_up.php?VoteID=<?php echo $rs["VoteID"];?>">编辑</a> | <a href="../vote/vote_class_del.php?VoteID=<?php echo $rs["VoteID"];?>" onclick="return window.confirm('确定删除？');">删除</a> | <a href="vote_content.php?VoteID=<?php echo $rs["VoteID"]?>">查看内容</a></div></td>
        </tr>
        <?php
}; 	
?>
        <tr bgcolor="#DEE5FA">
          <td colspan="5" align="center" class="txlrow"></td>
        </tr>
      </tbody>
    </table></td>
  </tr>
  <tr>
    <td colspan="2"><?php
    
	$my->showpage();
	
	?></td>
  </tr>
</table>
</body>
</html>
