📄 college_manager.jsp
字号:
<%@ page contentType="text/html;charset=GBK"%>
<%@ page errorPage="/public/errorBusy.jsp" %>
<%@ include file="/public/check_admin.jsp" %><!-- 页面安全检查 -->
<%
request.setCharacterEncoding("GBK");
%>
<script language="javascript">
function formCheck(theForm)
{
if(theForm.college_id.value=="")
{
alert("院系代号不能为空!");
theForm.college_id.focus();
return false;
}
if(theForm.college_name.value=="")
{
alert("院系名称不能为空!");
theForm.college_name.focus();
return false;
}
}
</script>
<html>
<head>
<title>院系管理</title>
<link rel="stylesheet" href="../../public/style.css">
</head>
<body class="ss">
<a href="college_manager.jsp" class="a">建立院系</a>
<a href="college_manager_m.jsp" class="a">管理院系</a>
<a href="javascript:window.location.reload()" class="a">刷新</a>
<a href="javascript:history.back()" class="a">返回</a>
<hr></hr>
<center>
<h3>建立新的院系</h3>
<form action="college_add.jsp" method="post" onSubmit="return formCheck(this)"><!-- 设置在按下这按纽之后所要执行的程序 -->
<table width="50%" border="0" cellspacing="0">
<tr>
<td width="12%">院系代号:</td>
<td width="20%"><input name="college_id" type="text" size="20" maxlength="20"></td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td width="12%">院系名称:</td>
<td width="20%"><input name="college_name" type="text" size="20" maxlength="20"></td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td width="8%"><center><input type="submit" name="Submit" value="添加"></center></td>
<td width="8%"><center><input type="reset" name="Submit" value="重置"></center></td>
</tr>
<%
String msg=(String)request.getParameter("errmsg");
if(msg!=null&&!msg.equals("")){
%>
<tr>
<td colspan="7"><div align="center"><font color="red" size="2"><%=msg%></font></div></td>
</tr>
<%
}
%>
</table>
</form>
</center>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -