Subversion Repositories DevTools

Rev

Rev 5506 | Details | Compare with Previous | Last modification | View Log | RSS feed

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