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

📄 infoadd.jsp

📁 中应用程序的访问权限对Java Web Console 中应用程序的访问权限 成功登录 Web 控制台后,可能无法自动访问在该控制台中注册的所有应用程序。通常,必须安装应用程序,才能让所有的用户在控制
💻 JSP
字号:
<%@ page language="java"
	import="java.util.*,edu.yinhe.system.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-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
<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>
	 <script src="<%=basePath%>admins/js/js.js" charset="gbk" ></script>
	 <META content="MSHTML 6.00.2900.3243" name=GENERATOR>

	<script type="text/javascript">
	
		var xmlHttp;
		function createHttpRequest(){
			if(window.ActiveXObject){
				xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
			}else if(window.XMLHttpRequest){
					xmlHttp=new XMLHttpRequest();
				}
		}
		
		 function getTestPaperID(){
		 	createHttpRequest();
		 	var subject=document.all.s.value;
		 	xmlHttp.onreadystatechange=processClassromm;
		 	xmlHttp.open("GET","/yhsoft1/admins/exam/setcheck.html?method=getTestPaper&subject="+subject,"true");
		 	xmlHttp.send(null);
		 }
		 
		 function processClassromm(){
		  
		 	if(xmlHttp.readyState==4){
		    
		 		   if(xmlHttp.status==200){
		 		   	  var flag = true;
		 		   	   while(document.all.testpaperID.options.length>0 ){
		 		   	   	document.all.testpaperID.removeChild(document.all.testpaperID.childNodes['0']);
		 		   	   }
		 		   	   result=xmlHttp.responseText.split(":");
		 		   	   for(i=0;i<result.length;i++){
		 		   	   			res=result[i].split(",");
			 		   	   	   option=document.createElement("OPTION");
			 		   	       option.value=res[0];
			 		   	       option.text=res[1];
			 		   	       document.getElementById("testpaperID").options.add(option);
		 		   	   	}
		 		   	}	
		 		}
		 }
		 
		function compare(){
			var count=document.getElementById("count").value;
			var subject=document.getElementById("subject").value;
			var testpaperID=document.getElementById("testpaperID").value;
			var starttime=document.getElementById("starttime").value;
			var endtime=document.getElementById("endtime").value;
			if(count==""){
				alert("人数不能为空!");
				return false;
			}
			if(count==0){
				alert("人数不能为零!");
				return false;
			}
			if(subject==""){
				alert("科目名称不能为空!");
				return false;
			}
			if(testpaperID==""){
				alert("试卷名称不能为空!");
				return false;
			}
			if(starttime==""){
				alert("开始时间不能为空!");
				return false;
			}
			if(endtime==""){
				alert("结束时间不能为空!");
				return false;
			}
			if(endtime<starttime){
				alert("结束日期不能小于开始日期");
				return false;
			}
			if(endtime==starttime){
				alert("结束日期不能等于开始日期");
				return false;
			}
			return true;
	}
	</script>
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

</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 align="center">
		<SPAN>银河管理中心 - 设置考场 </SPAN>
	</H1>
	
	<DIV class=list-div id=listDiv>
		<TABLE cellSpacing=1 cellPadding=3>
			<TBODY>
				<form name=f action="setcheck.html?method=getinsert" method="post" align="center" onsubmit="return compare()">
					<table align="center">
						<tr>
						  	<td align=center colSpan=2>
						   	 人数: <input type="text" name="count" id="count" size="20" maxlength="8" onkeyup="value=value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',CLIPBOARDDATA.GETDATA('TEXT').REPLACE(/[^\D]/G,''))"> 
							请输入整数 如:1
							</td>
						</tr>
						<tr>
							<td align="right">
								请选择考试科目:
								<select id="s" onchange="getTestPaperID()" name="subject" id="subject" selected>
									 <option value="">请选择。。.</option>
									<logic:iterate id="sList" name="addlist">
									<option value="<bean:write name='sList' property='object_Name' />"><bean:write name="sList" property="object_Name"/></option>
									</logic:iterate>
								</select>
							</td>
							<td align="left">
								请选择试卷:
								<select name=testpaperID id=testpaperID >
									
								</select>
							</td>
							
						</tr>
						<tr>
						  	<td align="right">
						    开始时间: <input type="text" name="starttime" id="starttime" size="20" onfocus="calendar()"> 
							</td>
							<td align="left">
						    结束时间:<input type="text" name="endtime" id="endtime" size="20" onfocus="calendar()">   
							 </td> 
						</tr>
						<tr>
						  	
						</tr>
						
						<tr>
							<TD align=center colSpan=2><input type=submit name="submit" class=button value=" 确定 "><input type=reset name="reset" class=button value=" 重置 "></td>
						</tr>
					</table>
				</form>
			</TBODY>
		</TABLE>
		<!-- end goods list -->

	</DIV>
	<DIV id=footer>
			<!-- end goods type list -->
			<BR>
			版权所有 @2005-2007 湖北银河软件开发有限公司,并保留所有权利。
		</DIV>
</body>

</html:html>



⌨️ 快捷键说明

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