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" )
103
 
104
				Call LoadTabActionButtons ( aTabBtnsDef, objBtnControl )
105
 
106
				objBtnControl.Render( aTabBtnsDef )
107
				%>
108
				<!-- +++++++++++++++++++++++++++++++++++ -->
109
			  </td>
110
              <td align="right" nowrap class="section_ttl"><%=objAppCollector.Item ("application_name")%></td>
111
            </tr>
112
          </table>
113
		</td>
114
      </tr>
115
	  <tr>
116
        <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>
117
      </tr>
118
      <tr>
119
        <td>
120
		 <!-- DETAILS ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
121
		 <table width="100%"  border="0" cellspacing="3" cellpadding="0">
122
          <tr>
123
		  	<td width="1%" background="images/bg_table_col.gif"><img src="images/spacer.gif" width="16" height="16" hspace="2"></td>
124
            <td width="30%" background="images/bg_table_border.gif"><table width="100%"  border="0" cellspacing="1" cellpadding="2">
125
              <tr>
126
                <td align="right" nowrap background="images/bg_table_col.gif" class="body_col">Role</td>
127
              </tr>
128
            </table></td>
129
            <td width="70%" align="right" nowrap background="images/bg_table_col.gif" class="body_col">Description</td>
130
			<td width="1%" background="images/bg_table_col.gif"><img src="images/spacer.gif" width="16" height="16" hspace="2"></td>
131
          </tr>
132
		  <%
133
		  OraDatabase.Parameters.Add "APP_ID", parApp_id,	ORAPARM_INPUT, ORATYPE_NUMBER 
134
 
135
		  Set rsQry = OraDatabase.DbCreateDynaset( GetQuery ("GetRoleList.sql"), ORADYN_DEFAULT )
136
		  While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
137
		  %>
138
          <tr>
139
		  	<td align="center"><input type="checkbox" name="role_id_list" value="<%=rsQry("role_id")%>"></td>
140
            <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>
141
            <td class="body_row"><%=rsQry("comments")%></td>
142
			<td align="center"><a href="Role_Privileges.asp?role_id=<%=rsQry("role_id")%>&<%=objPMod.ComposeURL%>" title="See Role Permissions"><%=LIMG_CONTROL%></a></td>
143
          </tr>
144
		  <%rsQry.MoveNext%>
145
 
146
		  <%If (NOT rsQry.BOF) AND (NOT rsQry.EOF) Then%>
147
          <tr>
148
            <td colspan="4" background="images/bg_table_border.gif"><img src="images/spacer.gif" width="1" height="1"></td>
149
          </tr>
150
		  <%End If%>
151
 
152
		  <%
153
		  WEnd
154
 
155
		  OraDatabase.Parameters.Remove "APP_ID"
156
		  %>
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
         <br></td>
169
      </tr>
170
	  <%=objPMod.ComposeHiddenTags()%>
171
	  <input type="hidden" name="action" value="true">
172
	</form>
173
    </table>
174
	</td>
175
  </tr>
176
</table>
177
<!-- FOOTER ++++++++++++++++++++++ -->
178
<!--#include file="_footer.asp"-->
179
<!-- +++++++++++++++++++++++++++++ -->
180
</body>
181
</html>
182
<%
183
'------------ RUN AFTER PAGE RENDER -----------
184
'----------------------------------------------
185
%>
186
<!--#include file="common/globals_destructor.asp"-->