Subversion Repositories DevTools

Rev

Go to most recent revision | Details | 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
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 ---------------------------
37
If CBool(QStrPar("action")) AND (objAccessControl.UserLogedIn) Then
38
	Call OpenInParentWindow ("_new_version.asp?OLDpv_id="& parOLDpv_id &"&rtag_id="& parRtag_id &"&pv_id="& parPv_id )
39
	Call CloseWindow
40
Else
41
	' ------- Page Parameter Requirements ----------
42
	If (parPkg_id = "") OR (parRfile = "") Then
43
		Call RaiseMsg ( enum_WMSG_ERROR, "This page requires more parameters to run!<br>"& Request.ServerVariables("QUERY_STRING") )
44
	End If
45
 
46
End If
47
 
5082 dpurdie 48
'----------------------------------------------------------------
49
'   Get some details of the base page
50
'   In particular, can it be replaced/edited. The calculation needs to be based on
51
'   The original pv_id, not the pv_id being selected
52
'
53
If parOLDpv_id <> "" Then
54
    Call Get_Pkg_Info ( parOLDpv_id, Request("rtag_id") )
55
    If pkgInfoHash.Item("can_edit_in_project") Then
56
        bCanInsertPkg = TRUE
57
    End If
58
 
59
    If pkgInfoHash.Item("is_patch") = "Y" Then bIsPatch = TRUE
60
 
61
    pkgInfoHash.RemoveAll
62
End If
63
 
119 ghuddy 64
'------------------------------------------------------------------------------------------
5082 dpurdie 65
'   Get details of the selected package version
119 ghuddy 66
Call Get_Pkg_Info ( parPv_id, Request("rtag_id") )
67
 
68
sPkg_Name = pkgInfoHash.Item("pkg_name")
69
sPkg_Version = pkgInfoHash.Item("pkg_version")
70
%>
71