📄 importdata.jsp
字号:
<%@ page language="java"
import="java.util.*,edu.yinhe.system.vo.*,edu.yinhe.system.common.GlobalNames"
pageEncoding="utf-8"%>
<jsp:directive.page import="java.util.HashMap"/>
<jsp:directive.page import="java.net.URLEncoder"/>
<%@ 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();
%>
<!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>
<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 getClassromm(){
alert("aaaa");
createHttpRequest();
var subject=document.all.s.value;
alert(subject);
document.all.checksubject.value=subject;
xmlHttp.onreadystatechange=processClassromm;
xmlHttp.open("GET","examinee.html?method=getCheck&s="+subject,true);
xmlHttp.send(null);
}
function processClassromm(){
if(xmlHttp.readyState==4){
if(xmlHttp.status==200){
result=xmlHttp.responseText.split(":");
while(document.all.classromm.options.length>0){
document.all.classromm.removeChild(document.all.classromm.childNodes[0]);
}
for(i=0;i<result.length;i++){
option=document.createElement("OPTION");
option.text="第"+result[i].charAt(0)+"考场";
option.value=result[i].charAt(0);
document.getElementById("classromm").options.add(option);
}
}
}
}
function checkfile(){
if(document.all.s.value==""){
alert("请选择科目");
return false;
}
if(document.all.classromm.value==""){
alert("请选择考场");
return false;
}
if(document.all.file.value==""){
alert("请选择上传文件");
return false;
}
}
</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>
<SPAN>银河管理中心 - 考生管理 </SPAN>
</H1>
<DIV class=list-div id=listDiv>
<TABLE cellSpacing=1 cellPadding=3>
<TBODY>
<form name=f enctype="multipart/form-data"
action="<%=path%>/admins/exam/examinee.html?method=importData" onsubmit=" return checkfile()"
method="post">
<input type="hidden" name=checksubject>
<table>
<tr>
<td>
请选择考场(每个考场最多30人):
</td>
</tr>
<tr>
<td>
请选择考试科目:
<select id="s" onchange="getClassromm()" name="subject">
<logic:iterate id="sList" name="subjectList">
<option value="<bean:write name='sList' property='object_name' />"><bean:write name="sList" property="object_name"/></option>
</logic:iterate>
</select>
请选择考场号:
<select name=check_ID id=classromm >
</select>
</td>
</tr>
<tr>
<td>
上传学生信息:(上传的excel表的第一列应为学生姓名)
</td>
</tr>
<tr>
<td>
<input type=file name=file>
</td>
</tr>
<tr>
<td align="left">
<input type="submit" value="提交" />
</td>
</tr>
</table>
</form>
</TBODY>
</TABLE>
<!-- end goods list -->
</DIV>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -