📄 admin.jsp
字号:
<%@ page language="java" import="java.sql.*" pageEncoding="gb2312"%>
<jsp:directive.page import="Beans.AdminBean"/>
<html>
<head>
<title>管理人员</title>
<LINK rev=stylesheet media=all href="style/login.css"
type=text/css rel=stylesheet>
</head>
<body>
<%
try
{
String type1=(String)session.getValue("type");
if (!type1.equals("32")) response.sendRedirect("Login.jsp");
}
catch(Exception e)
{
response.sendRedirect("Login.jsp");
}
%>
<jsp:include page="inc/head.html"/>
<table cellpadding="0" cellspacing="0" width="732" id="table1" style="width: 732px; height: 313px;" height="313">
<!-- MSTableType="layout" --><tr>
<td height="50%" width="100%" valign="top" colspan="3">
<p align="center"> </td>
</tr>
<tr>
<form name="form1" method="post" action="admin.jsp" id="form1">
<td height="100%" width="36%" valign="top" colspan="2">按姓名查找∶<input type="text" name="name" class="textbox" id="name" size="20"><p>按学号查找∶<input type="text" class="textbox" id="id" name="id" size="20"><input type="submit" name="Button1" value=" 查找 " id="Button1" class="button" style="float:middle" align="middle"></td>
<td height="100%" width="64%" rowspan="3">
</form>
<jsp:useBean id="admin" class="Beans.AdminBean">
<jsp:setProperty name="admin" property="*"/></jsp:useBean>
<form name="form3" method="post" action="del_user.jsp" id="form3">
<%
ResultSet rs=admin.getrs();
out.print("<TABLE class=datagridstyle id=DataGrid1 style='WIDTH: 100%; BORDER-COLLAPSE: collapse' cellSpacing=0 cellPadding=3 border=0><tr><td><b>删除</b><td><b>编号</b><td><b>姓名</b><td><b>权限</b>");
while(rs.next())
{
String str=rs.getString("Users_ID");
out.print("<tr class=datagrid1212><td><input type=radio name=delete value="+str+">");
out.print("<td>"+str+"</td>");
out.print("<td>"+rs.getString("Users_Name")+"</td>");
out.print("<td>"+rs.getString("Users_type")+"</td></tr>");
}
out.print("</table>");
%>
 
<p>
<input type="submit" name="Button3" value="删除用户 " id="Button3" class="button" style="float: right" /></p>
</form>
</td>
</tr>
<tr>
<td height="50%" width="36%" valign="top" colspan="2"> </td>
</tr>
<tr>
<td height="18%" width="36%" valign="top" colspan="2">
</td>
</tr>
<tr>
<td height="16%" width="18%" valign="top"><br></td>
<td height="16%" width="18%" valign="top">
</td>
<td height="100%" width="64%" rowspan="3" valign="top">
<form name="form2" method="POST" action="add_user.jsp" id="form2">
<p>
<input type="submit" name="Button2" value="添加用户 " id="Button2" class="button" style="float: right" /></p>
</form>
<p> </td>
</tr>
<tr>
<td height="16%" width="36%" valign="top" colspan="2"> </td>
</tr>
<tr>
<td height="50%" width="36%" valign="top" colspan="2"> </td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -