| 119 |
ghuddy |
1 |
<%
|
|
|
2 |
'=====================================================
|
|
|
3 |
' VERSIONS HISTORY MAIN
|
|
|
4 |
'=====================================================
|
|
|
5 |
%>
|
|
|
6 |
<%
|
|
|
7 |
'------------ Variable Definition -------------
|
|
|
8 |
Dim parPkg_id
|
|
|
9 |
Dim parPv_id
|
|
|
10 |
Dim parOLDpv_id
|
|
|
11 |
Dim parRfile
|
|
|
12 |
Dim sPkg_Name
|
|
|
13 |
Dim sPkg_Version
|
|
|
14 |
Dim bIsPatch
|
| 5082 |
dpurdie |
15 |
Dim bCanInsertPkg
|
|
|
16 |
|
| 119 |
ghuddy |
17 |
'------------ Constants Declaration -----------
|
|
|
18 |
'------------ Variable Init -------------------
|
|
|
19 |
parPkg_id = Request ( "pkg_id" )
|
|
|
20 |
parPv_id = Request ( "pv_id" )
|
|
|
21 |
parOLDpv_id = Request ( "OLDpv_id" )
|
|
|
22 |
parRfile = Request ( "rfile" )
|
|
|
23 |
Set pkgInfoHash = CreateObject("Scripting.Dictionary")
|
| 5082 |
dpurdie |
24 |
bCanInsertPkg = FALSE
|
|
|
25 |
bIsPatch = FALSE
|
| 119 |
ghuddy |
26 |
'----------------------------------------------
|
|
|
27 |
%>
|
|
|
28 |
<%
|
|
|
29 |
'-----------------------------------------------------------------------------------------------------------------------------------
|
|
|
30 |
Function Set_Row_Style ( sLink )
|
|
|
31 |
Set_Row_Style = "onMouseOver='this.style.cursor=""pointer""' onClick='location.href="""& sLink &"""' "
|
|
|
32 |
End Function
|
|
|
33 |
'-----------------------------------------------------------------------------------------------------------------------------------
|
|
|
34 |
%>
|
|
|
35 |
<%
|
|
|
36 |
'----------------- Page Requirements ---------------------------
|
| 5175 |
dpurdie |
37 |
If CBool(QStrPar("action")) Then
|
|
|
38 |
' action is no longer used
|
|
|
39 |
Call RaiseMsg ( enum_WMSG_ERROR, "Did not expect to get here!<br>"& Request.ServerVariables("QUERY_STRING") )
|
| 119 |
ghuddy |
40 |
End If
|
|
|
41 |
|
| 5082 |
dpurdie |
42 |
'----------------------------------------------------------------
|
|
|
43 |
' Get some details of the base page
|
|
|
44 |
' In particular, can it be replaced/edited. The calculation needs to be based on
|
|
|
45 |
' The original pv_id, not the pv_id being selected
|
|
|
46 |
'
|
|
|
47 |
If parOLDpv_id <> "" Then
|
|
|
48 |
Call Get_Pkg_Info ( parOLDpv_id, Request("rtag_id") )
|
|
|
49 |
If pkgInfoHash.Item("can_edit_in_project") Then
|
|
|
50 |
bCanInsertPkg = TRUE
|
|
|
51 |
End If
|
|
|
52 |
|
|
|
53 |
If pkgInfoHash.Item("is_patch") = "Y" Then bIsPatch = TRUE
|
|
|
54 |
|
|
|
55 |
pkgInfoHash.RemoveAll
|
|
|
56 |
End If
|
|
|
57 |
|
| 119 |
ghuddy |
58 |
'------------------------------------------------------------------------------------------
|
| 5082 |
dpurdie |
59 |
' Get details of the selected package version
|
| 119 |
ghuddy |
60 |
Call Get_Pkg_Info ( parPv_id, Request("rtag_id") )
|
|
|
61 |
|
|
|
62 |
sPkg_Name = pkgInfoHash.Item("pkg_name")
|
|
|
63 |
sPkg_Version = pkgInfoHash.Item("pkg_version")
|
|
|
64 |
%>
|
|
|
65 |
|