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

📄 list.jsp

📁 crm系统 有源码 及相关文档sql2005 数据库 客户反馈模块
💻 JSP
字号:
<%@ page language="java" pageEncoding="GBK"%>

<%@ 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="/WEB-INF/jb-common.tld" prefix="jb" %>
<script src="validate.js" ></script>
<script src="icommon.js" ></script>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
  <head>
    <title>角色管理</title>
	<link rel="stylesheet" type="text/css" href="styles.css" >
	<script>
		function doDel(id){
			if ( window.confirm("确定删除?") ){
				window.location.href = "?o=doDel&id=" + id;
			}
		}
	</script>
  </head>
  
  <body class="main">
  <html:form action="role">
  	
  	<html:hidden property="o" value="toList" />
  	<div class="page_title">角色管理</div>
  	<div class="button_bar">
		<button class="common_button" onclick="help('');">帮助</button>
<%--		<button class="common_button" onclick="window.location.href='?o=toAdd';">新建</button>--%>
		<button class="common_button" onclick="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="item.roleName" />
				</td>
				<th class="input_title">状态</th>
				<td class="input_content">
					<html:select property="item.roleFlag">
						<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" onclick="order_by('roleId');">编号</th>
			<th class="data_title" onclick="order_by('roleName');">角色名</th>
			<th class="data_title" onclick="order_by('roleName');">角色描述</th>
			<th class="data_title" onclick="order_by('roleFlag');">状态</th>
			<th class="data_title">操作</th>
		</tr>
		<logic:iterate id="item" name="roleForm" property="pageResult.list"
			type="org.jb.y272.team0.entity.SysRole"> 
			<tr>
				<td class="data_cell" style="text-align:right;padding:0 10px;">${item.roleId }</td>
				<td class="data_cell" style="text-align:center;">${item.roleName }</td>
				<td class="data_cell" style="text-align:left;">${item.roleDesc }&nbsp;</td>
				<td class="data_cell" style="text-align:center;">${item.roleFlagString }&nbsp;</td>
				<td class="data_cell">
					<img onclick="window.location.href='?o=toAssignRights&id=${item.roleId }'" title="分配权限" src="images/bt_linkman.gif" class="op_button" />
				</td>
			</tr>
		</logic:iterate>
		<logic:empty name="roleForm" property="pageResult.list">
			<tr><td class="data_cell" colspan="20" style="text-align:center;height:40px;">没有记录</td></tr>
		</logic:empty>
		</table>
		<jb:pager form="roleForm" />
	</html:form>	
  </body>
</html:html>

⌨️ 快捷键说明

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