| 5357 |
dpurdie |
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
|
|
2 |
<%
|
|
|
3 |
Option explicit
|
|
|
4 |
Response.Expires = 0 ' always load the page, dont store
|
|
|
5 |
%>
|
|
|
6 |
<%
|
|
|
7 |
'=====================================================
|
|
|
8 |
' Edit Public View
|
|
|
9 |
'=====================================================
|
|
|
10 |
%>
|
|
|
11 |
<!--#include file="common/conf.asp"-->
|
|
|
12 |
<!--#include file="common/globals.asp"-->
|
|
|
13 |
<!--#include file="common/qstr.asp"-->
|
|
|
14 |
<!--#include file="common/common_subs.asp"-->
|
|
|
15 |
<!--#include file="common/common_dbedit.asp"-->
|
| 7286 |
dpurdie |
16 |
<!--#include file="common/_popup_window_common.asp"-->
|
| 5357 |
dpurdie |
17 |
<%
|
|
|
18 |
'------------ ACCESS CONTROL ------------------
|
|
|
19 |
%>
|
|
|
20 |
<!--#include file="_access_control_login.asp"-->
|
|
|
21 |
<!--#include file="_access_control_general.asp"-->
|
|
|
22 |
<%
|
|
|
23 |
'------------ Variable Definition -------------
|
|
|
24 |
Dim rsTemp
|
|
|
25 |
Dim parView_id
|
|
|
26 |
Dim viewdefHash ' Hash of view settings
|
|
|
27 |
Dim viewinfoHash ' Hash of view details
|
|
|
28 |
'------------ Constants Declaration -----------
|
|
|
29 |
'------------ Variable Init -------------------
|
|
|
30 |
Set viewdefHash = CreateObject("Scripting.Dictionary")
|
|
|
31 |
Set viewinfoHash = CreateObject("Scripting.Dictionary")
|
|
|
32 |
parView_id = QStrPar("FRview_id")
|
|
|
33 |
'----------------------------------------------
|
|
|
34 |
%>
|
|
|
35 |
<%
|
|
|
36 |
Function Get_All_Pkg_Names
|
| 5590 |
dpurdie |
37 |
Get_All_Pkg_Names = " SELECT pkg_id, pkg_name FROM packages WHERE pkg_id > 0 ORDER BY UPPER(pkg_name) ASC"
|
| 5357 |
dpurdie |
38 |
End Function
|
|
|
39 |
|
|
|
40 |
Sub Populate_viewdefHash ( NNview_id, HHviewdefHash )
|
|
|
41 |
Dim rsTemp, Query_String
|
|
|
42 |
Query_String = _
|
|
|
43 |
" SELECT pkg_id FROM view_def WHERE view_id = "& NNview_id
|
|
|
44 |
Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
|
|
|
45 |
While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
|
|
|
46 |
HHviewdefHash.Add CStr(rsTemp.Fields("pkg_id")), ""
|
|
|
47 |
rsTemp.MoveNext
|
|
|
48 |
WEnd
|
|
|
49 |
rsTemp.Close
|
|
|
50 |
Set rsTemp = nothing
|
|
|
51 |
End Sub
|
|
|
52 |
|
|
|
53 |
Sub Populate_viewinfoHash ( NNview_id, HHviewinfoHash )
|
|
|
54 |
Dim rsTemp, Query_String
|
|
|
55 |
Query_String = _
|
|
|
56 |
" SELECT * FROM views WHERE view_id = "& NNview_id
|
|
|
57 |
Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
|
|
|
58 |
If ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF)) Then
|
|
|
59 |
HHviewinfoHash.Add "view_name", CStr(rsTemp.Fields("view_name"))
|
|
|
60 |
End If
|
|
|
61 |
rsTemp.Close
|
|
|
62 |
Set rsTemp = nothing
|
|
|
63 |
End Sub
|
|
|
64 |
%>
|
|
|
65 |
<%
|
|
|
66 |
'------------------------- MAIN LINE ------------------------
|
|
|
67 |
'Process submition
|
|
|
68 |
If CBool(QStrPar("action")) Then
|
| 5590 |
dpurdie |
69 |
Call OpenInParentWindow ("_edit_public_view.asp?FRview_id="& parView_id &"&FRviewname="& QStrPar("FRviewname") &"&FRpkginc="& Request("FRpkginc") )
|
| 5957 |
dpurdie |
70 |
Call Destroy_All_Objects
|
| 5590 |
dpurdie |
71 |
Response.End
|
| 5357 |
dpurdie |
72 |
End If
|
|
|
73 |
|
|
|
74 |
Call Populate_viewdefHash ( parView_id, viewdefHash )
|
|
|
75 |
Call Populate_viewinfoHash ( parView_id, viewinfoHash )
|
|
|
76 |
%>
|
|
|
77 |
<html>
|
|
|
78 |
<head>
|
|
|
79 |
<title>Release Manager</title>
|
|
|
80 |
<link rel="shortcut icon" href="<%=FavIcon%>"/>
|
|
|
81 |
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
|
|
82 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
| 6579 |
dpurdie |
83 |
<link rel="stylesheet" href="images/release_manager_style.css?ver=<%=VixVerNum%>" type="text/css">
|
|
|
84 |
<link rel="stylesheet" href="images/navigation.css?ver=<%=VixVerNum%>" type="text/css">
|
|
|
85 |
<script language="JavaScript" src="images/common.js?ver=<%=VixVerNum%>"></script>
|
| 5357 |
dpurdie |
86 |
<!-- TIPS -->
|
| 6579 |
dpurdie |
87 |
<script language="JavaScript" src="images/tipster.js?ver=<%=VixVerNum%>"></script>
|
|
|
88 |
<script language="JavaScript" src="images/_help_tips.js?ver=<%=VixVerNum%>"></script>
|
| 5357 |
dpurdie |
89 |
|
|
|
90 |
</head>
|
|
|
91 |
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="document.editview.FRviewname.focus()">
|
| 5590 |
dpurdie |
92 |
<form class="form_tight" name="editview" method="post" action="<%=scriptName%>?done=done<%=QSTR_FullQuery%>" onSubmit="return check();">
|
|
|
93 |
<table width="100%" border="0" cellspacing="0" cellpadding="2">
|
| 5357 |
dpurdie |
94 |
<tr>
|
|
|
95 |
<td valign="top" nowrap colspan="3" class="wform_ttl">
|
|
|
96 |
<table width="100%" border="0" cellspacing="1" cellpadding="2">
|
|
|
97 |
<tr>
|
|
|
98 |
<td colspan="2" width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">
|
|
|
99 |
View Name</td>
|
|
|
100 |
</tr>
|
|
|
101 |
<tr>
|
|
|
102 |
<td colspan="2" width="1%" nowrap background="images/bg_form_lightgray.gif">
|
| 5590 |
dpurdie |
103 |
<input type="text" name="FRviewname" maxlength="30" class="form_item" value="<%=viewinfoHash.Item("view_name")%>"></td>
|
| 5357 |
dpurdie |
104 |
</tr>
|
|
|
105 |
<tr>
|
|
|
106 |
<td width="1%" nowrap class="form_group" valign="bottom"></td>
|
|
|
107 |
<td nowrap width="100%" align="right" class="form_step"></td>
|
|
|
108 |
</tr>
|
|
|
109 |
<tr>
|
|
|
110 |
<td colspan="2" width="1%" nowrap class="form_field">
|
| 5590 |
dpurdie |
111 |
<div style="min-height:300px;max-height:500px;overflow:auto;">
|
| 5357 |
dpurdie |
112 |
<table width="100%" border="0" cellspacing="1" cellpadding="2">
|
|
|
113 |
<tr>
|
|
|
114 |
<td background="images/bg_form_lightbluedark.gif" nowrap width="1%" class="form_field"> </td>
|
|
|
115 |
<td background="images/bg_form_lightbluedark.gif" nowrap width="100%" class="form_field">Package Name</td>
|
|
|
116 |
</tr>
|
|
|
117 |
<%Set rsTemp = OraDatabase.DbCreateDynaset( Get_All_Pkg_Names, cint(0))
|
|
|
118 |
While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))%>
|
|
|
119 |
<tr>
|
|
|
120 |
<td background="images/bg_form_lightgray.gif" nowrap class="form_item">
|
|
|
121 |
<input type="checkbox" name="FRpkginc" value="<%=rsTemp.Fields("pkg_id")%>" <%If viewdefHash.Exists (Cstr(rsTemp.Fields("pkg_id"))) Then Response.write "checked"%>>
|
|
|
122 |
</td>
|
|
|
123 |
<td background="images/bg_form_lightgray.gif" class="form_item"><%=rsTemp.Fields("pkg_name")%></td>
|
|
|
124 |
</tr>
|
|
|
125 |
<%rsTemp.MoveNext
|
|
|
126 |
WEnd%>
|
|
|
127 |
<%If rsTemp.RecordCount < 1 Then%>
|
|
|
128 |
<tr>
|
|
|
129 |
<td background="images/bg_form_lightgray.gif" nowrap class="form_item"></td>
|
|
|
130 |
<td background="images/bg_form_lightgray.gif" class="err_alert">NO PACKAGES FOUND!</td>
|
|
|
131 |
</tr>
|
|
|
132 |
<%End If%>
|
|
|
133 |
</table>
|
| 5590 |
dpurdie |
134 |
</div>
|
| 5357 |
dpurdie |
135 |
</td>
|
|
|
136 |
</tr>
|
|
|
137 |
</table>
|
|
|
138 |
</td>
|
|
|
139 |
</tr>
|
|
|
140 |
<tr>
|
| 5590 |
dpurdie |
141 |
<td align="right">
|
|
|
142 |
<input type="hidden" name="action" value="true">
|
|
|
143 |
<input type="hidden" name="FRview_id" value="<%=parView_id%>">
|
|
|
144 |
<input type="submit" name="btn" value="Update" class="form_btn_comp" onClick="clickedButton=true;MM_validateForm('FRviewname','View Name','R');return document.MM_returnValue">
|
|
|
145 |
<input type="reset" name="btn" value="Cancel" class="form_btn_comp" onclick="parent.closeIFrame();">
|
|
|
146 |
</td>
|
| 5357 |
dpurdie |
147 |
</tr>
|
|
|
148 |
</table>
|
|
|
149 |
</form>
|
|
|
150 |
</body>
|
|
|
151 |
</html>
|
|
|
152 |
<%
|
|
|
153 |
Call Destroy_All_Objects
|
|
|
154 |
%>
|