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 List						 |
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 rsQry
24
Dim objAppCollector
25
'------------ CONSTANTS DECLARATION -----------
26
'------------ VARIABLE INIT -------------------
27
Set objAppCollector = CreateObject("Scripting.Dictionary")
28
'------------ CONDITIONS ----------------------
29
'----------------------------------------------
30
%>
31
<%
32
'----------------------------------------------------------------------------------------------------------------------------------------------
33
Sub MultiRoleMembers ()
34
	On Error Resume Next
35
 
36
	objEH.Try
37
 
38
		If Request("role_id_list") = "" Then
39
			Err.Raise 8, "Please select at least one Role.", "No further details available."
40
		Else
41
			Call OpenInWindow ( "MultiRole_Members.asp?role_id_list="& Request("role_id_list") &"&rfile="& SCRIPT_NAME &"&"& objPMod.ComposeURL() )
42
		End If
43
 
44
 
45
	objEH.Catch
46
 
47
End Sub
48
'----------------------------------------------------------------------------------------------------------------------------------------------
49
%>
50
<%
51
'------------ RUN BEFORE PAGE RENDER ----------
52
Call GetApplicationDetails ( parApp_id, objAppCollector )
53
 
54
If (Request("action") <> "") Then
55
	'-- Select Action
56
 
57
	Select Case Request("action")
58
		Case "btnRemoveRole"
59
			Call OpenInWindow ( "_RemoveRole.asp?role_id_list="& Request("role_id_list") &"&rfile="& SCRIPT_NAME &"&"& objPMod.ComposeURL() )
60
 
61
		Case "btnRoleMembers"
62
			Call MultiRoleMembers()
63
 
64
	End Select
65
 
66
End If
67
'----------------------------------------------
68
%>
69
<html>
70
<head>
71
<title>Access Manager</title>
72
<link rel="shortcut icon" href="<%=FavIcon%>"/>
73
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
74
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
75
<link href="scripts/access_manager.css" rel="stylesheet" type="text/css">
76
<script language="JavaScript" src="scripts/common.js"></script>
6658 dpurdie 77
<script language="JavaScript1.2" src="images/popup_menu.js"></script>
5354 dpurdie 78
</head>
79
 
80
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0">
81
<!-- HEADER ++++++++++++++++++++++ -->
82
<!--#include file="_header.asp"-->
83
<!-- +++++++++++++++++++++++++++++ -->
84
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
85
  <tr>
86
    <td width="1%" valign="top" background="images/bg_bage_pane.gif">
87
	<!-- TREE NAVIGATOR ++++++++++++++++++++++++++++++++++++++++++++ -->
88
	<!--#include file="_treeNavigator.asp"-->  
89
	<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
90
	</td>
91
    <td width="1" background="images/bg_drk_gray_border.gif"><img src="images/spacer.gif" width="1" height="600"></td>
92
    <td width="100%" valign="top">
93
	<table width="100%"  border="0" cellspacing="0" cellpadding="9">
94
	<form name="FormName" method="post" action="<%=SCRIPT_NAME%>">
95
      <tr>
96
        <td background="images/bg_drk_bage_pane.gif">
97
		  <table width="100%"  border="0" cellspacing="0" cellpadding="0">
98
            <tr>
99
              <td nowrap class="body_txt">
100
			  	<!-- BUTTONS CONTROL +++++++++++++++++++ -->
101
				<%
102
				'-- Define Action buttons on this tab
103
				aTabBtnsDef = Array("btnNewRole", "btnRemoveRole", "height=25", "btnRoleMembers" )
104
 
105
				Call LoadTabActionButtons ( aTabBtnsDef, objBtnControl )
106
                If  NOT canActionControl("canCreateRoles") Then
107
                    Call objBtnControl.Active ( "btnNewRole", enumDB_NO )
108
                    Call objBtnControl.Active ( "btnRemoveRole", enumDB_NO )
109
                End If
110
 
111
				objBtnControl.Render( aTabBtnsDef )
112
				%>
113
				<!-- +++++++++++++++++++++++++++++++++++ -->
114
			  </td>
115
              <td align="right" nowrap class="section_ttl"><%=objAppCollector.Item ("application_name")%></td>
116
            </tr>
117
          </table>
118
		</td>
119
      </tr>
120
	  <tr>
121
        <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>
122
      </tr>
123
      <tr>
124
        <td>
125
		 <!-- DETAILS ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
126
		 <table width="100%"  border="0" cellspacing="3" cellpadding="0">
127
          <tr>
128
		  	<td width="1%" background="images/bg_table_col.gif"><img src="images/spacer.gif" width="16" height="16" hspace="2"></td>
129
            <td width="30%" background="images/bg_table_border.gif"><table width="100%"  border="0" cellspacing="1" cellpadding="2">
130
              <tr>
131
                <td align="right" nowrap background="images/bg_table_col.gif" class="body_col">Role</td>
132
              </tr>
133
            </table></td>
134
            <td width="70%" align="right" nowrap background="images/bg_table_col.gif" class="body_col">Description</td>
135
			<td width="1%" background="images/bg_table_col.gif" class="body_col">Set</td>
136
			<td width="1%" background="images/bg_table_col.gif" class="body_col">Edit</td>
137
          </tr>
138
		  <%
139
		  OraDatabase.Parameters.Add "APP_ID", parApp_id,	ORAPARM_INPUT, ORATYPE_NUMBER 
140
 
141
		  Set rsQry = OraDatabase.DbCreateDynaset( GetQuery ("GetRoleList.sql"), ORADYN_DEFAULT )
142
		  While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
143
		  %>
144
          <tr>
145
		  	<td align="center"><input type="checkbox" name="role_id_list" value="<%=rsQry("role_id")%>"></td>
146
            <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>
147
            <td class="body_row"><%=rsQry("comments")%></td>
148
			<td align="center"><a href="Role_Privileges.asp?role_id=<%=rsQry("role_id")%>&<%=objPMod.ComposeURL%>" title="See Role Permissions"><%=LIMG_CONTROL%></a></td>
149
			<td align="center">
150
            <% If canActionControl("canCreateRoles") Then%>
151
                <a href="javascript:;" onClick="MM_openBrWindow('wEditRole.asp?role_id=<%=rsQry("role_id")%>&rfile=<%=SCRIPT_NAME%>&<%=objPMod.ComposeURL%>','Edit Role','scrollbars=yes,resizable=yes,width=600,height=350')" title='Edit Role'><%=LIMG_EDIT%></a>
152
            <%Else%>
153
                <%=LIMG_EDIT_OFF%>
154
            <%End If%>
155
            </td>
156
          </tr>
157
		  <%rsQry.MoveNext%>
158
 
159
		  <%If (NOT rsQry.BOF) AND (NOT rsQry.EOF) Then%>
160
          <tr>
161
            <td colspan="5" background="images/bg_table_border.gif"><img src="images/spacer.gif" width="1" height="1"></td>
162
          </tr>
163
		  <%End If%>
164
 
165
		  <%
166
		  WEnd
167
 
168
		  OraDatabase.Parameters.Remove "APP_ID"
169
		  %>
170
          <tr>
171
            <td colspan="4" background="images/bg_table_border.gif">
172
			 <table width="100%"  border="0" cellspacing="1" cellpadding="2">
173
              <tr>
174
                <td nowrap background="images/bg_table_col.gif"><img src="images/spacer.gif" width="1" height="1"></td>
175
              </tr>
176
             </table>
177
			</td>
178
          </tr>
179
         </table>	 
180
		 <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
181
         <br></td>
182
      </tr>
183
	  <%=objPMod.ComposeHiddenTags()%>
184
	  <input type="hidden" name="action" value="true">
185
	</form>
186
    </table>
187
	</td>
188
  </tr>
189
</table>
190
<!-- FOOTER ++++++++++++++++++++++ -->
191
<!--#include file="_footer.asp"-->
192
<!-- +++++++++++++++++++++++++++++ -->
193
</body>
194
</html>
195
<%
196
'------------ RUN AFTER PAGE RENDER -----------
197
'----------------------------------------------
198
%>
2 rsolanki 199
<!--#include file="common/globals_destructor.asp"-->