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

📄 dict_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="/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>
  <html:form action="dict">
  	<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>类别</th>
					<td><html:text property="item.dictType" /></td>
					<th>条目</th>
					<td><html:text property="item.dictItem" /></td>
					<th>值</th>
					<td><html:text property="item.dictValue" /></td>
			</tr>
		</table>
		<!-- 列表数据 -->
		<br />
		<table class="data_list_table" border="0" cellPadding="3" cellSpacing="0">
		<tr>
			<th onclick="order_by('dictId');">编号</th>
			<th onclick="order_by('dictType');">类别</th>
			<th onclick="order_by('dictItem');">条目</th>
			<th onclick="order_by('dictValue');">值</th>
			
			<th >操作</th>
		</tr>
		<logic:iterate id="item" name="dictForm" property="pageResult.list"
			type="org.jb.y272.team0.entity.BasDict"> 
			<tr>
				<td class="list_data_number">${item.dictId }&nbsp;</td>
				<td class="list_data_text">${item.dictType }&nbsp;</td>
				<td class="list_data_text">${item.dictItem }&nbsp;</td>
				<td class="list_data_text">${item.dictValue }&nbsp;</td>
				
				<td class="list_data_op">
					<logic:equal name="item" property="dictIsEditable" value="1">
						<img onclick="window.location.href='?o=toEdit&id=${item.dictId }';" title="编辑" src="images/bt_edit.gif" class="op_button" />
						<img onclick="doDel('${item.dictId }');" title="删除" src="images/bt_del.gif" class="op_button" />
					</logic:equal>
					&nbsp;
				</td>
			</tr>			
		</logic:iterate>
		<logic:empty name="dictForm" property="pageResult.list">
			<tr><td class="data_cell" colspan="20" style="text-align:center;height:40px;">没有记录</td></tr>
		</logic:empty>
			<tr>
				<td colspan="20" style="padding:0 1px;">
					<div class="pager"><jb:pager form="dictForm" /></div>
				</td>
			</tr>
		</table>
		
	</html:form>	
  </body>
</html:html>

⌨️ 快捷键说明

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