You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
shopping/daima/WebRoot/AdGoodsShow.jsp

388 lines
6.7 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<%@ page language="java" import="java.util.*" pageEncoding="GB18030"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'ShopManagerMain.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<script language="JavaScript">
function delete_confirm(e)
{
if (event.srcElement.outerText == "删除")
{
event.returnValue = confirm("删除是不可恢复的,你确认要删除吗?");
}
}
document.onclick = delete_confirm;
</script>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>后台管理系统</title>
<script language="javascript" src="jquery.js"></script>
<script>
function guan()
{
if(this.confirm("是否关闭?"))
this.close();
}
</script>
<style type="text/css">
<!--
* {
margin:0px;
padding:0px;
}
html, body{
height:100%;
overflow: hidden;
}
html>body{ /*-- for !IE6.0 --*/
width: auto;
height: auto;
position: absolute;
top: 0px;
left: 0px;
right: 0px;
bottom: 0px;
}
body {
border:8px solid #ffffff;
background-color: #ffffff;min-width:230px;
}
#mainDiv {
width: 100%;
height: 100%;
padding:60px 0px 25px 0px;;
}
#centerDiv{
width: 100%;
height: 100%;
background-color:#00CCFF;
padding-left:158px;
}
#mainDiv>#centerDiv{ /*-- for !IE6.0 --*/
width: auto;
height: auto;
position: absolute;
top: 56px;
left: 0px;
right: 0px;
bottom: 20px;
}
#left{
width:158px;
height:100%;
background:url(images/slide.jpg) repeat-y;
position:absolute;
left:0px;
}
#lhead{
background:url(images/left-head.jpg) left top no-repeat;
height:25px;
font-size:14px;
color:#FF9933;
text-align:center;
line-height:25px;
}
#right{
width:100%;
height:100%;
background:#ffffff;
position:absolute;
overflow-y:auto;
border:1px #003366 solid;
padding:20px 0 0 10px;
font-size:12px;
font-family:"宋体";
}
#centerDiv>#right{
width:auto;
height:auto;
position:absolute;
top:0px;
right:0px;
left:158px;
bottom:0px;
}
#topDiv{
width:100%;
height:56px;
background:url(images/head-bg.jpg) repeat-x;
position:absolute;
top:0px;
overflow:hidden;
}
#topDiv ul{
list-style:none;
font-size:12px;
width:100%;
margin:0;
padding:0;
}
#topDiv ul li{
float:left;
width:15%
}
#topDiv ul li a {
display:block;
width:100%;
height:25px;
line-height:25px;
background:url(images/menu-bg.jpg) repeat-x;
color:#FFFFFF;
direction:none;
text-align:center;
border-bottom:1px #000066 solid;
border:1px #06597D solid;
}
#tmenu{
width:100%;
position:absolute;
left:12%;
bottom:0;
padding-left:15%;
margin-left:-15%;
}
#current{
background:#ccc;
height:25px;
line-height:25px;
margin:-20px 0 0 -10;
overflow:hidden;
}
#bottomDiv{
width:100%;
height:20px;
background:url(images/bottom.jpg) repeat-x;
position:absolute;
bottom:0px;
bottom:-1px; /*-- for IE6.0 --*/
}
#left ul{
list-style:none;
font-size:12px;
margin:50px 0 0 8px;
}
#left ul li a{
display:block;
width:140px;
height:25px;
line-height:25px;
background:url(images/menu-bg.jpg) repeat-x;
color:#FFFFFF;
direction:none;
text-align:center;
border-bottom:1px #000066 solid;
border:1px #06597D solid;
}
#left ul li a:hover{
background:url(images/menu-bg.jpg) 0px 25px;
color:#99FFCC;
direction:none;
text-align:center;
border-bottom:1px #000066 solid;
}
#form{
width:80%;
height:99%;
margin:0 auto;
_margin-left:20%;
}
fieldset{
width:100%;
margin:20 auto;
line-height:35px;
padding-left:20PX;
}
-->
</style>
</head>
<body>
<div id="mainDiv">
<div id="topDiv">
<div id="tmenu"><ul>
<li ><a href="ShopManagerMain.jsp">首页</a></li>
<li ><a href="javascript:window.history.go(1)">前进</a></li>
<li ><a href="javascript:window.history.go(-1)">后退</a></li>
<li ><a href="javascript:window.history.go(0)">刷新</a></li>
<li ><a href="servlet/ShopManagerServlet?op=help">帮助</a></li>
</ul></div></div>
<div id="centerDiv">
<div id="left">
<div id="lhead">管理菜单</div>
<ul>
<li ><a href="servlet/ShopManagerServlet?op=ShowQuser">查看用户</a></li>
<li ><a href="servlet/T_boardServlet?op=five">公告管理</a></li>
<li ><a href="servlet/AdGoodsListServlet" class="selected">商品管理</a></li>
<li ><a href="servlet/ContactServlet?op=find">留言管理</a></li>
<li ><a href="servlet/AdOrderListServlet">订单管理</a></li>
<li ><a href="servlet/ShowServlet">关闭</a></li>
</ul>
</div>
<div id="right">
<div id="current">&nbsp;&nbsp;&nbsp;&nbsp;当前位置:</div>
<div style="position:relative;width=1000px;overflow:scroll;left:5%;top:10px;height:90%;padding:0px; margin:0px;">
<table width="300%" style="table-layout:fixed" border="1">
<tr>
<td>
商品编号
</td>
<td>
商品型号
</td>
<td>
商品价格
</td>
<td>
数量
</td>
<td>
折扣
</td>
<td>
商品类型
</td>
<td>
展示图片(小)
</td>
<td>
描述1
</td>
<td>
描述2
</td>
<td>
描述3
</td>
<td>
成分
</td>
<td>
使用方法
</td>
<td>
容量
</td>
<td>
星级
</td>
<td>
展示图片1
</td>
<td>
展示图片2
</td>
<td>
展示图片3
</td>
</tr>
<c:forEach items="${adlist}" var="adg">
<tr>
<td>
${adg.gid }&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td>
<td>
${adg.goods.gname }
</td>
<td>
${adg.goods.gprice }&nbsp;&nbsp;&nbsp;&nbsp;
</td>
<td>
${adg.goods.gnumber }&nbsp;&nbsp;
</td>
<td>
${adg.goods.gdiscount }&nbsp;&nbsp;
</td>
<td>
${adg.goods.gapply }
</td>
<td>
${adg.goods.gspic }
</td>
<td>
${adg.gcomm1 }
</td>
<td>
${adg.gcomm2 }
</td>
<td>
${adg.gcomm3 }
</td>
<td>
${adg.gele }
</td>
<td>
${adg.gway }
</td>
<td>
${adg.gcap }
</td>
<td>
${adg.gstart}
</td>
<td>
${adg.gbpic2 }
</td>
<td>
${adg.gbpic3 }
</td>
<td>
${adg.gbpic4 }
</td>
<td>
<a href="servlet/ReviseGoodsServlet?gid=${adg.gid}">修改</a>
</td>
<td>
<a href="servlet/DeleteGoodsServlet?gid=${adg.gid}" onClick="delete_confirm">删除</a>
</td>
</tr>
</c:forEach>
</table>
<form action="NewGoodsShow.jsp">
<input type="submit" onclick="return delete_confirm()" value="新增">
</form>
</div>
</div></div>
<div id="bottomDiv"></div>
</div>
<script language="javascript">
$("#test1").toggle(function(){$("#test").slideDown()},function(){$("#test").slideUp()})
</script>
</body>
</html>
</html>