📄 queryexaminee.jsp
字号:
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<jsp:directive.page import="edu.yinhe.mis.vo.ExamineeVO" />
<jsp:directive.page import="edu.yinhe.mis.dto.ExamineeDTO" />
<jsp:directive.page import="edu.yinhe.system.vo.PaginationVO" />
<jsp:directive.page import="java.util.HashMap" />
<jsp:directive.page import="java.net.URLEncoder" />
<jsp:directive.page import="java.util.Iterator" />
<jsp:directive.page import="java.util.ArrayList" />
<%@ 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"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>考生管理</title>
<LINK href="../css/general.css" type=text/css rel=stylesheet>
<LINK href="../css/main.css" type=text/css rel=stylesheet>
<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 type="text/javascript">
function clearText(t){
t.value="";
}
</script>
</head>
<body>
<div id="closeshow" style="display: none;">
<div id="closewindow">
<div class="msg_block">
<iframe id="login_frame" name="login_frame" src="" frameborder="0"
marginheight="0" marginwidth="0" scrolling="no"
allowTransparency="true"></iframe>
</div>
</div>
<div id="graydiv"></div>
</div>
<%
ExamineeDTO examineeDTO = (ExamineeDTO) request
.getAttribute("examineeDTO");
%>
<H1>
<SPAN>银河管理中心 - 考生管理 </SPAN>
</H1>
<DIV class=form-div>
<FORM action="<%=path%>/admins/exam/examinee.html?method=query" method="post"
focus="login">
<label></label>
<table width="94%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="5%">
<img height=22 alt=SEARCH
src="<%=path%>/admins/images/icon_search.gif" width=26 border=0>
</td>
<td width="8%">
考试科目:
</td>
<td width="14%">
<input size=10 name=object_name onfocus="clearText(this);"
<%if(examineeDTO!=null&&examineeDTO.getObject_name()!=null&&!"".equals(examineeDTO.getObject_name())){ %>
value="<%=examineeDTO.getObject_name()%>" <%}%>>
</td>
<td width="9%">
考场编号:
</td>
<td width="14%">
<input size=10 name=check_ID onfocus="clearText(this);"
<%if(examineeDTO!=null&&examineeDTO.getCheck_ID()!=null&&examineeDTO.getCheck_ID()!=0){ %>
value="<%=examineeDTO.getCheck_ID()%>" <%}%>>
</td>
<td width="9%">
考生考号:
</td>
<td width="10%">
<input size=10 name=exam_NO onfocus="clearText(this);"
<%if(examineeDTO!=null&&examineeDTO.getExam_NO()!=null&&!"".equals(examineeDTO.getExam_NO())){ %>
value="<%=examineeDTO.getExam_NO()%>" <%}%>>
</td>
<td width="4%">
</td>
<td width="27%">
<input name="submit" type=submit class=button value=" 搜索 ">
</td>
<td>
</td>
</tr>
</table>
</FORM>
</DIV>
<!-- start goods list -->
<DIV class=list-div id=listDiv>
<TABLE cellSpacing=1 cellPadding=3>
<TBODY>
<TR>
<TH width="19%">
考生考号
</TH>
<TH width="19%">
考生姓名
</TH>
<TH width="19%">
考试科目
</TH>
<TH width="19%">
考场编号
</TH>
<TH width="19%">
操作
</TH>
</TR>
<%
ArrayList alist = (ArrayList) request.getAttribute("examineelist");
if (alist == null) {
response
.sendRedirect("/yhmis/edu/yinhe/mis/control/QueryExamineeAction?method=query");
}
Iterator it = alist.iterator();
while (it.hasNext()) {
ExamineeVO examineeVO = new ExamineeVO();
examineeVO = (ExamineeVO) it.next();
%>
<TR>
<TD align="center">
<%=examineeVO.getExam_NO()%>
</TD>
<TD align="center">
<%=examineeVO.getName()%>
</TD>
<TD align="center">
<%=examineeVO.getObject_name()%>
</TD>
<TD align="center">
<%=examineeVO.getCheck_ID()%>
</TD>
<TD align="center">
<a
href="admins/exam/examinee.html?method=queryExaminee&examineeid=<%=examineeVO.getID()%>">查看</a>
<a
href="admins/exam/examinee.html?method=updatePage&examineeid=<%=examineeVO.getID()%>">修改</a>
<a title="删除" onclick="return confirm('你确定要删除吗?')"
href="admins/exam/examinee.html?method=deleteExaminee&examineeid=<%=examineeVO.getID()%>">删除</a>
</TD>
</TR>
<%
}
%>
</TBODY>
</TABLE>
<!-- end goods list -->
</DIV>
<table>
<%
PaginationVO paginationVO = (PaginationVO) request
.getAttribute("paginationVO");
HashMap hashmap = new HashMap();
if (examineeDTO.getObject_name() != null
&& !"".equals(examineeDTO.getObject_name())) {
hashmap.put("object_name", URLEncoder.encode(examineeDTO
.getObject_name()));
}
if (examineeDTO.getExam_NO() != null
&& !"".equals(examineeDTO.getExam_NO())) {
hashmap.put("examNO", URLEncoder.encode(examineeDTO
.getExam_NO()));
}
if (examineeDTO.getCheck_ID() != null
&& examineeDTO.getCheck_ID() != 0) {
hashmap.put("check_ID", examineeDTO.getCheck_ID());
}
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()%> 页 |
<%if(paginationVO.getAllPages()!=0){ %>
当前第 <%=paginationVO.getCurrentPage()%> 页 | <
<% } %>
<%
if (paginationVO.getCurrentPage() > 1) {
%>
<html:link
page="/admins/exam/examinee.html?method=query&type=0"
name="hashmap">
首页</html:link>
> | <
<html:link
page="/admins/exam/examinee.html?method=query&type=1"
name="hashmap">
上一页</html:link>
> |
<%
} else {
%>
<font color='#999999'><首页></font> |
<font color='#999999'><上一页></font> | <
<%
}
%>
<%
if (paginationVO.getCurrentPage() < paginationVO.getAllPages()) {
%>
<html:link
page="/admins/exam/examinee.html?method=query&type=2"
name="hashmap">下一页</html:link>
> | <
<html:link
page="/admins/exam/examinee.html?method=query&type=3"
name="hashmap">尾页</html:link>
>
<%
} else {
%>
<font color='#999999'><下一页></font> |
<font color='#999999'><尾页></font>
<%
}
%>
</div>
</TD>
</tr>
</table>
<DIV id=footer>
<BR>
版权所有 @2005-2007 湖北银河软件开发有限公司,并保留所有权利。
</DIV>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -