?? goods_detail.jsp
字號:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="com.wgh.DB.connDB" %>
<%
connDB conn=new 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>Go購電子商城后臺管理</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 onLoad="clockon(bgclock)">
<table width="777" height="192" border="0" align="center" cellpadding="0" cellspacing="0" class="tableBorder">
<tr>
<td>
<jsp:include page="banner.jsp"/>
<table width="777" height="288" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="182" valign="top"><table width="100%" height="431" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" background="../images/manage_02.gif"><jsp:include page="navigation.jsp"/></td>
</tr>
</table></td>
<td align="center" valign="top"><table width="100%" height="120" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" background="../images/manage_center_goodsdetail.gif"><table width="100%" height="36" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="98%" align="right"><a href="superType.jsp">[ <img src="../images/list.gif" width="11" height="13"> 大分類信息管理]</a> <a href="subType.jsp">[ <img src="../images/list.gif" width="11" height="13"> 小分類信息管理]</a> <a href="goods_add.jsp">[ <img src="../images/list.gif" width="11" height="13"> 添加商品信息]</a></td>
<td width="2%"> </td>
</tr>
</table></td>
</tr>
</table>
<table width="92%" height="192" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top">
<table width="98%" height="79" border="0" cellpadding="0" cellspacing="0" class="noborder">
<tr>
<td width="37%" height="95" rowspan="4" align="center"><img src="../images/goods/<%=picture%>" width="184" height="119"></td>
<td width="63%"><%=goodsName%></td>
</tr>
<tr>
<td>單價:<%=nowprice%>(元) </td>
</tr>
<tr>
<td><%=introduce%></td>
</tr>
<tr>
<td><input name="Submit" type="submit" class="btn_grey" onClick="history.back(-1);" value="返回">
<%if (username!=null && username!=""){%>
<input name="see" type="button" class="btn_grey" onClick="window.location.href='cart_add.jsp?goodsID=<%=goodsID%>'" value="購買">
<%}%></td>
</tr>
</table> </td>
</tr>
</table>
<table width="100%" height="46" border="0" cellpadding="0" cellspacing="0">
<tr>
<td background="../images/manage_06.gif"> </td>
</tr>
</table></td>
</tr>
</table>
<table width="777" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="54" align="center"><jsp:include page="copyright.jsp"/></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
<%conn.close();
}else{
out.println("<script lanage='javascript'>alert('您的操作有誤');window.location.href='index.jsp';");
}%>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -