Subversion Repositories DevTools

Rev

Rev 2 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<%@LANGUAGE="VBSCRIPT"%>
<%
'=====================================================
'|                                                   |
'|                                Role List                                              |
'|                                                   |
'=====================================================
%>
<%
Option explicit
Response.Expires = 0
%>
<!--#include file="common/globals.asp"-->
<!--#include file="common/config.asp"-->
<!--#include file="common/common_subs.asp"-->
<!--#include file="common/_role_common.asp"-->
<%
'------------ ACCESS CONTROL ------------------
%>
<!--#include file="_access_control_general.asp"-->
<%
'------------ VARIABLE DEFINITION -------------
Dim rsQry
Dim objAppCollector
'------------ CONSTANTS DECLARATION -----------
'------------ VARIABLE INIT -------------------
Set objAppCollector = CreateObject("Scripting.Dictionary")
'------------ CONDITIONS ----------------------
'----------------------------------------------
%>
<%
'----------------------------------------------------------------------------------------------------------------------------------------------
Sub MultiRoleMembers ()
        On Error Resume Next
        
        objEH.Try
                
                If Request("role_id_list") = "" Then
                        Err.Raise 8, "Please select at least one Role.", "No further details available."
                Else
                        Call OpenInWindow ( "MultiRole_Members.asp?role_id_list="& Request("role_id_list") &"&rfile="& SCRIPT_NAME &"&"& objPMod.ComposeURL() )
                End If
                
                
        objEH.Catch
        
End Sub
'----------------------------------------------------------------------------------------------------------------------------------------------
%>
<%
'------------ RUN BEFORE PAGE RENDER ----------
Call GetApplicationDetails ( parApp_id, objAppCollector )

If (Request("action") <> "") Then
        '-- Select Action
        
        Select Case Request("action")
                Case "btnRemoveRole"
                        Call OpenInWindow ( "_RemoveRole.asp?role_id_list="& Request("role_id_list") &"&rfile="& SCRIPT_NAME &"&"& objPMod.ComposeURL() )
                
                Case "btnRoleMembers"
                        Call MultiRoleMembers()
                
        End Select
        
End 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">
        <form name="FormName" method="post" action="<%=SCRIPT_NAME%>">
      <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 tab
                                aTabBtnsDef = Array("btnNewRole", "btnRemoveRole", "height=25", "btnRoleMembers" )
                                
                                Call LoadTabActionButtons ( aTabBtnsDef, objBtnControl )
                                
                                objBtnControl.Render( aTabBtnsDef )
                                %>
                                <!-- +++++++++++++++++++++++++++++++++++ -->
                          </td>
              <td align="right" nowrap class="section_ttl"><%=objAppCollector.Item ("application_name")%></td>
            </tr>
          </table>
                </td>
      </tr>
          <tr>
        <td class="menu_crumbttl"><img src="images/i_folder_lrg.gif" width="18" height="15" border="0" align="absmiddle" hspace="4"><strong>Roles</strong></td>
      </tr>
      <tr>
        <td>
                 <!-- DETAILS ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
                 <table width="100%"  border="0" cellspacing="3" cellpadding="0">
          <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="70%" align="right" nowrap background="images/bg_table_col.gif" class="body_col">Description</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 "APP_ID", parApp_id,       ORAPARM_INPUT, ORATYPE_NUMBER 
                  
                  Set rsQry = OraDatabase.DbCreateDynaset( GetQuery ("GetRoleList.sql"), ORADYN_DEFAULT )
                  While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
                  %>
          <tr>
                        <td align="center"><input type="checkbox" name="role_id_list" value="<%=rsQry("role_id")%>"></td>
            <td nowrap class="body_row"><a href="Role_General.asp?role_id=<%=rsQry("role_id")%>&<%=objPMod.ComposeURL%>" class="body_link" title="See Role Details"><%=LIMG_ROLE &  rsQry("role_name")%></a></td>
            <td class="body_row"><%=rsQry("comments")%></td>
                        <td align="center"><a href="Role_Privileges.asp?role_id=<%=rsQry("role_id")%>&<%=objPMod.ComposeURL%>" title="See Role Permissions"><%=LIMG_CONTROL%></a></td>
          </tr>
                  <%rsQry.MoveNext%>
                  
                  <%If (NOT rsQry.BOF) AND (NOT rsQry.EOF) Then%>
          <tr>
            <td colspan="4" background="images/bg_table_border.gif"><img src="images/spacer.gif" width="1" height="1"></td>
          </tr>
                  <%End If%>
                  
                  <%
                  WEnd
                  
                  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>
         </table>        
                 <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
         <br></td>
      </tr>
          <%=objPMod.ComposeHiddenTags()%>
          <input type="hidden" name="action" value="true">
        </form>
    </table>
        </td>
  </tr>
</table>
<!-- FOOTER ++++++++++++++++++++++ -->
<!--#include file="_footer.asp"-->
<!-- +++++++++++++++++++++++++++++ -->
</body>
</html>
<%
'------------ RUN AFTER PAGE RENDER -----------
'----------------------------------------------
%>
<!--#include file="common/globals_destructor.asp"-->