📄 cons.jsp
字号:
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ 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="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<%@ 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="<%=request.getContextPath()%>/html/css/style.css" rel="stylesheet" type="text/css">
<script src="<%=request.getContextPath()%>/html/script/common.js"></script>
<script type="text/javascript">
function doSearch(){
document.forms['searchForm'].action="<%=request.getContextPath()%>/report.do?method=toCons";
document.forms['searchForm'].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="doSearch();">查询</button>
</div>
<html:form action="/report?method=toCons" method="post" styleId="searchForm">
<table class="query_form_table">
<tr>
<th>报表方式</th>
<td>
<html:select property="type">
<html:option value="Grade">按等级</html:option>
<html:option value="Credits">按信用度</html:option>
<html:option value="Satisfaction">按满意度</html:option>
</html:select>
</td>
<th> </th>
<td>
</td>
</tr>
</table></html:form>
<br />
<table class="data_list_table">
<tr>
<th>编号</th>
<th>等级</th>
<th>客户数量</th>
</tr>
<c:if test="${map==null}">
<div style="color: red;font-size: 12px;">没有记录</div>
</c:if>
<c:forEach items="${map}" var="map" varStatus="i">
<tr>
<td class="list_data_number">${i.index+1 }</td>
<td class="list_data_text">${map.key }</td>
<td class="list_data_number">${map.value }</td>
</tr>
</c:forEach>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -