| 5354 |
dpurdie |
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
|
|
2 |
<%
|
|
|
3 |
'=====================================================
|
|
|
4 |
'| |
|
|
|
5 |
'| User Applications |
|
|
|
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/_user_common.asp"-->
|
|
|
17 |
<%
|
|
|
18 |
'------------ ACCESS CONTROL ------------------
|
|
|
19 |
%>
|
|
|
20 |
<!--#include file="_access_control_general.asp"-->
|
|
|
21 |
<%
|
|
|
22 |
'------------ VARIABLE DEFINITION -------------
|
|
|
23 |
Dim rsQry
|
|
|
24 |
'------------ CONSTANTS DECLARATION -----------
|
|
|
25 |
'------------ VARIABLE INIT -------------------
|
|
|
26 |
'------------ CONDITIONS ----------------------
|
|
|
27 |
'----------------------------------------------
|
|
|
28 |
%>
|
|
|
29 |
<%
|
|
|
30 |
'------------ RUN BEFORE PAGE RENDER ----------
|
|
|
31 |
Call GetUserDetails ( parUser_id, objUserCollector )
|
|
|
32 |
'----------------------------------------------
|
|
|
33 |
%>
|
|
|
34 |
<html>
|
|
|
35 |
<head>
|
|
|
36 |
<title>Access Manager</title>
|
|
|
37 |
<link rel="shortcut icon" href="<%=FavIcon%>"/>
|
|
|
38 |
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
|
|
39 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
|
40 |
<link href="scripts/access_manager.css" rel="stylesheet" type="text/css">
|
|
|
41 |
<script language="JavaScript" src="scripts/common.js"></script>
|
| 6658 |
dpurdie |
42 |
<script language="JavaScript1.2" src="images/popup_menu.js"></script>
|
| 5354 |
dpurdie |
43 |
</head>
|
|
|
44 |
|
|
|
45 |
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0">
|
|
|
46 |
<!-- HEADER ++++++++++++++++++++++ -->
|
|
|
47 |
<!--#include file="_header.asp"-->
|
|
|
48 |
<!-- +++++++++++++++++++++++++++++ -->
|
|
|
49 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
50 |
<tr>
|
|
|
51 |
<td width="1%" valign="top" background="images/bg_bage_pane.gif">
|
|
|
52 |
<!-- TREE NAVIGATOR ++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
53 |
<!--#include file="_treeNavigator.asp"-->
|
|
|
54 |
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
55 |
</td>
|
|
|
56 |
<td width="1" background="images/bg_drk_gray_border.gif"><img src="images/spacer.gif" width="1" height="600"></td>
|
|
|
57 |
<td width="100%" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="9">
|
|
|
58 |
<form name="FormName" method="post" action="<%=SCRIPT_NAME%>">
|
|
|
59 |
<tr>
|
|
|
60 |
<td background="images/bg_drk_bage_pane.gif">
|
|
|
61 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
62 |
<tr>
|
|
|
63 |
<td nowrap class="body_txt">
|
|
|
64 |
<!-- BUTTONS CONTROL +++++++++++++++++++ -->
|
|
|
65 |
<%
|
|
|
66 |
'-- Define Action buttons on this tab
|
|
|
67 |
aTabBtnsDef = Array("btnAddApplicationUser", "btnSubApplicationUser")
|
|
|
68 |
|
|
|
69 |
Call LoadTabActionButtons ( aTabBtnsDef, objBtnControl )
|
|
|
70 |
If NOT canActionControl("canAssignUserToApplication") Then objBtnControl.AllActive = "N"
|
|
|
71 |
|
|
|
72 |
objBtnControl.Render( aTabBtnsDef )
|
|
|
73 |
%>
|
|
|
74 |
<!-- +++++++++++++++++++++++++++++++++++ -->
|
|
|
75 |
</td>
|
|
|
76 |
<td align="right" nowrap class="section_ttl"><%=PARENT_TITLE%></td>
|
|
|
77 |
</tr>
|
|
|
78 |
</table>
|
|
|
79 |
</td>
|
|
|
80 |
</tr>
|
|
|
81 |
<tr>
|
|
|
82 |
<td class="menu_crumbttl"><%Call RenderTitle ( objUserCollector )%></td>
|
|
|
83 |
</tr>
|
|
|
84 |
<tr>
|
|
|
85 |
<td>
|
|
|
86 |
<!-- DETAILS ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
87 |
<!-- TAB CONTROLS ++++++++++++++++++++++ -->
|
|
|
88 |
<!--#include file="_tabs_definition.asp"-->
|
|
|
89 |
<%
|
|
|
90 |
Set objTabControl = New TabControl
|
|
|
91 |
objTabControl.TemplateDoc = ReadFile( Server.MapPath("controls/ERGTabStyleMac/mac_style.html") ) ' Supply tab style definition
|
|
|
92 |
objTabControl.TabStyle = "StyleMac"
|
|
|
93 |
objTabControl.AddTabDefnition ( arrUserAccount )
|
|
|
94 |
objTabControl.SelectByName ( "Applications" )
|
|
|
95 |
|
|
|
96 |
objTabControl.Render ()
|
|
|
97 |
%>
|
|
|
98 |
<!-- END OF TAB CONTROLS +++++++++++++++ -->
|
|
|
99 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
100 |
<tr>
|
|
|
101 |
<td width="1" background="images/bg_gray_border.gif"><img src="images/spacer.gif" width="1" height="500"></td>
|
|
|
102 |
<td width="100%" valign="top">
|
|
|
103 |
<table width="100%" border="0" cellspacing="10" cellpadding="0">
|
|
|
104 |
<tr>
|
|
|
105 |
<td>
|
|
|
106 |
<!-- DETAILS ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
107 |
|
|
|
108 |
<table width="100%" border="0" cellspacing="3" cellpadding="0">
|
|
|
109 |
<tr>
|
|
|
110 |
<td width="1%" background="images/bg_table_col.gif"><img src="images/spacer.gif" width="16" height="16" hspace="2"></td>
|
|
|
111 |
<td width="30%" background="images/bg_table_border.gif"><table width="100%" border="0" cellspacing="1" cellpadding="2">
|
|
|
112 |
<tr>
|
|
|
113 |
<td align="right" nowrap background="images/bg_table_col.gif" class="body_col">Application</td>
|
|
|
114 |
</tr>
|
|
|
115 |
</table></td>
|
|
|
116 |
<td width="70%" background="images/bg_table_col.gif"></td>
|
|
|
117 |
</tr>
|
|
|
118 |
<%
|
|
|
119 |
OraDatabase.Parameters.Add "USER_ID", parUser_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
120 |
|
|
|
121 |
Set rsQry = OraDatabase.DbCreateDynaset( GetQuery ("UserApplications.sql"), ORADYN_DEFAULT )
|
|
|
122 |
While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
|
|
|
123 |
%>
|
|
|
124 |
<tr>
|
|
|
125 |
<td align="center"><input type="checkbox" name="app_id" value="<%=rsQry("app_id")%>" disabled></td>
|
|
|
126 |
<td nowrap class="body_row"><a href="Application_Default.asp?app_id=<%=rsQry("app_id")%>&tree=1_<%=rsQry("app_id")%>" class="body_link" title="See Application Details"><%=IMG_DISK & rsQry("application_name")%></a></td>
|
|
|
127 |
<td></td>
|
|
|
128 |
</tr>
|
|
|
129 |
<%rsQry.MoveNext%>
|
|
|
130 |
|
|
|
131 |
<%If (NOT rsQry.BOF) AND (NOT rsQry.EOF) Then%>
|
|
|
132 |
<tr>
|
|
|
133 |
<td colspan="3" background="images/bg_table_border.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
134 |
</tr>
|
|
|
135 |
<%End If%>
|
|
|
136 |
|
|
|
137 |
<%
|
|
|
138 |
WEnd
|
|
|
139 |
|
|
|
140 |
OraDatabase.Parameters.Remove "USER_ID"
|
|
|
141 |
%>
|
|
|
142 |
<tr>
|
|
|
143 |
<td colspan="3" background="images/bg_table_border.gif">
|
|
|
144 |
<table width="100%" border="0" cellspacing="1" cellpadding="2">
|
|
|
145 |
<tr>
|
|
|
146 |
<td nowrap background="images/bg_table_col.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
147 |
</tr>
|
|
|
148 |
</table>
|
|
|
149 |
</td>
|
|
|
150 |
</tr>
|
|
|
151 |
</table>
|
|
|
152 |
|
|
|
153 |
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
154 |
</td>
|
|
|
155 |
</tr>
|
|
|
156 |
</table>
|
|
|
157 |
</td>
|
|
|
158 |
<td width="1" background="images/bg_gray_border.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
159 |
</tr>
|
|
|
160 |
</table>
|
|
|
161 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
162 |
<tr>
|
|
|
163 |
<td background="images/bg_gray_border.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
164 |
</tr>
|
|
|
165 |
</table>
|
|
|
166 |
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
167 |
<br></td>
|
|
|
168 |
</tr>
|
|
|
169 |
<%=objPMod.ComposeHiddenTags()%>
|
|
|
170 |
<input type="hidden" name="action" value="true">
|
|
|
171 |
</form>
|
|
|
172 |
</table></td>
|
|
|
173 |
</tr>
|
|
|
174 |
</table>
|
|
|
175 |
<!-- FOOTER ++++++++++++++++++++++ -->
|
|
|
176 |
<!--#include file="_footer.asp"-->
|
|
|
177 |
<!-- +++++++++++++++++++++++++++++ -->
|
|
|
178 |
</body>
|
|
|
179 |
</html>
|
|
|
180 |
<%
|
|
|
181 |
'------------ RUN AFTER PAGE RENDER -----------
|
|
|
182 |
'----------------------------------------------
|
|
|
183 |
%>
|
| 2 |
rsolanki |
184 |
<!--#include file="common/globals_destructor.asp"-->
|