forked from maxliaops/Java_Web_Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEnterprise_Particular.jsp
More file actions
71 lines (71 loc) · 3.01 KB
/
Enterprise_Particular.jsp
File metadata and controls
71 lines (71 loc) · 3.01 KB
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
<%@ page contentType="text/html; charset=gb2312" import="java.sql.*"%>
<html>
<% request.setCharacterEncoding("gb2312");%>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<head>
<title>企业详细信息</title>
</head>
<jsp:useBean id="data" scope="session" class="cars.Bean1"></jsp:useBean>
<link rel="stylesheet" href="Css/style.css">
<body topmargin="0" leftmargin="0">
<%!
String sql;
int i;
ResultSet rs;
String id,name,address,phone,type,picture;
%>
<%
if(request.getParameter("id")!=null){
sql="select * from tb_Enterprise where ID="+Integer.parseInt(request.getParameter("id"));
rs=data.getrs(sql);
}
%>
<table width="380" height="235" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#A7B5CE" class="table">
<tr>
<td valign="top"><table width="360" height="235" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="40" align="center"><div align="center" class="bottm" style="font-size: 16px;color: #FF0000;font-weight: bold;width:160;"> 企 业 详 细 资 料</div></td>
</tr>
<tr>
<td valign="top">
<table width="360" height="180" border="0" cellpadding="0" cellspacing="0">
<tr valign="bottom">
<td height="35"><div align="right">企业名称:</div></td>
<td width="266" height="35">
<%if(rs!=null){rs.beforeFirst();if(rs.next()){%><%=rs.getString("Name")%><%}}%>
</td>
</tr>
<tr valign="bottom">
<td width="94" height="35"><div align="right">企业地址:</div></td>
<td height="35">
<%if(rs!=null){rs.beforeFirst();if(rs.next()){%><%=rs.getString("Address")%><%}}%>
</td>
</tr>
<tr valign="bottom">
<td width="94" height="35"><div align="right">联系电话:</div>
<div align="right"></div></td>
<td height="35"><div align="left">
<%if(rs!=null){rs.beforeFirst();if(rs.next()){%><%=rs.getString("Phone")%><%}}%>
</div> </td>
</tr>
<tr valign="bottom">
<td height="35"><div align="right">企业类别:</div></td>
<td height="35"><%if(rs!=null){rs.beforeFirst();if(rs.next()){%><%=rs.getString("Style")%><%}}%> </td>
</tr>
<tr valign="bottom">
<td height="40" colspan="2">
<div align="center">
<input name="Submit" type="button" class="wenbenkuang" value=" 关 闭 窗 口 " onClick="javascript:window.close()">
</div></td>
</tr>
<tr valign="bottom">
<td height="13" colspan="2"> </td>
</tr>
</table></td>
</tr>
</form>
</table></td>
</tr>
</table>
</body>
</html>