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

📄 update.jsp

📁 中应用程序的访问权限对Java Web Console 中应用程序的访问权限 成功登录 Web 控制台后,可能无法自动访问在该控制台中注册的所有应用程序。通常,必须安装应用程序,才能让所有的用户在控制
💻 JSP
字号:
<%@ page language="java" import="java.util.*,edu.yinhe.mis.vo.GradeVO"
	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>
	</HEAD>
	<script language="JavaScript">

var timerID = null;
var timerRunning = false;
function stopclock(){
    if(timerRunning){
        clearTimeout(timerID);
		}
    timerRunning = false;
}

function startclock(){
    stopclock();
    showtime();
}

function showtime(){
    var now = new Date();
	var years=now.getYear();
	var months=now.getMonth()+1;
	var days=now.getDay()+4;
    var hours = now.getHours();
    var minutes = now.getMinutes();
    var seconds = now.getSeconds();
    var timeValue = years+"-"+months+"-"+days+" " +hours;
    timeValue  += ((minutes < 10) ? ":0" : ":") + minutes;
    timeValue  += ((seconds < 10) ? ":0" : ":") + seconds;
    
    document.modScoreForm.mod_date.value = timeValue ;
    timerID = setTimeout("showtime()",1000);
    timerRunning = true;
}

function update(){
	//alert("修改成功,请点击页面右上角手动刷新");
	window.close();
}

function select(){
	var type;
	var selectone;
	var selectmany;
	var judgement;
	var main;
	type=document.modScoreForm.mod_type.value;
	selectone=document.modScoreForm.h1.value;
	selectmany=document.modScoreForm.h2.value;
	judgement=document.modScoreForm.h3.value;
	main=document.modScoreForm.h4.value;
	if(type=="单选题"){
		document.modScoreForm.old_score.value=selectone;
	}
	if(type=="多选题"){
		document.modScoreForm.old_score.value=selectmany;
	}
	if(type=="判断题"){
		document.modScoreForm.old_score.value=judgement;
	}
	if(type=="主观题"){
		document.modScoreForm.old_score.value=main;
	}
}
		   	  	
</script>

	<body onload=startclock()>
		<H1>
			<SPAN>银河管理中心 - 成绩管理 </SPAN>
		</H1>
		<%
			GradeVO gvo = new GradeVO();
			
			ArrayList alist = (ArrayList) request.getAttribute("deup");
			
			System.out.println(alist+"dddddddd");
			Iterator it = alist.iterator();
				while (it.hasNext()) {
					gvo = (GradeVO) it.next();
				}
		%>
		<form action="<%=path%>/admins/exam/update.html?method=update" name="modScoreForm" id="form" method="post">
			<table>
				<tr>
					<td>
						修改考生成绩的原因:
					</td>
				</tr>
				<tr>
					<td align="left" valign="top">
						<textarea name="mod_cause" maxleanth="200" rows="5" ></textarea>
					
					</td>
				</tr>
				<tr>
				<td>考生考号为:</td>
				<td><input name="exam_NO" value="<%=gvo.getExamno() %>" readonly="readonly"></td>
				</tr>
				<tr>
					<td >
						要修改的科目:
					</td>
					<td>
						<select name="mod_subject">
							<%gvo = new GradeVO();
								it = alist.iterator();
								while (it.hasNext()) {
									gvo = (GradeVO) it.next();
							%>
							<option><%=gvo.getObjectname()%></option>
							<%
							}
							%>
						</select>
					</td>
				</tr>
				<tr>
					<td>
						要修改分数的题型: 
					</td>
					<td>
						<select name="mod_type" onchange="select()">
							<option value="单选题" >
								单选题
							</option>
							<option value="多选题" >
								多选题
							</option>
							<option value="判断题" >
								判断题
							</option>
							<option value="主观题">
								主观题
							</option>
						</select>
					</td>
				</tr>
				<tr>
					<td>
						考生的原分数
					</td>
					
					<td>
						<input name="old_score" size="25" value="<%=gvo.getSelectonepoint() %>" readonly=readonly>
					</td>
					<td width="5">
					<input type=hidden name=h1 value="<%=gvo.getSelectonepoint() %>">
					</td>
					<td width="5">
					<input type=hidden name=h2 value="<%=gvo.getSelectmanypoint() %>">
					</td>
					<td width="5">
					<input type=hidden name=h3 value="<%=gvo.getJudgementpoint() %>">
					</td>
					<td width="5">
					<input type=hidden name=h4 value="<%=gvo.getMainscore() %>">
					</td>
				</tr>
				<tr>
					<td>
						修改后的分数:
					</td>
					<td>
						<input name="new_score" size="25" onBlur="">
					</td>
				</tr>
				<tr>

				</tr>
				<tr>
					<td>
						修改人签名:
					</td>
					<td>
						<input name="amender" size="25" onBlur="">
					</td>
				</tr>
				<tr>
					<td>
						修改日期
					</td>
					<td >
						<p>
							<input type="text" name="mod_date" size="25" style="font-size: 9pt" readonly="readonly">
						</p>
					</td>
				</tr>
				<tr>
					<td width="10">
						<input type=submit name="button2" width="10" value="提交"
							onclick="update()">
					</td>
					<td width="30">
						<input type="reset" name="button3" width="30" value="重置" readonly="readonly">
					</td>
				</tr>
			</table>
		</form>
		<br>
	</body>
</html>

⌨️ 快捷键说明

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