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

📄 insert_department.jsp

📁 数据库系统教材中附录的课程设计accomodation宿舍管理系统源码
💻 JSP
字号:
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'insert_department.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="<%=basePath%>styles/insert.css">
	<script type="text/javascript" src="<%=basePath %>/js/check.js"></script>
	

  </head>
  
  <body>
    <div id="container">
	<table>
		<tr>
			<td>添加公寓信息导航</td>
			<td>--></td>
			<td><a href="<%=basePath %>jsp/insert_department.jsp">添加公寓信息</a></td>
			<td>--></td>
			<td><a href="<%=basePath %>jsp/insert_place.jsp">添加床位信息</a></td>
		</tr>
	</table>
	
	<form action="<%=request.getContextPath() %>/insertDepartment.do" method="post">
		<table>
			<tr>
				<td><label for="departmentNum">公寓号</label></td>
				<td><input id="departmentNum" type="text" name="departmentNum" value="" onblur="check('departmentNum','dNum')"/></td>
				<td id="dNum" style="color:red"></td>
			</tr>
			<tr>
				<td><label for="type">公寓类型</label></td>
				<td>
					<input type="radio" name="type" value="0"/>单间公寓
					<input type="radio" name="type" value="1"/>集体公寓
				</td>
			</tr>
			<tr>
				<td><label for="departmentName">公寓名字</label></td>
				<td><input id="departmentName" type="text" name="departmentName" value="" onblur="check('departmentName','dn')"/></td>
				<td id="dn" style="color:red"></td>				
			</tr>
			<tr>
				<td><label for="address">地址</label></td>
				<td><input id="address" type="text" name="address" value="" onblur="check('address','a')"/></td>
				<td id="a" style="color:red"></td>
			</tr>
			<tr>
				<td><label for="phoneNumber">电话号码</label></td>
				<td><input id="phoneNumber" type="text" name="phoneNumber" onblur="check('phoneNumber','pNum')"/></td>
				<td id="pNum" style="color:red"></td>
			</tr>
			<tr>
				<td><label for="supervisor">管理员号</label></td>
				<td><input id="supervisor" type="text" name="supervisor" onblur="check('supervisor','s')"/></td>
				<td id="s" style="color:red"></td>
			</tr>
			<tr id="button">
				<td><input id="save" type="submit" name="save" value="保存"/></td>
				<td><input id="reset" type="reset" name="reset" value="重置"/></td>
			</tr>
		</table>
	</form>
</div>
  </body>
</html>

⌨️ 快捷键说明

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