<?php require_once('../../include/class.inc.php'); 
$id=$_GET["id"];
$result1=$my->data_select('vote','id='.$id,'id','','');
$rs1=mysql_fetch_array($result1);
?>
<!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>
<form id="form1" name="form1" method="post" action="voteup_save.php?id=<?php echo $rs1["id"];?>">
  <table width="1052" border="0" align="center" cellpadding="2" cellspacing="1" bordercolor="#799AE1" class="tableBorder">
    <tbody>

      <tr bgcolor="#CCCCCC">
        <td height="18" colspan="2" bgcolor="#4455aa"><div align="center" class="STYLE5">
          <div align="left">修改投票内容选项</div>
        </div>
        <div align="center" class="STYLE5">
              <div align="left"></div>
            </div></td>
      </tr>
      <tr bgcolor="#DEE5FA">
        <td width="105" align="center" class="txlrow"><div align="center"><strong>选择主题</strong></div></td>
        <td align="center" class="txlrow"><div align="left">
            <select name="VoteName" id="VoteName">
              <option value="">--请选择投票分类--</option>
              <?php
$sql="select * from voteclass order by VoteID desc";
$result=$my->data_work($sql);
while($rs=mysql_fetch_array($result)){
	?>
              <option value="<?php echo $rs["VoteID"]?>">
              <?php echo $rs["VoteName"]?>
              </option>
              <?php
      }
	  ?>
            </select>
        </div></td>
      </tr>
      <tr bgcolor="#DEE5FA">
        <td width="105" align="center" class="txlrow"><div align="center"><strong>投票内容</strong></div></td>
        <td align="center" class="txlrow"><div align="left">
          <input name="Votetitle" type="text" id="Votetitle" value="<?php echo $rs1["Votetitle"];?>" size="50" />
        </div></td>
      </tr>
      <tr bgcolor="#DEE5FA">
        <td align="center" class="txlrow"><strong>投票数</strong></td>
        <td align="center" class="txlrow"><div align="left">
          <input name="totalnum" type="text" id="totalnum" value="<?php echo $rs1["totalnum"];?>" size="10" />
        </div></td>
      </tr>
      <tr bgcolor="#DEE5FA">
        <td width="105" align="center" class="txlrow"><div align="center"></div></td>
        <td align="center" class="txlrow"><div align="left">
            <input type="submit" name="button" id="button" value="提交" />
            <input type="reset" name="button2" id="button2" value="重置" />
        </div></td>
      </tr>
      <tr bgcolor="#DEE5FA">
        <td colspan="2" align="center" class="txlrow"></td>
      </tr>
    </tbody>
  </table>
</form>
</body>
</html>
