clubClassList.jsp
上传用户:u_thks
上传日期:2022-07-31
资源大小:1910k
文件大小:9k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

Java

  1. <%@ page language="java" contentType="text/html;charset=UTF-8" %>
  2. <%@ include file="../GVinc/gvInclude.jsp" %>
  3. <%@ include file="clubMasterPass.jsp" %>
  4. <jsp:useBean id="ccl" scope="page" class="com.gamvan.club.classed.ClubClassList"/>
  5. <jsp:useBean id="ccd" scope="page" class="com.gamvan.club.classed.ClubClassDel"/>
  6. <jsp:useBean id="cce" scope="page" class="com.gamvan.club.classed.ClubClassEdit"/>
  7. <jsp:useBean id="ccb" scope="page" class="com.gamvan.club.classed.ClubClassBar"/>
  8. <jsp:useBean id="ccc" scope="page" class="com.gamvan.club.classed.ClubClassCollection"/>
  9. <jsp:useBean id="cci" scope="page" class="com.gamvan.club.classed.ClubClassInfo"/>
  10. <jsp:useBean id="fo" scope="page" class="com.gamvan.tools.FileOperate" />
  11. <% 
  12. //权限判断共享代码
  13. boolean ispass = false;
  14. //ArrayEdit ae = new ArrayEdit();
  15. ispass = ae.txtsArray(gvcmgTxt,4,"|");
  16. if(!ispass){
  17. out.print(prtCenter2("您无权进行此项操作!","",2));
  18. out.close();
  19. if(true)return;
  20. }
  21. String act = "add";
  22. if(request.getParameter("act")!=null){
  23. ccID = TypeChange.stringToInt(request.getParameter("ccID"));
  24. if(ccID>0){
  25. ccd.classDel(ccID);
  26. out.print(prtCenter2(ccd.getMessage(),"clubClassList.jsp",1));
  27. }else{
  28. out.print(prtCenter2("更新成功","clubClassList.jsp",1));
  29. }
  30. out.close();
  31. if(true)return;
  32. }
  33. /****************执行左栏生成***************************/
  34. if(request.getMethod().equals("POST")){
  35. ccb.setExpert(TypeChange.stringToInt(request.getParameter("expert")));
  36. ccb.setColor_0(TypeChange.nullOfString(request.getParameter("color_0")));
  37. ccb.setColor_1(TypeChange.nullOfString(request.getParameter("color_1")));
  38. ccb.setStrong_0(TypeChange.stringToInt(request.getParameter("strong_0")));
  39. ccb.setStrong_1(TypeChange.stringToInt(request.getParameter("strong_1")));
  40. ccb.setRealPath(request.getRealPath("") + File.separator+"club"+File.separator+"GVfilesInc"+File.separator);
  41. ccb.createClassFiles();
  42. //out.print(request.getRealPath("") + File.separator+"club"+File.separator+"GVfilesInc"+File.separator);
  43. out.print(prtCenter2("哈哈,搞定!","",2));
  44. out.close();
  45. if(true)return;
  46. }
  47. /*******************************************************/
  48. %>
  49. <html>
  50. <head>
  51. <title>今晚在线-社区管理</title>
  52. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  53. <link href="css.css" rel="stylesheet" type="text/css">
  54. </head>
  55. <body>
  56. <script language="javascript" src="../GVscript/GVtopCode.js"></script>
  57. <table width="99%" border="0" align="center" cellpadding="2" cellspacing="2" bgcolor="#e6e6e6">
  58.   <tr>
  59.     <td align="center"><strong>社区分类/版面列表</strong></td>
  60.   </tr>
  61. </table>
  62. <table width="99%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#AAB4CC">
  63. <form name="Gforms" method="post" action="" onSubmit="javascript:postMsg();">
  64.   <tr bgcolor="#CCCCCC">
  65.     <td colspan="2"><strong>社区左栏导航生成高级选项</strong></td>
  66.     </tr>
  67.   <tr>
  68.     <td width="11%" align="center" bgcolor="#e5e5e5"><strong>分类修饰</strong></td>
  69.   <td width="89%" bgcolor="#FFFFFF">
  70. 颜色(16进制颜色代码)<input name="color_1" type="text" id="color_0" size="10" maxlength="10"> 
  71. &nbsp;&nbsp;
  72. 是否加粗<input name="strong_0" type="checkbox" id="strong_0" value="1">
  73. </td>
  74.   </tr>
  75.   <tr>
  76.     <td align="center" bgcolor="#e5e5e5"><strong>版面修饰</strong></td>
  77.   <td bgcolor="#FFFFFF">
  78. 颜色(16进制颜色代码)<input name="color_1" type="text" id="color_1" size="10" maxlength="10">
  79. &nbsp;&nbsp;
  80. 是否加粗<input name="strong_1" type="checkbox" id="strong_1" value="1"></td>
  81.   </tr>
  82.   <tr>
  83.     <td align="center" bgcolor="#e5e5e5">&nbsp;</td>
  84. <td bgcolor="#FFFFFF">
  85. <input name="gvSubmit" type="submit" id="gvSubmit" value="重新生成左栏菜单">
  86. <input type="hidden" name="gvBack" value=""/>
  87. <input name="expert" type="checkbox" id="expert" value="1">启用高级选项</td>
  88.   </tr>
  89. </form>
  90. </table>
  91. <table width="99%" height="90" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#e6e6e6">
  92.   <tr bgcolor="#f6f6f6">
  93.     <td width="40" height="22" align="center" bgcolor="#f6f6f6"><strong>操作</strong></td>
  94.     <td align="center"><strong>名称</strong></td>
  95.     <td width="40" align="center"><strong>类别</strong></td>
  96.     <td width="40" align="center"><strong>隐藏</strong></td>
  97.     <td width="50" align="center"><strong>属性</strong></td>
  98.     <td width="70" align="center"><strong>默认风格</strong></td>
  99.     <td width="50" align="center"><strong>主题</strong></td>
  100.     <td width="50" align="center"><strong>回复</strong></td>
  101.     <td width="60" align="center"><strong>排序</strong></td>
  102. <td width="40" align="center"><strong>配置</strong></td>
  103.     <td width="40" align="center"><strong>删除</strong></td>
  104.   </tr>
  105. <c:forEach var="ccc0" items="<%=ccc.classList()%>">
  106. <tr bgcolor="#f6f6f6">
  107. <td height="22" align="center" bgcolor="#f6f6f6">
  108. <club:classinfo type="htmlCheckbox"  idIs="${ccc0.ccID}"/>
  109. </td>
  110. <td>
  111. <club:classinfo type="className"  idIs="${ccc0.ccID}" value="${ccc0.ccName}" url="../"/>
  112. </td><td align="center">
  113. <club:classinfo type="classType"  idIs="${ccc0.ccType}"/>
  114. </td><td align="center">
  115. <club:classinfo type="classHidden"  bea="${ccc0.ccHidden}"/>
  116. </td><td align="center">
  117. <club:classinfo type="classPro"  idIs="${ccc0.ccPro}"/>
  118. </td><td align="center">
  119. <club:classinfo type="classStyle"  idIs="${ccc0.ccPro}"/>
  120. </td><td align="center">
  121. <club:classinfo type="classTopic"  value="${ccc0.ccTopic}"/>
  122. </td>
  123. <td align="center">
  124. <club:classinfo type="classReply"  value="${ccc0.ccReply}"/>
  125. </td>
  126. <td align="center">
  127. <club:classinfo type="classOrder"  value="${ccc0.ccOrder}"/>
  128. </td>
  129. <td align="center">
  130. <club:classinfo type="htmlEdit"  idIs="${ccc0.ccID}"/>
  131. </td>
  132. <td align="center">
  133. <club:classinfo type="htmlDel"  idIs="${ccc0.ccID}"/>
  134. </td>
  135. </tr>
  136. <c:set value="${ccc0.ccID}"  target="${ccc}" property="reId" />
  137. <c:forEach var="ccc1" items="<%=ccc.classReList()%>">
  138. <tr bgcolor="#ffffff">
  139. <td height="22" align="center" bgcolor="#f6f6f6">
  140. <club:classinfo type="htmlCheckbox"  idIs="${ccc1.ccID}"/>
  141. </td>
  142. <td>
  143. &nbsp;&nbsp;&nbsp;&nbsp;<club:classinfo type="className"  idIs="${ccc1.ccID}" value="${ccc1.ccName}" url="../"/>
  144. </td><td align="center">
  145. <club:classinfo type="classType"  idIs="${ccc1.ccType}"/>
  146. </td><td align="center">
  147. <club:classinfo type="classHidden"  bea="${ccc1.ccHidden}"/>
  148. </td><td align="center">
  149. <club:classinfo type="classPro"  idIs="${ccc1.ccPro}"/>
  150. </td><td align="center">
  151. <club:classinfo type="classStyle"  idIs="${ccc1.ccPro}"/>
  152. </td><td align="center">
  153. <club:classinfo type="classTopic"  value="${ccc1.ccTopic}"/>
  154. </td>
  155. <td align="center">
  156. <club:classinfo type="classReply"  value="${ccc1.ccReply}"/>
  157. </td>
  158. <td align="center">
  159. <club:classinfo type="classOrder"  value="${ccc1.ccOrder}"/>
  160. </td>
  161. <td align="center">
  162. <club:classinfo type="htmlEdit"  idIs="${ccc1.ccID}"/>
  163. </td>
  164. <td align="center">
  165. <club:classinfo type="htmlDel"  idIs="${ccc1.ccID}"/>
  166. </td>
  167. </tr>
  168. <c:set value="${ccc1.ccID}"  target="${ccc}" property="reId" />
  169. <c:forEach var="ccc2" items="<%=ccc.classReList()%>">
  170. <tr bgcolor="#ffffff">
  171. <td height="22" align="center" bgcolor="#f6f6f6">
  172. <club:classinfo type="htmlCheckbox"  idIs="${ccc2.ccID}"/>
  173. </td>
  174. <td>
  175. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  176. <club:classinfo type="className"  idIs="${ccc2.ccID}" value="${ccc2.ccName}" url="../"/>
  177. </td><td align="center">
  178. <club:classinfo type="classType"  idIs="${ccc2.ccType}"/>
  179. </td><td align="center">
  180. <club:classinfo type="classHidden"  bea="${ccc2.ccHidden}"/>
  181. </td><td align="center">
  182. <club:classinfo type="classPro"  idIs="${ccc2.ccPro}"/>
  183. </td><td align="center">
  184. <club:classinfo type="classStyle"  idIs="${ccc2.ccPro}"/>
  185. </td><td align="center">
  186. <club:classinfo type="classTopic"  value="${ccc2.ccTopic}"/>
  187. </td>
  188. <td align="center">
  189. <club:classinfo type="classReply"  value="${ccc2.ccReply}"/>
  190. </td>
  191. <td align="center">
  192. <club:classinfo type="classOrder"  value="${ccc2.ccOrder}"/>
  193. </td>
  194. <td align="center">
  195. <club:classinfo type="htmlEdit"  idIs="${ccc2.ccID}"/>
  196. </td>
  197. <td align="center">
  198. <club:classinfo type="htmlDel"  idIs="${ccc2.ccID}"/>
  199. </td>
  200. </tr>
  201. </c:forEach>
  202. </c:forEach>
  203. </c:forEach>
  204. <tr bgcolor="#f6f6f6">
  205. <td height="34" colspan="12" bgcolor="#f6f6f6">
  206. &nbsp;&nbsp;(删除版面时请先删除子分类)
  207. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  208. </td>
  209. </tr>
  210. </table>
  211. </body>
  212. </html>