⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 trainingplan_commonsearch.jsp

📁 java jsp教程
💻 JSP
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import = "com.icss.cnpc.plan.vo.TrainingPlanInfo"%>
<%@ page import = "java.util.List"%>
<%@ page import = "java.util.Iterator"%>
<%@ page import="com.icss.cnpc.util.*" %>
<%
    response.setHeader("Pragma", "No-cache");
    response.setHeader("Cache-Control", "no-cache");
    response.setDateHeader("Expires", 0);
%>
<%
	List trainingPlanList = (List)request.getAttribute("trainingPlanList");
	//填写过反馈信息的计划编码列表
	List trainingnoList = (List)request.getAttribute("trainingnoList");
	String chosenYear = (String) request.getAttribute("chosenYear");
	Integer year = null;
	if (chosenYear != null) {
		year = new Integer(chosenYear);
	}
%>
<html>
<head>
<title>培训计划列表</title>
<link rel = "stylesheet" href = "<%=request.getContextPath()%>/css/style.css">
</head>
<body background = "<%=request.getContextPath()%>/images/grid.gif" topMargin = "30">
<form name = "form1">
<table border = "0" width = "95%" align = "center" cellspacing = "1" cellpadding = "1" bgColor=#b3c4db>
	<tr bgcolor="#a6d0f2" height = "30">
		<th colspan = "8">
		<select name="planYear" onChange="_changeYear()">
					   		<option value="9999" >全部</option>
	               	    	<%= CommUtil.mkYearOptions(year) %>
      </select>
		 年 度 培 训 计 划 列 表</th>
	</tr>
	<tr height = "30" align = "center" bgColor=#eef4ff>
		<td width = "5%">序号</td>
		<td width="15%">培训计划编号</td>
		<td width = "20%">培训班名称</td>
		<td width = "20%">主办单位</td>
		<td width = "10%">培训时间</td>
		<td width = "15%">培训类型</td>
		<td width = "8%">培训方式</td>
		<td width = "7%">反馈表</td>
	</tr>
	<%
		int counter = 1;
		for(Iterator trainingPlanIter = trainingPlanList.iterator();trainingPlanIter.hasNext();){
			TrainingPlanInfo trainingPlanVo = (TrainingPlanInfo)trainingPlanIter.next();
	%>
	<tr height = "25" align = "center" bgColor=#eef4ff height = "25">
		<td><%=counter++%></td>
		<td><%=trainingPlanVo.getTrainingno()%></td>
		<%
			String tPlanName = trainingPlanVo.getTrainingname();
			String tempName = tPlanName;
			if (tPlanName != null && tPlanName.length() >11) {
				tempName = tPlanName.substring(0, 10) + "..";
			}
		%>
		<td><a href = "javascript:openPlanBasicInfo('<%=trainingPlanVo.getTrainingno()%>')" title="<%=tPlanName%>"><%=tempName%></a></td>
		<%
			String tOrgName = trainingPlanVo.getTrainingorg();
			String tempOrgName = tOrgName;
			if (tOrgName != null && tOrgName.length()>11) {
				tempOrgName = tOrgName.substring(0,10) + "..";
			}
		%>
		<td title="<%=tOrgName%>"><%=tempOrgName%></td>
		<td><%=trainingPlanVo.getBegindate()%></td>
		<td><%=trainingPlanVo.getTrainingmode()%></td>
		<td><%=trainingPlanVo.getTrainingtype()%></td>
		<td><%if(!trainingnoList.contains(trainingPlanVo.getTrainingno())){%><a href = "<%=request.getContextPath()%>/servlet/TrainingPlan_AddFeedbackServlet1?trainingno=<%=trainingPlanVo.getTrainingno()%>">填写</a><%}else{%>&nbsp;<%}%></td>
	
	</tr>
	<%
		}
	%>
</table>
<br>
<center>
	 <%@ include file="../.././include/defaultPageScrollBar.jsp" %>
</center>
</form>
</body>
<script language = "javascript">
function openPlanBasicInfo(trainingno){
	wx=600;
	wy=400;
	urlstr= "<%=request.getContextPath()%>/servlet/TrainingPlan_ViewPlanInfoServlet?trainingno=" + trainingno;
	x=(window.screen.width-wx)/2;
	y=(window.screen.height-wy)/2;
	wposition=",left="+x+",top="+y;
	window.open(urlstr,"查看计划信息","width="+wx+",height="+wy+",scrollbars=yes,status=no"+wposition);
}
function _changeYear() {
	document.form1.action="<%=request.getContextPath()%>/servlet/TrainingPlan_CommonSearchServlet";
	document.form1.submit();
	}
</script>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -