📄 choiceinsert.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" errorPage="" %>
<%@page import = "java.util.*"%>
<%@page import = "model.vote.hibernate.*"%>
<%
request.setCharacterEncoding("gb2312");
Theme theme = (Theme)session.getAttribute("theme");
List choiceList = (List)session.getAttribute("choicelist");
%>
<%@ include file="..\taglibs.jsp" %>
<!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=GBK">
<title>VOTE SYSTEM</title>
<style type="text/css">
<!--
.style1 {font-family: "华文新魏";
font-size: 36px;
}
-->
</style>
</head>
<body>
<form name="form1" method="post" action="/EMIS/choiceinsert.do?type=themeinsert&themeid=<%=theme.getId()%>">
<html:errors/>
<table width="503" height="50" border="0" align="center">
<tr bgcolor="#DFDFFF">
<td height="26" colspan="2"><div align="center">添加新议题选项</div></td>
</tr>
<tr bgcolor="#FFFFCA">
<td width="179" height="18"><div align="right"><span class="TitleColor">议题选项</span></div></td>
<td width="314"><span class="TitleColor">
<input type="text" name="name">
<input type="submit" name="Submit" value="添加">
</span></td>
</tr>
<%
for (int i=0; i<choiceList.size(); i++) {
Choice choice = (Choice)choiceList.get(i);
String name = choice.getName();
%>
<%
}
%>
</table>
</form>
<form name="form2" method="post" action="vote/themeinsert.jsp">
<table width="503" height="75" border="0" align="center">
<tr bgcolor="#FFFFCA">
<td height="23" colspan="2"><div align="center">已有选项有 <%=choiceList.size()%> 项</div></td>
</tr>
<%
for (int i=0; i<choiceList.size(); i++) {
Choice choice = (Choice)choiceList.get(i);
String name = choice.getName();
%>
<tr bgcolor="#FFFFCA">
<td width="179" height="23"><div align="right">选项<%=i+1%></div></td>
<td width="314"><span class="TitleColor">
<input name="name" type="text" value=<%=name%> disabled>
</span></td>
</tr>
<%
}
%>
<tr bgcolor="#DFDFFF">
<td height="21" colspan="2"><div align="left">
<div align="center">
<input type="submit" name="Submit" value="完成">
</div>
</div></td>
</tr>
</table>
</form>
<p> </p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -