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 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
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
73
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
74
<link href="scripts/access_manager.css" rel="stylesheet" type="text/css">
75
<script language="JavaScript" src="scripts/common.js"></script>
76
 
77
</head>
78
 
79
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0">
80
<!-- HEADER ++++++++++++++++++++++ -->
81
<!--#include file="_header.asp"-->
82
<!-- +++++++++++++++++++++++++++++ -->
83
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
84
  <tr>
85
    <td width="1%" valign="top" background="images/bg_bage_pane.gif">
86
	<!-- TREE NAVIGATOR ++++++++++++++++++++++++++++++++++++++++++++ -->
87
	<!--#include file="_treeNavigator.asp"-->  
88
	<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
89
	</td>
90
    <td width="1" background="images/bg_drk_gray_border.gif"><img src="images/spacer.gif" width="1" height="600"></td>
91
    <td width="100%" valign="top">
92
	<table width="100%"  border="0" cellspacing="0" cellpadding="9">
93
	<form name="FormName" method="post" action="<%=SCRIPT_NAME%>">
94
      <tr>
95
        <td background="images/bg_drk_bage_pane.gif">
96
		  <table width="100%"  border="0" cellspacing="0" cellpadding="0">
97
            <tr>
98
              <td nowrap class="body_txt">
99
			  	<!-- BUTTONS CONTROL +++++++++++++++++++ -->
100
				<%
101
				'-- Define Action buttons on this tab
102
				aTabBtnsDef = Array("btnNewRole", "btnRemoveRole", "height=25", "btnRoleMembers" )
5299 dpurdie 103
 
2 rsolanki 104
				Call LoadTabActionButtons ( aTabBtnsDef, objBtnControl )
5299 dpurdie 105
                If  NOT canActionControl("canCreateRoles") Then
106
                    Call objBtnControl.Active ( "btnNewRole", enumDB_NO )
107
                    Call objBtnControl.Active ( "btnRemoveRole", enumDB_NO )
108
                End If
2 rsolanki 109
 
110
				objBtnControl.Render( aTabBtnsDef )
111
				%>
112
				<!-- +++++++++++++++++++++++++++++++++++ -->
113
			  </td>
114
              <td align="right" nowrap class="section_ttl"><%=objAppCollector.Item ("application_name")%></td>
115
            </tr>
116
          </table>
117
		</td>
118
      </tr>
119
	  <tr>
120
        <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>
121
      </tr>
122
      <tr>
123
        <td>
124
		 <!-- DETAILS ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
125
		 <table width="100%"  border="0" cellspacing="3" cellpadding="0">
126
          <tr>
127
		  	<td width="1%" background="images/bg_table_col.gif"><img src="images/spacer.gif" width="16" height="16" hspace="2"></td>
128
            <td width="30%" background="images/bg_table_border.gif"><table width="100%"  border="0" cellspacing="1" cellpadding="2">
129
              <tr>
130
                <td align="right" nowrap background="images/bg_table_col.gif" class="body_col">Role</td>
131
              </tr>
132
            </table></td>
133
            <td width="70%" align="right" nowrap background="images/bg_table_col.gif" class="body_col">Description</td>
5150 dpurdie 134
			<td width="1%" background="images/bg_table_col.gif" class="body_col">Set</td>
135
			<td width="1%" background="images/bg_table_col.gif" class="body_col">Edit</td>
2 rsolanki 136
          </tr>
137
		  <%
138
		  OraDatabase.Parameters.Add "APP_ID", parApp_id,	ORAPARM_INPUT, ORATYPE_NUMBER 
139
 
140
		  Set rsQry = OraDatabase.DbCreateDynaset( GetQuery ("GetRoleList.sql"), ORADYN_DEFAULT )
141
		  While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
142
		  %>
143
          <tr>
144
		  	<td align="center"><input type="checkbox" name="role_id_list" value="<%=rsQry("role_id")%>"></td>
145
            <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>
146
            <td class="body_row"><%=rsQry("comments")%></td>
147
			<td align="center"><a href="Role_Privileges.asp?role_id=<%=rsQry("role_id")%>&<%=objPMod.ComposeURL%>" title="See Role Permissions"><%=LIMG_CONTROL%></a></td>
5299 dpurdie 148
			<td align="center">
149
            <% If canActionControl("canCreateRoles") Then%>
150
                <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>
151
            <%Else%>
152
                <%=LIMG_EDIT_OFF%>
153
            <%End If%>
154
            </td>
2 rsolanki 155
          </tr>
156
		  <%rsQry.MoveNext%>
157
 
158
		  <%If (NOT rsQry.BOF) AND (NOT rsQry.EOF) Then%>
159
          <tr>
5150 dpurdie 160
            <td colspan="5" background="images/bg_table_border.gif"><img src="images/spacer.gif" width="1" height="1"></td>
2 rsolanki 161
          </tr>
162
		  <%End If%>
163
 
164
		  <%
165
		  WEnd
166
 
167
		  OraDatabase.Parameters.Remove "APP_ID"
168
		  %>
169
          <tr>
170
            <td colspan="4" background="images/bg_table_border.gif">
171
			 <table width="100%"  border="0" cellspacing="1" cellpadding="2">
172
              <tr>
173
                <td nowrap background="images/bg_table_col.gif"><img src="images/spacer.gif" width="1" height="1"></td>
174
              </tr>
175
             </table>
176
			</td>
177
          </tr>
178
         </table>	 
179
		 <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
180
         <br></td>
181
      </tr>
182
	  <%=objPMod.ComposeHiddenTags()%>
183
	  <input type="hidden" name="action" value="true">
184
	</form>
185
    </table>
186
	</td>
187
  </tr>
188
</table>
189
<!-- FOOTER ++++++++++++++++++++++ -->
190
<!--#include file="_footer.asp"-->
191
<!-- +++++++++++++++++++++++++++++ -->
192
</body>
193
</html>
194
<%
195
'------------ RUN AFTER PAGE RENDER -----------
196
'----------------------------------------------
197
%>
198
<!--#include file="common/globals_destructor.asp"-->