| 17 |
rsolanki |
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
|
|
2 |
<%
|
|
|
3 |
'=====================================================
|
|
|
4 |
'| |
|
|
|
5 |
'| MEMBERS |
|
|
|
6 |
'| INDEX |
|
|
|
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/config.asp"-->
|
|
|
15 |
<!--#include file="common/globals.asp"-->
|
|
|
16 |
<!--#include file="common/formating.asp"-->
|
|
|
17 |
<!--#include file="common/common_subs.asp"-->
|
|
|
18 |
<%'Refresh parent window after the child window is closed
|
|
|
19 |
'If QStrPar("refresh") = "true" Then
|
|
|
20 |
' Response.Redirect( scriptName &"?done=done"& QSTR) ' Note: "done" parameter is required as QSTR cannot stant on its own.
|
|
|
21 |
'End If
|
|
|
22 |
%>
|
|
|
23 |
<%
|
|
|
24 |
'------------ ACCESS CONTROL ------------------
|
|
|
25 |
%>
|
|
|
26 |
|
|
|
27 |
<!--#include file="_access_control_general.asp"-->
|
|
|
28 |
<%
|
|
|
29 |
'------------ Variable Definition -------------
|
|
|
30 |
Dim rsTemp
|
|
|
31 |
'------------ Constants Declaration -----------
|
|
|
32 |
'------------ Variable Init -------------------
|
|
|
33 |
'----------------------------------------------
|
|
|
34 |
%>
|
|
|
35 |
<%
|
|
|
36 |
Function Get_Personal_Views ( NNuser_id )
|
| 3947 |
dpurdie |
37 |
Get_Personal_Views = ReadFile( rootPath & "queries\personal_views_list.qry" )
|
|
|
38 |
Get_Personal_Views = Replace( Get_Personal_Views, "$USER_ID$", NNuser_id)
|
| 17 |
rsolanki |
39 |
End Function
|
|
|
40 |
|
|
|
41 |
Sub Remove_View_Settings ( NNuser_id )
|
| 3947 |
dpurdie |
42 |
objEH.TryORA ( OraSession )
|
|
|
43 |
On Error Resume Next
|
|
|
44 |
OraDatabase.ExecuteSQL " DELETE FROM view_settings vis WHERE vis.user_id = "& NNuser_id &" AND vis.view_id IN (SELECT vi.view_id FROM views vi WHERE vi.owner_id = "& NNuser_id &")"
|
|
|
45 |
objEH.CatchORA ( OraSession )
|
| 17 |
rsolanki |
46 |
End Sub
|
|
|
47 |
|
|
|
48 |
Sub Insert_View_Settings ( NNuser_id, SSpersonalshow )
|
| 3947 |
dpurdie |
49 |
If SSpersonalshow <> "" Then
|
|
|
50 |
objEH.TryORA ( OraSession )
|
|
|
51 |
On Error Resume Next
|
|
|
52 |
OraDatabase.ExecuteSQL " INSERT INTO view_settings"&_
|
|
|
53 |
" SELECT TO_NUMBER('"& NNuser_id &"') AS user_id, vi.view_id FROM views vi WHERE vi.view_id IN ("& SSpersonalshow &")"
|
|
|
54 |
objEH.CatchORA ( OraSession )
|
|
|
55 |
End If
|
| 17 |
rsolanki |
56 |
End Sub
|
|
|
57 |
%>
|
|
|
58 |
<%
|
|
|
59 |
'--- Process submition ---
|
|
|
60 |
'If (QStrPar("action") <> "") Then
|
| 3947 |
dpurdie |
61 |
' All mandatory parameters FOUND
|
| 17 |
rsolanki |
62 |
' Call Remove_View_Settings ( objAccessControl.UserId )
|
|
|
63 |
' Call Insert_View_Settings ( objAccessControl.UserId, Request("FRpersonalshow") )
|
|
|
64 |
'End If
|
|
|
65 |
%>
|
|
|
66 |
<html>
|
|
|
67 |
<head>
|
|
|
68 |
<title>Deployment Manager</title>
|
|
|
69 |
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
|
|
70 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
| 29 |
jtweddle |
71 |
<link rel="stylesheet" href="scripts/deployment_manager.css" type="text/css">
|
| 17 |
rsolanki |
72 |
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
|
|
|
73 |
<link rel="stylesheet" href="images/navigation.css" type="text/css">
|
| 29 |
jtweddle |
74 |
<script language="JavaScript" src="scripts/common.js"></script>
|
| 17 |
rsolanki |
75 |
</head>
|
|
|
76 |
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
|
|
|
77 |
<!-- TIPS LAYERS -------------------------------------->
|
|
|
78 |
<div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10"> </div>
|
|
|
79 |
<!----------------------------------------------------->
|
| 3947 |
dpurdie |
80 |
<!-- HEADER ++++++++++++++++ -->
|
|
|
81 |
<!--#include file="_header.asp"-->
|
|
|
82 |
<!-- +++++++++++++++++++++++ -->
|
| 17 |
rsolanki |
83 |
<!-- BODY ---->
|
|
|
84 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
85 |
<tr>
|
|
|
86 |
<td width="1%" background="images/bg_member_dark.gif" valign="top">
|
|
|
87 |
<!-- MEMBERS MENU ---------------------------------------------->
|
|
|
88 |
<!--#include file="members_menu_def.asp"-->
|
|
|
89 |
<%Call Member_Menu( "" )%>
|
|
|
90 |
<!-- MEMBERS MENU END ------------------------------------------>
|
|
|
91 |
</td>
|
|
|
92 |
<td width="1%" valign="top" background="images/bg_member_light.gif"><a href="default.asp" class="form_txt_link"><img src="images/i_home.gif" width="13" height="12" border="0" align="absmiddle">Exit</a></td>
|
|
|
93 |
<td rowspan="2" valign="top" width="1%" background="images/bg_member_light.gif" nowrap>
|
|
|
94 |
<!------------------------------------------->
|
|
|
95 |
<br>
|
|
|
96 |
<!-------------------------------------------------------->
|
|
|
97 |
</td>
|
|
|
98 |
<td rowspan="2" valign="bottom" width="100%" background="images/bg_member_light.gif" align="right"><img src="images/bg_img_view.gif" width="249" height="144" vspace="10" hspace="10"></td>
|
|
|
99 |
</tr>
|
|
|
100 |
<tr>
|
|
|
101 |
<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>
|
|
|
102 |
<td background="images/bg_member_light.gif" valign="top"><img src="images/h_trsp_dot.gif" width="100" height="400"></td>
|
|
|
103 |
</tr>
|
|
|
104 |
</table>
|
|
|
105 |
<!-- FOOTER -->
|
|
|
106 |
<!--#include file="_footer.asp"-->
|
|
|
107 |
</body>
|
|
|
108 |
</html>
|
|
|
109 |
<%
|
|
|
110 |
Call Destroy_All_Objects
|
|
|
111 |
%>
|