📄 upyonghu.jsp
字号:
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<jsp:useBean id="lDAO" class="shop.loginDAO" scope="page"></jsp:useBean>
<%@page import="shop.*"%>
<%@ include file="/TongYong.jsp" %>
<%
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 'upyonghu.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="ation/ationaddupyonghu.jsp" method="get">
<%
String stra = (String)session.getAttribute("adminisLogin");
if(stra=="1")
{
%>
<A href="newindex/shopAdmin.jsp">返回主页</A> <br>
<%
}
else if(stra=="0")
{
%>
<A href="newindex/shopAdmin.jsp">返回主页</A> <br>
<%
}
%>
<TABLE align="center" border="1">
<TR>
<TH>用户名</TH>
<TH>管理权限</TH>
</TR>
<%
request.setCharacterEncoding("UTF-8");
Collection l = lDAO.upyonghu();
Iterator itr = l.iterator();
while(itr.hasNext())
{
loginBean s = (loginBean)itr.next();
String d = s.getName();
String f = String.valueOf(s.getDengji());
%>
<TR>
<TD><%=d%><input type="hidden" name="name" value="<%=d%>"></TD>
<TD><select name="select">
<option value="1">管理员</option>
<option value="2"> 一般用户</option>
<option value="0">普通用户</option>
</select></TD>
</TR>
<%
}
%>
<TR>
<TD></TD>
<TD><input type="submit" value="提交"></TD>
</TR>
</TABLE>
</FORM>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -