📄 list.jsp
字号:
<%@ page pageEncoding="GBK"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean"
prefix="bean"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html"
prefix="html"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>jb-aptech毕业设计项目</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css/style.css" rel="stylesheet" type="text/css">
<script src="script/common.js"></script>
<script type="text/javascript">
function move()
{
document.forms[0].action = "/CrmPrj/customer.do?op=findbycustomer";
document.forms[0].submit();
}
</script>
</head>
<body>
<div class="page_title">
客户信息管理
</div>
<div class="button_bar">
<button class="common_button" onclick="help('');">
帮助
</button>
<button class="common_button" onclick="javascript:move()">
查询
</button>
</div>
<html:form action="customer">
<table class="query_form_table">
<tr>
<th>
客户编号
</th>
<td>
<html:text property="customer.custNo" />
</td>
<th>
名称
</th>
<td>
<html:text property="customer.custName" />
</td>
<th>
地区
</th>
<td>
<html:select property="customer.custRegion">
<html:option value="0">全部</html:option>
<html:optionsCollection name="listAddress" label="dictItem"
value="dictValue" />
</html:select>
</td>
</tr>
<tr>
<th>
客户经理
</th>
<td>
<html:text property="customer.custManagerName" />
</td>
<th>
客户等级
</th>
<td>
<html:select property="customer.custLevel" onchange="level()">
<html:option value="0">全部</html:option>
<html:optionsCollection name="listDengJi" label="dictItem"
value="dictValue" />
</html:select>
</td>
<th>
</th>
<td>
</td>
</tr>
</table>
</html:form>
<br />
<table class="data_list_table">
<c:if test="${message != null}">
<tr>
<td align="center">
<font size="2" color="blue">*${message}*</font>
</td>
</tr>
</c:if>
<c:if test="${message == null}">
<tr>
<th>
客户编号
</th>
<th>
名称
</th>
<th>
地区
</th>
<th>
客户经理
</th>
<th>
客户等级
</th>
<th>
操作
</th>
</tr>
<c:forEach var="customer" items="${customer}">
<tr>
<td class="list_data_text">
${customer.custNo}
</td>
<td class="list_data_text">
${customer.custName}
</td>
<td class="list_data_text">
${customer.custRegion}
</td>
<td class="list_data_text">
${customer.custManagerName}
</td>
<td class="list_data_text">
${customer.custLevelLabel}
</td>
<td class="list_data_op">
<img
onclick="to('customer.do?op=GetCustomerByCustomerNO&id=${customer.custNo}');"
title="编辑" src="images/bt_edit.gif" class="op_button" />
<img
onclick="to('customer.do?op=GetLinkManById&id=${customer.custNo}');"
title="联系人" src="images/bt_linkman.gif" class="op_button" />
<img
onclick="to('customer.do?op=GetActivityById&id=${customer.custNo}');"
title="交往记录" src="images/bt_acti.gif" class="op_button" />
<img
onclick="to('orders.do?op=GetOrderByCustomerName&no=${customer.custNo}&custname=${customer.custName}');"
title="历史订单" src="images/bt_orders.gif" class="op_button" />
<img onclick="to('customer.do?op=Delete&id=${customer.custNo}');"
title="删除" src="images/bt_del.gif" class="op_button" />
</td>
</tr>
</c:forEach>
</c:if>
<tr>
<th colspan="100" class="pager">
<div class="pager">
共59条记录 每页
<input value="10" size="2" />
条 第
<input value="1" size="2" />
页/共5页
<a href="#">第一页</a>
<a href="#">上一页</a>
<a href="#">下一页</a>
<a href="#">最后一页</a> 转到
<input value="1" size="2" />
页
<button width="20" onclick="reload();">
GO
</button>
</div>
</th>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -