<%@ page contentType="text/html;charset=GBK" %>
<%@ page language="java" import="java.sql.*"%>
<jsp:useBean id="connDbBean" scope="page" class="vote.VoteConn"/>
<html>
<head>
	<title>网上调查表－－最牛的大学</title>
    <link rel="stylesheet" type="text/css" href="style.css">
</head>
<%
ResultSet rs = connDbBean.executeQuery("select * from vote");
%>
<body bgcolor="#FFFFFF">
<center>
<h2><font color=#0000ff>请投出您神圣的一票：</font></h2>
<Table border bgcolor=#00FFFF>
<form action="vote.jsp">
   	<% while(rs.next()) { %> 
   		<TR>
		<TD width=200><input type="radio" name="type" value=<%=rs.getString("id")%>> &nbsp;<%=rs.getString("note")%></TD>
		</TR>
	<%}
	rs.close();
	%>
	<TR align="center"><TD><Input type="submit" value="投票"></TD></TR>
</form> 
	<TR><TD><A href="details.jsp">查看投票</A></TD></TR>
</Table>
</center>  
</body>
</html>
