| Line 1... |
Line 1... |
| 1 |
<%@LANGUAGE="VBSCRIPT"%>
|
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
| 2 |
<%
|
2 |
<%
|
| 3 |
'=====================================================
|
3 |
'=====================================================
|
| 4 |
'| |
|
4 |
'| |
|
| 5 |
'| FIXED ISSUES |
|
5 |
'| FIXED ISSUES |
|
| 6 |
'| |
|
6 |
'| |
|
| 7 |
'=====================================================
|
7 |
'=====================================================
|
| 8 |
%>
|
8 |
%>
|
| 9 |
<%
|
9 |
<%
|
| 10 |
Option explicit
|
10 |
Option explicit
|
| 11 |
' Good idea to set when using redirect
|
11 |
' Good idea to set when using redirect
|
| 12 |
Response.Expires = 0 ' always load the page, dont store
|
12 |
Response.Expires = 0 ' always load the page, dont store
|
| 13 |
%>
|
13 |
%>
|
| 14 |
<!--#include file="common/conf.asp"-->
|
14 |
<!--#include file="common/conf.asp"-->
|
| 15 |
<!--#include file="common/globals.asp"-->
|
15 |
<!--#include file="common/globals.asp"-->
|
| 16 |
<!--#include file="common/formating.asp"-->
|
16 |
<!--#include file="common/formating.asp"-->
|
| 17 |
<!--#include file="common/qstr.asp"-->
|
17 |
<!--#include file="common/qstr.asp"-->
|
| Line 32... |
Line 32... |
| 32 |
'------------ Constants Declaration -----------
|
32 |
'------------ Constants Declaration -----------
|
| 33 |
'------------ Variable Init -------------------
|
33 |
'------------ Variable Init -------------------
|
| 34 |
'----------------------------------------------
|
34 |
'----------------------------------------------
|
| 35 |
'-----------------------------------------------------------------------------------------------------------------
|
35 |
'-----------------------------------------------------------------------------------------------------------------
|
| 36 |
Sub fillCommentsWithDifferences ( parPv_id )
|
36 |
Sub fillCommentsWithDifferences ( parPv_id )
|
| 37 |
DIM outputString
|
37 |
DIM outputString
|
| 38 |
DIM rsTemp
|
38 |
DIM rsTemp
|
| 39 |
|
- |
|
| 40 |
|
- |
|
| 41 |
|
- |
|
| 42 |
'If pkgInfoHash.Item("base_view_id") = cstr(enumBASE_VIEW_PRODUCTS) Then
|
- |
|
| 43 |
|
- |
|
| 44 |
If pkgInfoHash.Item("comments") = "" or isnull(pkgInfoHash.Item("comments")) Then
|
- |
|
| 45 |
OraDatabase.Parameters.Add "PV_ID", parPv_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
- |
|
| 46 |
|
- |
|
| 47 |
|
- |
|
| 48 |
If (pkgInfoHash.Item ("last_pv_id") = "") OR IsNull(pkgInfoHash.Item ("last_pv_id")) Then
|
- |
|
| 49 |
OraDatabase.Parameters.Add "OLD_PV_ID", 0, ORAPARM_INPUT, ORATYPE_NUMBER
|
- |
|
| 50 |
Else
|
- |
|
| 51 |
OraDatabase.Parameters.Add "OLD_PV_ID", pkgInfoHash.Item ("last_pv_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
- |
|
| 52 |
End If
|
- |
|
| 53 |
|
- |
|
| 54 |
Set rsTemp = OraDatabase.DbCreateDynaset( GetQuery ( "diff_dependencies.sql" ), cint(0))
|
- |
|
| 55 |
Dim style, icon
|
- |
|
| 56 |
While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
|
- |
|
| 57 |
|
- |
|
| 58 |
Select Case CInt(rsTemp("status"))
|
- |
|
| 59 |
Case enumDB_NUM_DIFF_UPDATED
|
- |
|
| 60 |
outputString = outputString & "[UPDATED] " & rsTemp("pkg_name") &" to "& rsTemp("pkg_version") &" ("& rsTemp("previous_version") &")"& VBNewLine
|
- |
|
| 61 |
|
- |
|
| 62 |
Case enumDB_NUM_DIFF_NEW
|
- |
|
| 63 |
outputString = outputString & "[NEW] " & rsTemp("pkg_name") &" "& rsTemp("pkg_version") & VBNewLine
|
- |
|
| 64 |
|
- |
|
| 65 |
Case enumDB_NUM_DIFF_REMOVED
|
- |
|
| 66 |
outputString = outputString & "[REMOVED] " & rsTemp("pkg_name") &" "& rsTemp("pkg_version") & VBNewLine
|
- |
|
| 67 |
|
- |
|
| 68 |
End Select
|
- |
|
| 69 |
|
- |
|
| 70 |
rsTemp.MoveNext
|
- |
|
| 71 |
WEnd
|
- |
|
| 72 |
|
- |
|
| 73 |
' An error occured when outputString was longer than 4000 bytes, so this truncates it and adds "..."
|
- |
|
| 74 |
If LenB(outputString) > 4000 Then
|
- |
|
| 75 |
outputString = Left(outputString, 3995)
|
- |
|
| 76 |
outputString = Left(outputString, InStrRev(outputString, vbNewLine)) & vbNewLine & "..."
|
- |
|
| 77 |
End If
|
- |
|
| 78 |
|
- |
|
| 79 |
OraDatabase.ExecuteSQL _
|
- |
|
| 80 |
" UPDATE PACKAGE_VERSIONS"&_
|
- |
|
| 81 |
" SET COMMENTS = '"& outputString &"'"&_
|
- |
|
| 82 |
" WHERE PV_ID = :PV_ID "
|
- |
|
| 83 |
pkgInfoHash.Item("comments") = outputString
|
- |
|
| 84 |
|
- |
|
| 85 |
rsTemp.Close
|
- |
|
| 86 |
Set rsTemp = nothing
|
- |
|
| 87 |
|
- |
|
| 88 |
OraDatabase.Parameters.Remove "PV_ID"
|
- |
|
| 89 |
OraDatabase.Parameters.Remove "OLD_PV_ID"
|
- |
|
| 90 |
End If
|
- |
|
| 91 |
'END IF
|
- |
|
| 92 |
|
- |
|
| 93 |
|
39 |
|
| - |
|
40 |
If pkgInfoHash.Item("comments") = "" or isnull(pkgInfoHash.Item("comments")) Then
|
| - |
|
41 |
|
| - |
|
42 |
OraDatabase.Parameters.Add "PV_ID", parPv_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
| - |
|
43 |
|
| - |
|
44 |
If (pkgInfoHash.Item ("last_pv_id") = "") OR IsNull(pkgInfoHash.Item ("last_pv_id")) Then
|
| - |
|
45 |
OraDatabase.Parameters.Add "OLD_PV_ID", 0, ORAPARM_INPUT, ORATYPE_NUMBER
|
| - |
|
46 |
Else
|
| - |
|
47 |
OraDatabase.Parameters.Add "OLD_PV_ID", pkgInfoHash.Item ("last_pv_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
| - |
|
48 |
End If
|
| - |
|
49 |
|
| - |
|
50 |
Set rsTemp = OraDatabase.DbCreateDynaset( GetQuery ( "diff_dependencies.sql" ), cint(0))
|
| - |
|
51 |
Dim style, icon
|
| - |
|
52 |
|
| - |
|
53 |
While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
|
| - |
|
54 |
|
| - |
|
55 |
Select Case CInt(rsTemp("status"))
|
| - |
|
56 |
Case enumDB_NUM_DIFF_UPDATED
|
| - |
|
57 |
outputString = outputString & "[UPDATED] " & rsTemp("pkg_name") &" to "& rsTemp("pkg_version") &" ("& rsTemp("previous_version") &")"& VBNewLine
|
| - |
|
58 |
|
| - |
|
59 |
Case enumDB_NUM_DIFF_NEW
|
| - |
|
60 |
outputString = outputString & "[NEW] " & rsTemp("pkg_name") &" "& rsTemp("pkg_version") & VBNewLine
|
| - |
|
61 |
|
| - |
|
62 |
Case enumDB_NUM_DIFF_REMOVED
|
| - |
|
63 |
outputString = outputString & "[REMOVED] " & rsTemp("pkg_name") &" "& rsTemp("pkg_version") & VBNewLine
|
| - |
|
64 |
|
| - |
|
65 |
End Select
|
| - |
|
66 |
|
| - |
|
67 |
rsTemp.MoveNext
|
| - |
|
68 |
WEnd
|
| - |
|
69 |
|
| - |
|
70 |
' An error occured when outputString was longer than 4000 bytes, so this truncates it and adds "..."
|
| - |
|
71 |
If LenB(outputString) > 4000 Then
|
| - |
|
72 |
outputString = Left(outputString, 3995)
|
| - |
|
73 |
outputString = Left(outputString, InStrRev(outputString, vbNewLine)) & vbNewLine & "..."
|
| - |
|
74 |
End If
|
| - |
|
75 |
|
| - |
|
76 |
objEH.TryORA ( OraSession )
|
| - |
|
77 |
On Error Resume Next
|
| - |
|
78 |
|
| - |
|
79 |
OraDatabase.ExecuteSQL _
|
| - |
|
80 |
" UPDATE PACKAGE_VERSIONS"&_
|
| - |
|
81 |
" SET COMMENTS = '"& outputString &"'"&_
|
| - |
|
82 |
" WHERE PV_ID = :PV_ID "
|
| - |
|
83 |
|
| - |
|
84 |
objEH.CatchORA ( OraSession )
|
| - |
|
85 |
|
| - |
|
86 |
pkgInfoHash.Item("comments") = outputString
|
| - |
|
87 |
|
| - |
|
88 |
rsTemp.Close
|
| - |
|
89 |
Set rsTemp = nothing
|
| 94 |
|
90 |
|
| - |
|
91 |
OraDatabase.Parameters.Remove "PV_ID"
|
| - |
|
92 |
OraDatabase.Parameters.Remove "OLD_PV_ID"
|
| - |
|
93 |
End If
|
| 95 |
End Sub
|
94 |
End Sub
|
| 96 |
'-----------------------------------------------------------------------------------------------------------------
|
95 |
'-----------------------------------------------------------------------------------------------------------------
|
| 97 |
|
96 |
|
| 98 |
|
97 |
|
| 99 |
'------------------ MAIN LINE --------------------
|
98 |
'------------------ MAIN LINE --------------------
|
| Line 118... |
Line 117... |
| 118 |
<!--#include file="_menu_def.asp"-->
|
117 |
<!--#include file="_menu_def.asp"-->
|
| 119 |
<script language="JavaScript1.2" src="images/popup_menu.js"></script>
|
118 |
<script language="JavaScript1.2" src="images/popup_menu.js"></script>
|
| 120 |
</head>
|
119 |
</head>
|
| 121 |
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
|
120 |
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
|
| 122 |
<!-- MENU LAYERS -------------------------------------->
|
121 |
<!-- MENU LAYERS -------------------------------------->
|
| 123 |
<div id="popmenu" class="menuskin" onMouseover="clearhidemenu();highlightmenu(event,'on')" onMouseout="highlightmenu(event,'off');dynamichide(event)">
|
122 |
<div id="popmenu" class="menuskin" onMouseover="clearhidemenu();highlightmenu(event,'on')" onMouseout="highlightmenu(event,'off');dynamichide(event)">
|
| 124 |
<!----------------------------------------------------->
|
123 |
<!----------------------------------------------------->
|
| 125 |
</div>
|
124 |
</div>
|
| 126 |
<!-- TIPS LAYERS -------------------------------------->
|
125 |
<!-- TIPS LAYERS -------------------------------------->
|
| 127 |
<div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10"> </div>
|
126 |
<div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10"> </div>
|
| 128 |
<!----------------------------------------------------->
|
127 |
<!----------------------------------------------------->
|
| 129 |
<!-- HEADER -->
|
128 |
<!-- HEADER -->
|
| 130 |
<!--#include file="_header.asp"-->
|
129 |
<!--#include file="_header.asp"-->
|
| 131 |
<!-- BODY ---->
|
130 |
<!-- BODY ---->
|
| 132 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
131 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
| 133 |
<tr>
|
132 |
<tr>
|
| 134 |
<td valign="top" width="1" background="images/bg_bage.gif">
|
133 |
<td valign="top" width="1" background="images/bg_bage.gif">
|
| 135 |
<!-- LEFT -->
|
134 |
<!-- LEFT -->
|
| 136 |
<!--#include file="_environment.asp"-->
|
135 |
<!--#include file="_environment.asp"-->
|
| 137 |
</td>
|
136 |
</td>
|
| 138 |
<td width="1" bgcolor="#999999"><img src="images/h_trsp_dot.gif" width="1" height="1"></td>
|
137 |
<td width="1" bgcolor="#999999"><img src="images/h_trsp_dot.gif" width="1" height="1"></td>
|
| 139 |
<td valign="top" width="100%">
|
138 |
<td valign="top" width="100%">
|
| 140 |
<!-- MIDDLE -->
|
139 |
<!-- MIDDLE -->
|
| 141 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
140 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
| 142 |
<tr>
|
141 |
<tr>
|
| 143 |
<td width="1%" background="images/bg_action_norm.gif"><IMG height=35 src="images/spacer.gif" width=15></td>
|
142 |
<td width="1%" background="images/bg_action_norm.gif"><IMG height=35 src="images/spacer.gif" width=15></td>
|
| 144 |
<td width="100%" background="images/bg_action_norm.gif"><!--#include file="_pkg_action_buttons.asp"--></td>
|
143 |
<td width="100%" background="images/bg_action_norm.gif"><!--#include file="_pkg_action_buttons.asp"--></td>
|
| 145 |
<td width="1%" background="images/bg_action_norm.gif"><IMG height=1 src="images/spacer.gif" width=15></td>
|
144 |
<td width="1%" background="images/bg_action_norm.gif"><IMG height=1 src="images/spacer.gif" width=15></td>
|
| 146 |
</tr>
|
145 |
</tr>
|
| 147 |
<!-- PACKAGE PROPERTIES ---------------------------- -->
|
146 |
<!-- PACKAGE PROPERTIES ---------------------------- -->
|
| 148 |
<%Call RenderPackageProperties ()%>
|
147 |
<%Call RenderPackageProperties ()%>
|
| 149 |
<tr>
|
148 |
<tr>
|
| 150 |
<td background="images/bg_lght_gray.gif"> </td>
|
149 |
<td background="images/bg_lght_gray.gif"> </td>
|
| 151 |
<td valign="bottom" background="images/bg_lght_gray.gif">
|
150 |
<td valign="bottom" background="images/bg_lght_gray.gif">
|
| 152 |
<table width="100" border="0" cellspacing="0" cellpadding="0">
|
151 |
<table width="100" border="0" cellspacing="0" cellpadding="0">
|
| 153 |
<tr>
|
152 |
<tr>
|
| 154 |
<td><IMG height=1 src="images/spacer.gif" width=50></td>
|
153 |
<td><IMG height=1 src="images/spacer.gif" width=50></td>
|
| 155 |
<td>
|
154 |
<td>
|
| 156 |
<!-- TABS ------------------------------------->
|
155 |
<!-- TABS ------------------------------------->
|
| 157 |
<%Call Generate_Tab_Menu ( TABarray1, "Release Notes", "orange" )%>
|
156 |
<%Call Generate_Tab_Menu ( TABarray1, "Release Notes", "orange" )%>
|
| 158 |
</td>
|
157 |
</td>
|
| 159 |
</tr>
|
158 |
</tr>
|
| 160 |
</table>
|
159 |
</table>
|
| 161 |
</td>
|
160 |
</td>
|
| 162 |
<td background="images/bg_lght_gray.gif"> </td>
|
161 |
<td background="images/bg_lght_gray.gif"> </td>
|
| 163 |
</tr>
|
162 |
</tr>
|
| 164 |
<tr>
|
163 |
<tr>
|
| 165 |
<td background="images/lbox_bg_orange.gif"><IMG height=35 src="images/spacer.gif" width=1></td>
|
164 |
<td background="images/lbox_bg_orange.gif"><IMG height=35 src="images/spacer.gif" width=1></td>
|
| 166 |
<td background="images/lbox_bg_orange.gif">
|
165 |
<td background="images/lbox_bg_orange.gif">
|
| 167 |
<!-- TAB ACTION BUTTONS ------------------------------------->
|
166 |
<!-- TAB ACTION BUTTONS ------------------------------------->
|
| 168 |
<%Call Action_Buttons ( "Release Notes" )%>
|
167 |
<%Call Action_Buttons ( "Release Notes" )%>
|
| 169 |
</td>
|
168 |
</td>
|
| 170 |
<td background="images/lbox_bg_orange.gif"> </td>
|
169 |
<td background="images/lbox_bg_orange.gif"> </td>
|
| 171 |
</tr>
|
170 |
</tr>
|
| 172 |
<tr>
|
171 |
<tr>
|
| 173 |
<td></td>
|
172 |
<td></td>
|
| 174 |
<td valign="top">
|
173 |
<td valign="top">
|
| 175 |
<!-- DETAILS ------------------------------------------------->
|
174 |
<!-- DETAILS ------------------------------------------------->
|
| 176 |
<br>
|
175 |
<br>
|
| 177 |
<%
|
176 |
<%
|
| 178 |
If (pkgInfoHash.Item ("dlocked") = "Y") Then
|
177 |
If (pkgInfoHash.Item ("dlocked") = "Y") Then
|
| 179 |
If (InStr(pkgInfoHash.Item ("release_notes_info"),"MSG:") > 0) Then
|
178 |
If (InStr(pkgInfoHash.Item ("release_notes_info"),"MSG:") > 0) Then
|
| 180 |
Select Case CStr( pkgInfoHash.Item ("release_notes_info") )
|
179 |
Select Case CStr( pkgInfoHash.Item ("release_notes_info") )
|
| 181 |
Case enum_RELEASE_NOTES_GENERATING
|
180 |
Case enum_RELEASE_NOTES_GENERATING
|
| 182 |
Call DisplayInfo ( "GENERATING_RELEASE_NOTES", "400" )
|
181 |
Call DisplayInfo ( "GENERATING_RELEASE_NOTES", "400" )
|
| 183 |
Case enum_RELEASE_NOTES_NOT_FOUND_IN_ARCHIVE
|
182 |
Case enum_RELEASE_NOTES_NOT_FOUND_IN_ARCHIVE
|
| 184 |
Call DisplayInfo ( "NOT_FOUND_IN_PKG_ARCHIVE_RELEASE_NOTES", "400" )
|
183 |
Call DisplayInfo ( "NOT_FOUND_IN_PKG_ARCHIVE_RELEASE_NOTES", "400" )
|
| 185 |
Case enum_RELEASE_NOTES_FAILED
|
184 |
Case enum_RELEASE_NOTES_FAILED
|
| 186 |
Call DisplayInfo ( "FAILED_GENERATING_RELEASE_NOTES", "400" )
|
185 |
Call DisplayInfo ( "FAILED_GENERATING_RELEASE_NOTES", "400" )
|
| 187 |
Case enum_RELEASE_NOTES_NO_PREVIOUS_VERSION
|
186 |
Case enum_RELEASE_NOTES_NO_PREVIOUS_VERSION
|
| 188 |
Call DisplayInfo ( "NO_PREVIOUS_VERSION_RELEASE_NOTES", "400" )
|
187 |
Call DisplayInfo ( "NO_PREVIOUS_VERSION_RELEASE_NOTES", "400" )
|
| 189 |
End Select
|
188 |
End Select
|
| 190 |
|
189 |
|
| 191 |
ElseIf IsNull(pkgInfoHash.Item ("release_notes_info")) Then
|
190 |
ElseIf IsNull(pkgInfoHash.Item ("release_notes_info")) Then
|
| 192 |
Call DisplayInfo ( "GENERATE_RELEASE_NOTES", "400" )
|
191 |
Call DisplayInfo ( "GENERATE_RELEASE_NOTES", "400" )
|
| 193 |
|
192 |
|
| 194 |
End If
|
193 |
End If
|
| 195 |
Else
|
194 |
Else
|
| 196 |
Call fillCommentsWithDifferences ( parPv_id )
|
195 |
Call fillCommentsWithDifferences ( parPv_id )
|
| 197 |
End If
|
196 |
End If
|
| 198 |
|
197 |
|
| 199 |
%>
|
198 |
%>
|
| 200 |
|
199 |
|
| 201 |
<!--#include file="_release_notes.asp"-->
|
200 |
<!--#include file="_release_notes.asp"-->
|
| 202 |
|
201 |
|
| 203 |
<!-- END DETAILS ------------------------------------------------->
|
202 |
<!-- END DETAILS ------------------------------------------------->
|
| 204 |
</td>
|
203 |
</td>
|
| 205 |
<td> </td>
|
204 |
<td> </td>
|
| 206 |
</tr>
|
205 |
</tr>
|
| 207 |
</table>
|
206 |
</table>
|
| 208 |
<!-- END MIDDLE -------->
|
207 |
<!-- END MIDDLE -------->
|
| 209 |
</td>
|
208 |
</td>
|
| 210 |
</tr>
|
209 |
</tr>
|
| 211 |
</table>
|
210 |
</table>
|
| 212 |
<!-- FOOTER -->
|
211 |
<!-- FOOTER -->
|
| 213 |
<!--#include file="_footer.asp"-->
|
212 |
<!--#include file="_footer.asp"-->
|
| 214 |
</body>
|
213 |
</body>
|
| 215 |
</html>
|
214 |
</html>
|