?? customer_list.jsp
字號(hào):
<%@ 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" type="text/javascript"></script>
<script src="icommon.js" type="text/javascript"></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 type="text/javascript">
function doDel(id){
if ( window.confirm("確定刪除?") ){
window.location.href = "?o=doDel&id=" + id;
}
}
</script>
</head>
<body>
<html:form action="customer">
<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="javascript:doSubmit('toList');">查詢</button>
</div>
<table class="query_form_table" border="0" cellPadding="3"
cellSpacing="0">
<tr>
<th>客戶編號(hào)</th>
<td><html:text property="item.custNo" /></td>
<th>客戶名稱</th>
<td><html:text property="item.custName" /></td>
<th>地區(qū)</th>
<td>
<html:select property="item.custRegion">
<html:option value="">全部</html:option>
<html:optionsCollection name="DICTS_OPTIONS_地區(qū)" label="dictItem"
value="dictValue" />
</html:select>
</td>
</tr>
<tr>
<th>客戶經(jīng)理</th>
<td><html:text property="item.custManagerName" /></td>
<th>客戶等級(jí)</th>
<td>
<html:select property="item.custLevelLabel">
<html:option value="">全部</html:option>
<html:optionsCollection name="DICTS_OPTIONS_客戶等級(jí)" label="dictItem"
value="dictValue" />
</html:select>
</td>
<th>狀態(tài)</th>
<td><html:select property="item.custStatus">
<html:option value="">全部</html:option>
<html:option value="1">正常</html:option>
<html:option value="2">流失</html:option>
<html:option value="3">刪除</html:option>
</html:select></td>
</tr>
</table>
<!-- 列表數(shù)據(jù) -->
<br />
<table class="data_list_table" border="0" cellPadding="3"
cellSpacing="0">
<tr>
<th onclick="order_by('custNo');">客戶編號(hào)</th>
<th onclick="order_by('custName');">客戶名稱</th>
<th onclick="order_by('custRegion');">地區(qū)</th>
<th onclick="order_by('custManagerName');">客戶經(jīng)理</th>
<th onclick="order_by('custLevelLabel');">客戶等級(jí)</th>
<th onclick="order_by('custStatus');">狀態(tài)</th>
<th>操作</th>
</tr>
<logic:iterate id="item" name="customerForm"
property="pageResult.list"
type="org.jb.y272.team0.entity.CstCustomer">
<tr>
<td class="list_data_text">${item.custNo } </td>
<td class="list_data_ltext">${item.custName } </td>
<td class="list_data_text">${item.custRegion } </td>
<td class="list_data_text">${item.custManagerName } </td>
<td class="list_data_text">${item.custLevelLabel } </td>
<td class="list_data_text"><%
switch(Integer.parseInt(item.getCustStatus().trim())){
case 1:out.print("正常");break;
case 2:out.print("流失");break;
case 3:out.print("刪除");break;
default:break;
}
%> </td>
<td class="list_data_op">
<logic:notEqual name="item" property="custStatus" value="3">
<img
onclick="window.location.href='?o=toEdit&id=${item.custNo }';"
title="編輯" src="images/bt_edit.gif" class="op_button" alt="" />
<img
onclick="window.location.href='linkman.do?o=toList&id=${item.custNo }';"
title="聯(lián)系人" src="images/bt_linkman.gif" class="op_button" alt="" />
<img
onclick="window.location.href='activity.do?o=toList&id=${item.custNo }';"
title="交往記錄" src="images/bt_acti.gif" class="op_button" alt="" />
<img
onclick="window.location.href='orders.do?o=toList&id=${item.custNo }';"
title="歷史訂單" src="images/bt_orders.gif" class="op_button" alt="" />
<img
onclick="doDel('${item.custNo }');" title="刪除"
src="images/bt_del.gif" class="op_button" alt="" />
</logic:notEqual>
</td>
</tr>
</logic:iterate>
<logic:empty name="customerForm" 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="customerForm" /></div>
</td>
</tr>
</table>
</html:form>
</body>
</html:html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -