📄 role_005fres_005fadd_jsp.java
字号:
package org.apache.jsp.role;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import com.business.*;
import com.business.vo.*;
import com.common.resource.*;
import com.web.util.*;
import java.util.*;
import com.web.util.*;
import com.business.vo.User;
public final class role_005fres_005fadd_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.Vector _jspx_dependants;
static {
_jspx_dependants = new java.util.Vector(5);
_jspx_dependants.add("/WEB-INF/struts-bean.tld");
_jspx_dependants.add("/WEB-INF/struts-html.tld");
_jspx_dependants.add("/WEB-INF/Page.tld");
_jspx_dependants.add("/role/../include/include.inc");
_jspx_dependants.add("/role/../include/show_message.jsp");
}
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_myTag_place_name_back_nobody;
public java.util.List getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_jspx_tagPool_myTag_place_name_back_nobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
}
public void _jspDestroy() {
_jspx_tagPool_myTag_place_name_back_nobody.release();
}
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=GB2312");
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");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("<LINK href=\"");
out.print(request.getContextPath());
out.write("/style/style.css\" rel=\"stylesheet\" type=\"text/css\">\r\n");
out.write("<script language=javascript src=\"");
out.print(request.getContextPath());
out.write("/js/layer.js\"></script>\r\n");
out.write("<script language=javascript src=\"");
out.print(request.getContextPath());
out.write("/js/style.js\"></script>\r\n");
out.write("<script language=javascript src=\"");
out.print(request.getContextPath());
out.write("/js/univerify.js\"></script>\r\n");
out.write("<script language=javascript src=\"");
out.print(request.getContextPath());
out.write("/js/manage.js\"></script>\r\n");
out.write("<script language=javascript src=\"");
out.print(request.getContextPath());
out.write("/js/DateInput.js\"></script>\r\n");
out.write("\r\n");
out.write("<META http-equiv=\"Content-Type\" content=\"text/html; charset=GB2312\">\r\n");
out.write("<title>正文</title>\r\n");
out.write("<base target=\"_self\">\r\n");
out.write("<script language=\"javascript\">\r\n");
out.write("\tfunction check(myform){\r\n");
out.write("\t\tvar del_flag_len = 0;\r\n");
out.write("\t var isExist = false; \r\n");
out.write("\t del_flag_len = myform.f_ID.length; \r\n");
out.write(" \tvar j=0;\r\n");
out.write(" \tif(myform.f_ID.length>=2){ \r\n");
out.write("\t\t for (i = 0 ;i<del_flag_len ;i++){\t \t\r\n");
out.write("\t\t if(myform.f_ID[i].checked){\t \r\n");
out.write("\t\t myform.res_opers[j].value=myform.res_opers[i].value;\r\n");
out.write("\t\t j++;\r\n");
out.write("\t\t isExist=true;\r\n");
out.write("\t\t } \r\n");
out.write("\t \t}\r\n");
out.write("\t\t if (isExist){\r\n");
out.write("\t\t myform.sub.disabled= 1;\r\n");
out.write("\t\t myform.submit();\r\n");
out.write("\t\t }else{ \r\n");
out.write("\t\t \talert(\"请选择要添加的资源!\");\r\n");
out.write("\t\t }\r\n");
out.write("\t \t}\r\n");
out.write("\t\t else if(myform.f_ID.checked){\r\n");
out.write("\t\t \t myform.sub.disabled= 1;\r\n");
out.write("\t\t \t myform.submit();\r\n");
out.write("\t\t }else{ \r\n");
out.write("\t \talert(\"请选择要添加的资源!\");\r\n");
out.write("\t }\r\n");
out.write("\t}\r\n");
out.write("\r\n");
out.write("\tfunction change(ob,myform,i){\r\n");
out.write("\t\tif(ob.length>=2){\t\t\t\r\n");
out.write("\t\t\tmyform.res_opers[i].value=\"\";\r\n");
out.write("\t\t\tfor(var k=0;k<ob.length;k++){\r\n");
out.write("\t\t\t\tif(ob[k].checked){\r\n");
out.write("\t\t\t\t\tif(myform.res_opers[i].value==\"\"){\r\n");
out.write("\t\t\t\t\t\tmyform.res_opers[i].value=ob[k].value;\r\n");
out.write("\t\t\t\t\t}else{\r\n");
out.write("\t\t\t\t\t\tmyform.res_opers[i].value=myform.res_opers[i].value+\",\"+ob[k].value;\r\n");
out.write("\t\t\t\t\t}\r\n");
out.write("\t\t\t\t}\r\n");
out.write("\t\t\t}\r\n");
out.write("\t\t\treturn false;\r\n");
out.write("\t\t}else\r\n");
out.write("\t\t{\r\n");
out.write("\t\t\tif(ob.checked){\r\n");
out.write("\t\t\t\tmyform.res_opers[i].value=ob.value;\r\n");
out.write("\t\t\t}else{\r\n");
out.write("\t\t\t\tmyform.res_opers[i].value=\"\";\r\n");
out.write("\t\t\t}\r\n");
out.write("\t\t}\r\n");
out.write("\t}\r\n");
out.write("\t\r\n");
out.write("\tfunction showdetail(ob,divName){\r\n");
out.write("\t\tif (divName.style.display == \"none\"){\r\n");
out.write("\t\t\tdivName.style.display = \"\";\t\t\t\r\n");
out.write("\t\t\tob.src = \"../images/Tminus.png\";\r\n");
out.write("\t\t}else {\r\n");
out.write("\t\t\tdivName.style.display = \"none\";\t\t\t\r\n");
out.write("\t\t\tob.src = \"../images/Tplus.png\";\r\n");
out.write("\t\t}\r\n");
out.write("\t}\r\n");
out.write("</script>\r\n");
out.write("</head>\r\n");
String key=request.getParameter("key");
RoleBusiness bs = new RoleBusiness();
HashMap map = bs.find(key);
out.write("\r\n");
out.write("<body>\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
User loginUserInfo ;
String SESSION_ROLE_ID = "";
String SESSION_USER_ID = "";
if(request.getSession().getAttribute("LOGIN_USER")!=null){
loginUserInfo = (User)request.getSession().getAttribute("LOGIN_USER");
SESSION_ROLE_ID = loginUserInfo.getRoleId();
SESSION_USER_ID = loginUserInfo.getUserId();
}else{
out.println("<script language=javascript>self.parent.location.href='/jxcWeb/login.jsp';</script>");
}
if(session.getAttribute("PAGE_MANAGE")!=null){
PageUrlManage pManage = (PageUrlManage)session.getAttribute("PAGE_MANAGE");
out.println("<script language=javascript>openNewWindow('"+request.getContextPath()+pManage.getMessagePageUrl()+"');</script>");
}
out.write('\r');
out.write('\n');
if (_jspx_meth_myTag_place_0(_jspx_page_context))
return;
out.write("\r\n");
out.write("<form action=\"../RoleResourceServlet\" name=\"roleResourceForm\" method=\"post\" onsubmit=\"return verifyAll(this);\">\r\n");
out.write("<table class=\"table1\">\t\r\n");
out.write("\t\t<tr>\r\n");
out.write("\t\t\t<td class=\"td1\" colspan=2 height=25>\r\n");
out.write("\t\t\t\t角色名称:");
out.print(WebTools.showEx(map.get("ROLENAME")));
out.write("\t\t\t\t\r\n");
out.write("\t\t\t</td>\r\n");
out.write("\t\t</tr>\r\n");
out.write(" <tr> \r\n");
out.write(" <td colspan=\"2\" valign=\"top\"> \r\n");
out.write(" <table width =100% >\r\n");
out.write(" <tr>\r\n");
out.write(" \t<td width=100%>\r\n");
out.write(" \t\t");
ResourceHtmlList rh = ResourceHtmlList.getInstacne(WebTools.showEx(map.get("ROLEID")),"roleResourceForm");
out.write("\r\n");
out.write(" \t\t");
out.print(rh.getHtmlResBuffer());
out.write("\r\n");
out.write(" \t</td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td colspan=\"2\" align=\"right\" >\r\n");
out.write(" \t\t<input type=\"hidden\" value=\"");
out.print(key);
out.write("\" name=\"roleId\">\r\n");
out.write(" \t\t<input type=\"button\" value=\"提交\" name=\"sub\" onClick=\"check(roleResourceForm)\" class=btn3_mouseout onmouseover=\"this.className='btn3_mouseover'\" onmouseout=\"this.className='btn3_mouseout'\">\r\n");
out.write(" <input type=\"reset\" value=\"重置\" class=btn3_mouseout onmouseover=\"this.className='btn3_mouseover'\" onmouseout=\"this.className='btn3_mouseout'\">\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>\r\n");
out.write("</form> \r\n");
out.write("</body>\r\n");
out.write("</html>");
} 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);
}
}
private boolean _jspx_meth_myTag_place_0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// myTag:place
com.web.tag.Place _jspx_th_myTag_place_0 = (com.web.tag.Place) _jspx_tagPool_myTag_place_name_back_nobody.get(com.web.tag.Place.class);
_jspx_th_myTag_place_0.setPageContext(_jspx_page_context);
_jspx_th_myTag_place_0.setParent(null);
_jspx_th_myTag_place_0.setName("系统管理<b>--></b>角色管理<b>--></b>角色授权");
_jspx_th_myTag_place_0.setBack("role_list.jsp");
int _jspx_eval_myTag_place_0 = _jspx_th_myTag_place_0.doStartTag();
if (_jspx_th_myTag_place_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_myTag_place_name_back_nobody.reuse(_jspx_th_myTag_place_0);
return false;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -