📄 insert_family.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_family.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>
<%
String id=request.getParameter("studentNum");
int studentNum=Integer.parseInt(id);
%>
<body>
<div id="container">
<h3>你可以填写该学生家长的信息,也可以不填</h3>
<form action="<%=basePath%>/insertFamily.do" method="post">
<table>
<tr>
<td>学生学号</td>
<td><input type="text" name="studentNum" value="<%if(id!=null)out.println(studentNum); %>" size="10"/></td>
</tr>
<tr>
<td>家长姓名</td>
<td><input id="name" type="text" name="name" value="" size="10" onblur="check('name','n')"/></td>
<td id="n" style="color:red"></td>
</tr>
<tr>
<td>关系</td>
<td><input id="relationship" type="text" name="relationship" value="" onblur="check('relationship','rs')"/></td>
<td id="rs" style="color:red"></td>
</tr>
<tr>
<td>电话</td>
<td><input id="phoneNumber" type="text" name="phoneNumber" value="" onblur="check('phoneNumber','pNum')"/></td>
<td id="pNum" style="color:red"></td>
</tr>
<tr>
<td>城市</td>
<td><input id="city" type="text" name="city" value="" onblur="check('city','c')"/></td>
<td id="c" style="color:red"></td>
</tr>
<tr>
<td>街道</td>
<td><input id="street" type="text" name="street" value="" onblur="check('street','s')"/></td>
<td id="s" style="color:red"></td>
</tr>
<tr>
<td>邮政编码</td>
<td><input id="postcode" type="text" name="postcode" value="" onblur="check('postcode','pc')"/></td>
<td id="pc" 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 + -