📄 list.jsp
字号:
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ 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://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
%>
<html>
<html:base/> <!-- 这行不能省略 -->
<head>
<script type="text/javascript">
function search()
{
with(document.cstForm)
{
document.cstForm.submit();
}
}
</script>
<title>jb-aptech毕业设计项目</title>
<link href="../../css/style.css" rel="stylesheet" type="text/css">
<script src="../../script/common.js"></script>
</head>
<body>
<html:form action="/cst" method="post">
<html:hidden property="flag" value="search"/>
<div class="page_title">客户信息管理</div>
<div class="button_bar">
<button class="common_button" onclick="help('');">帮助</button>
<button class="common_button" onclick="search();">查询</button>
</div>
<table class="query_form_table">
<tr>
<th>客户编号</th>
<td><input type="text" name="entity.custNo"/></td>
<th>名称</th>
<td><input type="text" name="entity.custName"/></td>
<th>地区</th>
<td>
<select name="entity.custRegion">
<option>全部</option>
<option>北京</option>
<option>华北</option>
<option>中南</option>
<option>东北</option>
<option>西部</option>
</select>
</td>
</tr>
<tr>
<th>客户经理</th>
<td><input type="text" name="entity.custManagerName"/></td>
<th>客户等级</th>
<td>
<select name="entity.custLevelLabel">
<option>全部</option>
<option>战略合作伙伴</option>
<option>合作伙伴</option>
<option>大客户</option>
<option>普通客户</option>
</select>
</td>
<th> </th>
<td> </td>
</tr>
</table>
<br />
</html:form>
<table class="data_list_table">
<tr>
<th>序号</th>
<th>客户编号</th>
<th>名称</th>
<th>地区</th>
<th>客户经理</th>
<th>客户等级</th>
<th>操作</th>
</tr>
<logic:iterate id="cust" name="list" scope="session">
<tr>
<c:set var="count" value="${count==null?1:count+1}" scope="request" target="cust"/>
<td class="list_data_text">${count}</td>
<td class="list_data_text"><bean:write name="cust" property="custNo"/></td>
<td class="list_data_ltext"><bean:write name="cust" property="custName"/></td>
<td class="list_data_text"><bean:write name="cust" property="custRegion"/></td>
<td class="list_data_text"><bean:write name="cust" property="custManagerName"/></td>
<td class="list_data_text"><bean:write name="cust" property="custLevelLabel"/></td>
<td class="list_data_op">
<a href="<%=path%>/cst.do?flag=toEdit&custNo=<bean:write name="cust" property="custNo"/>&custManagerId=<bean:write name="cust" property="custManagerId"/>"><img title="编辑" src="../../images/bt_edit.gif" class="op_button" /></a>
<a href="<%=path%>/cst.do?flag=linkman&custNo=<bean:write name="cust" property="custNo"/>&custManagerId=<bean:write name="cust" property="custManagerId"/>"><img title="联系人" src="../../images/bt_linkman.gif" class="op_button" /></a>
<a href="<%=path%>/activity.do?flag=activity&custNo=<bean:write name="cust" property="custNo"/>"><img title="交往记录" src="../../images/bt_acti.gif" class="op_button" /></a>
<a href="<%=path%>/cst.do?flag=orders"><img title="历史订单" src="../../images/bt_orders.gif" class="op_button" /></a>
<a href="<%=path%>/cst.do?flag=delete&custNo=<bean:write name="cust" property="custNo"/>"><img title="删除" src="../../images/bt_del.gif" class="op_button" /></a>
</td>
</tr>
</logic:iterate>
<tr>
<th colspan="100" class="pager">
<div class="pager">
共条记录 每页<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 + -