📄 polldetail.jsp
字号:
<%@ page import="com.everstar.poll.*"%>
<%String custId = request.getParameter("pollId");
int pollId = Integer.parseInt(custId);
%>
<jsp:useBean id="dbConn" scope="request" class="com.everstar.database.Database"/>
<jsp:useBean id="poll" scope="request" class="com.everstar.poll.PollInformation"/>
<jsp:useBean id="custCtl" scope="page" class="com.everstar.poll.SelectPoll">
<jsp:setProperty name="custCtl" property="*"/>
<jsp:setProperty name="custCtl" property="pollId" value="<%=pollId%>"/>
<jsp:setProperty name="custCtl" property="poll" value="<%=poll%>"/>
<jsp:setProperty name="custCtl" property="dbConn" value="<%=dbConn%>"/>
<%custCtl.init();%>
</jsp:useBean>
<jsp:useBean id="custCtl1" scope="page" class="com.everstar.webstar.poll.SelectPollAnswer">
<jsp:setProperty name="custCtl1" property="*"/>
<jsp:setProperty name="custCtl1" property="pollId" value="<%=pollId%>"/>
<jsp:setProperty name="custCtl1" property="dbConn" value="<%=dbConn%>"/>
<%custCtl1.init();%>
</jsp:useBean>
<html>
<head>
<title>CustomerInformation
</title>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<style type="text/css">
<!--
A { text-decoration: none; }
A:hover { color:#FF3300; }
.normal { text-decoration: underline; color:#0033cc; }
.subject { font-family: verdana; }
.subjectOn { font-family: verdana; font-weight: bold; }
.username { font-family: verdana; color: #000000; }
.usernameOn { font-family: verdana; color: #000000; font-weight: bold; }
.datetime { font-family: verdana; color: #333333; }
.datetimeOn { font-family: verdana; color: #333333; font-weight: bold; }
.dateTimeList { font-family: verdana; color: #666666; text-align: center; }
.dateTimeListToday { font-family: verdana; color: #ff6600; text-align: center; }
.breadcrumbBox { font-family: verdana; font-size: 9pt; color: #0033cc; font-weight: bold;}
.messageNav { font-size: 7pt; font-family: verdana;}
.messageNavButton { font-size: 8pt;font-family: verdana;}
-->
</style>
</HEAD>
<BODY bgColor=#ffffff leftMargin=0 text=#000000 topMargin=0 MARGINWIDTH="0" MARGINHEIGHT="0">
<TABLE bgColor=#ffffff border=0 cellPadding=0 cellSpacing=0 width="100%">
<tr><jsp:include page="../header.jsp" flush="true"/> </tr>
</TABLE>
<form action="browsepoll.jsp" name="form1" method="POST">
<table border="0" width="100%">
<tr>
<td width="100%" align = center><b>The Poll's Information:</b></td>
</tr>
<tr>
<td width="100%">
<table border="1" width="100%" height="113">
<tr>
<td width="15%" height="18" align=center><font style="FONT-FAMILY: ; FONT-SIZE: 10pt" color="#000080">Author:</font></td>
<td width="85%" height="18"><%=(poll.getAuthor().trim().length() == 0) ? " " : poll.getAuthor()%></td>
</tr>
<tr>
<td width="15%" height="18" align=center><font style="FONT-FAMILY: ; FONT-SIZE: 10pt" color="#000080">Title:</font></td>
<td width="85%" height="18"><%=(poll.getThemeTitle().trim().length() == 0) ? " " : poll.getThemeTitle()%></td>
</tr>
<tr>
<td width="15%" height="18" align=center><font style="FONT-FAMILY: ; FONT-SIZE: 10pt" color="#000080">Status:</font></td>
<td width="85%" height="18"><%=poll.getStatus()%></td>
</tr>
<tr>
<td width="15%" height="18" align=center><font style="FONT-FAMILY: ; FONT-SIZE: 10pt" color="#000080">Description:</font></td>
<td width="85%" height="18"><%=(poll.getThemeDetail().trim().length() == 0) ? " " : poll.getThemeDetail()%></td>
</tr>
<tr>
<td width="15%" height="18" align=center><font style="FONT-FAMILY: ; FONT-SIZE: 10pt" color="#000080">CreateTime:</font></td>
<td width="85%" height="18"><%=(poll.getCreatTime().trim().length() == 0) ? " " : poll.getCreatTime()%></td>
</tr>
<tr>
<td width="15%" height="18" align=center><font style="FONT-FAMILY: ; FONT-SIZE: 10pt" color="#000080">OverTime:</font></td>
<td width="85%" height="18"><%=(poll.getOverTime().trim().length() == 0) ? " " : poll.getOverTime()%></td>
</tr>
<tr>
<table border="1" width="100%">
<tr><div align="center"> The Answer</div></tr>
<tr>
<td width="15%">
<div align="center"><font size="2">AnswerNo</font></div>
</td>
<td width="70%">
<div align="center"><font size="2">Answer</font></div>
</td>
<td width="15%">
<div align="center"><font size="2">SelectCount</font></div>
</td>
</tr>
<% PollAnswer emBean = null;
for (int i = 0; i < custCtl1.getNumOfPollAnswer(); ++i) {
emBean = custCtl1.getPollAnswer(i);%>
<tr bgColor="00FF80">
<td width ="15%"><div align="center"><%=emBean.getAnswerNo()%></div></td>
<td width="70%"><%=(emBean.getAnswerText().trim().length() == 0) ? " " : emBean.getAnswerText()%></td>
<td width="15%"><%=emBean.getAnswerCount()%></td>
</tr>
<%}%>
</table>
</tr>
</table>
</td>
</tr>
</table>
<tr>
<center>
<input type="submit" value="Return" name="submit" >
</center>
</tr>
</form>
<TABLE bgColor=#ffffff border=0 cellPadding=0 cellSpacing=0 width="100%">
<tr><jsp:include page="../footer.jsp" flush="true"/> </tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -