今日学习代码
增加课程
<%--
Created by IntelliJ IDEA.
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title>Title</title>
</head>
<body>
<h1>添加课程信息</h1>
<form action="add_course_end.jsp">
<label for="cid">课程编号
<input type="text" name="cid" id="cid" pattern="[0-9]{6}" title="请输入六位数字组成的课程编号">
</label>
<br>
<label for="name">课程名称
<input type="text" name="name" id="name">
</label>
<br><br>
<label for="time">课程时间
<select name="time" id="time">
<option value="星期一">星期一</option>
<option value="星期二">星期二</option>
<option value="星期二">星期三</option>
<option value="星期二">星期四</option>
<option value="星期二">星期五</option>
</select>
</label>
<br><br>
<label for="cishu">节次
<select name="cishu" id="cishu">
<option value="1-2节" selected>1-2节</option>
<option value="3-4节">3-4节</option>
<option value="5-6节">5-6节</option>
<option value="7-8节">7-8节</option>
<option value="9-10节">9-10节</option>
</select>
</label>
<br><br>
<label for="college">学院:</label>
<select name="college" id="college">
<option value="信息" selected>信息</option>
<option value="土木">土木</option>
<option value="机械">机械</option>
<option value="电气">电气</option>
<option value="交通">交通</option>
</select>
<br><br>
<label for="tid">工号:</label>
<input type="text" id="tid" name="tid" pattern="[0-9]{6}" title="请输入六位数字组成的工号" ><br><br>
<br>
<label for="t_name">姓名:</label>
<input type="text" id="t_name" name="t_name" ><br><br>
<label for="renshu">限制人数:</label>
<input type="text" id="renshu" name="renshu" ><br><br>
<input type="submit" value="添加">
</form>
</body>
</html>