Rev 119 | Blame | Last modification | View Log | RSS feed
<%'=====================================================' VERSIONS HISTORY MAIN'=====================================================%><%'------------ Variable Definition -------------Dim parPkg_idDim parPv_idDim parOLDpv_idDim parRfileDim sPkg_NameDim sPkg_VersionDim bIsPatchDim bCanInsertPkg'------------ Constants Declaration -----------'------------ Variable Init -------------------parPkg_id = Request ( "pkg_id" )parPv_id = Request ( "pv_id" )parOLDpv_id = Request ( "OLDpv_id" )parRfile = Request ( "rfile" )Set pkgInfoHash = CreateObject("Scripting.Dictionary")bCanInsertPkg = FALSEbIsPatch = FALSE'----------------------------------------------%><%'-----------------------------------------------------------------------------------------------------------------------------------Function Set_Row_Style ( sLink )Set_Row_Style = "onMouseOver='this.style.cursor=""pointer""' onClick='location.href="""& sLink &"""' "End Function'-----------------------------------------------------------------------------------------------------------------------------------%><%'----------------- Page Requirements ---------------------------If CBool(QStrPar("action")) AND (objAccessControl.UserLogedIn) ThenCall OpenInParentWindow ("_new_version.asp?OLDpv_id="& parOLDpv_id &"&rtag_id="& parRtag_id &"&pv_id="& parPv_id )Call CloseWindowElse' ------- Page Parameter Requirements ----------If (parPkg_id = "") OR (parRfile = "") ThenCall RaiseMsg ( enum_WMSG_ERROR, "This page requires more parameters to run!<br>"& Request.ServerVariables("QUERY_STRING") )End IfEnd If'----------------------------------------------------------------' Get some details of the base page' In particular, can it be replaced/edited. The calculation needs to be based on' The original pv_id, not the pv_id being selected'If parOLDpv_id <> "" ThenCall Get_Pkg_Info ( parOLDpv_id, Request("rtag_id") )If pkgInfoHash.Item("can_edit_in_project") ThenbCanInsertPkg = TRUEEnd IfIf pkgInfoHash.Item("is_patch") = "Y" Then bIsPatch = TRUEpkgInfoHash.RemoveAllEnd If'------------------------------------------------------------------------------------------' Get details of the selected package versionCall Get_Pkg_Info ( parPv_id, Request("rtag_id") )sPkg_Name = pkgInfoHash.Item("pkg_name")sPkg_Version = pkgInfoHash.Item("pkg_version")%>