📄 adduser.jsp
字号:
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="kq.model.Config" %>
<%
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 'addUser.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="styles.css">
-->
</head>
<body>
<form action="user?action=addUser" method="post">
<table align="center">
<tr>
<td width="75">用户名:</td>
<td width="150"><input type="text" id="userName" name="userName" style="width:150"/></td>
</tr>
<tr>
<td width="75">姓 名:</td>
<td width="150"><input type="text" id="realName" name="realName" style="width:150"/></td>
</tr>
<tr>
<td>密 码:</td>
<td><input type="password" id="passWord" name="passWord" style="width:150"/></td>
</tr>
<tr>
<td>身 份:</td>
<td>
<input type="checkBox" id="role" name="role" value="<%=Config.ROLE_SYJS %>"/>实验教师<br>
<input type="checkBox" id="role" name="role" value="<%=Config.ROLE_SYSZR %>"/>实验室主任<br>
<input type="checkBox" id="role" name="role" value="<%=Config.ROLE_ZGLD %>"/>主管领导<br>
</td>
</tr>
<tr>
<td>部 门:</td>
<td>
<select id="role" name="department" style="width:150">
<option value="<%=Config.DEPARTMENT_JSJ %>">计算机科学与技术</option>
<option value="<%=Config.DEPARTMENT_DZZDH %>">电子与自动化</option>
<option value="<%=Config.DEPARTMENT_TXGC %>">通信工程</option>
</select>
</td>
</tr>
<tr>
<td colspan="2"><%=request.getAttribute("errMsg") %></td>
</tr>
<tr>
<td></td>
<td><input type="submit" id="submit" value=" 添 加 "/> <input type="submit" id="submit" value=" 清 空 "/></td>
</tr>
<tr>
<td colspan="2" align="center"><a href="login">点击此处跳转到登录页</a></td>
</tr>
</table>
</form>
<script type="text/javascript">
document.all.userName.focus();
</script>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -