insert_takecourse.jsp

来自「数据库系统教材中附录的课程设计accomodation宿舍管理系统源码」· JSP 代码 · 共 59 行

JSP
59
字号
<%@ 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_advisor.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">


  </head>
  
<body>
<div id="container">
	<form action="<%=request.getContextPath() %>/insertTakeCourse.do" method="post">
		<table>
			<tr>
				<td><label for="studentNum">学生号</label></td>
				<td><input type="text" name="studentNum" value=""/></td>
			</tr>
			<tr>
				<td><label for="courseNum">课程号</label></td>
				<td><input type="text" name="courseNum" value=""/></td>
			</tr>
			<tr>
				<td><label for="semester">学期</label></td>
				<td>
					<select name="semester">
						<option>上</option>
						<option>下</option>
						<option>暑假</option>
					</select>
				</td>				
			</tr>
			<tr>
				<td><label for="schoolYear">学年</label></td>
				<td><input type="text" name="schoolYear" value=""/></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 + =
减小字号Ctrl + -
显示快捷键?