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

📄 auditing.jsp

📁 中应用程序的访问权限对Java Web Console 中应用程序的访问权限 成功登录 Web 控制台后,可能无法自动访问在该控制台中注册的所有应用程序。通常,必须安装应用程序,才能让所有的用户在控制
💻 JSP
字号:
<%@ page language="java"
	import="java.util.*,edu.yinhe.mis.vo.*,edu.yinhe.system.common.GlobalNames"
	pageEncoding="UTF-8"%>
<%@ page buffer="16kb"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%
	String path = request.getContextPath();
	String checkid = (String) request.getAttribute("checkid");
	Object[] objs = null;
	objs = (Object[]) request.getAttribute("paperobj");
	ArrayList paperlist = (ArrayList) objs[0];
	//ArrayList list2=(ArrayList)objs[1];	
	//AssessVO uvoo=(AssessVO)list2.get(0);	 
	AuditingVO uvoo = (AuditingVO) objs[1];

	String[] scoreArry=new String[paperlist.size()];
	for (int i = 0; i < paperlist.size(); i++) {
							AuditingVO uvo = (AuditingVO) paperlist.get(i);
						    scoreArry[i]=uvo.getFact_score();
									}
									
%>
<HTML>
	<HEAD>
		<TITLE>角色管理</TITLE>
		<META http-equiv=Content-Type content="text/html; charset=UTF-8">
		<LINK href="../css/general.css" type=text/css rel=stylesheet>
		<LINK href="../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>
		<META content="MSHTML 6.00.2900.3243" name=GENERATOR>
	</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>

		<H1>
			<SPAN>银河管理中心 - 审核评卷管理 </SPAN>
		</H1>

		<tr>
			<td width="18%">
				<strong><font color=darkblue>学生姓名</font>
				</strong>:<%=uvoo.getName()%>
			</td>
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<td width="18%">
				<strong><font color=darkblue>考试科目</font>
				</strong>:<%=uvoo.getObject_name()%>
			</td>
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<td width="18%">
				<strong><font color=darkblue>客观题总分</font>
				</strong>:<%=uvoo.getFollow_score()%>
			</td>
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<td>
				<strong><font color=darkblue>主观题总分</font>
				</strong>:
				<span id="mainScore"></span>
			</td>
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<td>
				<strong><font color=darkblue>总分</font>
				</strong>:
				<span id="allScore"></span>
			</td>
		</tr>
		<!-- start goods list -->
		<DIV class=list-div id=listDiv>
			<form action="" method="post" name="form1">
				<TABLE cellSpacing=1 cellPadding=3>
					<TBODY>
						<TR>
							<%
								//ArrayList  paperlist = (ArrayList) request.getAttribute("paperlist");

								for (int i = 0; i < paperlist.size(); i++) {
									AuditingVO uvo = (AuditingVO) paperlist.get(i);
							%>
						
						<TR>
							<TD width="16%" color="red">
								<strong><font color=darkblue>第<%=uvo.getTestpaperquestion_id()%>题</font>
								</strong>
							</TD>
							<TD align="left">
								<%=uvo.getContent()%>
							</TD>
						</TR>
						<TR>
							<TD width="19%">
								考生答案:
							</TD>

							<TD align="center">
								<%=uvo.getStudent_key()%>

							</TD>

						</TR>
						<TR>
							<TD width="16%">
								标准答案:
							</TD>
							<TD align="center">
								<%=uvo.getStandard_key()%>
							</TD>
						</TR>
						<TR>
							<TD width="8%">
								评分:
							</TD>
							<TD align="left">
								<input type="text" readonly="true"
									value="<%=uvo.getFact_score()%>" name="score" id="score"
									size="26">
								给分范围(0~~<%=uvo.getScore()%>) 修改评分
								<input type="text" name="updatescore" size="16"
									onblur="updateScore(<%=i + 1%>,this,<%=uvo.getScore()%>)"  onkeyup="value=value.replace(/[^\d\.]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d\.]/g,''))">
								<font color=red><span id="mostScore"></span>
								</font>
							</TD>
						</TR>
						<TR>
							<TD width="16%">

							</TD>

						</TR>

						<%
						}
						%>
						<tr>
							<td colspan="2" align="center">
								<input type="submit" value="提交审核" class=button
									onclick="submit_score()" />
								<input type="submit" value="退   出" class=button
									onclick="submit_to_update()" />
							</td>
						</tr>

					</TBODY>
				</TABLE>
			</form>
			<!-- end goods list -->

		</DIV>

		<%
		System.out.println("============" + checkid);
		%>
		<DIV id=footer>
			<BR>
			版权所有 @2005-2007 湖北银河软件开发有限公司,并保留所有权利。
		</DIV>

		<script type="text/javascript">
    var xmlHttp;
	var score=new Array(<%=paperlist.size()%>);
   var scoreArry=new Array();
   <%
     for(int i=0;i<paperlist.size();i++){
     AuditingVO uvo = (AuditingVO) paperlist.get(i);
   %>
   scoreArry[<%=i%>]=<%=uvo.getFact_score() %>
   <%}%>

	function submit_to_update(){
		document.form1.action="<%=path%>/admins/exam/auditing.html?method=selectSubject";
	}
	function submit_score(){
		scoreStr = score.join("_");
		if(scoreStr!=" "){
			scoreStr=scoreStr+"_";
		}
		
		document.form1.action="<%=path%>/admins/exam/auditing.html?method=auditing&scoreArry="+scoreStr+"&checkid=<%=checkid%>";
		alert(scoreStr);
	}
	function updateScore(s,th,sco){
	var strstr="";
	var mainS=0; 

  
	 if(th.value.length!=0 && th.value!=""){ 
	      if(th.value>sco ){
	          th.value=sco;
	          alert(th.value);
	          strstr="本题的最大分为"+sco;
	          th.focus();
	        }
	        scoreArry[s-1]=th.value;
	    }
	        score[s-1]=s+":"+scoreArry[s-1];
	        for(j=0;j<<%=paperlist.size()%>;j++){
	           mainS+=eval(scoreArry[j]);
	        }
	        
	       th.parentNode.all.mostScore.innerHTML=strstr;
	       document.getElementById("mainScore").innerHTML=mainS;
	       allscore=eval(mainS)+eval(<%=uvoo.getFollow_score() %>);
	       document.getElementById("allScore").innerHTML=allscore;
	        //sumScore(score);

	    
	}
	
	function createXMLHttpRequest(){
	      if(window.ActiveXObject){
          xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
	      }
	     else if(window.XMLHttpRequest){
	          xmlHttp=new XMLHttpRequest();
	     }
	   
     }
	
	function sumScore(score){
	
	   scoreStr = score.join("_");
		if(scoreStr!=" "){
			scoreStr=scoreStr+"_";
		}
	
	    createXMLHttpRequest();
	      xmlHttp.onreadystatechange=processor;
	      xmlHttp.open("GET","<%=path%>/admins/exam/auditing.html?method=sumScore&scorearry="+scoreStr,"ture");
	      xmlHttp.send(null);
	}
	
	function processor(){
	      var responseContest;
	      if(xmlHttp.readyState==4){
	          if(xmlHttp.status==200){
	            responseContext=xmlHttp.responseText;
	            document.getElementById("mainScore").innerHTML=responseContext;
	            allscore=eval(responseContext)+eval(<%=uvoo.getFollow_score() %>);
	            document.getElementById("allScore").innerHTML=allscore;
	            //if(responseContext.indexOf("true")!=-1)
	          }
	      }
	      
	}
</script>
	</BODY>
</HTML>

⌨️ 快捷键说明

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