<?php session_start();include("conn/conn.php");
if($_SESSION[tb_user]==true){
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>投票系统</title>
<style type="text/css">
<!--
.style1 {font-size: 13px}
a:link {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
}
a:hover {
	text-decoration: none;
}
a:active {
	text-decoration: none;
}
.style2 {font-size: 12px}
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>
</head>

<body>
<table width="1003" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td colspan="3"><img src="images/bg2_06 (3).gif" width="1003" height="160"></td>
  </tr>
  <tr>
    <td width="101" align="right"><img src="images/bg2_06 (4).gif" width="90" height="390"></td>
    <td width="812" valign="top"><table width="812" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="626" height="97"><img src="images/bg2_06 (5).gif" width="626" height="97"></td>
        <td rowspan="2"><table width="100%" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td><img src="images/bg2_06 (6).gif" width="186" height="244"></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td valign="top">
		<table width="626" border="0" cellpadding="0" cellspacing="0">
         <?php 
	$result=mysql_query("select * from tb_vote_subject");
  	while($myrow=mysql_fetch_array($result)){
?>
		  <tr>
            <td width="166" align="right" background="images/bg2_08.gif"><a href="vote.php?vote_subject=<?php echo $myrow[tb_vote_subject_name];?>"><?php echo $myrow[tb_vote_subject_name];?></a></td>
            <td width="459" height="29" background="images/bg2_09.gif"><span class="style2">&nbsp;说明:&nbsp;<?php echo $myrow[tb_vote_subject_text];?></span></td>
          </tr>
		    <?php }?>
        </table></td>
        </tr>
      <tr>
        <td height="59"><img src="images/bg2_06 (1).gif" width="626" height="59"></td>
        <td>&nbsp;</td>
      </tr>
    </table></td>
    <td width="90"><img src="images/bg2_06.gif" width="90" height="390"></td>
  </tr>
  <tr>
    <td colspan="3"><img src="images/bg2_06 (2).gif" width="1003" height="90"></td>
  </tr>
</table>
</body>
</html>
<?php }else{
	echo "<script>alert('请您正确登录！');window.location.href='index.php';</script>";
}?>