?? dict_list.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 } </td>
<td class="list_data_text">${item.dictType } </td>
<td class="list_data_text">${item.dictItem } </td>
<td class="list_data_text">${item.dictValue } </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>
</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 + -