📄 voting.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@ page contentType="text/html; charset=gb2312" language="java" errorPage="" %>
<%@page import = "java.util.*"%>
<%@page import = "model.vote.hibernate.*"%>
<%@page import = "model.hr.hibernate.*"%>
<%
request.setCharacterEncoding("gb2312");
Theme theme = (Theme)session.getAttribute("theme");
List choiceList = (List)session.getAttribute("choicelist");
Employee employee = (Employee)session.getAttribute("employee");
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>VOTE SYSTEM</title>
</head>
<body>
<FORM name="form1" method="post" action="/EMIS/vote.do?employeeid=<%=employee.getId()%>&themeid=<%=theme.getId()%>">
<TABLE cellSpacing=1 cellPadding=0 width="100%" bgColor=gray border=0>
<TBODY>
<TR>
<TD align=middle height=20>
<div align="left"><B><BIG> <%=theme.getName()%></BIG></B></div></TD>
</TR>
<TR>
<TD align=middle height=20>
<div align="left"><B><BIG>相关情节:<%=theme.getContent()%></BIG></B></div></TD>
</TR>
<TR>
<TD bgColor=#f6f6f6>
<TABLE cols=3 width="100%">
<TBODY>
<TR bgColor=#e7e7e7>
<TD width="30%" height=25>
<CENTER><B>选 项</B></CENTER></TD>
</TR>
<%
for(int i=0; i<choiceList.size(); i++) {
Choice choice = (Choice)choiceList.get(i);
%>
<TR>
<TD align=left>
<label>
<input type="radio" name="choiceId" value=<%=choice.getId()%>>
<%=choice.getName()%>
</label>
</TD>
</TR>
<%
}
%>
<tr bgcolor="#DFDFFF">
<td height="21" colspan="2"><div align="center">
<input type="submit" name="Submit" value="投票">
</div></td>
</tr>
</TBODY></TABLE></TD></TR></TBODY></TABLE>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -