Subversion Repositories DevTools

Rev

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

Rev Author Line No. Line
62 rsolanki 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'|                                                   |
5
'|			          Download Version			 	 |
6
'|                                                   |
7
'=====================================================
8
%>
9
<%
10
Option explicit
11
Response.Expires = 0	' always load the page, dont store
12
%>
13
<!--#include file="common/globals.asp"-->
14
<!--#include file="common/config.asp"-->
15
<!--#include file="common/common_subs.asp"-->
16
<!--#include file="common/_popup_window_common.asp"-->
17
 
18
<%
19
'------------ VARIABLE DEFINITION -------------
20
Dim objWSH
21
Dim rsPkg, pkgName, pkgVersion, pkgId
22
Dim rsProj, projName, branchName
23
Dim rsOS, OSName
24
'------------ CONSTANTS DECLARATION -----------
25
'------------ VARIABLE INIT -------------------
26
'------------ CONDITIONS ----------------------
27
'----------------------------------------------
28
%>
29
<%
30
'--------------------------------------------------------------------------------------------------------------------------
31
 
32
'--------------------------------------------------------------------------------------------------------------------------
33
%>
34
<%
35
Function DateReversed ( dDate )
36
	' Ensures Reverse Date format YYYY-MM-DD
37
	If IsNull(dDate) Then Exit Function
38
	DateReversed = Year(dDate) &"-"&  Month(dDate) &"-"& Day(dDate)
39
End Function
40
'**************************** M  A  I  N ******************************
41
%>
42
<link href="scripts/deployment_manager.css" rel="stylesheet" type="text/css">
43
<script language="JavaScript" type="text/javascript">
44
<!--
45
function Log_Download(paramString){
46
      window.location = "LogDownload.asp" + paramString;     
47
}
48
//-->
49
</script>
50
 
51
 
52
<%
53
If Request("bom_id") <> "" AND Request("prod_id") <> "" AND Request("os_id") Then
54
 
55
	Set rsPkg = OraDatabase.DbCreateDynaset( "select * from package_versions pv, packages pkg where pv.pv_id = "&Request("prod_id")&" and pkg.pkg_id = pv.pkg_id", cint(0))
56
 
57
	pkgName = rsPkg("pkg_name")
58
	pkgVersion = rsPkg("pkg_version")
59
	pkgId = rsPkg("pkg_id")
60
 
61
	rsPkg.Close()
62
	Set rsPkg = nothing
63
 
64
	Set rsProj = OraDatabase.DbCreateDynaset( "select br.branch_name, prj.proj_name from boms bm, branches br, dm_projects prj where bm.bom_id = "&Request("bom_id")&" and br.BRANCH_ID = bm.RTAG_ID_FK and prj.PROJ_ID = br.PROJ_ID", cint(0))
65
 
66
	projName = rsProj("proj_name")	
67
	branchName = rsProj("branch_name")
68
 
69
	rsProj.Close()
70
	Set rsProj = nothing
71
 
72
 
73
	Set rsOS = OraDatabase.DbCreateDynaset( "select bt.bos_type from os_base_env obe, base_env be, bos_types bt where obe.OS_ID = "&Request("os_id")&" and be.BASE_ENV_ID = obe.BASE_ENV_ID and bt.BOS_ID = be.BOS_ID", cint(0))
74
 
75
	OSName = rsOS("bos_type")
76
 
77
	If OSName = "Windows" OR OSName = "MOS" Then
78
		OSName = "win32"
79
	Else
80
		OSName = "sparc"
81
	End If	
82
 
83
	rsOS.Close()
84
	Set rsOS = nothing	
85
 
86
	%>
87
 
88
	<img hspace=4 src="images\download.jpg" align="left" border=0><a href="http://auperaunx26/releases/<%=projName%>/<%=branchName%>/region/<%=pkgName%>/<%=OSName%>/<%=pkgName%>-<%=pkgVersion%>-<%=OSName%>.zip" onClick="Log_Download(?pkg_id=<%=pkgId%>&pkg_version=<%=pkgVersion%>);"  class="body_link"><b>Click here to Download</b></a>
89
<%
90
End If
91
 
92
'**********************************************************************
93
%>
94
 
95
<%
96
'------------ RUN AFTER CODE RUN --------------
97
'----------------------------------------------
98
%><!--#include file="common/globals_destructor.asp"-->