grouplist_jsp.java
来自「jsp_javabean+tomcat的web管理系统!」· Java 代码 · 共 362 行 · 第 1/2 页
JAVA
362 行
}
out.write("\r\n");
out.write("<table width=\"100%\" height=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"1\" bgcolor=\"#808080\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"23\" colspan=\"2\"> <span class=\"style1\">后台管理-群组管理-群组列表</span></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td width=\"50%\" align=\"center\" valign=\"top\" bgcolor=\"#FFFFFF\"><table width=\"100%\" height=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"226\" align=\"center\"><br>\r\n");
out.write(" <table width=\"96%\" height=\"194\" border=\"0\" cellpadding=\"0\" cellspacing=\"1\" bgcolor=\"#CCCCCC\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"21\" colspan=\"2\" bgcolor=\"f2f2f2\"> 群组列表</td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write("\t\t\t <form name=\"groupForm\" action=\"groupList.jsp\" method=\"post\">\r\n");
out.write(" <td width=\"45%\" bgcolor=\"#FFFFFF\">\r\n");
out.write(" <input type=\"hidden\" name=\"cntrl\" value=\"getGroupInfo\">\r\n");
out.write("\t\t\t\t <select onChange=\"document.groupForm.submit()\" name=\"groupID\" size=\"10\" class=\"textbox\" style=\"width:100%\">\r\n");
out.write(" <option value=\"\">添加组</option>\r\n");
out.write(" ");
for(int i=0;i<group.length;i++){
out.write("\r\n");
out.write("\t\t\t\t\t <option value=\"");
out.print(group[i][0]);
out.write('"');
out.write('>');
out.print(group[i][1]);
out.write("</option>\r\n");
out.write("\t\t\t\t\t");
}
out.write("\r\n");
out.write(" </select></td></form>\r\n");
out.write(" <td width=\"55%\" align=\"center\" valign=\"top\" bgcolor=\"#FFFFFF\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
out.write(" <form name=\"addForm\" action=\"groupList.jsp\" method=\"post\" onsubmit=\"return checkAdd()\" >\r\n");
out.write("\t\t\t\t <tr>\r\n");
out.write(" <td height=\"21\" colspan=\"2\" bgcolor=\"#E7E9E9\"> \r\n");
out.write("\t\t\t\t\t");
if(groupID.equals("")) out.println("添加组");
else out.println("修改组名");
out.write("\r\n");
out.write("\t\t\t\t\t</td>\r\n");
out.write(" </tr>\r\n");
out.write("\t\t\t\t <tr>\r\n");
out.write(" <td height=\"23\" colspan=\"2\"> </td>\r\n");
out.write(" </tr>\r\n");
out.write("\t\t\t\t \r\n");
out.write(" <tr>\r\n");
out.write(" <td width=\"30%\" height=\"23\"> 组名称 </td>\r\n");
out.write(" <td width=\"70%\" align=\"left\">\r\n");
out.write("\t\t\t\t\t");
if(groupID.equals("")){
out.write("\r\n");
out.write("\t\t\t\t\t<input type=\"hidden\" name=\"cntrl\" value=\"addGroupName\"><input name=\"groupName\" type=\"text\" class=\"textbox\" id=\"groupName\" size=\"12\">\r\n");
out.write("\t\t\t\t\t");
}else{
for(int i=0;i<group.length;i++){
if(group[i][0].equals(groupID)){
groupName=group[i][1];
groupClass=group[i][2];
break;
}
}
out.write("\r\n");
out.write("\t\t\t\t\t<input type=\"hidden\" name=\"cntrl\" value=\"updateGroupName\"><input type=\"hidden\" name=\"group_ID\" value=\"");
out.print(groupID);
out.write("\"><input name=\"groupName\" type=\"text\" class=\"textbox\" id=\"groupName\" value=\"");
out.print(groupName);
out.write("\" size=\"12\">\r\n");
out.write("\t\t\t\t\t");
}
out.write("\r\n");
out.write("\t\t\t\t\t</td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td align=\"center\">级 别</td>\r\n");
out.write(" <td align=\"left\">\r\n");
out.write("\t\t\t\t\t<select name=\"groupClass\" id=\"groupClass\">\r\n");
out.write(" <option ");
if(groupClass.equals("3")) out.println("selected");
out.write(" value=\"3\">查询组</option>\r\n");
out.write(" <option ");
if(groupClass.equals("1")) out.println("selected");
out.write(" value=\"1\">管理组</option>\r\n");
out.write(" <option ");
if(groupClass.equals("2")) out.println("selected");
out.write(" value=\"2\">普通组</option>\r\n");
out.write(" <option ");
if(groupClass.equals("4")) out.println("selected");
out.write(" value=\"4\">配置组</option>\r\n");
out.write(" </select></td>\r\n");
out.write(" </tr>\r\n");
out.write(" \r\n");
out.write("\t\t\t\t <tr>\r\n");
out.write(" <td colspan=\"2\" align=\"center\"><input name=\"Submit\" type=\"submit\" class=\"button\" value=\"添 加\"> </td>\r\n");
out.write(" </tr>\r\n");
out.write("\t\t\t\t \r\n");
out.write("\t\t\t\t </form>\r\n");
out.write(" <tr>\r\n");
out.write(" <td colspan=\"2\"> </td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td colspan=\"2\" bgcolor=\"#FFFFFF\"> </td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write(" <br>\t\t</td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td align=\"center\">\r\n");
out.write("\t\t<table width=\"96%\" height=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"1\" bgcolor=\"#CCCCCC\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"21\" bgcolor=\"f2f2f2\"> 包含用户</td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td valign=\"top\" bgcolor=\"#FFFFFF\">\r\n");
out.write(" ");
if(cntrl.equals("getGroupInfo")&&!groupID.equals("")){
out.write("\r\n");
out.write(" <table width=\"100%\" height=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td>\r\n");
out.write(" <iframe frameBorder=\"0\" id=\"carnoc\" name=\"carnoc\" scrolling=no src=\"groupUserList.jsp?groupID=");
out.print(groupID);
out.write("\" style=\"HEIGHT: 100%; VISIBILITY: inherit;WIDTH: 100%; Z-INDEX: 2\"></iframe>\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write(" ");
}
out.write("\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table></td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table></td>\r\n");
out.write(" <td width=\"50%\" align=\"center\" valign=\"top\" bgcolor=\"#FFFFFF\"><br>\r\n");
out.write(" <table width=\"96%\" height=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td width=\"100%\" height=\"21\">\r\n");
out.write("\t\t ");
if(cntrl.equals("getGroupInfo")&&!groupID.equals("")){
out.write("\r\n");
out.write(" <iframe frameBorder=\"0\" id=\"carnoc\" name=\"carnoc\" scrolling=auto src=\"msrv.ItemManage.PurviewList?actorID=");
out.print(groupID);
out.write("&actorType=0\" style=\"HEIGHT: 96%; VISIBILITY: inherit;WIDTH: 100%; Z-INDEX: 2\"></iframe>\r\n");
out.write("\t\t ");
}
out.write("\r\n");
out.write("\t\t </td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table></td>\r\n");
out.write(" </tr>\r\n");
out.write("</table>\r\n");
conn.close();
out.write("\r\n");
out.write("</body>\r\n");
out.write("</html>\r\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?