jstl

<%@ page language="java" pageEncoding="GBK"%>
<jsp:directive.page import="com.accp.crm.common.PaginationBean"/>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
<head>
<title>用户管理</title>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/css/styles.css" >
<script>
function doDel(id){
if ( window.confirm("确定删除?") ){
window.location.href = "${pageContext.request.contextPath }/user.do?o=doDel&id=" + id;
}
}
//按钮操作
function doSubmit(o){
document.forms[0].action="${pageContext.request.contextPath }/user.do?o="+o;
document.forms[0].submit();
}
</script>
</head>

<body class="main">
<html:form action="/user?o=toList" method="post">
<div class="page_title">权限管理 > 用户管理</div>
<div class="button_bar">
${requestScope.operMessage }
<button class="common_button" οnclick="javascript:doSubmit('toAdd')">新建</button>
<button class="common_button" οnclick="javascript:doSubmit('toList')">查询</button>
</div>
<table class="query_form_table" border="0" cellPadding="3" cellSpacing="0">
<tr>
<th class="input_title">用户名</th>
<td class="input_content">
<html:text property="user.usrName" />
</td>
<th class="input_title">状态</th>
<td class="input_content">
<html:select property="user.usrFlag">
<html:option value="-1">全部</html:option>
<html:option value="1">正常</html:option>
<html:option value="0">已删除</html:option>
</html:select>
</td>
</tr>
</table>
<!-- 列表数据 -->
<br />
<table class="data_list_table" border="0" cellPadding="3" cellSpacing="0">
<tr>
<th class="data_title" style="width:40px;">编号</th>
<th class="data_title" style="width:50%;">用户名</th>
<th class="data_title" style="width:20%;">状态</th>
<th class="data_title">操作</th>
</tr>
<c:forEach items="${requestScope.userList}" var="item">
<tr height="23">
<td class="data_cell" style="text-align:right;padding:0 10px;">${item.usrId }</td>
<td class="data_cell" style="text-align:center;">${item.usrName }</td>
<td class="data_cell">${item.usrFlagString } </td>
<td class="data_cell">
<img class="op_button" οnclick="window.location.href='${pageContext.request.contextPath }/user.do?o=toDetail&id=${item.usrId }'" src="${pageContext.request.contextPath }/images/bt_detail.gif" title="查看" />
<img class="op_button" οnclick="window.location.href='${pageContext.request.contextPath }/user.do?o=toEdit&id=${item.usrId }'" src="${pageContext.request.contextPath }/images/bt_edit.gif" title="编辑" />
<img class="op_button" οnclick="window.location.href='${pageContext.request.contextPath }/user.do?o=toAssignRole&id=${item.usrId }'" src="${pageContext.request.contextPath }/images/bt_linkman.gif" title="分配角色" />
<c:if test="${item.usrFlag!=0 }">
<img class="op_button" οnclick="doDel(${item.usrId })" src="${pageContext.request.contextPath }/images/bt_del.gif" title="删除" />
</c:if>
</td>
</tr>
</c:forEach>
<c:if test="${empty requestScope.userList}">
<tr><td class="data_cell" colspan="20" style="text-align:center;height:40px;">没有记录</td></tr>
</c:if>
</table>
<!-- 导入分页 -->
<%@include file="../frame/pagination.jsp" %>
</html:form>
</body>
</html:html>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值