Subversion Repositories DevTools

Rev

Rev 6579 | Rev 6683 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5357 dpurdie 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'|                                                   |
5
'|				      EXPORT JATS  					 |
6
'|					 DEPENDENCIES					 |
7
'|                                                   |
8
'=====================================================
9
%>
10
<%
11
Option explicit
12
' Good idea to set when using redirect
13
Response.Expires = 0	' always load the page, dont store
14
%>
15
<!--#include file="common/conf.asp"-->
16
<!--#include file="common/globals.asp"-->
17
<!--#include file="common/formating.asp"-->
18
<!--#include file="common/qstr.asp"-->
19
<!--#include file="common/common_subs.asp"-->
20
<!--#include file="_tabs.asp"-->
21
<%
22
' Make sure rtag_id is always present
23
If Request("pv_id") = "" Then
5957 dpurdie 24
    Call Destroy_All_Objects
5357 dpurdie 25
	Response.Redirect("index.asp")
26
End If
27
%>
28
<%
29
'------------ ACCESS CONTROL ------------------
30
%>
6181 dpurdie 31
<!--#include file="_access_control_login_optional.asp"-->
5357 dpurdie 32
<!--#include file="_access_control_general.asp"-->
33
<%
34
'------------ Variable Definition -------------
35
Dim parPv_id
36
'------------ Constants Declaration -----------
37
'------------ Variable Init -------------------
38
Set pkgInfoHash = CreateObject("Scripting.Dictionary")
39
parPv_id = QStrPar("pv_id")
40
'----------------------------------------------
41
%>
42
<%
43
Function Dependency_List ( NNpv_id )
44
	Dim rsTemp, Query_String, tempSTR
45
	tempSTR = ""
46
 
47
	Query_String = _
48
	" SELECT pkg.pkg_name, pv.pkg_version, dep.build_type"&_
49
	"	FROM packages pkg,"&_
50
	"	     package_versions pv,"&_
51
	"	     package_dependencies dep"&_
52
	"	WHERE pv.pkg_id = pkg.pkg_id"&_
53
	"	  AND dep.dpv_id = pv.pv_id"&_
54
	"	  AND dep.pv_id = "& NNpv_id &_
55
	"	ORDER BY UPPER(pkg.pkg_name)"
56
 
57
	Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
58
 
59
	While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
60
		tempSTR = tempSTR & To_JATS( rsTemp("build_type"), rsTemp("pkg_name"), rsTemp("pkg_version") ) & VBNewLine
61
		rsTemp.MoveNext
62
	WEnd
63
 
64
	Dependency_List = tempSTR
65
 
66
	rsTemp.Close
67
	Set rsTemp = nothing
68
End Function
69
%>
70
<%
71
Call Get_Pkg_Info ( parPv_id, NULL )
72
%>
73
<%Response.Cookies(COOKIE_RELEASEMANAGER_MEMORY)("devl_environment") = "jats"%>
74
<html>
75
<head>
76
<title>Release Manager</title>
77
<link rel="shortcut icon" href="<%=FavIcon%>"/>
78
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
79
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
6579 dpurdie 80
<link rel="stylesheet" href="images/release_manager_style.css?ver=<%=VixVerNum%>" type="text/css">
81
<link rel="stylesheet" href="images/navigation.css?ver=<%=VixVerNum%>" type="text/css">
82
<script language="JavaScript" src="images/common.js?ver=<%=VixVerNum%>"></script>
5357 dpurdie 83
<!-- TIPS -->
6579 dpurdie 84
<script language="JavaScript" src="images/tipster.js?ver=<%=VixVerNum%>"></script>
85
<script language="JavaScript" src="images/_help_tips.js?ver=<%=VixVerNum%>"></script>
5983 dpurdie 86
<!--#include file="_jquery_includes.asp"-->
5357 dpurdie 87
<!-- DROPDOWN MENUS -->
88
<!--#include file="_menu_def.asp"-->
6579 dpurdie 89
<script language="JavaScript1.2" src="images/popup_menu.js?ver=<%=VixVerNum%>"></script>
5357 dpurdie 90
 
91
</head>
92
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
93
<!-- HEADER -->
94
<!--#include file="_header.asp"-->
95
<!-- BODY ---->
96
<table width="100%" height="80%" border="0" cellpadding="0" cellspacing="0">
97
  <tr>
98
    <td align="center" valign="top" background="images/bg_lght_gray.gif">
99
		  <!-- MIDDLE --------------------------------------->
100
		    <table width="650" border="0" cellspacing="0" cellpadding="0">
101
			  <tr> 
102
			    <td> 
103
			      <table width="100%" border="0" cellspacing="0" cellpadding="0">
104
			        <tr> 
105
			          <td width="1%">&nbsp;</td>
106
			          <td align="right"><img src="images/h_trsp_dot.gif" width="30" height="30"></td>
107
			          <td width="1%">&nbsp;</td>
108
			        </tr>
109
			        <tr> 
110
			          <td width="1%">&nbsp;</td>
111
			          <td> 
112
			            <table width="100%" border="0" cellspacing="0" cellpadding="0">
113
			              <tr> 
114
			                <td nowrap class="form_ttl">EXPORT dependencies</td>
115
			                <td align="right" valign="bottom">
116
			                  <%Call Generate_Tab_Menu ( TABarray3, "JATS style", "blue" )%>
117
			                </td>
118
			              </tr>
119
			            </table>
120
			          </td>
121
			          <td width="1%">&nbsp;</td>
122
			        </tr>
123
			        <tr> 
124
			          <td align="left" valign="top" width="1%" background="images/lbox_bg_blue.gif"><img src="images/lbox_tl_cnr_b.gif" width="13" height="13"></td>
125
			          <td background="images/lbox_bg_blue.gif">
126
					    <!-- Heading -->
127
					  	<table width="100%" border="0" cellspacing="0" cellpadding="0">
128
			              <tr> 
129
			                <td nowrap class="lbox_ttl_w"><%=pkgInfoHash.Item ("pkg_name")%>&nbsp;<%=pkgInfoHash.Item ("pkg_version")%></td>
130
							<td width="1%"><img src="images/h_trsp_dot.gif" width="1" height="46"></td>
131
			                <td align="right">
132
							<!-- ACTION BUTTONS ------------------------------------------->
133
							<!------------------------------------------------------------->
134
			                </td>
135
			              </tr>
136
			            </table>
137
			            <!-- END Heading -->
138
			          </td>
139
			          <td align="right" valign="top" width="1%" background="images/lbox_bg_blue.gif"><img src="images/lbox_tr_cnr_b.gif" width="13" height="13"></td>
140
			        </tr>
141
			        <tr> 
142
			          <td width="1%" bgcolor="#FFFFFF"><img src="images/h_trsp_dot.gif" width="10" height="100"></td>
143
			          <td bgcolor="#FFFFFF" valign="top"> 
144
			            <!-- Body -->
145
			            <table width="100%" border="0" cellspacing="1" cellpadding="2">
146
						<form name="close" method="post" action="dependencies.asp?done=done&hidenv=<%=QSTR_All%>">
147
			                <tr> 
148
			                  <td nowrap width="100%">&nbsp; </td>
149
			                </tr>
150
			                <tr> 
151
			                  <td nowrap width="100%"><span class="form_txt">Copy this dependency export list into your build file to build this package.</span><br><br>
6682 dpurdie 152
			                    <textarea rows="25" cols="100" wrap="OFF" style="width:100%;height:100%" class="form_item" onFocus="this.select()"><%=Dependency_List( parPv_id )%></textarea>
5357 dpurdie 153
								<br><br>
154
								<input type="submit" name="btn" value="  Close  " class="form_btn">
155
								<br><br>
156
			                  </td>
157
			                </tr>
158
						</form>
159
			            </table>
160
					  </td>
161
			          <td width="1%" background="images/lbox_bgside_white.gif">&nbsp;</td>
162
			        </tr>
163
			        <tr> 
164
			          <td width="1%" background="images/lbox_bg_blue.gif" valign="bottom"><img src="images/lbox_bl_cnr_b.gif" width="13" height="13"></td>
165
			          <td background="images/lbox_bg_blue.gif"></td>
166
			          <td width="1%" background="images/lbox_bg_blue.gif" valign="bottom" align="right"><img src="images/lbox_br_cnr_b.gif" width="13" height="13"></td>
167
			        </tr>
168
			      </table>
169
			    </td>
170
			  </tr>
171
			</table>
172
		<!-- END DETAILS ------------------------------------------------------------->
173
		</td>
174
  </tr>
175
</table>
5957 dpurdie 176
<!-- FOOTER -->
177
<!--#include file="_footer.asp"-->
5357 dpurdie 178
</body>
179
</html>