forked from maxliaops/Java_Web_Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgoods_detail.jsp
More file actions
88 lines (85 loc) · 3.72 KB
/
Copy pathgoods_detail.jsp
File metadata and controls
88 lines (85 loc) · 3.72 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<jsp:useBean id="conn" scope="page" class="com.tools.ConnDB"/>
<%
String username=(String)session.getAttribute("username");
int ID=-1;
ID=Integer.parseInt(request.getParameter("ID"));
if(ID>0){
ResultSet rs=conn.executeQuery("select ID,GoodsName,Introduce,nowprice,picture from tb_goods where ID="+ID);
int goodsID=-1;
String goodsName="";
String introduce="";
float nowprice=(float)0.0;
String picture="";
if(rs.next()){
goodsID=rs.getInt(1);
goodsName=rs.getString(2);
introduce=rs.getString(3);
nowprice=rs.getFloat(4);
picture=rs.getString(5);
}
%>
<html>
<head>
<title>MR网络购物中心——后台管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../CSS/style.css" rel="stylesheet">
<script src="onclock.JS"></script>
</head>
<body>
<jsp:include page="banner.jsp"/>
<table width="788" height="288" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td align="center" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="10" height="38" align="right"> </td>
<td colspan="3" class="tableBorder_B_dashed"><img src="../images/manage_ico1.GIF" width="11" height="11"> <a href="superType.jsp"> [大分类信息管理]</a> <img src="../images/manage_ico2.GIF" width="11" height="11"> <a href="subType.jsp">[小分类信息管理]</a> <img src="../images/manage_ico3.GIF" width="12" height="12"> <a href="goods_add.jsp">[添加商品信息]</a></td>
<td width="12"> </td>
</tr>
<tr>
<td align="right"> </td>
<td height="10" colspan="3"> </td>
<td> </td>
</tr>
<tr>
<td height="29" align="right"> </td>
<td width="19" background="../images/manage_leftTitle_left.GIF"> </td>
<td width="588" align="center" background="../images/manage_leftTitle_mid.GIF" class="word_white"><b>商品详细信息</b></td>
<td width="20" background="../images/manage_leftTitle_right.GIF"> </td>
<td> </td>
</tr>
<tr>
<td height="29" colspan="4" align="right"> </td>
<td> </td>
</tr>
</table>
<table width="96%" height="153" cellpadding="0" cellspacing="0" border="1" bordercolor="#FFFFFF" bordercolordark="#FFFFFF" bordercolorlight="#E6E6E6" style="padding:5px;">
<tr>
<td width="37%" height="95" rowspan="4" align="center"><img src="../images/goods/<%=picture%>" width="120" height="80" class="tableBorder_l"></td>
<td width="63%" height="40"><%=goodsName%></td>
</tr>
<tr>
<td height="40">单价:<%=nowprice%>(元) </td>
</tr>
<tr>
<td height="40"><%=introduce%></td>
</tr>
<tr>
<td height="40"><input name="Submit" type="submit" class="btn_bg_short" onClick="history.back(-1);" value="返回"> </td>
</tr>
</table>
</td>
<td width="182" valign="top"><table width="100%" height="431" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="199" valign="top" bgcolor="#FFFFFF"><jsp:include page="navigation.jsp"/></td>
</tr>
</table></td>
</tr>
</table>
<jsp:include page="copyright.jsp"/>
</body>
</html>
<%conn.close();
}else{
out.println("<script lanage='javascript'>alert('您的操作有误');window.location.href='index.jsp';");
}%>