📄 addcj.jsp
字号:
<%@ page contentType="text/html; charset=GB2312" pageEncoding="GBK"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>学生管理系统</title>
<link rel="stylesheet" type="text/css" media="all" href="./../../css/Style1.css"/>
<script type="text/javascript" language="javascript">
var identity=0;
function info(){
if (xmlhttp.readyState==4) {
var response = xmlhttp.responseText;
window.alert(response);
}
}
function getxmlhttp(){
if(window.XMLHttpRequest){
xmlhttp=new XMLHttpRequest();
}else if(typeof ActiveXObject != "undefined"){
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
return xmlhttp;
}
function add(){
var url="";
var cj=document.addczy.cj.value;
var kmid=document.addczy.kmid.value;
if(isNaN(cj)){
alert("成绩数字");
return false;
}
var i = Math.floor(Math.random()*1000);
url ="/xsglxt/AddCj?cj="+cj+"&kmid="+kmid+"&asdf="+i;
xmlhttp=getxmlhttp();
if(xmlhttp){
xmlhttp.open("get",url,false);
xmlhttp.onreadystatechange=info;
xmlhttp.send(null);
}
var j = Math.floor(Math.random()*1000);
window.location.href='/xsglxt/InitListStu?ksdf='+j;
}
</script>
</head>
<body id="mainFrame">
<div class="part">
<div id="adddiv" >
<form action="" name="addczy">
<div class="part3">
<div class="parttop3">
<div class="parttop-L3">
添加学生成绩信息
</div>
<div class="parttop-R">
<table style="font-size: 12px" border=0 width="100%">
<tr class="tr1">
<td align='right'>所属科目:</td>
<td align='left'>
<div class="parttop-select">
<select name="kmid">
<c:forEach items="${resultid}" var="row">
<option value='<c:out value="${row.id}"/>'>
<c:out value="${row.strName}"/>
</option>
</c:forEach>
</select>
</div>
</td>
</tr>
<tr class="tr1">
<td align='right'>该科成绩:</td>
<td align='left'><input name="cj"/></td>
</tr>
</table>
</div>
</div>
</div>
<div class="partfoot">
<div class="partfoot-list">
<a href="#" onClick="add()">添 加</a>
</div>
<div class="partfoot-list">
<a href="#" onClick='document.getElementById("adddiv").style.display="none"'>取 消</a>
</div>
</div>
</form>
</div>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -