Subversion Repositories DevTools

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

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