📄 browscheck.jsp
字号:
/<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<jsp:directive.page import="edu.yinhe.mis.vo.CheckVO" />
<jsp:directive.page import="edu.yinhe.mis.vo.ClassesVO" />
<jsp:directive.page import="edu.yinhe.system.vo.PaginationVO"/>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>考勤信息管理</title>
<link style="text/css" rel="stylesheet" href="../css/CSS.css" />
<link style="text/css" rel="stylesheet" href="../css/main.css" />
<link style="text/css" rel="stylesheet" href="../css/general.css" />
<link style="text/javascript" rel="stylesheet" href="../css/general.css" />
<style type="text/css">
<!--
.STYLE1 {
font-size: 14px
}
.STYLE4 {
font-size: 36px
}
-->
</style>
</head>
<script src="admins/js/time.js">
</script>
<body background="#E6FDFF">
<h1>
<span>银河管理中心 - 考勤信息管理 </span>
</h1>
<div class="form-div">
<form action="<%=path%>/admins/bwgl/check.html?method=findAll" method="post" name="form1" id="form1">
<table width="100%" height="29" cellspacing="0" cellpadding="0"
border="0">
<tbody>
<tr>
<td width="8%" height="18">
<img width="26" height="22" border="0" alt="SEARCH"
src="../images/icon_search.gif">
</td>
<td width="15%">请选择您要查询的班级</td>
<td width="5%" >
<select name="classNo">
<option value="">-请选择-</option>
<%
ArrayList clist = (ArrayList)request.getAttribute("clist");
ClassesVO cvo =new ClassesVO();
for(Iterator it=clist.iterator();it.hasNext();){
cvo = (ClassesVO)it.next();
%>
<option value=<%=cvo.getClassNo()%>>
<%=cvo.getClassNo() %>
</option>
<%
}
%>
</select>
</td>
<td width="20%">
请输入您要查询学生姓名</td>
<td width="15%">
<input type="text" size="20" name="stuName" maxlength="20" >
</td>
<td width="25%" >
<input type="submit" name="submit" class="button" value=" 查询 " >
</td>
</tr>
</tbody>
</table>
</form>
</div>
<div class="list-div" id="listDiv">
<table cellspacing="1" cellpadding="3" id="listTable">
<tbody>
<tr>
<th width="10%" align="center">
<input type="checkbox" name="checkbox" value="checkbox"
onclick="checkbox(this.checked)">
班级编号
</th>
<th width="10%" align="center">
学生姓名
</th>
<th width="10%" align="center">
旷课次数
</th>
<th width="10%" align="center">
请假次数
</th>
<th width="10%" align="center">
迟到次数
</th>
<th width="10%" align="center">
学分情况
</th>
<th width="10%" align="center">
操作
</th>
</tr>
<%
CheckVO vo=new CheckVO();
ArrayList slist = (ArrayList)request.getAttribute("list");
for (int i = 0; i < slist.size(); i++) {
vo = (CheckVO) slist.get(i);
%>
<tr>
<td align="center" class="first-cell">
<input type="checkbox" name="checkbox" value="checkbox"><%=vo.getClassNo() %></td>
<td align="center"><%=vo.getStuName() %><br>
</td>
<td align="center"><%=vo.getTruant() %><br>
</td>
<td align="center"><%=vo.getLeavees() %><br>
</td>
<td align="center"><%=vo.getLate() %><br>
</td>
<td align="center"><%=vo.getSturyMark() %><br>
</td>
<td align="center">
<div align="center">
<a title="查看"
href="<%=path%>/admins/bwgl/check.html?method=findByStuName&StuName=<%=vo.getStuName() %> ">查看详细信息</a>
</div>
</td>
</tr>
<%
}
%>
</tbody>
</table>
</div>
<%
PaginationVO paginationVO = (PaginationVO)request.getAttribute("paginationVO");
if (paginationVO != null) {
out.print("<tr class=''>");
out.print("<TD height='30'");
out.print(" colspan='5'>");
out.print("<div align='CENTER'> "
+ " 共 "
+ paginationVO.getResultsNumber()
+ " 条记录 | 共 "
+ paginationVO.getAllPages()
+ " 页 | 当前第 "
+ paginationVO.getCurrentPage()
+ " 页 ");
if (paginationVO.getCurrentPage() > 1) {
out.print("| <<a href=\"" + path);
//请求服务器的URL
out.print("/admins/bwgl/check.html?method=findAll&StuName="+cvo.getClassNo()+"&ClassNo="+cvo.getStuNum());
out.print("¤tPage=1\">首页</a>> | <<a href=\""
+ path);
//请求服务器的URL
out.print("/admins/bwgl/check.html?method=findAll&StuName="+cvo.getClassNo()+"&ClassNo="+cvo.getStuNum());
out.print("¤tPage="
+ (paginationVO.getCurrentPage() - 1)
+ "\">上一页</a>> ");
} else {
out.print("| <font color='#999999'><首页></font> | <font color='#999999'><上一页></font> ");
}
if (paginationVO.getCurrentPage() < paginationVO.getAllPages()) {
out.print("| <<a href=\"" + path);
//请求服务器的URL
out.print("/admins/bwgl/check.html?method=findAll&StuName="+cvo.getClassNo()+"&ClassNo="+cvo.getStuNum() );
out.print("¤tPage="
+ (paginationVO.getCurrentPage() + 1)
+ "\">下一页</a>> | <<a href=\""
+ path);
//请求服务器的URL
out.print("/admins/bwgl/check.html?method=findAll&StuName="+cvo.getClassNo()+"&ClassNo="+cvo.getStuNum());
out.print("¤tPage=" + paginationVO.getAllPages()
+ "\">尾页</a>>");
} else {
out.print("| <font color='#999999'><下一页></font> | <font color='#999999'><尾页></font>");
}
out.println();
out.print(" </div></TD>");
out.print("</tr>");
}
%>
<div id="footer">
<!-- end goods type list -->
<br>
版权所有 @2005-2007 湖北银河软件开发有限公司,并保留所有权利。
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -