⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 reguser.jsp

📁 一套购物车项目。电子商务系统。实现了前台和后台的业务逻辑。
💻 JSP
字号:

<%@ page language="java" import="java.util.*" pageEncoding="GBK"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<script>
	function dolock(id){
		location.href="${pageContext.request.contextPath}/regUserManager?task=lock&userid="+id;
	}
	function dounlock(id){
		location.href="${pageContext.request.contextPath}/regUserManager?task=unlock&userid="+id;
	}
</script>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
	<meta http-equiv="Content-Type" content="text/html; charset=GBK" />
 	<title>注册用户管理</title>
	<link href="<%=path%>/css/css.css" type="text/css" rel="stylesheet" />     
    <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">
  </head>  	 	
  <body>
    <tr>
  	<a  class="head" >注册用户列表</a><br>
  	</tr>
	<br>
	<table width=100% border=0 class="mytable">
		<tr class="tableHead">
			<td>用户姓名</td>
			<td>登录名</td>
			<td>地址</td>
			<td>状态</td>
			<td>操作</td>			
		</tr>
		<c:forEach var="reguser" items="${requestScope.regUserList}">
			<tr >
				<td align ="center" >${reguser.truename}</td>
				<td>${reguser.username}</td>
				<td>${reguser.useraddress}</td>
				<td>
					<c:if test="${reguser.islocked==0}" >
					<a>解冻用户</a> 
					</c:if>
					<c:if test="${reguser.islocked==1}">
					<a class="STYLE1">冻结用户</a> 
					</c:if>				
				</td>
				<td align ="center" >
					<c:if test="${reguser.islocked==0}">
					<a class="STYLE1" href="javaScript:dolock('${reguser.userid}')">冻结</a> 
					</c:if>
					<c:if test="${reguser.islocked==1}">
					<a href="javaScript:dounlock('${reguser.userid}')">解冻</a> 
					</c:if>
				</td>
			</tr>
		</c:forEach>
	</table>
${mpage.pageBar}  
  </body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -