Subversion Repositories DevTools

Rev

Rev 5512 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5354 dpurdie 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'|                                                   |
5
'|			          Role Members					 |
6
'|                                                   |
7
'=====================================================
8
%>
9
<%
10
Option explicit
11
Response.Expires = 0
12
%>
13
<!--#include file="common/globals.asp"-->
14
<!--#include file="common/config.asp"-->
15
<!--#include file="common/common_subs.asp"-->
16
<!--#include file="common/_role_common.asp"-->
17
<%
18
'------------ ACCESS CONTROL ------------------
19
%>
20
<!--#include file="_access_control_general.asp"-->
21
<%
22
'------------ VARIABLE DEFINITION -------------
23
Dim sNode
24
Dim rsQry
25
'------------ CONSTANTS DECLARATION -----------
26
'------------ VARIABLE INIT -------------------
27
'------------ CONDITIONS ----------------------
28
'----------------------------------------------
29
%>
30
<%
31
'------------ RUN BEFORE PAGE RENDER ----------
32
Call GetRoleDetails ( parRole_id, parApp_id, objRoleCollector )
33
 
34
If (Request("action") <> "") Then
35
	'-- Select Action
36
 
37
	Select Case Request("action")
38
		Case "btnSubMember"
39
			Call OpenInWindow ( "_RemoveRoleMember.asp?user_id_list="& Request("user_id_list") &"&everyone="& Request("everyone") &"&rfile="& SCRIPT_NAME &"&"& objPMod.ComposeURL() )
40
 
41
	End Select
42
 
43
End If
44
'----------------------------------------------
45
%>
46
<html>
47
<head>
48
<title>Access Manager</title>
49
<link rel="shortcut icon" href="<%=FavIcon%>"/>
50
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
51
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
52
<link href="scripts/access_manager.css" rel="stylesheet" type="text/css">
53
<script language="JavaScript" src="scripts/common.js"></script>
6658 dpurdie 54
<script language="JavaScript1.2" src="images/popup_menu.js"></script>
5354 dpurdie 55
</head>
56
 
57
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0">
58
<!-- HEADER ++++++++++++++++++++++ -->
59
<!--#include file="_header.asp"-->
60
<!-- +++++++++++++++++++++++++++++ -->
61
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
62
  <tr>
63
    <td width="1%" valign="top" background="images/bg_bage_pane.gif">
64
	<!-- TREE NAVIGATOR ++++++++++++++++++++++++++++++++++++++++++++ -->
65
	<!--#include file="_treeNavigator.asp"-->  
66
	<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
67
	</td>
68
    <td width="1" background="images/bg_drk_gray_border.gif"><img src="images/spacer.gif" width="1" height="600"></td>
69
    <td width="100%" valign="top"><table width="100%"  border="0" cellspacing="0" cellpadding="9">
70
	<form name="FormName" method="get" action="<%=SCRIPT_NAME%>">
71
      <tr>
72
        <td background="images/bg_drk_bage_pane.gif">
73
		  <table width="100%"  border="0" cellspacing="0" cellpadding="0">
74
            <tr>
75
              <td nowrap class="body_txt">
76
			    <!-- BUTTONS CONTROL +++++++++++++++++++ -->
77
				<%
78
				'-- Define Action buttons on this tab
79
				aTabBtnsDef = Array("btnAddMember", "btnSubMember" )
80
 
81
				Call LoadTabActionButtons ( aTabBtnsDef, objBtnControl )
82
 
83
				objBtnControl.Render( aTabBtnsDef )
84
				%>
85
				<!-- +++++++++++++++++++++++++++++++++++ -->
86
			  </td>
87
              <td align="right" nowrap class="section_ttl"><%=PARENT_TITLE%></td>
88
            </tr>
89
          </table>
90
		</td>
91
      </tr>
92
	  <tr>
93
        <td class="menu_crumbttl"><%Call RenderTitle ( objRoleCollector )%></td>
94
      </tr>
95
      <tr>
96
        <td>
97
		 <!-- DETAILS ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
98
		 	<!-- TAB CONTROLS ++++++++++++++++++++++ -->
99
			<!--#include file="_tabs_definition.asp"-->
100
			<%
101
			Set objTabControl = New TabControl
102
			objTabControl.TemplateDoc = ReadFile( Server.MapPath("controls/ERGTabStyleMac/mac_style.html") ) ' Supply tab style definition
103
			objTabControl.TabStyle = "StyleMac"
104
			objTabControl.AddTabDefnition ( arrRole )
105
			objTabControl.DisableByName ( "Data Filtering" )
106
			objTabControl.SelectByName ( "Members" )
107
			objTabControl.Render ()
108
			%>
109
			<!-- END OF TAB CONTROLS +++++++++++++++ -->
110
		 <table width="100%"  border="0" cellspacing="0" cellpadding="0">
111
          <tr>
112
            <td width="1" background="images/bg_gray_border.gif"><img src="images/spacer.gif" width="1" height="500"></td>
113
            <td width="100%" valign="top">
114
			  <table width="100%"  border="0" cellspacing="10" cellpadding="0">
115
                <tr>
116
                  <td>
117
				  <!-- TAB DETAILS +++++++++++++++++++++++++++++ -->
118
				   	<%
119
					OraDatabase.Parameters.Add "ROLE_ID", parRole_id,	ORAPARM_INPUT, ORATYPE_NUMBER 
120
 
121
					Set rsQry = OraDatabase.DbCreateDynaset( GetQuery ("RoleMembers.sql") , ORADYN_DEFAULT )
122
 
123
					OraDatabase.Parameters.Remove "ROLE_ID"
124
 
125
					'Pass record set to Repeater
126
					objRepeater.RecordSet = rsQry
127
 
128
					'Define Table Row with bound variables
129
					objRepeater.Row = _
130
						"<tr>"&_
131
						"	<td align='center'><input type='checkbox' name='user_id_list' value='""& <#USER_ID#> &""'></td>"&_
132
						"	<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>"&_
133
						"	<td class='body_rowg'>""& <#USER_NAME#> &""</td>"&_
134
				        "   <td align='center'><a href='User_Privileges.asp?user_id=""& <#USER_ID#> &""&""& objPMod.ComposeURL &""' title='See this User Permissions'>""& LIMG_CONTROL &""</a></td>"&_
135
				        "</tr>"&_
136
						"<tr>"&_
137
			            "   <td colspan='4' background='images/bg_table_border.gif'><img src='images/spacer.gif' width='1' height='1'></td>"&_
138
			            "</tr>"
139
					%>
140
					<%Call objRepeater.Navigator ( TRUE, TRUE )%>
141
					<table width="100%"  border="0" cellspacing="3" cellpadding="0">
142
			          <tr>
143
					  	<td width="1%" background="images/bg_table_col.gif"><img src="images/spacer.gif" width="16" height="16" hspace="2"></td>
144
			            <td width="30%" background="images/bg_table_border.gif"><table width="100%"  border="0" cellspacing="1" cellpadding="2">
145
			              <tr>
146
			                <td align="right" nowrap background="images/bg_table_col.gif" class="body_col">Full Name</td>
147
			              </tr>
148
			            </table></td>
149
			            <td width="60%" align="right" nowrap background="images/bg_table_col.gif" class="body_col">User Name</td>
150
			            <td width="1%" background="images/bg_table_col.gif"><img src="images/spacer.gif" width="16" height="16" hspace="2"></td>
151
			          </tr>
152
					  <tr>
153
					  	<td align="center" background="images/bg_table_col.gif"><input type="checkbox" name="everyone" value="Y"></td>
154
			            <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>
155
						<td background="images/bg_table_col.gif"></td>
156
			            <td background="images/bg_table_col.gif"></td>
157
			          </tr>
158
					  <%objRepeater.RenderDataGrid ()%>
159
					  <tr>
160
			            <td colspan="4" background="images/bg_table_border.gif">
161
						 <table width="100%"  border="0" cellspacing="1" cellpadding="2">
162
			              <tr>
163
			                <td nowrap background="images/bg_table_col.gif"><img src="images/spacer.gif" width="1" height="1"></td>
164
			              </tr>
165
			             </table>
166
						</td>
167
			          </tr>
168
			        </table>
169
					<%
170
					rsQry.Close()
171
					Set rsQry = Nothing
172
					%>
173
					<%Call objRepeater.Navigator ( FALSE, TRUE )%>		
174
				  <!-- +++++++++++++++++++++++++++++++++++++++++ -->
175
				  </td>
176
                </tr>
177
              </table>
178
			</td>
179
            <td width="1" background="images/bg_gray_border.gif"><img src="images/spacer.gif" width="1" height="1"></td>
180
          </tr>
181
         </table>
182
         <table width="100%"  border="0" cellspacing="0" cellpadding="0">
183
           <tr>
184
             <td background="images/bg_gray_border.gif"><img src="images/spacer.gif" width="1" height="1"></td>
185
           </tr>
186
         </table>
187
		 <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
188
         <br></td>
189
      </tr>
190
	  <%=objPMod.ComposeHiddenTags()%>
191
	  <input type="hidden" name="action" value="true">
192
	</form>
193
    </table></td>
194
  </tr>
195
</table>
196
<!-- FOOTER ++++++++++++++++++++++ -->
197
<!--#include file="_footer.asp"-->
198
<!-- +++++++++++++++++++++++++++++ -->
199
</body>
200
</html>
201
<%
202
'------------ RUN AFTER PAGE RENDER -----------
203
'----------------------------------------------
204
%>
2 rsolanki 205
<!--#include file="common/globals_destructor.asp"-->