-
Notifications
You must be signed in to change notification settings - Fork 433
/
Copy pathproviderList.jsp
102 lines (101 loc) · 3.78 KB
/
providerList.jsp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<%@ page contentType="text/html; charset=gb2312" language="java" %>
<%@ page import="com.actionForm.ProviderForm" %>
<%@ page import="java.util.List" %>
<%@ page import="java.util.Iterator"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>物资管理系统</title>
<link rel="stylesheet" href="Css/style.css">
</head>
<body>
<table width="757" height="174" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="133" align="center" valign="top"><%@ include file="top.jsp"%></td>
</tr>
<tr>
<td>
<table width="100%" height="26" border="0" cellpadding="0" cellspacing="0" background="images/area_bg.jpg">
<tr>
<td width="26%" align="center" class='word_white'>当前登录用户:<%=session.getAttribute("username")%></td>
<td width="4%"> </td>
<td width="70%" valign="bottom">当前位置:基础信息 > 供应商管理 >>></td>
</tr>
</table>
<table width="100%" height="385" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td width="5" valign="top" background="images/left.gif"> </td>
<td align="center" valign="top">
<table width="96%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="right"><a href="providerAdd.jsp">添加供应商信息</a></td>
</tr>
</table>
<%
List list=(List)request.getAttribute("providerList");
if(list.size()<=0){%>
<table width="96%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="40" align="center" >暂无供应商信息!</td>
</tr>
</table>
<%}else{%>
<table width="96%" border="1" cellspacing="0" cellpadding="0" bordercolor="#FFFFFF" bordercolordark="#FFFFFF" bordercolorlight="#DDDDDA">
<tr>
<td width="24%" align="center" bgcolor="#D7F6FB">供应商名称</td>
<td width="27%" align="center" bgcolor="#D7F6FB">地址</td>
<td width="8%" align="center" bgcolor="#D7F6FB">邮政编码</td>
<td width="16%" align="center" bgcolor="#D7F6FB">电话</td>
<td width="14%" align="center" bgcolor="#D7F6FB">传真</td>
<td width="5%" align="center" bgcolor="#D7F6FB">修改</td>
<td width="6%" align="center" bgcolor="#D7F6FB">删除</td>
</tr>
<%
Iterator it=list.iterator();
int id=-1;
String name="";
String address="";
String fax="";
String tel="";
String postcode="";
String bankNO="";
String bankName="";
String memo="";
while(it.hasNext()){
ProviderForm providerForm=(ProviderForm)it.next();
id=providerForm.getId();
name=providerForm.getName();
address=providerForm.getAddress();
fax=providerForm.getFax();
tel=providerForm.getTel();
postcode=providerForm.getPostcode();
bankNO=providerForm.getBankNo();
bankName=providerForm.getBankName();
memo=providerForm.getMemo();
%>
<tr>
<td> <a href="providerDetail.jsp?id=<%=id%>"><%=name %></a></td>
<td> <%=address%></td>
<td> <%=postcode%></td>
<td> <%=tel%></td>
<td> <%=fax%></td>
<td> <a href="provider.do?action=providerMQuery&id=<%=id%>">修改</a></td>
<td align="center">
<a href="provider.do?action=providerdel&id=<%=id%>&val=1">删除</a>
</td>
</tr>
<%}%>
</table>
<%}%>
</td>
<td width="10" valign="top" background="images/right.jpg"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="55" valign="top" background="images/bottom.jpg"><%@ include file="copyright.jsp"%></td>
</tr>
</table>
</body>
</html>