Subversion Repositories DevTools

Rev

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

<%@LANGUAGE="VBSCRIPT"%>
<%
'=====================================================
'|                                                   |
'|                                Role Members                                   |
'|                                                   |
'=====================================================
%>
<%
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 sNode
Dim rsQry
'------------ CONSTANTS DECLARATION -----------
'------------ VARIABLE INIT -------------------
'------------ CONDITIONS ----------------------
'----------------------------------------------
%>
<%
'------------ RUN BEFORE PAGE RENDER ----------
Call GetRoleDetails ( parRole_id, parApp_id, objRoleCollector )

If (Request("action") <> "") Then
        '-- Select Action
        
        Select Case Request("action")
                Case "btnSubMember"
                        Call OpenInWindow ( "_RemoveRoleMember.asp?user_id_list="& Request("user_id_list") &"&everyone="& Request("everyone") &"&rfile="& SCRIPT_NAME &"&"& objPMod.ComposeURL() )
                
        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="get" 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("btnAddMember", "btnSubMember" )
                                
                                Call 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 ( objRoleCollector )%></td>
      </tr>
      <tr>
        <td>
                 <!-- DETAILS ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
                        <!-- TAB CONTROLS ++++++++++++++++++++++ -->
                        <!--#include file="_tabs_definition.asp"-->
                        <%
                        Set objTabControl = New TabControl
                        objTabControl.TemplateDoc = ReadFile( Server.MapPath("controls/ERGTabStyleMac/mac_style.html") ) ' Supply tab style definition
                        objTabControl.TabStyle = "StyleMac"
                        objTabControl.AddTabDefnition ( arrRole )
                        objTabControl.DisableByName ( "Data Filtering" )
                        objTabControl.SelectByName ( "Members" )
                        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 +++++++++++++++++++++++++++++ -->
                                        <%
                                        OraDatabase.Parameters.Add "ROLE_ID", parRole_id,       ORAPARM_INPUT, ORATYPE_NUMBER 
                                        
                                        Set rsQry = OraDatabase.DbCreateDynaset( GetQuery ("RoleMembers.sql") , ORADYN_DEFAULT )
                                        
                                        OraDatabase.Parameters.Remove "ROLE_ID"
                                        
                                        'Pass record set to Repeater
                                        objRepeater.RecordSet = rsQry
                                        
                                        'Define Table Row with bound variables
                                        objRepeater.Row = _
                                                "<tr>"&_
                                                "       <td align='center'><input type='checkbox' name='user_id_list' value='""& <#USER_ID#> &""'></td>"&_
                                                "       <td nowrap class='body_row'><a title='See User General Info' href='User_General.asp?user_id=""& <#USER_ID#> &""&""& objPMod.ComposeURL &""' class='body_link'>""& Eval( <#USER_IMAGE#> )  &  <#FULL_NAME#> &""</a></td>"&_
                                                "       <td class='body_rowg'>""& <#USER_NAME#> &""</td>"&_
                                        "   <td align='center'><a href='User_Privileges.asp?user_id=""& <#USER_ID#> &""&""& objPMod.ComposeURL &""' title='See this User Permissions'>""& LIMG_CONTROL &""</a></td>"&_
                                        "</tr>"&_
                                                "<tr>"&_
                                    "   <td colspan='4' background='images/bg_table_border.gif'><img src='images/spacer.gif' width='1' height='1'></td>"&_
                                    "</tr>"
                                        %>
                                        <%Call objRepeater.Navigator ( TRUE, TRUE )%>
                                        <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">Full Name</td>
                                      </tr>
                                    </table></td>
                                    <td width="60%" align="right" nowrap background="images/bg_table_col.gif" class="body_col">User Name</td>
                                    <td width="1%" background="images/bg_table_col.gif"><img src="images/spacer.gif" width="16" height="16" hspace="2"></td>
                                  </tr>
                                          <tr>
                                                <td align="center" background="images/bg_table_col.gif"><input type="checkbox" name="everyone" value="Y"></td>
                                    <td nowrap class="body_row" background="images/bg_table_col.gif"><img src="images/i_accounts.gif" width="16" height="14" border="0" hspace="4" align="absmiddle">Everyone</td>
                                                <td background="images/bg_table_col.gif"></td>
                                    <td background="images/bg_table_col.gif"></td>
                                  </tr>
                                          <%objRepeater.RenderDataGrid ()%>
                                          <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>
                                        <%
                                        rsQry.Close()
                                        Set rsQry = Nothing
                                        %>
                                        <%Call objRepeater.Navigator ( FALSE, TRUE )%>          
                                  <!-- +++++++++++++++++++++++++++++++++++++++++ -->
                                  </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>
          <%=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"-->