| 62 |
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 )
|
|
|
37 |
Get_Personal_Views = ReadFile( rootPath & "queries\personal_views_list.qry" )
|
|
|
38 |
Get_Personal_Views = Replace( Get_Personal_Views, "$USER_ID$", NNuser_id)
|
|
|
39 |
End Function
|
|
|
40 |
|
|
|
41 |
Sub Remove_View_Settings ( NNuser_id )
|
|
|
42 |
OraSession.BeginTrans
|
|
|
43 |
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 &")"
|
|
|
44 |
OraSession.CommitTrans
|
|
|
45 |
End Sub
|
|
|
46 |
|
|
|
47 |
Sub Insert_View_Settings ( NNuser_id, SSpersonalshow )
|
|
|
48 |
If SSpersonalshow <> "" Then
|
|
|
49 |
OraSession.BeginTrans
|
|
|
50 |
OraDatabase.ExecuteSQL " INSERT INTO view_settings"&_
|
|
|
51 |
" SELECT TO_NUMBER('"& NNuser_id &"') AS user_id, vi.view_id FROM views vi WHERE vi.view_id IN ("& SSpersonalshow &")"
|
|
|
52 |
OraSession.CommitTrans
|
|
|
53 |
End If
|
|
|
54 |
End Sub
|
|
|
55 |
%>
|
|
|
56 |
<%
|
|
|
57 |
'--- Process submition ---
|
|
|
58 |
'If (QStrPar("action") <> "") Then
|
|
|
59 |
' All mendatory parameters FOUND
|
|
|
60 |
' Call Remove_View_Settings ( objAccessControl.UserId )
|
|
|
61 |
' Call Insert_View_Settings ( objAccessControl.UserId, Request("FRpersonalshow") )
|
|
|
62 |
'End If
|
|
|
63 |
%>
|
|
|
64 |
<html>
|
|
|
65 |
<head>
|
|
|
66 |
<title>Deployment Manager</title>
|
|
|
67 |
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
|
|
68 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
|
69 |
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
|
|
|
70 |
<link rel="stylesheet" href="images/navigation.css" type="text/css">
|
|
|
71 |
<script language="JavaScript" src="images/common.js"></script>
|
|
|
72 |
</head>
|
|
|
73 |
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
|
|
|
74 |
<!-- TIPS LAYERS -------------------------------------->
|
|
|
75 |
<div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10"> </div>
|
|
|
76 |
<!----------------------------------------------------->
|
|
|
77 |
<!-- HEADER -->
|
|
|
78 |
<%If objAccessControl.UserLogedIn Then%>
|
|
|
79 |
<div id="Layer1" style="position:absolute; left:2; top:2; width:1px; height:1px; z-index:1"><a href="#"><img src="images/i_logout.gif" width="14" height="14" border="0" alt="Logout from <%=objAccessControl.UserName%> disabled" title="Logout from <%=objAccessControl.UserName%> disabled"></a></div>
|
|
|
80 |
<%End If%>
|
|
|
81 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
82 |
<tr>
|
|
|
83 |
<td width="1%" background="images/bg_lite_blue.gif"><img src="images/p_header.gif" width="552" height="45"></td>
|
|
|
84 |
<td width="100%" background="images/bg_lite_blue.gif"> </td>
|
|
|
85 |
<td width="1%" rowspan="2" valign="bottom" background="images/bg_lite_blue.gif"><a href="Default.asp"><img src="images/dm_logo.gif" alt="Home" title="Home" width="241" height="69" border="0"></a></td>
|
|
|
86 |
</tr>
|
|
|
87 |
<tr>
|
|
|
88 |
<td background="images/p_header_bottom.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
89 |
<%If objAccessControl.UserLogedIn Then%>
|
|
|
90 |
<tr>
|
|
|
91 |
<div id="Layer1" style="position:absolute; left:2; top:2; width:1px; height:1px; z-index:1"><a href="_Logout.asp"><img src="images/i_logout.gif" width="14" height="14" border="0" alt="Logout from <%=objAccessControl.UserName%>" title="Logout from <%=objAccessControl.UserName%>"></a></div>
|
|
|
92 |
<!--
|
|
|
93 |
<td width="1%"><a href="CommingSoon.asp"><img src="icons/ni_new_product.gif" title="New product has arrived." width="18" height="18" hspace="2" border="0"></a></td>
|
|
|
94 |
<td width="1"><a href="CommingSoon.asp"><img src="icons/ni_notifier.gif" title="Email notification." width="18" height="18" hspace="2" border="0"></a></td>
|
|
|
95 |
-->
|
|
|
96 |
|
|
|
97 |
<td width="1" align="right"><img src="icons/ni_bar.gif" width="16" height="24"></td>
|
|
|
98 |
<td width="100%" bgcolor="#FFFFFF"> </td>
|
|
|
99 |
</tr>
|
|
|
100 |
<%Else%>
|
|
|
101 |
<tr>
|
|
|
102 |
<td width="1" align="right"><img src="icons/ni_bar.gif" width="16" height="24"></td>
|
|
|
103 |
<td width="100%" bgcolor="#FFFFFF"> </td>
|
|
|
104 |
</tr>
|
|
|
105 |
<%End If%>
|
|
|
106 |
</table></td>
|
|
|
107 |
<td align="right" bgcolor="#FFFFFF"><%=ProgressBar()%></td>
|
|
|
108 |
</tr>
|
|
|
109 |
</table>
|
|
|
110 |
<!-- BODY ---->
|
|
|
111 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
112 |
<tr>
|
|
|
113 |
<td width="1%" background="images/bg_member_dark.gif" valign="top">
|
|
|
114 |
<!-- MEMBERS MENU ---------------------------------------------->
|
|
|
115 |
<!--#include file="members_menu_def.asp"-->
|
|
|
116 |
<%Call Member_Menu( "" )%>
|
|
|
117 |
<!-- MEMBERS MENU END ------------------------------------------>
|
|
|
118 |
</td>
|
|
|
119 |
<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>
|
|
|
120 |
<td rowspan="2" valign="top" width="1%" background="images/bg_member_light.gif" nowrap>
|
|
|
121 |
<!------------------------------------------->
|
|
|
122 |
<br>
|
|
|
123 |
<!-------------------------------------------------------->
|
|
|
124 |
</td>
|
|
|
125 |
<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>
|
|
|
126 |
</tr>
|
|
|
127 |
<tr>
|
|
|
128 |
<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>
|
|
|
129 |
<td background="images/bg_member_light.gif" valign="top"><img src="images/h_trsp_dot.gif" width="100" height="400"></td>
|
|
|
130 |
</tr>
|
|
|
131 |
</table>
|
|
|
132 |
<!-- FOOTER -->
|
|
|
133 |
<!--#include file="_footer.asp"-->
|
|
|
134 |
</body>
|
|
|
135 |
</html>
|
|
|
136 |
<%
|
|
|
137 |
Call Destroy_All_Objects
|
|
|
138 |
%>
|