⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sysfunction_005fdistribute_jsp.java

📁 一个简单的java web项目 基于servlet构建
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
package org.apache.jsp.pages.LeftMenu.system_005fmanage.function_005fmanage;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;
import cn.aresoft.po.SysFunctions;
import cn.aresoft.po.SysFunctionsDistribute;

public final class SysFunction_005fdistribute_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static java.util.List _jspx_dependants;

  public Object getDependants() {
    return _jspx_dependants;
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    JspFactory _jspxFactory = null;
    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html;charset=GBK");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");

	String cpath=request.getContextPath();

      out.write("\r\n");
      out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\r\n");
      out.write("<html>\r\n");
      out.write("  <head>\r\n");
      out.write("    <title>系统功能权限分配</title>\r\n");
      out.write("  </head>\r\n");
      out.write("\t\t<link href=\"");
      out.print(cpath);
      out.write("/style/layout.css\" rel=\"stylesheet\"\r\n");
      out.write("\t\t\ttype=\"text/css\" />\r\n");
      out.write("\t\t<link href=\"");
      out.print(cpath);
      out.write("/style/mian.css\" rel=\"stylesheet\"\r\n");
      out.write("\t\t\ttype=\"text/css\" />\r\n");
      out.write("\t\t<link href=\"");
      out.print(cpath);
      out.write("/style/css_common1.css\" rel=\"stylesheet\"\r\n");
      out.write("\t\t\ttype=\"text/css\" />  \r\n");
      out.write("\t\t<script src=\"");
      out.print(cpath);
      out.write("/js/jquery126.js\"></script>  \r\n");
      out.write("\r\n");
      out.write("  <body>\r\n");
      out.write("  \t<form name=\"funcForm\">\r\n");
      out.write("  \t<input name=\"dest\" type=\"hidden\" value=\"\">  \t\r\n");
      out.write("  \t<input name=\"destType\" type=\"hidden\" value=\"\"> \r\n");
      out.write("  \t<table id=\"funcList\" style=\"width:100%;border:1px solid black\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("  \t\t<tr class=\"title\">\r\n");
      out.write("  \t\t\t<td id=\"selTitle\" align=\"left\">&nbsp;\r\n");
      out.write("  \t\t\t</td>\r\n");
      out.write("  \t\t\t<td colspan=4 align=\"right\"><input type=\"button\" class=\"input02\" value=\"保存\" onclick=\"toSave()\">\r\n");
      out.write("  \t\t\t</td>\r\n");
      out.write("  \t\t</tr>\r\n");
      out.write("  \t\t<tr class=\"listtitle\">\r\n");
      out.write("  \t\t\t<td align=\"left\" height=25 background=\"");
      out.print(cpath);
      out.write("/images/left_top_bg.jpg\">\r\n");
      out.write("  \t\t\t\t<input type=\"checkbox\" name=\"funcCheckT\" onclick=\"selAllCheck()\">\r\n");
      out.write("  \t\t\t</td>\r\n");
      out.write("  \t\t\t<td align=\"left\" height=25 background=\"");
      out.print(cpath);
      out.write("/images/left_top_bg.jpg\">模块\r\n");
      out.write("  \t\t\t</td>\r\n");
      out.write("  \t\t\t<td align=\"left\" background=\"");
      out.print(cpath);
      out.write("/images/left_top_bg.jpg\">功能\r\n");
      out.write("  \t\t\t</td>\r\n");
      out.write("  \t\t\t<td align=\"left\" background=\"");
      out.print(cpath);
      out.write("/images/left_top_bg.jpg\">子功能\r\n");
      out.write("  \t\t\t</td>\r\n");
      out.write("  \t\t\t<td align=\"left\" background=\"");
      out.print(cpath);
      out.write("/images/left_top_bg.jpg\">权限类别\r\n");
      out.write("  \t\t\t</td>  \t\t\t\r\n");
      out.write("  \t\t</tr>\r\n");
      out.write("  \t</table>\r\n");
      out.write("  \t</form>\r\n");
      out.write("  </body>\r\n");
      out.write("\t<script><!--\r\n");
      out.write("\t\t$(function(){\r\n");
      out.write("\t\t\t//动态加载功能权限\r\n");
      out.write("\t\t\tvar funcList=document.getElementById(\"funcList\");\r\n");
      out.write("\t  \t\t");

	  			SysFunctions func=null;
				List<SysFunctions> sysFuncList=(List)request.getAttribute("sysFuncList");
	 			if(sysFuncList!=null&&sysFuncList.size()>0){
		  			for(int i=0;i<sysFuncList.size();i++){
		  				func=(SysFunctions)sysFuncList.get(i);
		  	
      out.write("\r\n");
      out.write("\t\t\t\t\t\t\tinsertFunc(\"");
      out.print(func.getLv());
      out.write('"');
      out.write(',');
      out.write('"');
      out.print(func.getFuncId());
      out.write('"');
      out.write(',');
      out.write('"');
      out.print(func.getFuncName());
      out.write('"');
      out.write(',');
      out.write('"');
      out.print(func.getParentId());
      out.write('"');
      out.write(',');
      out.write('"');
      out.print(func.getFuncType());
      out.write("\");\r\n");
      out.write("\t\t  \t");

		  			}
		  		}
	  		
      out.write("\t\r\n");
      out.write("\t  \t\t//加载对象的权限分配\r\n");
      out.write("\t  \t\t//document.funcForm.funcCheck.length=0;\r\n");
      out.write("\t\t\t");

				SysFunctionsDistribute funcDist=null;
				String funcDistId="";
				String funcLv="";
				List<SysFunctionsDistribute> funcDistList=(List)request.getAttribute("funcDistLits");
				if(funcDistList!=null&&funcDistList.size()>0){
					for(int i=0;i<funcDistList.size();i++){
						funcDist=(SysFunctionsDistribute)funcDistList.get(i);
						funcDistId=funcDist.getFuncDistId().getSysFunctions().getFuncId();
						funcLv=funcDist.getFuncDistId().getSysFunctions().getLv();
						
      out.write("\r\n");
      out.write("\t\t\t\t\t\t\tif(document.getElementById(\"");
      out.print(funcLv);
      out.write("_ck\")==null){\r\n");
      out.write("\t\t\t\t\t\t\t\talert(\"");
      out.print(funcLv);
      out.write("\");\r\n");
      out.write("\t\t\t\t\t\t\t}\r\n");
      out.write("\t\t\t\t\t\t\tdocument.getElementById(\"");
      out.print(funcLv);
      out.write("_ck\").checked=true;\r\n");
      out.write("\t\t\t\t\t\t\t//document.getElementById(\"");
      out.print(funcLv);
      out.write("_ck\").value=\"");
      out.print(funcDistId);
      out.write("\";\t\t\t\t\t\t\r\n");
      out.write("\t\t\t\t\t\t");

					}
				}
			
      out.write("\r\n");
      out.write("\t\r\n");
      out.write("\t  \t\t//页面准备信息\r\n");
      out.write("\t  \t\tif(parent.frames[\"destList\"].getCurrentDestName()!=\"\"){\r\n");
      out.write("\t  \t\t\t  document.getElementById(\"selTitle\").innerHTML=parent.frames[\"destList\"].getCurrentDestTypeName()+\r\n");
      out.write("\t  \t\t\t  \t\t\t\t\t\t\t\t\t\t\t\t\":\"+parent.frames[\"destList\"].getCurrentDestName()+\r\n");
      out.write("\t  \t\t\t  \t\t\t\t\t\t\t\t\t\t\t\t\"(\"+parent.frames[\"destList\"].getCurrentDest()+\")\";\r\n");
      out.write("\t  \t\t}\r\n");
      out.write("\t\t\t$(\"#funcList tr:even\").css(\"background-color\",\"#f7f7f7\");\r\n");
      out.write("\t\t\t$(\"#funcList tr:odd\").css(\"background-color\",\"#ffffff\");\r\n");
      out.write("\t\t\t$(\"#funcList tr\").css(\"border-bottom\",\"solid 1px #cccccc\");\r\n");
      out.write("\t\t\t$(\"#funcList tr\").mouseover(function(){\r\n");
      out.write("\t\t\t\t$(this).css(\"background-color\",\"#d1e6fe\");\r\n");
      out.write("\t\t\t});\r\n");

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -