📄 list.jsp
字号:
<%@ page language="java" pageEncoding="utf-8"%>
<jsp:directive.page import="edu.yinhe.system.vo.PaginationVO" />
<jsp:directive.page import="edu.yinhe.mis.vo.ClassesVO" />
<jsp:directive.page import="edu.yinhe.mis.vo.SchoolVO" />
<jsp:directive.page import="edu.yinhe.mis.vo.DictionaryVO" />
<jsp:directive.page import="edu.yinhe.mis.dto.ClassesDTO" />
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean"
prefix="bean"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html"
prefix="html"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic"
prefix="logic"%>
<jsp:directive.page import="java.util.ArrayList" />
<jsp:directive.page import="java.util.Iterator" />
<jsp:directive.page import="java.util.HashMap" />
<jsp:directive.page import="java.net.URLEncoder" />
<%
String path = request.getContextPath();
%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean"
prefix="bean"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html"
prefix="html"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic"
prefix="logic"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<TITLE>班级查询</TITLE>
<META content="noindex, nofollow" name=robots>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/CSS.css" type=text/css rel=stylesheet>
<LINK href="<%=path%>/admins/css/general.css" type=text/css
rel=stylesheet>
<LINK href="<%=path%>/admins/css/main.css" type=text/css
rel=stylesheet>
<SCRIPT src="<%=path%>/admins/js/transport.js" type=text/javascript></SCRIPT>
<SCRIPT src="<%=path%>/admins/js/common.js" type=text/javascript></SCRIPT>
<SCRIPT src="<%=path%>/admins/js/utils.js" type=text/javascript></SCRIPT>
<SCRIPT src="<%=path%>/admins/js/listtable.js" type=text/javascript></SCRIPT>
<SCRIPT src="<%=path%>/admins/js/login.js" type=text/javascript></SCRIPT>
<SCRIPT src="transport.js" type=text/javascript></SCRIPT>
<SCRIPT src="common.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript>
function aa(){
document.all.classType.value="";
document.all.schoolNo.value="";
document.all.classState.value="";
}
</SCRIPT>
<META content="MSHTML 6.00.2900.3243" name=GENERATOR>
<style type="text/css">
</style>
</HEAD>
<BODY>
<H1>
<SPAN>学校综合管理系统管理中心 -
班级查询:</SPAN>
</H1>
<DIV class=form-div>
<form action="<%=path%>/admins/core/classes.html?method=allClasses"
method=post>
<table width="100%" height="29" border="0" cellpadding="0"
cellspacing="0">
<jsp:include page="/admins/core/classes.html" flush="false">
<jsp:param name="method" value="findClassType" />
</jsp:include>
<jsp:include page="/admins/core/classes.html" flush="false">
<jsp:param name="method" value="findClassState" />
</jsp:include>
<jsp:include page="/admins/core/school.html" flush="false">
<jsp:param name="method" value="findSchool" />
</jsp:include>
<tr>
<%
ClassesDTO classdto = (ClassesDTO) request.getAttribute("classdto");
ArrayList slist = (ArrayList) request.getAttribute("slist");
ArrayList list1 = (ArrayList) request.getAttribute("list1");
ArrayList list2 = (ArrayList) request.getAttribute("list2");
%>
<td width="5%" height="29">
<img height=22 alt=SEARCH src="../images/icon_search.gif"
width=26 border=0>
</td>
<td align="center" width="10%">
班级类型 :
<select id="slt1" name="classType">
<option value="">
请选择
</option>
<%
if (list1 != null) {
for (Iterator it = list1.iterator(); it.hasNext();) {
DictionaryVO dvo = (DictionaryVO) it.next();
%>
<option value="<%=dvo.getName()%>"
<%
if(classdto!=null&&classdto.getClassType()!=null&&!classdto.getClassType().equals("")&&classdto.getClassType().equals(dvo.getName())){ %>
selected="selected" <%} %>><%=dvo.getName()%></option>
<%
}
}
%>
</select>
</td>
<td align="center" width="15%">
班级所在校区编号 :
<select id="s2" name="schoolNo" >
<option value="">
请选择
</option>
<%
if (slist != null) {
for (Iterator it = slist.iterator(); it.hasNext();) {
SchoolVO avo = (SchoolVO) it.next();
%>
<option value="<%=avo.getSchoolNo()%>"
<%
System.out.println(classdto.getSchoolNo());
if(classdto!=null&&classdto.getSchoolNo()!=null&&!classdto.getSchoolNo().equals("")&&classdto.getSchoolNo().equals(avo.getSchoolNo())){ %>
selected="selected" <%} %>><%=avo.getSchoolNo()%></option>
<%
}
}
%>
</select>
</td>
<td align="center" width="10%">
班级状态 :
<select id="slt1" name="classState">
<option value="">
请选择
</option>
<%
if (list2 != null) {
for (Iterator it = list2.iterator(); it.hasNext();) {
DictionaryVO dvo = (DictionaryVO) it.next();
%>
<option value="<%=dvo.getValue()%>"
<%
if(classdto!=null&&classdto.getClassState()!=null&&!classdto.getClassState().equals("")&&classdto.getClassState().equals(dvo.getValue())){ %>
selected="selected" <%} %>><%=dvo.getName()%></option>
<%
}
}
%>
</select>
</td>
<td width="10%">
<input name="submit" type=submit class=button value="搜索">
<input type=button class=button value="清空" onclick="aa()">
</td>
</tr>
</table>
</form>
</DIV>
<!-- start goods type list -->
<DIV class=list-div id=listDiv>
<table width="90%" height="52" cellpadding=3 cellspacing=1
id=listTable>
<tbody>
<tr>
<th width="8%" align="center">
班级编号
</th>
<th width="8%" align="center">
所属校区编号
</th>
<th width="8%" align="center">
上课教室编号
</th>
<th width="8%" align="center">
班级类型
</th>
<th width="8%" align="center">
学生人数
</th>
<th width="8%" align="center">
班主任编号
</th>
<th width="10%" align="center">
开班时间
</th>
<th width="10%" align="center">
毕业时间
</th>
<th width="8%" align="center">
班级名称
</th>
<th width="8%" align="center">
班级状态
</th>
<th width="4%">
结业
</th>
<th width="4%">
修改
</th>
</tr>
<%
ArrayList Clist = (ArrayList) request.getAttribute("Clist");
PaginationVO paginationVO = (PaginationVO) request
.getAttribute("pvo");
for (int i = 0; i < Clist.size(); i++) {
ClassesVO classesVO = (ClassesVO) Clist.get(i);
%>
<tr>
<td class=first-cell align=center><a href="<%=path%>/admins/core/classes.html?method=load1&id=<%=classesVO.getId() %>"><%=classesVO.getClassNo()%></a></td>
<td align=center><%=classesVO.getSchoolNo()%></td>
<td align=center><%=classesVO.getClassroomNo()%></td>
<td align=center><%=classesVO.getClassType()%></td>
<td align=center><%=classesVO.getStuNum()%></td>
<td align=center><%=classesVO.getTeacherNo()%></td>
<td align=center><%=classesVO.getOpenDate()%></td>
<td align=center><%=classesVO.getEndDate()%></td>
<td align=center><%=classesVO.getClassName()%></td>
<td align=center>
<%
if ("1".equals(classesVO.getClassState())) {
%>
可用<%
} else if ("0".equals(classesVO.getClassState())){
%>不可用
<% }else if("2".equals(classesVO.getClassState())){%>
以毕业
<% }%>
<td align=center>
<a title=删除 onClick="return confirm('确定要删除此选项吗?')"
href="<%=path%>/admins/core/classes.html?method=delClasses&classNo=<%=classesVO.getClassNo()%>">
<img alt="删除" src="<%=path%>/admins/images/icon_trash.gif"
border="0">
</a>
</td>
<td>
<div align="center">
<a title=修改
href="<%=path%>/admins/core/classes.html?method=load&id=<%=classesVO.getId()%>">
<img alt="编辑" src="<%=path%>/admins/images/icon_edit.gif"
border="0">
</a>
</td>
</tr>
<%
}
%>
</table>
<%
HashMap hashmap = new HashMap();
if (classdto.getClassType() != null
&& !"".equals(classdto.getClassType())) {
hashmap.put("classType", URLEncoder.encode(classdto.getClassType()));
}
if (classdto.getSchoolNo() != null
&& !"".equals(classdto.getSchoolNo())) {
hashmap.put("schoolNo", classdto.getSchoolNo());
}
if (classdto.getClassState() != null
&& !"".equals(classdto.getClassState())) {
hashmap.put("classState", classdto.getClassState());
}
hashmap.put("allPage", paginationVO.getAllPages());
hashmap.put("currentPage", paginationVO.getCurrentPage());
pageContext.setAttribute("hashmap", hashmap);
%>
<tr colspan=4>
<TD height='30' colspan='5'>
<div align='CENTER'>
共 <%=paginationVO.getResultsNumber()%> 条记录 |
共 <%=paginationVO.getAllPages()%> 页 |
当前第 <%=paginationVO.getCurrentPage()%> 页 | <
<%
if (paginationVO.getCurrentPage() > 1) {
%>
<html:link
page="/admins/core/classes.html?method=allClasses&type=0"
name="hashmap">
首页</html:link>
> | <
<html:link
page="/admins/core/classes.html?method=allClasses&type=1"
name="hashmap">
上一页</html:link>
> |
<%
} else {
%>
<font color='#999999'>首页></font> |
<font color='#999999'><上一页></font> | <
<%
}
%>
<%
if (paginationVO.getCurrentPage() < paginationVO.getAllPages()) {
%>
<html:link
page="/admins/core/classes.html?method=allClasses&type=2"
name="hashmap">下一页</html:link>
> | <
<html:link
page="/admins/core/classes.html?method=allClasses&type=3"
name="hashmap">尾页</html:link>
>
<%
} else {
%>
<font color='#999999'><下一页></font> |
<font color='#999999'><尾页></font>
<%
}
%>
</div>
</TD>
</tr>
</DIV>
<DIV id=footer>
版权所有 © 2005-2007 湖北银河信息技术学院,并保留所有权利。
</DIV>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -