📄 check.jsp
字号:
<%@ page language="java" import="java.util.*,edu.yinhe.mis.vo.*,edu.yinhe.system.vo.PaginationVO"
pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 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>
<STYLE>
.conts {
visibility: hidden
}
.tab {
border: 1px solid #bbdde5;
font-family: Verdana;
font-size: 10pt;
text-align: center;
font-weight: normal
}
.selTab {
border-left: solid thin white;
border-top: solid thin white;
border-right: solid thin black;
font-weight: bold;
text-align: center
}
</STYLE>
<%PaginationVO paginationVO = (PaginationVO)request.getAttribute("pvo"); %>
<SCRIPT LANGUAGE=JavaScript>
function stat(){
location.href="<%=path%>/admins/exam/gradestat.html?method=fetle";
}
function serach(){
alert("您当前的请求无相应或者不合法");
//location.href="<%=path%>/admins/exam/grademanager.html?method=search";
}
function summarize(){
location.href="<%=path%>/admins/exam/grademanager/summarizeGrade.jsp";
}
//a public function that the container uses to pass in values for the labels
function public_Labels(label1, label2, label3, label4){
t1.innerText = label1;
t2.innerText = label2;
t3.innerText = label3;
t4.innerText = label4;
}
//a public function that the container uses to pass in values for the card containers
function public_Contents(contents1, contents2, contents3, contents4){
t1Contents.innerHTML = contents1;
t2Contents.innerHTML = contents2;
t3Contents.innerHTML = contents3;
t4Contents.innerHTML = contents4;
init();
}
//sets the default display to tab 1
function init(){
tabContents.innerHTML = t1Contents.innerHTML;
}
//this is the tab switching function
var currentTab;
var tabBase;
var firstFlag = true;
function changeTabs(){
if(firstFlag == true){
currentTab = t1;
tabBase = t1base;
firstFlag = false;
}
if(window.event.srcElement.className == "tab"){
currentTab.className = "tab";
tabBase.style.backgroundColor = "white";
currentTab = window.event.srcElement;
tabBaseID = currentTab.id + "base";
tabContentID = currentTab.id + "Contents";
tabBase = document.all(tabBaseID);
tabContent = document.all(tabContentID);
currentTab.className = "selTab";
tabBase.style.backgroundColor = "";
tabContents.innerHTML = tabContent.innerHTML;
}
}
function detailcheck(t){
window.open("grademanager.html?method=detailcheck&&examno="+t,"","height=240,width=340,status=no,location=no,toolbar=no,fullscreen=no,directories=no,resizable=yes,scrollbars=yes,menubar=no");
}
function update(t){
// setInterval("flush()",1000);
newopen=window.open("grademanager.html?method=deup&&examno="+t,"","height=240,width=340,status=no,location=no,toolbar=no,fullscreen=no,directories=no,scrollbars=yes,resizable=yes,menubar=no");
setInterval('wen()',10);
}
function wen(){
if(newopen.closed){
window.location.reload();
}
}
window.close();
window.opener.reload()
//var xmlHttp;
/*
function createHttpRequest(){
if(window.ActiveXObject){
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}else if(window.XMLHttpRequest){
xmlHttp=new XMLHttpRequest();
}
}
function flush(){
var flush;
createHttpRequest();
xmlHttp.onreadystatechange=process;
xmlHttp.open("GET","admins/exam/grademanager.html?method=check&flush=1",true);
xmlHttp.send(null);
}
function process(){
var result;
//alert("ddddddddddddddddddd");
alert(xmlHttp.responseText+"ffffff");
if(xmlHttp.readyState==1){
alert("ddddddddddddddddddd");
}
if(xmlHttp.readyState==4){
if(xmlHttp.status==200){
result=xmlHttp.responseText;
if(result.equals("true")){
alert("aaaaaaaaaaaaaaaaaaaaaaaaa");
location.href="admins/exam/grademanager.html?method=check¤tPage=<%=paginationVO.getCurrentPage()%>"
}if(result.indexOf("false")){
alert("vvvvvvvvvvvvvvvvvvv");
}
}
}
}
*/
</SCRIPT>
</HEAD>
<body bgcolor="#009999" onload=init() onclick=changeTabs()>
<H1>
<SPAN>银河管理中心 - 成绩管理 </SPAN>
</H1>
<div align="right">
<tr>
<td align="right"><a href="admins/exam/grademanager.html?method=check¤tPage=<%=paginationVO.getCurrentPage()%>" name="admins/exam/grademanager.html?method=check&currentPage=<%=paginationVO.getCurrentPage()%>">刷新</a></td>
</tr></div>
<DIV
STYLE="position: absolute; height: 350; width: 750; border: border : 1px solid #bbdde5;">
<TABLE STYLE="width: 780px; height: 247px;" CELLPADDING=0
CELLSPACING=0>
<TR>
<TD ID=t1 CLASS=selTab HEIGHT=25
onmouseover="t1.style.height='45';"
onmouseout="t1.style.height='25';">
查看成绩
</TD>
<TD ID=t2 CLASS=tab OnClick=stat()
onmouseover="t1.style.height='45';"
onmouseout="t1.style.height='25';">
成绩统计
</TD>
<TD ID=t3 CLASS=tab onclick=summarize()>
成绩总结
</TD>
<TD ID=t4 CLASS=tab>
tab 4
</TD>
</TR>
<TR>
<TD ID=t1base STYLE="height: 2; border-left: solid thin white"></TD>
<TD ID=t2base STYLE="height: 2; background-color: white"></TD>
<TD ID=t3base STYLE="height: 2; background-color: white"></TD>
<TD ID=t4base
STYLE="height: 2; background-color: white; border-right: solid thin white"></TD>
</TR>
<TR>
<TD HEIGHT="*" COLSPAN=4 ID=tabContents
STYLE="border-left: solid thin white; border-bottom: solid thin white; border-right: solid thin white">
正在连接,请等待
</TD>
</TR>
</TABLE>
</DIV>
<DIV CLASS=conts ID=t1Contents>
<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>
<DIV class=form-div>
<FORM
action="<%=path%>/admins/exam/grademanager.html?method=search"
method="post">
<label></label>
<table width="780" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="9%" height="19" value="button">
<img height=22 alt=SEARCH id=img
src="<%=path%>/admins/images/search.gif" width=60
border=0 onmouseover="img.style.width='80',img.style.height='30'" onmouseout="img.style.width='60',img.style.height='24'" onclick=serach() >
</td>
<td width="8%">
考试科目:
</td>
<td width="14%">
<input size=10 name=keyword1 onfocus="clearText(this);">
</td>
<td width="12%">
考生考号 自:
</td>
<td width="11%">
<input size=10 name=keyword2 onfocus="clearText(this);">
</td>
<td width="9%" align="center">
至
</td>
<td width="10%">
<input size=10 name=keyword3 onfocus="clearText(this);">
</td>
<td width="4%">
</td>
<td width="9%" height="19" value="button">
<img height=22 alt=SEARCH id=img1
src="<%=path%>/admins/images/search.gif" width=60
border=0 onmouseover="img1.style.width='80',img1.style.height='30'" onmouseout="img1.style.width='60',img1.style.height='24'" onclick=serach() >
</td>
<td>
</td>
</tr>
</table>
</FORM>
</DIV>
<DIV class=list-div id=listDiv>
<TABLE cellSpacing=1 cellPadding=3 height="50px">
<TBODY>
<%
OutlineVO ovo=new OutlineVO();
GradeVO gvo = new GradeVO();
List list = (List) request.getAttribute("grade");
//ArrayList alist=(ArrayList)request.getAttribute("a");
//System.out.println("alist:"+list);
// ArrayList alist1 = (ArrayList) request.getAttribute("Objetname");
if (list==null) {
%>
没有记录
<%
}
%>
<TR>
<TH width="19%">
考生考号
</TH>
<TH width="10%">
语文
</TH>
<TH width="10%">
数学
</TH>
<TH width="10%">
英语
</TH>
<TH width="10% ">
物理
</TH>
<TH width="10%" height="80">
JAVA
</TH>
<TH width="15%">
操作
</TH>
</TR>
<%
Iterator it = list.iterator();
while (it.hasNext()) {
gvo = (GradeVO) it.next();
%>
<TR>
<TD align="center" height="80">
<%=gvo.getExamno()%>
</TD>
<% System.out.println("kemu:"+gvo.getObjectname());
//while (it1.hasNext()) {
// ovo = (OutlineVO) it1.next();
//if(gvo.getObjectname().equals(ovo.getObjectName())){
if(gvo.getObjectname().equals("语文")){
%>
<TD align="center" height="80">
<%=gvo.getSumscore()%>
</TD>
<%}else{%>
<TD align="center">
--
</TD>
<%}%>
<%//}%>
<%//if(gvo.getObjectname()!=ovo.getObjectName()){%>
<%if(gvo.getObjectname().equals("数学")){ %>
<TD align="center">
<%=gvo.getSumscore()%>
</TD>
<%} else{%>
<TD align="center">
--
</TD>
<%}%>
<%
if(gvo.getObjectname().equals("英语")){ %>
<TD align="center">
<%=gvo.getSumscore()%>
</TD>
<%} else{%>
<TD align="center">
--
</TD>
<%}%><%if(gvo.getObjectname().equals("物理")){ %>
<TD align="center">
<%=gvo.getSumscore()%>
</TD>
<%} else{%>
<TD align="center">
--
</TD>
<%}%><%if(gvo.getObjectname().equals("JAVA")){ %>
<TD align="center">
<%=gvo.getSumscore()%>
</TD>
<%} else{%>
<TD align="center">
--
</TD>
<%}%>
<%//}%>
<%//}%>
<TD align="center">
<a href="javascript:detailcheck(<%=gvo.getExamno() %>)" >
查看详细
</a>
<a href="javascript:update(<%=gvo.getExamno() %>)">修改</a>
</TD>
</TR>
<%
}
%>
</TBODY>
</TABLE>
</DIV>
<table>
<%
// System.out.println("roomIdAAAAAAAAAAAAAAAAA="+roomId);
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/exam/grademanager.html?method=check");
out.print("¤tPage=1\">首页</a>> | <<a href=\""
+ path);
//请求服务器的URL
out.print("/admins/exam/grademanager.html?method=check");
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/exam/grademanager.html?method=check");
out.print("¤tPage="
+ (paginationVO.getCurrentPage() + 1)
+ "\">下一页</a>> | <<a href=\""
+ path);
//请求服务器的URL
out.print("/admins/exam/grademanager.html?method=check");
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>");
}
%>
</table>
<DIV id=footer>
<BR>
版权所有 @2005-2007 湖北银河软件开发有限公司,并保留所有权利。
</DIV>
</body>
</DIV>
<DIV CLASS=conts ID=t2Contents>
<table align="center">
<tbody>
<tr>
<th align="center">
正在连接,请等待
</th>
</tr>
</tbody>
</table>
</DIV>
<DIV CLASS=conts ID=t3Contents align="center">
<table align="center">
<tbody>
<tr>
<th align="center">
正在连接,请等待
</th>
</tr>
</tbody>
</table>
</DIV>
<DIV CLASS=conts ID=t4Contents align="center">
<table align="center">
<tbody>
<tr>
<th align="center">
正在连接,请等待
</th>
</tr>
</tbody>
</table>
</DIV>
</BODY>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -