forked from maxliaops/Java_Web_Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsubType.jsp
More file actions
96 lines (93 loc) · 4.32 KB
/
subType.jsp
File metadata and controls
96 lines (93 loc) · 4.32 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
89
90
91
92
93
94
95
96
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<jsp:useBean id="conn" scope="page" class="com.tools.ConnDB"/>
<jsp:include page="safe.jsp"/>
<%
ResultSet rs=conn.executeQuery("select * from V_Type order by ID Desc");
%>
<html>
<head>
<title>MR网络购物中心——后台管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../CSS/style.css" rel="stylesheet">
<script src="../JS/check.js"></script>
<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_ico2.GIF" width="11" height="11"> <a href="sub_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>
</table>
<!---->
<form action="subType_Del_deal.jsp" method="post" name="frm">
<table width="92%" height="192" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top"> <table width="100%" height="14" border="0" cellpadding="0" cellspacing="0"> </table>
<table width="100%" height="48" border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bordercolordark="#FFFFFF" bordercolorlight="#E6E6E6">
<tr bgcolor="#eeeeee">
<td width="48%" height="24" align="center">大分类信息名称</td>
<td width="44%" align="center">小分类信息名称</td>
<td width="8%" align="center">删除</td>
</tr>
<%
int ID=0;
String superType="";
String subType="";
while(rs.next()){
superType=rs.getString(2);
subType=rs.getString(3);
ID=rs.getInt(4);
%>
<tr style="padding:5px;">
<td height="20" align="center"><%=superType%></td>
<td height="20" align="center"><%=subType%></td>
<td align="center"><input name="delid" type="checkbox" class="noborder" value="<%=ID%>"></td>
</tr>
<%
}
%>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="73%" height="24"> </td>
<td width="27%" align="right"><input name="checkbox" type="checkbox" class="noborder" onClick="CheckAll(frm.delid,frm.checkbox)">
[全选/反选] [<a style="color:red;cursor:hand;" onClick="checkdel(frm.delid,frm)">删除</a>]
<div id="ch">
<input name="delid" type="checkbox" class="noborder" value="0">
</div></td>
<!--层ch用于放置隐藏的checkbox控件,因为当表单中只是一个checkbox控件时,应用javascript获得其length属性值为undefine-->
<script language="javascript">ch.style.display="none";</script>
</tr>
</table></td>
</tr>
</table>
</form>
<!---->
</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>