📄 monthstatistics.jsp
字号:
<%@ page contentType="text/html;charset=gb2312" pageEncoding="gb2312" isELIgnored="false"%>
<%@ page import="java.util.Collection,tarena.pojo.*"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<jsp:useBean id="monthStatistics" class="java.util.ArrayList" scope="request"/>
<%
if(monthStatistics.size()>0)
pageContext.setAttribute("flag", "true");
%>
<html>
<head>
<title>达内课程调查系统</title>
<meta name="generator" content="TonyDeng">
<meta name="keywords" content="达内课程调查系统">
<meta name="description" content="明天会更好!">
<link href="../inc_css/tarena.css" rel="stylesheet" type="text/css">
<link href="../inc_css/support.css" type=text/css rel=stylesheet>
</head>
<body topmargin="5" leftmargin="5">
<table border="0" align="center" width="100%" cellpadding="1"
cellspacing="1">
<tr>
<td align="center" colspan="4" style="font-size:16px" height="55">
<font face="黑体">达内科技(上海)课程调查 <font color="#FF0000"><b><%=request.getParameter("year")%></b></font> 年 <font color="#FF0000"><b><%=request.getParameter("month")%></b></font> 月份统计表 <!--<input type="button" value="发送邮件" onclick="window.location='sendMail.do';"/>--></td>
</tr>
</table>
<logic:present name="flag" scope="page">
<table border="0" align="center" width="100%" cellpadding="1"
cellspacing="1">
<logic:iterate id="statistics" name="monthStatistics" scope="request">
<tr bgcolor="#cccccc">
<td width="30" align="center"><b>序号</b></td>
<td align="center"><b>教师</b></td>
<td align="center"><b>调查时间</b></td>
<td align="center"><b>班级</b></td>
<td align="center"><b>课程</b></td>
<td align="center"><b>总份数</b></td>
<td align="center"><b>有效份数</b></td>
<td align="center"><b>平均分数</b></td>
</tr>
<logic:iterate id="poll" name="statistics" property="pollList" indexId="key">
<tr>
<td align="center" onclick="window.location='../poll/pollDetail.do?id=<bean:write name="poll" property="id"/>';" style="cursor:hand;"><c:out value="${pageScope.key+1}"/></td>
<td align="center" onclick="window.location='../poll/pollDetail.do?id=<bean:write name="poll" property="id"/>';" style="cursor:hand;"><bean:write name="poll" property="teacher.name"/></td>
<td align="center" onclick="window.location='../poll/pollDetail.do?id=<bean:write name="poll" property="id"/>';" style="cursor:hand;"><bean:write name="poll" property="createdDate" format="yyyy-MM-dd" /></td>
<td align="center" onclick="window.location='../poll/pollDetail.do?id=<bean:write name="poll" property="id"/>';" style="cursor:hand;"><bean:write name="poll" property="classes.name"/><bean:write name="poll" property="classes.types"/></td>
<td align="center" onclick="window.location='../poll/pollDetail.do?id=<bean:write name="poll" property="id"/>';" style="cursor:hand;"><bean:write name="poll" property="course.name"/></td>
<td align="center" onclick="window.location='../poll/pollDetail.do?id=<bean:write name="poll" property="id"/>';" style="cursor:hand;"><bean:write name="poll" property="amount"/></td>
<td align="center" onclick="window.location='../poll/pollDetail.do?id=<bean:write name="poll" property="id"/>';" style="cursor:hand;"><bean:write name="poll" property="availableNum"/></td>
<td align="center" onclick="window.location='../poll/pollDetail.do?id=<bean:write name="poll" property="id"/>';" style="cursor:hand;"><bean:write name="poll" property="avgScore" format="0.00"/></td>
</tr>
</logic:iterate>
<tr>
<td align="center" colspan="8" height="8">
<hr noshade color="#000000" size="1"/></td>
</tr>
<tr>
<td align="center" colspan="8">
<p align="right"><b>教师:</b><bean:write name="statistics" property="teacher.name"/> <b>月平均分:<font color="red" style="font-size: 11pt"><bean:write name="statistics" property="avgScore" format="0.00"/></font></b></td>
</tr>
<tr>
<td align="center" colspan="8" height="8"><img src="" height="8"/></td>
</tr>
</logic:iterate>
<tr>
<td align="center" colspan="8" height="8"><img src="" height="8"/></td>
</tr>
</table>
</logic:present>
<logic:notPresent name="flag" scope="page">
<table border="0" align="center" width="100%" cellpadding="1" cellspacing="1">
<tr>
<td align="center" colspan="4"><font color="red">没有符合条件的结果</font></td>
</tr>
</table>
</logic:notPresent>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -