<!--#include file="check.asp"-->
<!--#include file="webconn.asp"-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<link href="../conn/web_admin.css" type="text/css" rel="stylesheet"></head>

<body><br><br><br>
<%
Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from vote"
rs.open sql,conn,1,3
%>

<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#A3BFE8">
  <tr>
    <td height="20" colspan="4" align="center" bgcolor="#E9F1F8">投票管理</td>
  </tr>
  <tr>
    <td width="26%" height="20" align="center" bgcolor="#FFFFFF" class="tdbg">当前投票项目&nbsp;&nbsp; 名称：</td>
    <td height="20" colspan="3" align="center" bgcolor="#FFFFFF" class="tdbg">	  <form name="vote" method="post" action="save_vote.asp?id=<%=rs("v_id")%>">
	  <input name="txt_name" type="text" class="input" id="txt_name" value=" <%=rs("v_title")%>" size="26" maxlength="26">
	  &nbsp;&nbsp;&nbsp;&nbsp; 
	  <input name="Submit22" type="submit" class="input" value="修 改 ">
    </form></td>
  </tr>
  <tr>
    <td height="20" align="center" bgcolor="#E9F1F8">选项</td>
    <td width="14%" align="center" bgcolor="#E9F1F8">票数</td>
    <td width="30%" align="center" bgcolor="#E9F1F8">&nbsp;</td>
    <td width="30%" align="center" bgcolor="#E9F1F8">&nbsp;</td>
  </tr>
  <%while not rs.eof%>
  <form name="abcd<%=rs("v_id")%>"  method="post" action="edit_vote.asp?id=<%=rs("v_id")%>">
  <tr>
    <td height="20" align="center" bgcolor="#E9F1F8" class="tdbg"><input name="txt_name2" id="txt_name2" value="<%=rs("v_id")%>" size="12" maxlength="12" type="hidden">      <input name="txt_name" type="text" class="input" id="txt_name" value="<%=rs("v_name")%>" size="12" maxlength="12"></td>
    <td align="center" bgcolor="#E9F1F8" class="tdbg"><input name="txt_num" type="text" class="input" id="txt_num" value="<%=rs("v_num")%>" size="6" maxlength="6"></td>
    <td align="center" bgcolor="#E9F1F8" class="tdbg"><input name="Submit222" type="submit" class="input" value="修 改 "></td>
    <td align="center" bgcolor="#E9F1F8" class="tdbg"><a href="delvote.asp?id=<%=rs("v_id")%>">删除</a></a></td>
  </tr>
  </form>
  <%rs.movenext
  wend%>
  
  <tr>
    <td height="20" colspan="4" align="center" bgcolor="#FFFFFF" class="tdbg"><label></label></td>
  </tr>
</table>
<%rs.close
set rs=nothing%>
<form name="addvote" method="post" action="addvote.asp">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#A3BFE8">
  <tr>
    <td width="45%" height="20" align="center" bgcolor="#E9F1F8" class="tdbg">添加选项
      <label>
      <input name="txt_add" type="text" class="input" id="txt_add">
    </label></td>
    <td width="55%" align="center" bgcolor="#E9F1F8" class="tdbg"><label>
      <input name="Submit" type="submit" class="input" value=" 添 加 ">
    </label></td>
  </tr>
</table>
</form>
</body>
</html>
