📄 users.jsp
字号:
<%@ page language="java" pageEncoding="gbk"
contentType="text/html; charset=utf-8"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%
String ccu=(String)request.getSession().getAttribute("ccu");//防止非法入侵
if (ccu==null||(!ccu.equals("abc")))
response.sendRedirect("/xuanke/login.jsp");
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html locale="true">
<head>
<html:base />
<title>选课系统</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">
-->
<link rel="STYLESHEET" type="text/css" href="css/shared.css">
</head>
<body bgcolor="#ffffff" background="./image/snow.gif">
<br>
<hr height=1 />
<h2 align="center">
用户管理模块
</h2>
<html:form action="/user.do" method="post">
<table align="center">
<tr>
<td class="tdframe">
<table class="table1">
<thead class="tdsectionbar">
<td align="center" class="tdsectionbar">
用户名
</td>
<td align="center" class="tdsectionbar">
密码
</td>
<td align="center" class="tdsectionbar" width="200">
学生
</td>
</thead>
<tbody>
<tr class="tdsectionbar">
<td class="tdbg0">
<html:text property="username" />
</td>
<td class="tdbg0">
<html:text property="password" />
</td>
<td class="tdbg0" align="center">
<html:select property="stage">
<html:option value="0">学生</html:option>
<html:option value="1">管理员</html:option>
</html:select>
</td>
<tr>
</tbody>
</table>
</td>
</tr>
</table>
<br>
<br>
<table align="center">
<tr>
<td>
<input type="submit" value="添加用户" class="button" />
</td>
</tr>
</table>
</html:form>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -