| 119 |
ghuddy |
1 |
<%
|
|
|
2 |
'=====================================================
|
|
|
3 |
' NEW VERSION
|
|
|
4 |
' PAGE
|
|
|
5 |
'=====================================================
|
|
|
6 |
%>
|
|
|
7 |
<!--#include file="_tabs.asp"-->
|
|
|
8 |
<%
|
|
|
9 |
'------------ Variable Definition -------------
|
|
|
10 |
Dim parPv_id
|
|
|
11 |
Dim rsLocRel
|
|
|
12 |
Dim parPage_title
|
|
|
13 |
Dim objPkgInfo
|
|
|
14 |
'------------ Constants Declaration -----------
|
|
|
15 |
'------------ Variable Init -------------------
|
|
|
16 |
parPv_id = QStrPar("pv_id")
|
|
|
17 |
parPage_title = "NEW VERSION"
|
|
|
18 |
Set objPkgInfo = CreateObject("Scripting.Dictionary")
|
|
|
19 |
'----------------------------------------------
|
|
|
20 |
%>
|
|
|
21 |
<%
|
|
|
22 |
'-----------------------------------------------------------------------------------------------------------------------------
|
|
|
23 |
Sub GetPackageInfo( nPvId, outPkgInfo )
|
|
|
24 |
Dim rsTemp, Query_String
|
|
|
25 |
If IsEmpty(nPvId) Then Exit Sub
|
|
|
26 |
|
|
|
27 |
Query_String = _
|
|
|
28 |
" SELECT pv.pv_id, pkg.pkg_id, pkg.pkg_name, pv.pkg_version, pv.v_ext"&_
|
|
|
29 |
" FROM packages pkg, package_versions pv"&_
|
|
|
30 |
" WHERE pkg.pkg_id = pv.pkg_id AND pv.pv_id ="& nPvId
|
|
|
31 |
|
|
|
32 |
Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
|
|
|
33 |
|
|
|
34 |
If ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF)) Then
|
|
|
35 |
outPkgInfo.Item("pv_id") = rsTemp.Fields("pv_id")
|
|
|
36 |
outPkgInfo.Item("pkg_id") = rsTemp.Fields("pkg_id")
|
|
|
37 |
outPkgInfo.Item("pkg_name") = rsTemp.Fields("pkg_name")
|
|
|
38 |
outPkgInfo.Item("pkg_version") = rsTemp.Fields("pkg_version")
|
|
|
39 |
outPkgInfo.Item("v_ext") = rsTemp.Fields("v_ext")
|
|
|
40 |
End If
|
|
|
41 |
|
|
|
42 |
rsTemp.Close
|
|
|
43 |
Set rsTemp = nothing
|
|
|
44 |
End Sub
|
|
|
45 |
'-----------------------------------------------------------------------------------------------------------------------------
|
|
|
46 |
%>
|
|
|
47 |
<%
|
|
|
48 |
'===================== MAIN LINE ============================
|
|
|
49 |
Call GetPackageInfo( parPv_id, objPkgInfo )
|
|
|
50 |
'============================================================
|
|
|
51 |
%>
|
|
|
52 |
<script language="JavaScript" type="text/JavaScript">
|
|
|
53 |
<!--
|
|
|
54 |
function MM_openBrWindow(theURL,winName,features) { //v2.0
|
|
|
55 |
window.open(theURL,winName,features);
|
|
|
56 |
}
|
|
|
57 |
//-->
|
|
|
58 |
</script>
|
|
|
59 |
|
|
|
60 |
<script>
|
|
|
61 |
function Dependency()
|
|
|
62 |
{
|
|
|
63 |
parent.window.location.href="dependencies.asp?rtag_id=<%=parRtag_id%>&pv_id=<%=parPv_id%>";
|
|
|
64 |
}
|
|
|
65 |
</script>
|
|
|
66 |
|
|
|
67 |
<table width="650" border="0" cellspacing="0" cellpadding="0">
|
|
|
68 |
<tr>
|
|
|
69 |
<td>
|
|
|
70 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
71 |
<tr>
|
|
|
72 |
<td width="1%"> </td>
|
|
|
73 |
<td align="right"><img src="images/h_trsp_dot.gif" width="30" height="30"></td>
|
|
|
74 |
<td width="1%"> </td>
|
|
|
75 |
</tr>
|
|
|
76 |
<tr>
|
|
|
77 |
<td width="1%"> </td>
|
|
|
78 |
<td>
|
|
|
79 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
80 |
<tr>
|
|
|
81 |
<td nowrap class="form_ttl"><%=parPage_title%></td>
|
|
|
82 |
<td align="right" valign="bottom">
|
|
|
83 |
<!-- TABS -->
|
|
|
84 |
|
|
|
85 |
</td>
|
|
|
86 |
</tr>
|
|
|
87 |
</table>
|
|
|
88 |
</td>
|
|
|
89 |
<td width="1%"> </td>
|
|
|
90 |
</tr>
|
|
|
91 |
<tr>
|
|
|
92 |
<td align="left" valign="top" width="1%" background="images/lbox_bg_blue.gif"><img src="images/lbox_tl_cnr_b.gif" width="13" height="13"></td>
|
|
|
93 |
<td background="images/lbox_bg_blue.gif"><!-- Heading --><img src="images/h_trsp_dot.gif" width="1" height="20"><!-- END Heading --></td>
|
|
|
94 |
<td align="right" valign="top" width="1%" background="images/lbox_bg_blue.gif"><img src="images/lbox_tr_cnr_b.gif" width="13" height="13"></td>
|
|
|
95 |
</tr>
|
|
|
96 |
<tr>
|
|
|
97 |
<td width="1%" bgcolor="#FFFFFF"><img src="images/h_trsp_dot.gif" width="10" height="100"></td>
|
|
|
98 |
<td bgcolor="#FFFFFF" valign="top">
|
|
|
99 |
<!-- Body -->
|
|
|
100 |
<table width="100%" border="0" cellspacing="1" cellpadding="2">
|
|
|
101 |
<form name="NEWversion" method="post" action="_new_version.asp">
|
|
|
102 |
<tr>
|
|
|
103 |
<td width="1%"><img src="images/h_trsp_dot.gif" width="1" height="10"></td>
|
|
|
104 |
<td width="1%" nowrap class="form_group" valign="bottom"></td>
|
|
|
105 |
<td nowrap width="100%" align="right" class="form_step"></td>
|
|
|
106 |
</tr>
|
|
|
107 |
<tr>
|
|
|
108 |
<td width="1%"> </td>
|
|
|
109 |
<td colspan="2" width="1%" nowrap class="form_field">
|
|
|
110 |
<table width="100%" border="0" cellspacing="1" cellpadding="5">
|
|
|
111 |
<tr>
|
|
|
112 |
<td background="images/bg_form_lightbluedark.gif" nowrap width="1" class="form_field">Package Name</td>
|
|
|
113 |
<td background="images/bg_form_lightgray.gif" nowrap width="100%" class="form_field"><%=objPkgInfo.Item("pkg_name")%></td>
|
|
|
114 |
</tr>
|
|
|
115 |
<tr>
|
|
|
116 |
<td background="images/bg_form_lightbluedark.gif" nowrap class="form_field"> </td>
|
|
|
117 |
<td background="images/bg_form_lightgray.gif" class="form_txt">
|
|
|
118 |
<input name="build_type" type="radio" value="M" checked onclick="Visible ('divVersionNumber','block','divVersionExt','none')"> Manual Build
|
|
|
119 |
<input name="build_type" type="radio" value="A" onclick="Visible ('divVersionNumber','none','divVersionExt','block')"> Automated Build</td>
|
|
|
120 |
</tr>
|
|
|
121 |
<tr>
|
|
|
122 |
<td background="images/bg_form_lightbluedark.gif" nowrap class="form_field">Version</td>
|
|
|
123 |
<td background="images/bg_form_lightgray.gif" class="form_item">
|
|
|
124 |
<DIV id="divVersionNumber" name="divVersionNumber">
|
|
|
125 |
<input type="text" name="FRnewver" class="form_item" size="12" value="<%=objPkgInfo.Item("pkg_version")%>"><a href="javascript:;" onClick="MM_openBrWindow('_wform_get_version.asp?hidepatches=true&rfield=NEWversion.FRnewver&pkg_id=<%=objPkgInfo.Item("pkg_id")%>&pkg_name=<%=objPkgInfo.Item("pkg_name")%>&pv_id=<%=objPkgInfo.Item("pv_id")%>','ReleaseManager','resizable=yes,width=350,height=150')"><img src="images/i_get.gif" width="16" height="16" align="absmiddle" hspace="5" border="0" alt="Get package version" title="Get package version"></a>
|
|
|
126 |
</DIV>
|
|
|
127 |
<DIV id="divVersionExt" name="divVersionExt" style="display:none;">
|
|
|
128 |
(auto-number)<input type="text" name="v_ext" class="form_item" size="5" value="<%=objPkgInfo.Item("v_ext")%>"><%=Quick_Help ( "v_ext" )%>
|
|
|
129 |
</DIV>
|
|
|
130 |
</td>
|
|
|
131 |
</tr>
|
|
|
132 |
<input type="hidden" name="OLDpv_id" value="<%=parPv_id%>">
|
|
|
133 |
<input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
|
|
|
134 |
<input type="hidden" name="page_title" value="<%=parPage_title%>">
|
|
|
135 |
<input type="hidden" name="action" value="true">
|
|
|
136 |
<tr>
|
|
|
137 |
<td nowrap><img src="images/h_trsp_dot.gif" width="120" height="1"></td>
|
|
|
138 |
<td></td>
|
|
|
139 |
</tr>
|
|
|
140 |
</table>
|
|
|
141 |
</td>
|
|
|
142 |
</tr>
|
|
|
143 |
<tr>
|
|
|
144 |
<td width="1%"> </td>
|
|
|
145 |
<td width="1%" nowrap class="form_field"><img src="images/h_trsp_dot.gif" width="1" height="1"></td>
|
|
|
146 |
<td nowrap width="100%" class="body_scol">
|
|
|
147 |
<input type="submit" name="btn" value="Submit" class="form_btn">
|
|
|
148 |
<input type="reset" name="btn" value="Cancel" class="form_btn" onClick="Dependency();">
|
|
|
149 |
<SPAN id="ProgressBar" name="ProgressBar" style="visibility:hidden;"><img src="images/i_processing.gif" width="11" height="17" align="absmiddle" hspace="3">Processing...</SPAN>
|
|
|
150 |
<br><br>
|
|
|
151 |
</td>
|
|
|
152 |
</tr>
|
|
|
153 |
</form>
|
|
|
154 |
</table>
|
|
|
155 |
<!-- END Body-->
|
|
|
156 |
</td>
|
|
|
157 |
<td width="1%" background="images/lbox_bgside_white.gif"> </td>
|
|
|
158 |
</tr>
|
|
|
159 |
<tr>
|
|
|
160 |
<td width="1%" background="images/lbox_bg_blue.gif" valign="bottom"><img src="images/lbox_bl_cnr_b.gif" width="13" height="13"></td>
|
|
|
161 |
<td background="images/lbox_bg_blue.gif"></td>
|
|
|
162 |
<td width="1%" background="images/lbox_bg_blue.gif" valign="bottom" align="right"><img src="images/lbox_br_cnr_b.gif" width="13" height="13"></td>
|
|
|
163 |
</tr>
|
|
|
164 |
</table>
|
|
|
165 |
</td>
|
|
|
166 |
</tr>
|
|
|
167 |
</table>
|