| 119 |
ghuddy |
1 |
<%
|
|
|
2 |
'===================================================================
|
| 141 |
ghuddy |
3 |
' Package Common
|
| 119 |
ghuddy |
4 |
'===================================================================
|
|
|
5 |
%>
|
|
|
6 |
<!--#include file="../class/classTemplateManager.asp"-->
|
|
|
7 |
<!--#include file="../class/classTabControl.asp"-->
|
|
|
8 |
<!--#include file="../class/classActionButtonControl.asp"-->
|
| 147 |
ghuddy |
9 |
<!--#include file="daemon_instructions.asp"-->
|
| 119 |
ghuddy |
10 |
<%
|
|
|
11 |
'------------ VARIABLE DEFINITION -------------
|
|
|
12 |
Dim parPv_id
|
| 141 |
ghuddy |
13 |
Dim nEnvTab ' remember environment tab
|
| 119 |
ghuddy |
14 |
Dim objBtnControl
|
|
|
15 |
Dim aTabBtnsDef
|
|
|
16 |
'------------ CONSTANTS DECLARATION -----------
|
|
|
17 |
'------------ VARIABLE INIT -------------------
|
|
|
18 |
parPv_id = Request("pv_id")
|
|
|
19 |
Set objBtnControl = New ActionButtonControl
|
|
|
20 |
'------------ CONDITIONS ----------------------
|
|
|
21 |
'----------------------------------------------
|
|
|
22 |
%>
|
|
|
23 |
<%
|
|
|
24 |
'------------ RUN BEFORE PAGE RENDER ----------
|
|
|
25 |
|
|
|
26 |
'--- Make sure rtag_id is always present
|
|
|
27 |
If (Request("rtag_id") = "") AND (Request("pv_id") = "") Then Response.Redirect("index.asp")
|
|
|
28 |
|
|
|
29 |
|
|
|
30 |
'--- Rebuild Environment
|
|
|
31 |
If (Request("rtag_id") <> "") Then
|
| 141 |
ghuddy |
32 |
Call Rebuild_Environment ( parRtag_id )
|
| 119 |
ghuddy |
33 |
End If
|
|
|
34 |
|
|
|
35 |
'--- Persist following parameters between postbacks
|
|
|
36 |
objPMod.PersistInQryString ( aPersistList(enumPAR_RTAG_ID) )
|
|
|
37 |
objPMod.PersistInQryString ( aPersistList(enumPAR_PV_ID) )
|
|
|
38 |
|
|
|
39 |
|
|
|
40 |
'--- Get Environment (lefthand side menu) tab
|
|
|
41 |
nEnvTab = GetEnvTab ( Request("envtab") )
|
|
|
42 |
|
|
|
43 |
|
|
|
44 |
'--- Get Package General Information
|
|
|
45 |
Set pkgInfoHash = CreateObject("Scripting.Dictionary")
|
|
|
46 |
If Request("pv_id") <> "" Then
|
| 141 |
ghuddy |
47 |
Call Get_Pkg_Info ( Request("pv_id"), Request("rtag_id") )
|
| 119 |
ghuddy |
48 |
|
| 141 |
ghuddy |
49 |
' Make sure pv_id exists as it may be removed
|
|
|
50 |
If pkgInfoHash.Item("pv_id") = "" Then Response.Redirect ("dependencies.asp?rtag_id="& Request("rtag_id"))
|
| 119 |
ghuddy |
51 |
|
|
|
52 |
Else
|
| 141 |
ghuddy |
53 |
If (ScriptName <> "dependencies.asp") AND (ScriptName <> "find.asp")Then Response.Redirect ("dependencies.asp?rtag_id="& Request("rtag_id"))
|
| 119 |
ghuddy |
54 |
End If
|
|
|
55 |
|
|
|
56 |
|
|
|
57 |
'----------------------------------------------
|
|
|
58 |
%>
|
|
|
59 |
<%
|
|
|
60 |
'-----------------------------------------------------------------------------------------------------------------------------
|
|
|
61 |
Sub RenderPackageProperties ()
|
|
|
62 |
%>
|
|
|
63 |
|
| 141 |
ghuddy |
64 |
<tr>
|
|
|
65 |
<td background="images/bg_lght_gray.gif"><IMG height="45" src="images/spacer.gif" width=1></td>
|
| 119 |
ghuddy |
66 |
|
| 141 |
ghuddy |
67 |
<td valign="bottom" background="images/bg_lght_gray.gif" nowrap class="body_txt">
|
|
|
68 |
<%
|
|
|
69 |
If pkgInfoHash.Item ("is_patch") = "Y" Then
|
|
|
70 |
'--- PATCH ---
|
|
|
71 |
Response.write "<br><a href='patches.asp?pv_id="& pkgInfoHash.Item ("patch_parent_id") &"&rtag_id="& Request("rtag_id") &"' class='txt_linked'><img src='icons/i_caretone.gif' hspace='2' border='0' align='absmiddle'>Back To "& pkgInfoHash.Item ("pkg_name") &"</a><br><br>"
|
| 119 |
ghuddy |
72 |
|
| 141 |
ghuddy |
73 |
If pkgInfoHash.Item ("is_obsolete") = "Y" Then
|
|
|
74 |
Dim rsTemp
|
|
|
75 |
Set rsTemp = OraDatabase.DbCreateDynaset( "select patch_obsoleted_by from package_patches where patch_id ="&pkgInfoHash.Item ("pv_id"), cint(0))
|
| 119 |
ghuddy |
76 |
|
| 141 |
ghuddy |
77 |
If rsTemp("patch_obsoleted_by") <> "" Then
|
| 119 |
ghuddy |
78 |
|
| 141 |
ghuddy |
79 |
Set rsTemp = OraDatabase.DbCreateDynaset( "select pkg_version from package_versions where pv_id ="&rsTemp("patch_obsoleted_by"), cint(0))
|
|
|
80 |
Call Messenger ( "<SPAN class='err_alert'><b>Patch Is Obsolete!</b></SPAN><br>"& NewLine_To_BR( "<b>Obsoleted by patch "& rsTemp("pkg_version") & ". </b> " ) & NewLine_To_BR( pkgInfoHash.Item ("obsolete_comments") ), 3, "100%" )
|
| 119 |
ghuddy |
81 |
|
| 141 |
ghuddy |
82 |
rsTemp.Close()
|
|
|
83 |
Set rsTemp = nothing
|
|
|
84 |
Else
|
|
|
85 |
Call Messenger ( "<SPAN class='err_alert'><b>Patch Is Obsolete!</b></SPAN><br>"& NewLine_To_BR( pkgInfoHash.Item ("obsolete_comments") ), 3, "100%" )
|
|
|
86 |
End If
|
|
|
87 |
Response.write enum_imgPatchObsolete
|
|
|
88 |
Else
|
|
|
89 |
Response.write enum_imgPatch
|
|
|
90 |
End If
|
| 119 |
ghuddy |
91 |
|
|
|
92 |
|
| 141 |
ghuddy |
93 |
If pkgInfoHash.Item ("dlocked") = "Y" Then
|
|
|
94 |
Response.write "<SPAN class='lbox_ttl'>"& pkgInfoHash.Item ("pkg_version") &"<img src='images/i_locked.gif' width='12' height='14' border='0' hspace='5' align='top'></SPAN>"
|
|
|
95 |
Else
|
|
|
96 |
Response.write "<SPAN class='lbox_ttl'>"& pkgInfoHash.Item ("pkg_version") &"</SPAN>"
|
|
|
97 |
End If
|
|
|
98 |
Else
|
|
|
99 |
'--- PACKAGE ---
|
|
|
100 |
If pkgInfoHash.Item ("dlocked") = "Y" Then
|
|
|
101 |
If pkgInfoHash.Item ("deprecated_state") = 6 Then
|
|
|
102 |
Response.write "<SPAN class='lbox_ttl'>"& pkgInfoHash.Item ("pkg_name") &" "& pkgInfoHash.Item ("pkg_version") &"<img src='images/i_locked.gif' width='12' height='14' border='0' hspace='5' align='top'>"&enum_imgDeprecated&"</SPAN>"
|
|
|
103 |
ElseIf pkgInfoHash.Item ("product_state") = 4 Then
|
|
|
104 |
Response.write "<SPAN class='lbox_ttl'>"& pkgInfoHash.Item ("pkg_name") &" "& pkgInfoHash.Item ("pkg_version") &"<img src='images/i_locked.gif' width='12' height='14' border='0' hspace='5' align='top'>"&enum_imgProductRejected&"</SPAN>"
|
|
|
105 |
Else
|
|
|
106 |
Response.write "<SPAN class='lbox_ttl'>"& pkgInfoHash.Item ("pkg_name") &" "& pkgInfoHash.Item ("pkg_version") &"<img src='images/i_locked.gif' width='12' height='14' border='0' hspace='5' align='top'></SPAN>"
|
|
|
107 |
End If
|
|
|
108 |
Else
|
|
|
109 |
Response.write "<SPAN class='lbox_ttl'>"& pkgInfoHash.Item ("pkg_name") &" "& pkgInfoHash.Item ("pkg_version") &"</SPAN>"
|
|
|
110 |
End If
|
|
|
111 |
End If
|
|
|
112 |
%>
|
|
|
113 |
<br><br>
|
|
|
114 |
</td>
|
| 119 |
ghuddy |
115 |
|
| 141 |
ghuddy |
116 |
<td background="images/bg_lght_gray.gif"> </td>
|
|
|
117 |
</tr>
|
|
|
118 |
<tr>
|
|
|
119 |
<td background="images/bg_lght_gray.gif"></td>
|
| 147 |
ghuddy |
120 |
<td background="images/bg_lght_gray.gif" style=color:Red>
|
|
|
121 |
<%=GetOpCodeListForRtagIdAndPvId( "NOTE: '", Request("rtag_id"), pkgInfoHash.Item("pv_id"), "' has been requested" )%>
|
|
|
122 |
<td>
|
|
|
123 |
</tr>
|
| 119 |
ghuddy |
124 |
<%
|
|
|
125 |
End Sub
|
|
|
126 |
|
|
|
127 |
'-----------------------------------------------------------------------------------------------------------------------------
|
|
|
128 |
%>
|