| 5357 |
dpurdie |
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
|
|
2 |
<%
|
|
|
3 |
'=====================================================
|
|
|
4 |
'| |
|
|
|
5 |
'| MEMBERS |
|
|
|
6 |
'| MY ROLES - Access Details |
|
|
|
7 |
'=====================================================
|
|
|
8 |
%>
|
|
|
9 |
<%
|
|
|
10 |
Option explicit
|
|
|
11 |
' Good idea to set when using redirect
|
|
|
12 |
Response.Expires = 0 ' always load the page, dont store
|
|
|
13 |
%>
|
|
|
14 |
<!--#include file="common/conf.asp"-->
|
|
|
15 |
<!--#include file="common/globals.asp"-->
|
|
|
16 |
<!--#include file="common/formating.asp"-->
|
|
|
17 |
<!--#include file="common/qstr.asp"-->
|
|
|
18 |
<!--#include file="common/common_subs.asp"-->
|
|
|
19 |
<%
|
|
|
20 |
'------------ ACCESS CONTROL ------------------
|
|
|
21 |
%>
|
|
|
22 |
<!--#include file="_access_control_login.asp"-->
|
|
|
23 |
<!--#include file="_access_control_general.asp"-->
|
|
|
24 |
<%
|
|
|
25 |
'------------ Variable Definition -------------
|
|
|
26 |
Dim rsTemp
|
|
|
27 |
Dim rsQry
|
|
|
28 |
Dim sqlQuery
|
|
|
29 |
Dim parProj
|
|
|
30 |
Dim bAdvMode : bAdvMode = FALSE
|
|
|
31 |
|
|
|
32 |
'------------ Constants Declaration -----------
|
|
|
33 |
'------------ Variable Init -------------------
|
|
|
34 |
parProj = QStrPar("proj_id")
|
|
|
35 |
|
|
|
36 |
'----------------------------------------------
|
|
|
37 |
' Create a chkbox and set its state
|
|
|
38 |
Function chkbox( value )
|
|
|
39 |
chkbox = "<input type='checkbox' disabled"
|
|
|
40 |
If value Then chkbox = chkbox & " checked=yes"
|
|
|
41 |
chkbox = chkbox & "/>"
|
|
|
42 |
End Function
|
|
|
43 |
%>
|
|
|
44 |
<html>
|
|
|
45 |
<head>
|
|
|
46 |
<title>Release Manager</title>
|
|
|
47 |
<link rel="shortcut icon" href="<%=FavIcon%>"/>
|
|
|
48 |
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
|
|
49 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
| 6579 |
dpurdie |
50 |
<link rel="stylesheet" href="images/release_manager_style.css?ver=<%=VixVerNum%>" type="text/css">
|
|
|
51 |
<link rel="stylesheet" href="images/navigation.css?ver=<%=VixVerNum%>" type="text/css">
|
|
|
52 |
<script language="JavaScript" src="images/common.js?ver=<%=VixVerNum%>"></script>
|
| 7063 |
dpurdie |
53 |
<!--#include file="_jquery_includes.asp"-->
|
| 5984 |
dpurdie |
54 |
<!--#include file="_menu_def.asp"-->
|
| 6579 |
dpurdie |
55 |
<script language="JavaScript1.2" src="images/popup_menu.js?ver=<%=VixVerNum%>"></script>
|
| 5357 |
dpurdie |
56 |
<!-- TIPS -->
|
| 6579 |
dpurdie |
57 |
<script language="JavaScript" src="images/tipster.js?ver=<%=VixVerNum%>"></script>
|
|
|
58 |
<script language="JavaScript" src="images/_help_tips.js?ver=<%=VixVerNum%>"></script>
|
| 5357 |
dpurdie |
59 |
<script language="JavaScript" type="text/JavaScript">
|
|
|
60 |
formTips.tips.ad_action = stdTip(200, 'ACTION', 'The internal name of the access control element.' );
|
|
|
61 |
formTips.tips.ad_description = stdTip(200, 'DESCRIPTION', 'A description of the access control element.' );
|
|
|
62 |
formTips.tips.ad_access = stdTip(200, 'Project Independent Permissions', 'These are the basic permissions before project specific control elements have been applied.' );
|
|
|
63 |
formTips.tips.ad_data = stdTip(200, 'Project Specific Permissions', 'These are the permissions after project-specfic control elements have been applied.' );
|
|
|
64 |
formTips.tips.ad_visible = stdTip(200, 'VISIBLE', 'The associated action may have a control button that is shown to the user.<br>If the action is not active then the control should not be visible to the user.' );
|
|
|
65 |
formTips.tips.ad_active = stdTip(200, 'ACTIVE', 'The associated action should be available.<br>Controls should be visible for an action to be available.' );
|
|
|
66 |
|
|
|
67 |
formTips.tips.ad_normal = stdTip(200, 'Permission outside of project context',
|
|
|
68 |
'The permission value when it is not used within a project.' +
|
|
|
69 |
'<p>Note:Most permssions are used within project scope.');
|
|
|
70 |
formTips.tips.ad_inproject = stdTip(200, 'Permission within Project',
|
|
|
71 |
'The permission value when it is used within the context of a project.' +
|
|
|
72 |
'<p>Note:Most permssions are used within project context.');
|
|
|
73 |
formTips.tips.ad_raw = stdTip(200, 'Raw Data',
|
|
|
74 |
'Raw data from Access Manager' +
|
|
|
75 |
'<p>Raw data is processed into a useable form.');
|
|
|
76 |
formTips.tips.ad_processed = stdTip(200, 'Processed values',
|
|
|
77 |
'Values that have been processed. These are the values that will be sued within Release Manager.');
|
|
|
78 |
</script>
|
|
|
79 |
<!-- Local Java Script -->
|
|
|
80 |
<script language="JavaScript">
|
|
|
81 |
// Refresh this page with the specified project
|
|
|
82 |
function updatePage(proj_id){
|
|
|
83 |
window.location.replace("members_my_access_details.asp?proj_id=" + proj_id);
|
|
|
84 |
}
|
|
|
85 |
</script>
|
|
|
86 |
</head>
|
|
|
87 |
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
|
|
|
88 |
<!-- HEADER -->
|
|
|
89 |
<!--#include file="_header.asp"-->
|
|
|
90 |
<!-- BODY ---->
|
|
|
91 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
92 |
<tr>
|
|
|
93 |
<td width="1%" background="images/bg_member_dark.gif" valign="top">
|
|
|
94 |
<!-- MEMBERS MENU ---------------------------------------------->
|
|
|
95 |
<!--#include file="members_menu_def.asp"-->
|
|
|
96 |
<%Call Member_Menu( "my_roles" )%>
|
|
|
97 |
<!-- MEMBERS MENU END ------------------------------------------>
|
|
|
98 |
</td>
|
| 5984 |
dpurdie |
99 |
<td width="1%" valign="top" background="images/bg_member_light.gif"></td>
|
| 5357 |
dpurdie |
100 |
<td rowspan="2" valign="top" width="70%" background="images/bg_member_light.gif" nowrap>
|
|
|
101 |
<!------------------------------------------->
|
|
|
102 |
<br>
|
|
|
103 |
<span class="mmb_ttl">My Access Details</span><br>
|
|
|
104 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
105 |
<form>
|
|
|
106 |
<tr>
|
|
|
107 |
<td width="1%"> </td>
|
|
|
108 |
<td align="right"><img src="images/h_trsp_dot.gif" width="500" height="30"></td>
|
|
|
109 |
<td width="1%"> </td>
|
|
|
110 |
</tr>
|
|
|
111 |
<tr>
|
|
|
112 |
<td align="left" valign="top" width="1%" background="images/bg_member_dark.gif"><img src="images/h_trsp_dot.gif" width="13" height="13"></td>
|
|
|
113 |
<td background="images/bg_member_dark.gif" align="left" class="wform_ttl"> </td>
|
|
|
114 |
<td align="right" valign="top" width="1%" background="images/bg_member_dark.gif"> </td>
|
|
|
115 |
</tr>
|
|
|
116 |
<tr>
|
|
|
117 |
<td width="1%" bgcolor="#FFFFFF"><img src="images/h_trsp_dot.gif" width="10" height="100"></td>
|
|
|
118 |
<td bgcolor="#FFFFFF" valign="top" class="form_item">
|
|
|
119 |
<table class="full_table">
|
|
|
120 |
<tr class="form_item">
|
|
|
121 |
<td>You have access to do:</td>
|
|
|
122 |
<td align="right">Active Project:
|
|
|
123 |
<select name="projA" class="form_item" onChange="updatePage(this.value)" >
|
|
|
124 |
<option value="">-- Select Project --</option>
|
|
|
125 |
<%
|
|
|
126 |
OraDatabase.Parameters.Add "PROJ_ID", parProj, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
127 |
Set rsQry = OraDatabase.DbCreateDynaset( GetQuery("ProjectsCombo.sql"), cint(0))
|
|
|
128 |
OraDatabase.Parameters.Remove "PROJ_ID"
|
|
|
129 |
While ((NOT rsQry.BOF) AND (NOT rsQry.EOF))%>
|
|
|
130 |
<option value="<%=rsQry("proj_id")%>" <%=rsQry("selected")%>><%=rsQry("proj_name")%></option>
|
|
|
131 |
<%rsQry.MoveNext
|
|
|
132 |
WEnd
|
|
|
133 |
rsQry.Close
|
|
|
134 |
Set rsQry = Nothing
|
|
|
135 |
%>
|
|
|
136 |
</select>
|
|
|
137 |
</td>
|
|
|
138 |
</table>
|
|
|
139 |
<table width="100%" border="0" cellspacing="1" cellpadding="2">
|
|
|
140 |
<tr background="images/bg_form_lightbluedark.gif" class="form_field" style="white-space:nowrap">
|
|
|
141 |
<td rowspan=3><b>Action </b><%=Quick_Help("ad_action")%></td>
|
|
|
142 |
<td rowspan=3><b>Description</b><%=Quick_Help("ad_description")%></td>
|
|
|
143 |
<% If bAdvMode Then %>
|
|
|
144 |
<td colspan=4 align="center"><b>Raw</b><%=Quick_Help("ad_raw")%></td>
|
|
|
145 |
<%End If%>
|
|
|
146 |
<td colspan=4 align="center"><b>Processed</b><%=Quick_Help("ad_processed")%></td>
|
|
|
147 |
</tr>
|
|
|
148 |
|
|
|
149 |
<tr background="images/bg_form_lightbluedark.gif" class="form_field" style="white-space:nowrap">
|
|
|
150 |
<% If bAdvMode Then %>
|
|
|
151 |
<td colspan=2 align="center"><b>Access</b><%=Quick_Help("ad_access")%></td>
|
|
|
152 |
<td colspan=2 align="center"><b>Data</b><%=Quick_Help("ad_data")%></td>
|
|
|
153 |
<%End If%>
|
|
|
154 |
<td colspan=2 align="center"><b>Normal</b><%=Quick_Help("ad_normal")%></td>
|
|
|
155 |
<td colspan=2 align="center"><b>InProject</b><%=Quick_Help("ad_inproject")%></td>
|
|
|
156 |
</tr>
|
|
|
157 |
|
|
|
158 |
<tr background="images/bg_form_lightbluedark.gif" class="form_field">
|
|
|
159 |
<% If bAdvMode Then %>
|
|
|
160 |
<td><b>Visible</b><%=Quick_Help("ad_visible")%></td>
|
|
|
161 |
<td><b>Active</b><%=Quick_Help("ad_active")%></td>
|
|
|
162 |
<td><b>Visible</b></td>
|
|
|
163 |
<td><b>Active</b></td>
|
|
|
164 |
<%End If%>
|
|
|
165 |
<td><b>Visible</b></td>
|
|
|
166 |
<td><b>Active</b></td>
|
|
|
167 |
<td><b>Visible</b><%=Quick_Help("ad_visible")%></td>
|
|
|
168 |
<td><b>Active</b><%=Quick_Help("ad_active")%></td>
|
|
|
169 |
</tr>
|
|
|
170 |
<%
|
|
|
171 |
sqlQuery = "select obj_name, obj_description " &_
|
|
|
172 |
"from control_objects co " &_
|
|
|
173 |
"where co.app_id = :APP_ID " &_
|
|
|
174 |
"order by UPPER(co.obj_name)"
|
|
|
175 |
|
|
|
176 |
OraDatabase.Parameters.Add "APP_ID", APPLICATION_ID, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
177 |
Set rsTemp = OraDatabase.DbCreateDynaset(sqlQuery, cint(0))
|
|
|
178 |
OraDatabase.Parameters.Remove "APP_ID"
|
|
|
179 |
While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
|
|
|
180 |
%>
|
|
|
181 |
<tr background="images/bg_form_lightgray.gif" class="form_item">
|
|
|
182 |
<td nowrap><%=rsTemp("obj_name")%></td>
|
|
|
183 |
<td><%=rsTemp("obj_description")%></td>
|
|
|
184 |
<% If bAdvMode Then %>
|
|
|
185 |
<td align="right"><%=chkbox(objAccessControl.IsVisible(rsTemp("obj_name")))%></td>
|
|
|
186 |
<td> <%=chkbox(objAccessControl.IsActive(rsTemp("obj_name")))%></td>
|
|
|
187 |
<%If parProj <> "" Then %>
|
|
|
188 |
<td align="right"><%=chkbox(objAccessControl.IsDataVisible ("PROJECTS", DB_PROJ_ID, rsTemp("obj_name")))%></td>
|
|
|
189 |
<td> <%=chkbox(objAccessControl.IsDataActive("PROJECTS", DB_PROJ_ID, rsTemp("obj_name")))%></td>
|
|
|
190 |
<%Else%>
|
|
|
191 |
<td></td>
|
|
|
192 |
<td></td>
|
|
|
193 |
<%End If%>
|
|
|
194 |
<%End If%>
|
|
|
195 |
<td align="right"><%=chkbox(canShowControl(rsTemp("obj_name")))%></td>
|
|
|
196 |
<td> <%=chkbox(canActionControl(rsTemp("obj_name")))%></td>
|
|
|
197 |
|
|
|
198 |
<%If parProj <> "" Then %>
|
|
|
199 |
<td align="right"><%=chkbox(canShowControlInProject(rsTemp("obj_name")))%></td>
|
|
|
200 |
<td> <%=chkbox(canActionControlInProject(rsTemp("obj_name")))%></td>
|
|
|
201 |
<%Else%>
|
|
|
202 |
<td></td>
|
|
|
203 |
<td></td>
|
|
|
204 |
<%End If%>
|
|
|
205 |
</tr>
|
|
|
206 |
<%rsTemp.MoveNext
|
|
|
207 |
WEnd
|
|
|
208 |
rsTemp.Close()
|
|
|
209 |
Set rsTemp = nothing
|
|
|
210 |
%>
|
|
|
211 |
</table>
|
|
|
212 |
<br><br>
|
|
|
213 |
<%
|
|
|
214 |
If bAdvMode Then
|
|
|
215 |
objAccessControl.dumpAll()
|
|
|
216 |
'objAccessControl.bDebug = true
|
|
|
217 |
End If
|
|
|
218 |
%>
|
|
|
219 |
</td>
|
|
|
220 |
<td width="1%" background="images/lbox_bgside_white.gif"> </td>
|
|
|
221 |
</tr>
|
|
|
222 |
<tr>
|
|
|
223 |
<td width="1%" background="images/bg_member_dark.gif" valign="bottom"><img src="images/h_trsp_dot.gif" width="13" height="13"></td>
|
|
|
224 |
<td background="images/bg_member_dark.gif"></td>
|
|
|
225 |
<td width="1%" background="images/bg_member_dark.gif" valign="bottom" align="right"><img src="images/h_trsp_dot.gif" width="13" height="13"></td>
|
|
|
226 |
</tr>
|
|
|
227 |
</form>
|
|
|
228 |
</table>
|
|
|
229 |
<!-------------------------------------------------------->
|
|
|
230 |
</td>
|
|
|
231 |
<td rowspan="2" valign="bottom" width="100%" background="images/bg_member_light.gif" align="right"></td>
|
|
|
232 |
</tr>
|
|
|
233 |
<tr>
|
|
|
234 |
<td valign="bottom" align="center" background="images/bg_member_dark.gif"><img src="images/img_members.gif" width="81" height="57" vspace="20" hspace="30"></td>
|
|
|
235 |
<td background="images/bg_member_light.gif" valign="top"><img src="images/h_trsp_dot.gif" width="100" height="400"></td>
|
|
|
236 |
</tr>
|
|
|
237 |
</table>
|
|
|
238 |
<!-- FOOTER -->
|
|
|
239 |
<!--#include file="_footer.asp"-->
|
|
|
240 |
</body>
|
|
|
241 |
</html>
|