?? edit1.jsp
字號:
<%@page import="java.sql.*"%>
<%@page contentType="text/html;charset=GB2312"%>
<%@include file="opendata.jsp"%>
<%@include file="convert.jsp"%>
<%@include file="check.jsp"%>
<html>
<head>
<title>
編輯問題及選項
</title>
<LINK href="style.css" rel=stylesheet>
<body>
<center>
為了保證投票的公正性,請先將計數器清零后修改選項!
</center>
<hr>
<form action=modify.jsp method=post>
<DIV align=center>
<TABLE cellSpacing=0 cellPadding=0 width=73% align=center border=0 bordercolor="#999999">
<tr>
<td bgcolor=#999999>調查主題:</td>
<%
request.getSession(true);
session.putValue("questionid",String.valueOf(request.getParameter("questionid")));
int questionid;
questionid = Integer.parseInt(request.getParameter("questionid"));
out.print("<a href=resetcount.jsp?questionid="+questionid+"><font color=red>將本主題投票記數全部清0</font></a>");
sql = "select Question from Questions where QuestionID='"+questionid+"'";
rs = smt.executeQuery(sql);
String question = null;
while(rs.next())
{
question = rs.getString(1);
// question = Replace(question);
}
%>
<td align=right><input class="smallInput" type="text" size="90" name="question" value = "<%=question%>"></td>
<%sql = "select Item from Items where QuestionID='"+questionid+"'";
rs = smt.executeQuery(sql);
String item = null;
int i= 0;
while(rs.next())
{
item = rs.getString(1);
i++;
out.print("<tr><td>選項"+i+":</td>");
%>
<td align=right><input class=smallInput type=text size=90 name=item<%=String.valueOf(i)%> value="<%=item%>"></td></tr>
<%}
for(;i<10;++i)
{
out.print("<tr><td>選項"+(i+1)+":</td>");
out.print("<td align=right><input class=smallInput type=text size=90 name=item"+String.valueOf(i+1)+" ></td></tr>");
}
%>
<tr><td>
</tr>
</table>
</DIV>
<p>
<DIV align=center><INPUT class=buttonface type=submit value=發布 name=Submit>
<INPUT class=buttonface type=reset value=重寫 name=Submit2></DIV>
</form>
<hr>
<div align="center"><a href = mainform.jsp>回問卷管理頁面</a></div>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -