<?php  session_start();
include("../conn/conn.php");
if($_SESSION[admin_user]==true and $_SESSION[admin_pass]==true){
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>投票管理系统</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.STYLE11 {
	font-family: "黑体";
	font-size: 15px;
	font-weight: bold;
	color: #636163;
}
-->
</style></head>
<body>
<table width="844" border="0" cellpadding="0" cellspacing="0" align="center">
  <tr>
    <td><img src="../images/bg_02.gif" width="844" height="116"></td>
  </tr>
  <tr>
    <td><table width="844" height="162" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="190" valign="top" background="../images/bg_107.gif"><table width="190" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td><img src="../images/bg_04.gif" width="190" height="55"></td>
          </tr>
         <tr>
        <td width="190" height="32" background="../images/bg_106.gif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="index.php?admin_title=管理投票主题">管理投票主题</a></td>
      </tr>
      <tr>
        <td width="190" height="32" background="../images/bg_106.gif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="index.php?admin_title=管理投票内容">管理投票内容</a></td>
      </tr>
      <tr>
        <td width="190" height="32" background="../images/bg_106.gif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="index.php?admin_title=管理投票">管理投票</a></td>
      </tr>
          <tr>
            <td><img src="../images/bg_107.gif" width="190" height="32"></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
        </table></td>
        <td width="654" rowspan="2" valign="top"><table width="654" height="201" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td height="55"><table height="55" border="0" cellpadding="0" cellspacing="0" background="../images/bg_04(1).gif">
              <tr>
                <td width="137" height="24">&nbsp;</td>
                <td width="517">&nbsp;</td>
              </tr>
              <tr>
                <td height="31">&nbsp;</td>
                <td valign="top" class="STYLE11"><?php echo $_GET[admin_title];?></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td align="center" background="../images/bg_130.gif"><table width="572" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td>

<table width="572" border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bgcolor="#FFFFFF">
  <tr>
    <td height="29" colspan="2" align="center" bgcolor="#CEE74A"><span class="style1">投票内容</span></td>
    <td width="151" align="center" bgcolor="#CEE74A" class="style1">删除项目</td>
  </tr>
   <?php 
  $query="select * from tb_vote_odd where tb_vote_subject='".$_GET[vote_subjectes]."'";
  $result=mysql_query($query);
  while($myrow=mysql_fetch_array($result)){
  ?>
  <tr>
    <td width="117" height="29" align="left" background="../images/bg_20.gif">&nbsp;&nbsp;<?php echo $myrow[tb_vote_subject];?></td>
    <td width="361" height="25" align="left" background="../images/bg_20.gif"><span class="style2">（<?php echo $myrow[tb_vote_type];?>）&nbsp;<?php echo $myrow[tb_vote_content];?>&nbsp;&nbsp;&nbsp;&nbsp;票数：<?php echo $myrow[tb_vote_counts];?></span></td>
    <td align="center" background="../images/bg_201.gif"><a href="delete_vote_content.php?vote_content=<?php echo $myrow[tb_vote_content];?>" class="style2">删除</a></td>
  </tr>
<?php
 }
  $query="select * from tb_vote_more where tb_vote_subject='".$_GET[vote_subjectes]."' ";
  $result=mysql_query($query);
  while($myrow=mysql_fetch_array($result)){
  ?>
  <tr>
    <td height="29" align="left" background="../images/bg_20.gif" class="style2">&nbsp;&nbsp;<?php echo $myrow[tb_vote_subject];?></td>
    <td height="25" align="left" background="../images/bg_20.gif" class="style2">（<?php echo $myrow[tb_vote_type];?>）<?php echo $myrow[tb_vote_content];?>&nbsp;&nbsp;&nbsp;&nbsp;票数：<?php echo $myrow[tb_vote_counts];?></td>
    <td align="center" background="../images/bg_201.gif"><a href="delete_vote_content.php?vote_contents=<?php echo $myrow[tb_vote_content];?>" class="style2">删除</a></td>
  </tr> 
<?php }?>
</table>





	</td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td valign="bottom" background="../images/bg_107.gif"><img src="../images/bg_13.gif" width="190" height="175"></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><img src="../images/bg_19.gif" width="846" height="61"></td>
  </tr>
</table>
</body>
</html>
<?php }else{
	echo "<script>alert('您没有正确登录！');window.location.href='admin_enter.php';</script>";
}?>