- <%@ page language="java" contentType="text/html;charset=UTF-8" %>
- <%@ include file="../GVinc/gvInclude.jsp" %>
- <%@ include file="clubMasterPass.jsp" %>
- <jsp:useBean id="gop" scope="request" class="com.gamvan.club.group.GroupEdit"/>
- <jsp:useBean id="gct" scope="page" class="com.gamvan.club.group.GroupCollection"/>
- <jsp:useBean id="tc" scope="request" class="com.gamvan.tools.TypeChange"/>
- <%
- //权限判断共享代码
- boolean ispass = false;
- ArrayEdit ae2 = new ArrayEdit();
- ispass = ae2.txtsArray(gvcmgTxt,1,"|");
- if(!ispass){
- out.print(prtCenter("您无权进行此项操作!","",2));
- out.close();
- }
- //权限判断代码结束
- int groupID = 0;
- String groupName="";
- int groupIDD = 0;
- int groupType=0;
- groupID = tc.stringToInt(request.getParameter("groupID"));
- groupType = tc.stringToInt(request.getParameter("groupType"));
- if(groupType<=0){groupType=1;}
- String act=tc.nullOfString(request.getParameter("act"));
- if(act.equals("del")){
- gop.setGroupID(groupID);
- gop.groupAct(act);
- out.print(prtCenter2(gop.getMessage(),"groupList.jsp?groupType="+groupType+"",1));
- out.close();
- if(true)return;
- }
- %>
- <html>
- <head>
- <title>网站分类管理</title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <link href="css.css" rel="stylesheet" type="text/css">
- </head>
- <body>
- <table width="99%" border="0" align="center" cellpadding="2" cellspacing="2" bgcolor="#bbbbbb">
- <tr>
- <td align="center"><strong>配置分类信息</strong></td>
- </tr>
- </table>
- <table width="99%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#bbbbbb">
- <form name="Gforms" method="post" action="">
- <tr align="center" bgcolor="#f6f6f6">
- <td height="22" bgcolor="#f6f6f6"> </td>
- <td><strong>分类名</strong></td>
- <td width="50"><strong>排序ID</strong></td>
- <td width="50"><strong>编辑</strong></td>
- <td width="50"><strong>删除</strong></td>
- </tr>
- <%
- StringBuffer sql_1 = new StringBuffer();
- sql_1.append("from GroupItem as gi ");
- sql_1.append(" where gi.groupLayer=0 and gi.groupType="+groupType+"");
- sql_1.append(" order by gi.groupOrder desc");
- %>
- <c:set value="<%=sql_1.toString()%>" target="${gct}" property="sql" />
- <c:forEach var="gIDD" items="<%=gct.groupQuery()%>">
- <tr bgcolor="#f6f6f6">
- <td width="30" height="1" align="center" bgcolor="#f6f6f6">@
- </td>
- <td>
- <c:out value="${gIDD.groupName}" escapeXml="false"/>
- </td>
- <td align="center">
- <c:out value="${gIDD.groupOrder}" escapeXml="false"/></td>
- <td align="center">
- <a href="groupEdit.jsp?groupID=<c:out value="${gIDD.groupID}"/>
- &groupType=<c:out value="${gIDD.groupType}"/>&act=edit">编辑</a>
- </td>
- <td align="center">
- <a href="groupList.jsp?act=del&groupID=<c:out value="${gIDD.groupID}"/>
- &groupType=<c:out value="${gIDD.groupType}"/>">删除</a>
- </td>
- </tr>
- <c:set value="from GroupItem as gi where gi.groupType=${gIDD.groupType}
- and gi.groupIDD=${gIDD.groupID} order by gi.groupOrder desc"
- target="${gct}" property="sql" />
- <c:forEach var="re" items="<%=gct.groupQuery()%>">
- <tr bgcolor="#ffffff">
- <td width="30" height="1" align="center" bgcolor="#f6f6f6">@
- </td>
- <td>
-
- <c:out value="${re.groupName}" escapeXml="false"/>
- </td>
- <td align="center">
- <c:out value="${re.groupOrder}" escapeXml="false"/></td>
- <td align="center">
- <a href="groupEdit.jsp?groupID=<c:out value="${re.groupID}"/>
- &groupType=<c:out value="${gIDD.groupType}"/>&act=edit">编辑</a>
- </td>
- <td align="center">
- <a href="groupList.jsp?act=del&groupID=<c:out value="${re.groupID}"/>
- &groupType=<c:out value="${gIDD.groupType}"/>">删除</a>
- </td>
- </tr>
- </c:forEach>
- </c:forEach>
- </form></table>
- </body>
- </html>