Rev 6 | Blame | Compare with Previous | Last modification | View Log | RSS feed
<%@LANGUAGE="VBSCRIPT"%><%'====================================================='| |'| User Roles |'| |'=====================================================%><%Option explicitResponse.Expires = 0%><!--#include file="common/globals.asp"--><!--#include file="common/config.asp"--><!--#include file="common/common_subs.asp"--><!--#include file="common/_user_common.asp"--><%'------------ ACCESS CONTROL ------------------%><!--#include file="_access_control_general.asp"--><%'------------ VARIABLE DEFINITION -------------Dim sNodeDim rsQry'------------ CONSTANTS DECLARATION -----------Const ROW_SEPARATOR = "<tr><td colspan='4' background='images/bg_table_border.gif'><img src='images/spacer.gif' width='1' height='1'></td></tr>"'------------ VARIABLE INIT -------------------'------------ CONDITIONS ----------------------'----------------------------------------------%><%'------------------------------------------------------------------------------------------------------------------------------------Sub GroupByApplication ( rsQry )%><tr><td colspan="4" class="body_rowg"><a href="User_Roles.asp?app_id=<%=rsQry("app_id")%>&tree=<%=arrRoot( inxTNid + (nNumberofProperties * 0) )%>_<%=rsQry("app_id")%>_<%=arrAppProperties( inxTNid + (nNumberofProperties * 0) )%><%=objPMod.ComposeURLWithout("app_id,tree")%>" class="mmenu_link" <%If rsQry("app_id") = Request("app_id") Then Response.Write("style='font-weight: bold;'")%>><%=Expander ( Eval( rsQry("expand") = "-" ) ) &" "& rsQry("application_name")%></a></td></tr><%=ROW_SEPARATOR%><%Call GroupByRoles ( rsQry )%><%End Sub'------------------------------------------------------------------------------------------------------------------------------------Sub GroupByRoles ( rsQry )%><%rsQry.MoveNext%><%If ((NOT rsQry.BOF) AND (NOT rsQry.EOF)) Then%><%If NOT IsNull(rsQry("role_id")) ThenWhile (NOT rsQry.BOF) AND (NOT rsQry.EOF) AND (NOT IsNull(rsQry("role_id")))%><tr><td align="center"><input type="checkbox" name="role_id_list" value="<%=rsQry("role_id")%>"></td><td nowrap class="body_row"><a title="See Role General Info" href="Role_General.asp?role_id=<%=rsQry("role_id")%>&tree=<%=arrRoot( inxTNid + (nNumberofProperties * 0) )%>_<%=rsQry("app_id")%>_<%=arrAppProperties( inxTNid + (nNumberofProperties * 1) )%><%=objPMod.ComposeURLWithout("tree")%>" class="body_link"><%If IsNull( rsQry("is_role_variation") ) Then%><%=LIMG_ROLE%><%Else%><%=LIMG_SPEC_ROLE%><%End If%><%=rsQry("role_name")%></a></td><td class="body_rowg"></td><td align="center"><a href="Role_Privileges.asp?role_id=<%=rsQry("role_id")%>&tree=<%=arrRoot( inxTNid + (nNumberofProperties * 0) )%>_<%=rsQry("app_id")%>_<%=arrAppProperties( inxTNid + (nNumberofProperties * 1) )%><%=objPMod.ComposeURLWithout("tree")%>" title='See this Role Privileges'><%=LIMG_CONTROL%></a></td></tr><%=ROW_SEPARATOR%><%rsQry.MoveNextWEndEnd IfrsQry.MovePrevious%><%ElsersQry.MovePrevious%><%End If%><%End Sub'------------------------------------------------------------------------------------------------------------------------------------%><%'------------ RUN BEFORE PAGE RENDER ----------Call GetUserDetails ( parUser_id, objUserCollector )If (Request("action") <> "") Then'-- Select ActionSelect Case Request("action")Case "btnRevokeRole"Call OpenInWindow ( "_RevokeRole.asp?role_id_list="& Request("role_id_list") &"&rfile="& SCRIPT_NAME &"&"& objPMod.ComposeURL() )End SelectEnd If'----------------------------------------------%><html><head><title>Access Manager</title><meta HTTP-EQUIV="Pragma" CONTENT="no-cache"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link href="scripts/access_manager.css" rel="stylesheet" type="text/css"><script language="JavaScript" src="scripts/common.js"></script></head><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0"><!-- HEADER ++++++++++++++++++++++ --><!--#include file="_header.asp"--><!-- +++++++++++++++++++++++++++++ --><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td width="1%" valign="top" background="images/bg_bage_pane.gif"><!-- TREE NAVIGATOR ++++++++++++++++++++++++++++++++++++++++++++ --><!--#include file="_treeNavigator.asp"--><!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --></td><td width="1" background="images/bg_drk_gray_border.gif"><img src="images/spacer.gif" width="1" height="600"></td><td width="100%" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="9"><tr><td background="images/bg_drk_bage_pane.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td nowrap class="body_txt"><!-- BUTTONS CONTROL +++++++++++++++++++ --><%'-- Define Action buttons on this tabaTabBtnsDef = Array("btnGrantRole", "btnRevokeRole" )If Request("app_id") = "" ThenobjBtnControl.AllActive = "N"End IfCall LoadTabActionButtons ( aTabBtnsDef, objBtnControl )objBtnControl.Render( aTabBtnsDef )%><!-- +++++++++++++++++++++++++++++++++++ --></td><td align="right" nowrap class="section_ttl"><%=PARENT_TITLE%></td></tr></table></td></tr><tr><td class="menu_crumbttl"><%Call RenderTitle ( objUserCollector )%></td></tr><tr><td><!-- DETAILS ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --><!-- TAB CONTROLS ++++++++++++++++++++++ --><!--#include file="_tabs_definition.asp"--><%Set objTabControl = New TabControlobjTabControl.TemplateDoc = ReadFile( Server.MapPath("controls/ERGTabStyleMac/mac_style.html") ) ' Supply tab style definitionobjTabControl.TabStyle = "StyleMac"objTabControl.AddTabDefnition ( arrUserAccount )objTabControl.SelectByName ( "Roles" )objTabControl.SetImgSelected "User Privileges", "icons/ai_major_problem.gif"objTabControl.SetImgDeselected "User Privileges", "icons/ai_major_problem.gif"objTabControl.SetHint "User Privileges", "Some Comments"objTabControl.Render ()%><!-- END OF TAB CONTROLS +++++++++++++++ --><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td width="1" background="images/bg_gray_border.gif"><img src="images/spacer.gif" width="1" height="500"></td><td width="100%" valign="top"><table width="100%" border="0" cellspacing="10" cellpadding="0"><tr><td><!-- TAB DETAILS +++++++++++++++++++++++++++++ --><table width="100%" border="0" cellspacing="3" cellpadding="0"><form name="FormName" method="post" action="<%=SCRIPT_NAME%>"><tr><td width="1%" background="images/bg_table_col.gif"><img src="images/spacer.gif" width="16" height="16" hspace="2"></td><td width="30%" background="images/bg_table_border.gif"><table width="100%" border="0" cellspacing="1" cellpadding="2"><tr><td align="right" nowrap background="images/bg_table_col.gif" class="body_col">Role</td></tr></table></td><td width="60%" align="right" nowrap background="images/bg_table_col.gif" class="body_col">Application</td><td width="1%" background="images/bg_table_col.gif"><img src="images/spacer.gif" width="16" height="16" hspace="2"></td></tr><%OraDatabase.Parameters.Add "USER_ID", parUser_id, ORAPARM_INPUT, ORATYPE_NUMBEROraDatabase.Parameters.Add "APP_ID", parApp_id, ORAPARM_INPUT, ORATYPE_NUMBERDim tempCnttempCnt = 0Set rsQry = OraDatabase.DbCreateDynaset( GetQuery ("UserRoles.sql") , ORADYN_DEFAULT )While (NOT rsQry.BOF) AND (NOT rsQry.EOF) AND (tempCnt < 50)Call GroupByApplication ( rsQry )rsQry.MoveNexttempCnt = tempCnt + 1WEndOraDatabase.Parameters.Remove "USER_ID"OraDatabase.Parameters.Remove "APP_ID"%><tr><td colspan="4" background="images/bg_table_border.gif"><table width="100%" border="0" cellspacing="1" cellpadding="2"><tr><td nowrap background="images/bg_table_col.gif"><img src="images/spacer.gif" width="1" height="1"></td></tr></table></td></tr><%=objPMod.ComposeHiddenTags()%><input type="hidden" name="action" value="true"></form></table><SPAN class="body_txtg"><b>NOTE:</b> "User Specific" Role (<%=LIMG_SPEC_ROLE%>), will overwrite the permissions given by other roles.</SPAN><!-- +++++++++++++++++++++++++++++++++++++++++ --></td></tr></table></td><td width="1" background="images/bg_gray_border.gif"><img src="images/spacer.gif" width="1" height="1"></td></tr></table><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="images/bg_gray_border.gif"><img src="images/spacer.gif" width="1" height="1"></td></tr></table><!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --><br></td></tr></table></td></tr></table><!-- FOOTER ++++++++++++++++++++++ --><!--#include file="_footer.asp"--><!-- +++++++++++++++++++++++++++++ --></body></html><%'------------ RUN AFTER PAGE RENDER -----------'----------------------------------------------%><!--#include file="common/globals_destructor.asp"-->