📄 s_m_check_cus.jsp
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><%@ page language="java" contentType="text/html; charset=GB18030" pageEncoding="GB18030"%>
<%@page import= "java.util.*" %>
<%@page import="JAWC.Entities.*" %>
<jsp:useBean id="sbusiness" scope="session" class = "JAWC.Business.SellerBusiness"></jsp:useBean><meta http-equiv="Content-Type" content="text/html; charset=GB18030"><title>销售管理</title></head>
<link href="../style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src = "script.js"></script>
<script language="JavaScript">
function showallcus(){
document.getElementById('showallCustomer').style.visibility='visible'
}
</script><body>
<% if(session.getAttribute("id")==null)
response.sendRedirect("SellerIndex.jsp");
%>
<div id="mainPane" style="border-style:solid; border-color:#003366; border-width:1px; ">
<div id="mainPane">
<table width="1000" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="8" id="topBar"/>
<div >
</div>
</td>
</tr>
<tr id="guides">
<td><img src="images/t_top02.gif" width="18" height="36" alt="" /></td>
<td><div class="guide" id="guide1" onclick=" window.location.href='s_m_sellmanage.jsp'">销售管理</div></td>
<td><div class="guide" id="guide2" onclick=" window.location.href='s_m_designation.jsp'">决策支持</div></td>
<td><div class="guide" id="guide3" onclick=" window.location.href='s_m_comment.jsp'">评论信息</div></td>
<td><div class="guide" id="guide4" onclick=" window.location.href='s_m_personal.jsp'">个人信息</div></td>
<td><div class="guide" id="guide5" onclick=" window.location.href='SellerIndex.jsp'">退出系统</div></td>
<td><img src="images/t_top02-09.gif" width="19" height="36" alt="" /></td>
<td>
<form action="" method="get" >
<table width="237" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="background:url(images/t_search1.gif) no-repeat;width:184px;height:36px;"></td>
<td><input name="submit" type="submit" style="background:url(images/t_search2.gif);width:36px;height:36px;border:none;cursor:pointer;" value="" /></td>
<td><img src="images/t_search3.gif" width="17" height="36" alt="" /></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</div>
<table border="0" cellspacing="0" cellpadding="0" style="margin-top:3px;">
<tr>
<td valign="top">
<div>
<table width="237" border="0" cellspacing="0" cellpadding="0" style="margin-left:8px">
<tr>
<td style="background:url(images/t_left_top1.gif);width:237px;height:30px;padding-left:30px;padding-top:3px;color:#00C;font-weight:bold;">登陆注册信息</td>
</tr>
<tr>
<td style="background:url(images/t_left_body1.gif) left bottom;width:237px;height:205px;">
<div id="loginDiv" style="width:237px; height:205px; ">
<table style="width:237px;">
<tr style="height:30px"><td><div class="cbn"><a href="s_m_check_cus.jsp">查看客户信息</a></div></td></tr>
<tr style="height:30px"><td><div class="cbn"><a href="s_m_check_agent.jsp">查看销售代表信息</a></div></td></tr>
<tr style="height:30px"><td><div class="cbn"><a href="s_m_check_order.jsp">查看订单信息</a></div></td></tr>
<tr style="height:30px"><td><div class="cbn"><a href="s_m_check_sold.jsp"> 查看销售信息</a></div></td></tr>
<tr style="height:30px"><td><div class="cbn"><a href="s_m_check_product.jsp">查看产品信息</a></div></td></tr>
<tr style="height:30px"><td><div class="cbn"><a href="SellerIndex.jsp"> 退出系统</a></div></td></tr>
</table>
</div>
</td>
</tr>
</table>
</div>
<div style="margin-top:10px;">
<table width="241" border="0" cellspacing="0" cellpadding="0" style="margin-left:8px">
<tr>
<td style="background:url(images/t_left_top2.gif);width:241px;height:30px;"></td>
</tr>
<tr>
<td style="background:url(images/t_left_body2.gif);width:241px;height:249px;"></td>
</tr>
</table>
</div>
</td>
<td valign="top">
<div id="productList" style="width:512px">
<br/>
选择查看方式:<br/>
<form id="showallcus" action="s_m_check_cus.jsp">
<p style=" margin-top:8px;"> <1>查看所有用户:<input type="button" value="查询所有" onclick="showallcus()"/></p>
</form>
<form action="s_m_check_cusByArea.jsp" target="_blank" method="post">
<p style=" margin-top:8px;"> <2>按区域查看客户:选择区域:
<select id="area" name="area">
<option id="asia" value="Asia">Asia</option>
<option id="africa" value="Africa">Africa</option>
<option id="europer" value="Europer">Europer</option>
<option id="america" value="America">America</option>
<option id="antarctica" value="Antarctia">Antarctica</option>
<option id="australia" value="Australia">Australia</option>
</select>
<input type="submit" value="查询所有" /></p>
</form>
<form action="s_m_check_acus.jsp" id="showacus" target="_blank">
<p style=" margin-top:8px;"><3>按用户名查找:
输入用户ID:<input type="text" id="customerId" name="customerId"><input type="submit" value="查询" ></p>
</form>
<form action="s_m_check_agent_cus.jsp" target="_blank" method="post">
<p style=" margin-top:8px;"><4>按用户所属销售代表查找:销售代表ID:<input type="text" id="agentId" name="agentId"><input type="submit" value="查询"/></p>
</form>
<%
ArrayList<Customer> allcustomer =new ArrayList<Customer>();
allcustomer = sbusiness.getCustomer();
%>
<div id="showallCustomer" style="visibility:hidden;">
<table bordercolor="#0033CC" border="1" cellpadding="0" cellspacing="0" width="512" style=" margin-left:11px; margin-top:8px; margin-right:11px; width:492px; background:#C8FFF7; ">
<tr>
<th class="s_check_info">用户ID</th>
<th class="s_check_info">姓名</th>
<th class="s_check_info">性别</th>
<th class="s_check_info">折扣率</th>
<th class="s_check_info">购买率</th>
<th class="s_check_info">详情</th>
</tr>
<%
for( int i = 0;i<allcustomer.size();i++){
%>
<tr style="text-align:center">
<td> <%= allcustomer.get(i).getCId() %></td>
<td> <%= allcustomer.get(i).getCName() %></td>
<td><% String sex;
if(allcustomer.get(i).getCSex()==true)
sex = "男";
else
sex = "女";
%>
<%=sex %></td>
<td><%= allcustomer.get(i).getCDiscount() %></td>
<td><%= allcustomer.get(i).getCBuyRate() %></td>
<td><a href="s_m_check_acus.jsp?customerId=<%=allcustomer.get(i).getCId() %>" target="_blank">详情</a></td>
</tr>
<%} %>
</table>
</div>
</div>
</td>
<td valign="top">
<div>
<table width="230" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="background:url(images/t_right_top.gif);width:200px;height:23px;padding-left:30px;padding-top:7px;font-size:13px;">
公告信息
</td>
</tr>
<tr>
<td style="background:url(images/t_right_body.gif);width:230px;height:223px;"> </td>
</tr>
</table>
</div>
<div style="margin-top: 10px;">
<table width="230" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="background:url(images/t_right_top.gif);width:200px;height:30px;padding-left:30px;padding-top:7px;font-size:13px;">
Connection
</td>
</tr>
<tr>
<td style="background:url(images/t_right_body.gif) 0px -73px;width:230px;height:150px;"> </td>
</tr>
</table>
</div>
</td>
</tr>
</table>
<div id="bottom">版权所有 *****<br/>
推荐分辨率 1024*768 以上
</div>
</div>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -