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

📄 addclass.jsp

📁 中应用程序的访问权限对Java Web Console 中应用程序的访问权限 成功登录 Web 控制台后,可能无法自动访问在该控制台中注册的所有应用程序。通常,必须安装应用程序,才能让所有的用户在控制
💻 JSP
字号:
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<jsp:directive.page import="edu.yinhe.mis.vo.RoomVO" />
<jsp:directive.page import="edu.yinhe.mis.vo.SchoolVO" />
<jsp:directive.page import="edu.yinhe.mis.vo.DictionaryVO" />
<jsp:directive.page import="edu.yinhe.mis.vo.TeacherVO" />

<%
String path = request.getContextPath();
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0062)http://192.168.3.23/ecshop/admin/shop_config.php?act=list_edit -->

<!-- $Id: addclass.jsp,v 1.14 2008/05/09 08:03:40 chenzhong Exp $ -->

<!-- $Id: addclass.jsp,v 1.14 2008/05/09 08:03:40 chenzhong Exp $ -->

<HTML xmlns="http://www.w3.org/1999/xhtml">
	<HEAD>
		<TITLE>校区新增</TITLE>
		<META content="noindex, nofollow" name=robots>
		<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>
		<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>
		<SCRIPT src="transport.js" type="text/javascript"></SCRIPT>
		<SCRIPT src="common.js" type=text/javascript></SCRIPT>
		<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="<%=path%>/admins/js/date.js" type=text/javascript charset="gbk"></script>
		<SCRIPT anguage=JavaScript>
		
			var xmlHttp;
			function creatXMLHttpRequest(){
				if(window.ActiveXObject){
					xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
				}else if (window.XMLHttpRequest){
					xmlHttp =new XMLHttpRequest();
				}
			}
			
			function bb(){
				var classNo=document.getElementById("classNo").value;
				creatXMLHttpRequest();	
				xmlHttp.onreadystatechange=processor;
				xmlHttp.open("GET","<%=path%>/admins/core/classes.html?method=findClassesNo&classNo="+classNo,true);
				xmlHttp.send(null);
			}
			
			function processor(){
				var responseContext;
				if(xmlHttp.readyState==4){
					if(xmlHttp.status==200){
						responseContext = xmlHttp.responseText;
						if(responseContext.indexOf("true")!=-1){
							document.all.cNo.innerHTML="<font color='red'>班级编号可用!!!!</font>"
						}else if(responseContext.indexOf("false")!=-1){
							document.all.cNo.innerHTML="<font color='red'>班级编号不可用!!</font>"	
							document.all.classNo.value="";
						}
						else{
							document.all.cNo.innerHTML="<font color='red'>班级编号不能为空!!</font>"
						}
					}
				}
			}
			
			function cc(){
				var selected=document.all.name.value;
				creatXMLHttpRequest();	
				xmlHttp.onreadystatechange=processor1;
				xmlHttp.open("GET","<%=path%>/admins/core/classes.html?method=findClassesname&selected="+selected,true);
				xmlHttp.send(null);
			}
			
			function processor1(){
				var responseContext;
				if(xmlHttp.readyState==4){
					if(xmlHttp.status==200){
						responseContext = xmlHttp.responseText;
						if(responseContext.indexOf("true")!=-1){
							document.all.aa.innerHTML="<font color='red'>名称可用!!!!</font>"
						}else if(responseContext.indexOf("false")!=-1){
							document.all.aa.innerHTML="<font color='red'>名称不可用!!</font>"	
							document.all.className.value="";
						}
						else if(responseContext.indexOf("null")!=-1){
							document.all.aa.innerHTML="<font color='red'>名称不能为空!!</font>"
						}
					}
				}
			} 
			
			function checkForm(){
				var a=document.all.stuNum.value;
				var a1 =/^\d+$/,
				o=a1.test(a);
			
				if (document.all.classNo.value==''){
					alert("请您填写班级编号");
				}else if (document.all.schoolNo.value==''){
					alert("请您选择所属校区编号");
				}else if(document.all.classroomNo.value==''){
					alert("请您选择所属教室编号");
				}else if (document.all.classType.value==''){
					alert("请您选择班级的类型");
				}else if(!o){
					alert("请您用数字填写");
				}
				else if(document.all.teacherNo.value==''){
					alert("请您选择班主任编号");
				}else if (document.all.openDate.value==''){
					alert("请您选择开班时间");
				}else if(document.all.endDate.value==''){
					alert("请您设定毕业时间");
				}else if(document.all.className.value==''){
					alert("请您选择班级名称");
				}else if (document.all.classState.value==''){
					alert("请您选择班级状态");
				}else{
					document.all.classForm.submit();
				}		
			}
			
			
			var xmlhttp;
			function createXMLHttpRequest(){
				if(window.ActiveXObject){
					xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
				}
				else if(window.XMLHttpRequest){
					xmlhttp = new XMLHttpRequest();
				}
			}
			function getroomno(){
				var selected = document.getElementById("No").value;
				
					createXMLHttpRequest();
					xmlhttp.onreadystatechange = processor2;
					xmlhttp.open("GET","<%=path %>/admins/core/classes.html?method=casede&selected="+selected,true);
					xmlhttp.send(null);
			}
			
			function processor2(){
				var result;
				if(xmlhttp.readyState == 4){
					if(xmlhttp.status == 200){			
						result = xmlhttp.responseText;
						
					while(document.all.classroomNo1.childNodes.length>0){
						
						document.all.classroomNo1.removeChild(document.all.classroomNo1.childNodes[0]);
					}
						document.all.className1.innerHTML=result.substring(0,result.indexOf('_'));
						document.all.classroomNo1.innerHTML=result.substring(result.indexOf('_')+1,result.length);
					}
				}
			}
			
		</SCRIPT> 

		<META content="MSHTML 6.00.2900.3243" name=GENERATOR>
	</HEAD>
	<BODY>
		<H1>
			<SPAN>学校综合管理系统管理中心 &nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;&nbsp;&nbsp;
				班级新增:</SPAN>
		</H1>
		<SCRIPT src="region.js" type=text/javascript></SCRIPT>

		<DIV class=tab-div>
			<!-- tab bar -->
			<DIV id=tabbody-div>
				<FORM action="<%=path%>/admins/core/classes.html?method=addClasses"
					method=post name="classForm">
					<TABLE width="90%">

						<jsp:include page="/admins/core/classes.html" flush="false">
							<jsp:param name="method" value="findSchool" />
						</jsp:include>
						<jsp:include page="/admins/core/classes.html" flush="false">
							<jsp:param name="method" value="findClassType" />
						</jsp:include> 
						<jsp:include page="/admins/core/classes.html" flush="false">
							<jsp:param name="method" value="findClassState" />
						</jsp:include> 
						<jsp:include page="/admins/core/room.html" flush="false">
							<jsp:param name="method" value="findclassno" />
						</jsp:include> 
						<jsp:include page="/admins/core/outline.html" flush="false">
							<jsp:param name="method" value="findobjectno" />
						</jsp:include>
						<jsp:include page="/admins/core/classes.html" flush="false">
							<jsp:param name="method" value="findClassName" />
						</jsp:include>
						<jsp:include page="/admins/core/student.html" flush="false">
							<jsp:param name="method" value="queryTeacherTitle" />
						</jsp:include>
						<TBODY>
							<%
								ArrayList slist = (ArrayList) request.getAttribute("slist");
								ArrayList list = (ArrayList) request.getAttribute("list");
								ArrayList list1 = (ArrayList) request.getAttribute("list1");
								ArrayList list2 = (ArrayList) request.getAttribute("list2");
								ArrayList list3 = (ArrayList) request.getAttribute("list3");
								ArrayList list4 = (ArrayList) request.getAttribute("list4");
								ArrayList arraylist4 = (ArrayList) request.getAttribute("arraylist4");
							%>
							<TR>
								<TD>
									<DIV align=right>
										<STRONG>班级编号:</STRONG>
									</DIV>
								</TD>
								<TD colSpan=3>
									<INPUT id=classNo size=30 name=classNo maxlength="10"  onblur="bb()">
									<span id=cNo></span>
								</TD>
							</TR>
							
							<TR>
								<TD>
									<DIV align=right>
										<STRONG>班级所在校区编号:</STRONG>
									</DIV>
								</TD>
								<TD width="200">
									<select name="schoolNo" size="1" id="No" onchange="getroomno()">
										<option value="">请选择班级所属校区编号</option>
										<%
												if (slist != null) {
												for (Iterator it = slist.iterator(); it.hasNext();) {
													SchoolVO svo = (SchoolVO) it.next();
										%>
										<option value="<%=svo.getSchoolNo()%>"><%=svo.getSchoolNo()%></option>
										<%
											}
											}
										%>
									</select>
								</TD>
							</TR>
							<tr>
    							<td>
    								<div id="className1" ></div>
    							</td>
								<TD >
    								<DIV id="classroomNo1"></DIV>
    							</TD>
							</TR>
							
							

							<TR>
								<TD>
									<DIV align=right>
										<STRONG>班级类型:</STRONG>
									</DIV>
								</TD>
								<TD width="200">
									<select name="classType" size="1">
										<option value="">请选择班级类型</option>
										<%
												
												if (list1 != null) {
												for (Iterator it = list1.iterator(); it.hasNext();) {
													DictionaryVO dvo = (DictionaryVO) it.next();
										%>
										<option value="<%=dvo.getName()%>"><%=dvo.getName()%></option>
										<%
											}
											}
										%>
									
								</TD>
							</TR>
							
							<TR>
								<TD>
									<DIV align=right>
										<STRONG>班级人数:</STRONG>
									</DIV>
								</TD>
								<TD colSpan=3>
									<INPUT id=stuNum size=30 name=stuNum maxlength="2">
								</TD>
							</TR>
							
							<TR>
								<TD>
									<DIV align=right>
										<STRONG>班主任编号:</STRONG>
									</DIV>
								</TD>
								<TD width="200">
									<select name="teacherNo" size="1">
										<option value="">请选择班主任编号</option>
										<%
												
												if (arraylist4 != null) {
												for (Iterator it = arraylist4.iterator(); it.hasNext();) {
													TeacherVO tvo = (TeacherVO) it.next();
										%>
										<option value="<%=tvo.getTeacher_no()%>"><%=tvo.getTeacher_no()%></option>
										<%
											}
											}
										%>
									
								</TD>
							</TR>
							
						
							<TR>
								<TD>
									<DIV align=right>
										<STRONG>开班时间:</STRONG>
									</DIV>
								</TD>
								<TD colSpan=3>
									<INPUT id=openDate size=30 name=openDate onClick="calendar()">
								</TD>
							</TR>
							
							<TR>
								<TD>
									<DIV align=right>
										<STRONG>毕业时间:</STRONG>
									</DIV>
								</TD>
								<TD colSpan=3>
									<INPUT id=endDate size=30 name=endDate onClick="calendar()">
								</TD>
							</TR>
							
							
							
						
							<TR>
								<TD>
									<DIV align=right>
										<STRONG>班级名称:</STRONG>
									</DIV>
								</TD>
								<TD width="200">
									<select name="className" size="1" id="name" onchange="cc(this)">
										<option value="">请选择班级名称</option>
										<%
												
												if (list3 != null) {
												for (Iterator it = list3.iterator(); it.hasNext();) {
													DictionaryVO dvo = (DictionaryVO) it.next();
										%>
										<option value="<%=dvo.getName()%>"><%=dvo.getName()%></option>
										<%
											}
											}
										%>
										</select>
									<span id="aa"></span>
								</TD>
								
							</TR>
							
							<TR>
								<TD>
									<DIV align=right>
										<STRONG>班级状态:</STRONG>
									</DIV>
								</TD>
								<TD width="200">
									<select name="classState" size="1">
										<option value="">请选择班级状态</option>
										<%
												
												if (list2 != null) {
												for (Iterator it = list2.iterator(); it.hasNext();) {
													DictionaryVO dvo = (DictionaryVO) it.next();
										%>
										<option value="<%=dvo.getValue()%>"><%=dvo.getName()%></option>
										<%
											}
											}
										%>
									
								</TD>
							</TR>
						
							<TR align=middle>
								<TD colSpan=2>

									<INPUT class=button type=button value="提交" onClick="checkForm()">
									&nbsp;&nbsp;&nbsp;&nbsp;
									<INPUT class=button type=reset value="重置" name=reset>

								</TD>
							</TR>
						</tbody>
					</table>
				</FORM>
				<TABLE id=basic-tab width="90%">
					<TBODY>
						<TR>
							<TD>
								&nbsp;
							</TD>
							<TD width="80%">
								使用说明:
								<OL>
									<LI>
										填写相关信息加入数据库中;
									<LI>
										添加成功进入成功页面;
									<LI>
										添加失败进入失败页面。
								</OL>
							</TD>
							<TD>
								&nbsp;
							</TD>
						</TR>
						<TR>
							<TD>
								&nbsp;
							</TD>
							<TD width="80%">

							</TD>
							<TD>&nbsp;

							</TD>
						</TR>
					</TBODY>
				</TABLE>
				<DIV id=footer>
			<BR>
			版权所有 @2005-2007 湖北银河软件开发有限公司,并保留所有权利。
		</DIV>
	</BODY>
</HTML>

⌨️ 快捷键说明

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