Subversion Repositories DevTools

Rev

Details | 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>
54
</head>
55
 
56
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0">
57
<!-- HEADER ++++++++++++++++++++++ -->
58
<!--#include file="_header.asp"-->
59
<!-- +++++++++++++++++++++++++++++ -->
60
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
61
  <tr>
62
    <td width="1%" valign="top" background="images/bg_bage_pane.gif">
63
	<!-- TREE NAVIGATOR ++++++++++++++++++++++++++++++++++++++++++++ -->
64
	<!--#include file="_treeNavigator.asp"-->  
65
	<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
66
	</td>
67
    <td width="1" background="images/bg_drk_gray_border.gif"><img src="images/spacer.gif" width="1" height="600"></td>
68
    <td width="100%" valign="top"><table width="100%"  border="0" cellspacing="0" cellpadding="9">
69
	<form name="FormName" method="get" action="<%=SCRIPT_NAME%>">
70
      <tr>
71
        <td background="images/bg_drk_bage_pane.gif">
72
		  <table width="100%"  border="0" cellspacing="0" cellpadding="0">
73
            <tr>
74
              <td nowrap class="body_txt">
75
			    <!-- BUTTONS CONTROL +++++++++++++++++++ -->
76
				<%
77
				'-- Define Action buttons on this tab
78
				aTabBtnsDef = Array("btnAddMember", "btnSubMember" )
79
 
80
				Call LoadTabActionButtons ( aTabBtnsDef, objBtnControl )
81
 
82
				objBtnControl.Render( aTabBtnsDef )
83
				%>
84
				<!-- +++++++++++++++++++++++++++++++++++ -->
85
			  </td>
86
              <td align="right" nowrap class="section_ttl"><%=PARENT_TITLE%></td>
87
            </tr>
88
          </table>
89
		</td>
90
      </tr>
91
	  <tr>
92
        <td class="menu_crumbttl"><%Call RenderTitle ( objRoleCollector )%></td>
93
      </tr>
94
      <tr>
95
        <td>
96
		 <!-- DETAILS ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
97
		 	<!-- TAB CONTROLS ++++++++++++++++++++++ -->
98
			<!--#include file="_tabs_definition.asp"-->
99
			<%
100
			Set objTabControl = New TabControl
101
			objTabControl.TemplateDoc = ReadFile( Server.MapPath("controls/ERGTabStyleMac/mac_style.html") ) ' Supply tab style definition
102
			objTabControl.TabStyle = "StyleMac"
103
			objTabControl.AddTabDefnition ( arrRole )
104
			objTabControl.DisableByName ( "Data Filtering" )
105
			objTabControl.SelectByName ( "Members" )
106
			objTabControl.Render ()
107
			%>
108
			<!-- END OF TAB CONTROLS +++++++++++++++ -->
109
		 <table width="100%"  border="0" cellspacing="0" cellpadding="0">
110
          <tr>
111
            <td width="1" background="images/bg_gray_border.gif"><img src="images/spacer.gif" width="1" height="500"></td>
112
            <td width="100%" valign="top">
113
			  <table width="100%"  border="0" cellspacing="10" cellpadding="0">
114
                <tr>
115
                  <td>
116
				  <!-- TAB DETAILS +++++++++++++++++++++++++++++ -->
117
				   	<%
118
					OraDatabase.Parameters.Add "ROLE_ID", parRole_id,	ORAPARM_INPUT, ORATYPE_NUMBER 
119
 
120
					Set rsQry = OraDatabase.DbCreateDynaset( GetQuery ("RoleMembers.sql") , ORADYN_DEFAULT )
121
 
122
					OraDatabase.Parameters.Remove "ROLE_ID"
123
 
124
					'Pass record set to Repeater
125
					objRepeater.RecordSet = rsQry
126
 
127
					'Define Table Row with bound variables
128
					objRepeater.Row = _
129
						"<tr>"&_
130
						"	<td align='center'><input type='checkbox' name='user_id_list' value='""& <#USER_ID#> &""'></td>"&_
131
						"	<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>"&_
132
						"	<td class='body_rowg'>""& <#USER_NAME#> &""</td>"&_
133
				        "   <td align='center'><a href='User_Privileges.asp?user_id=""& <#USER_ID#> &""&""& objPMod.ComposeURL &""' title='See this User Permissions'>""& LIMG_CONTROL &""</a></td>"&_
134
				        "</tr>"&_
135
						"<tr>"&_
136
			            "   <td colspan='4' background='images/bg_table_border.gif'><img src='images/spacer.gif' width='1' height='1'></td>"&_
137
			            "</tr>"
138
					%>
139
					<%Call objRepeater.Navigator ( TRUE, TRUE )%>
140
					<table width="100%"  border="0" cellspacing="3" cellpadding="0">
141
			          <tr>
142
					  	<td width="1%" background="images/bg_table_col.gif"><img src="images/spacer.gif" width="16" height="16" hspace="2"></td>
143
			            <td width="30%" background="images/bg_table_border.gif"><table width="100%"  border="0" cellspacing="1" cellpadding="2">
144
			              <tr>
145
			                <td align="right" nowrap background="images/bg_table_col.gif" class="body_col">Full Name</td>
146
			              </tr>
147
			            </table></td>
148
			            <td width="60%" align="right" nowrap background="images/bg_table_col.gif" class="body_col">User Name</td>
149
			            <td width="1%" background="images/bg_table_col.gif"><img src="images/spacer.gif" width="16" height="16" hspace="2"></td>
150
			          </tr>
151
					  <tr>
152
					  	<td align="center" background="images/bg_table_col.gif"><input type="checkbox" name="everyone" value="Y"></td>
153
			            <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>
154
						<td background="images/bg_table_col.gif"></td>
155
			            <td background="images/bg_table_col.gif"></td>
156
			          </tr>
157
					  <%objRepeater.RenderDataGrid ()%>
158
					  <tr>
159
			            <td colspan="4" background="images/bg_table_border.gif">
160
						 <table width="100%"  border="0" cellspacing="1" cellpadding="2">
161
			              <tr>
162
			                <td nowrap background="images/bg_table_col.gif"><img src="images/spacer.gif" width="1" height="1"></td>
163
			              </tr>
164
			             </table>
165
						</td>
166
			          </tr>
167
			        </table>
168
					<%
169
					rsQry.Close()
170
					Set rsQry = Nothing
171
					%>
172
					<%Call objRepeater.Navigator ( FALSE, TRUE )%>		
173
				  <!-- +++++++++++++++++++++++++++++++++++++++++ -->
174
				  </td>
175
                </tr>
176
              </table>
177
			</td>
178
            <td width="1" background="images/bg_gray_border.gif"><img src="images/spacer.gif" width="1" height="1"></td>
179
          </tr>
180
         </table>
181
         <table width="100%"  border="0" cellspacing="0" cellpadding="0">
182
           <tr>
183
             <td background="images/bg_gray_border.gif"><img src="images/spacer.gif" width="1" height="1"></td>
184
           </tr>
185
         </table>
186
		 <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
187
         <br></td>
188
      </tr>
189
	  <%=objPMod.ComposeHiddenTags()%>
190
	  <input type="hidden" name="action" value="true">
191
	</form>
192
    </table></td>
193
  </tr>
194
</table>
195
<!-- FOOTER ++++++++++++++++++++++ -->
196
<!--#include file="_footer.asp"-->
197
<!-- +++++++++++++++++++++++++++++ -->
198
</body>
199
</html>
200
<%
201
'------------ RUN AFTER PAGE RENDER -----------
202
'----------------------------------------------
203
%>
2 rsolanki 204
<!--#include file="common/globals_destructor.asp"-->