Subversion Repositories DevTools

Rev

Rev 6682 | 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 ClearCase				 |
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
Dim blankLabel
37
'------------ Constants Declaration -----------
38
'------------ Variable Init -------------------
39
Set pkgInfoHash = CreateObject("Scripting.Dictionary")
40
parPv_id = QStrPar("pv_id")
41
'----------------------------------------------
42
%>
43
<%
44
Function Dependency_List ( NNpv_id, BBblankLabel )
45
	Dim rsTemp, Query_String, tempSTR
46
	tempSTR = ""
47
	BBblankLabel = FALSE
48
 
49
	Query_String = _
50
	" SELECT pkg.pkg_name, pv.pkg_version, pv.pkg_label, usr.full_name, usr.user_email"&_
51
	"	FROM packages pkg,"&_
52
	"	     package_versions pv,"&_
53
	"	     package_dependencies dep,"&_
54
	"	     users usr"&_
55
	"	WHERE pv.pkg_id = pkg.pkg_id"&_
56
	"	  AND dep.dpv_id = pv.pv_id"&_
57
	"	  AND dep.pv_id = "& NNpv_id &_
58
	"	  AND pv.owner_id = usr.user_id"&_
59
	"	ORDER BY pv.modified_stamp DESC"
60
 
61
	Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
62
 
63
	While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
64
		If (IsNull(rsTemp("pkg_label")) OR (rsTemp("pkg_label") = "")) Then
65
			tempSTR = tempSTR & "#### MISSING LABEL - "& rsTemp("pkg_name") &" "& rsTemp("pkg_version") &" - OWNER: "& rsTemp("full_name") &" "& rsTemp("user_email") &" ####" & VBNewLine
66
			'tempSTR = tempSTR & To_ClearCase( rsTemp("pkg_label") ) & VBNewLine
67
			BBblankLabel = TRUE
68
 
69
		Else
70
			tempSTR = tempSTR & To_ClearCase( rsTemp("pkg_label") ) & VBNewLine
71
 
72
		End If
73
 
74
		rsTemp.MoveNext
75
	WEnd
76
 
77
	Dependency_List = tempSTR
78
 
79
	rsTemp.Close
80
	Set rsTemp = nothing
81
End Function
82
%>
83
<%
84
Call Get_Pkg_Info ( parPv_id, NULL )
85
%>
6682 dpurdie 86
<%Response.Cookies(COOKIE_RELEASEMANAGER_MEMORY)("devl_environment") = "clearcase"%>
5357 dpurdie 87
<html>
88
<head>
89
<title>Release Manager</title>
90
<link rel="shortcut icon" href="<%=FavIcon%>"/>
91
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
92
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
6579 dpurdie 93
<link rel="stylesheet" href="images/release_manager_style.css?ver=<%=VixVerNum%>" type="text/css">
94
<link rel="stylesheet" href="images/navigation.css?ver=<%=VixVerNum%>" type="text/css">
95
<script language="JavaScript" src="images/common.js?ver=<%=VixVerNum%>"></script>
5357 dpurdie 96
<!-- TIPS -->
6579 dpurdie 97
<script language="JavaScript" src="images/tipster.js?ver=<%=VixVerNum%>"></script>
98
<script language="JavaScript" src="images/_help_tips.js?ver=<%=VixVerNum%>"></script>
5983 dpurdie 99
<!--#include file="_jquery_includes.asp"-->
5357 dpurdie 100
<!-- DROPDOWN MENUS -->
101
<!--#include file="_menu_def.asp"-->
6579 dpurdie 102
<script language="JavaScript1.2" src="images/popup_menu.js?ver=<%=VixVerNum%>"></script>
6682 dpurdie 103
 
5357 dpurdie 104
</head>
105
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
106
<!-- HEADER -->
107
<!--#include file="_header.asp"-->
108
<!-- BODY ---->
109
<table width="100%" height="80%" border="0" cellpadding="0" cellspacing="0">
110
  <tr>
6874 dpurdie 111
    <td align="center" valign="top" class='bg_grey'>
6682 dpurdie 112
		  <!-- MIDDLE --------------------------------------->
113
		    <table width="650" border="0" cellspacing="0" cellpadding="0">
5357 dpurdie 114
			  <tr> 
115
			    <td> 
116
			      <table width="100%" border="0" cellspacing="0" cellpadding="0">
117
			        <tr> 
118
			          <td width="1%">&nbsp;</td>
119
			          <td align="right"><img src="images/h_trsp_dot.gif" width="30" height="30"></td>
120
			          <td width="1%">&nbsp;</td>
121
			        </tr>
122
			        <tr> 
123
			          <td width="1%">&nbsp;</td>
124
			          <td> 
125
			            <table width="100%" border="0" cellspacing="0" cellpadding="0">
126
			              <tr> 
127
			                <td nowrap class="form_ttl">EXPORT dependencies</td>
128
			                <td align="right" valign="bottom">
129
			                  <%Call Generate_Tab_Menu ( TABarray3, "ClearCase style", "blue" )%>
130
			                </td>
131
			              </tr>
132
			            </table>
133
			          </td>
134
			          <td width="1%">&nbsp;</td>
135
			        </tr>
136
			        <tr> 
137
			          <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>
138
			          <td background="images/lbox_bg_blue.gif">
139
					    <!-- Heading -->
140
					  	<table width="100%" border="0" cellspacing="0" cellpadding="0">
141
			              <tr> 
142
			                <td nowrap class="lbox_ttl_w"><%=pkgInfoHash.Item ("pkg_name")%>&nbsp;<%=pkgInfoHash.Item ("pkg_version")%></td>
143
							<td width="1%"><img src="images/h_trsp_dot.gif" width="1" height="46"></td>
144
			                <td align="right">
145
							<!-- ACTION BUTTONS ------------------------------------------->
146
							<!------------------------------------------------------------->
147
			                </td>
148
			              </tr>
149
			            </table>
150
			            <!-- END Heading -->
151
			          </td>
152
			          <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>
153
			        </tr>
154
			        <tr> 
155
			          <td width="1%" bgcolor="#FFFFFF"><img src="images/h_trsp_dot.gif" width="10" height="100"></td>
156
			          <td bgcolor="#FFFFFF" valign="top"> 
157
			            <!-- Body -->
158
			            <table width="100%" border="0" cellspacing="1" cellpadding="2">
159
						<form name="close" method="post" action="dependencies.asp?done=done&hidenv=<%=QSTR_All%>">
160
			                <tr> 
161
			                  <td nowrap width="100%">&nbsp; </td>
162
			                </tr>
163
			                <tr> 
164
			                  <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 165
			                    <textarea rows="25" cols="100" wrap="OFF" style="width:100%;height:100%" class="form_item" onFocus="this.select()"><%=Dependency_List( parPv_id, blankLabel )%></textarea>
5357 dpurdie 166
								<br>
167
								<%If blankLabel Then Call DisplayInfo ( "BLANK_LABEL_WARNING", "300" )%>
168
								<br>
169
								<input type="submit" name="btn" value="  Close  " class="form_btn">
170
								<br><br>
171
			                  </td>
172
			                </tr>
173
						</form>
174
			            </table>
6682 dpurdie 175
					  </td>
5357 dpurdie 176
			          <td width="1%" background="images/lbox_bgside_white.gif">&nbsp;</td>
177
			        </tr>
178
			        <tr> 
179
			          <td width="1%" background="images/lbox_bg_blue.gif" valign="bottom"><img src="images/lbox_bl_cnr_b.gif" width="13" height="13"></td>
180
			          <td background="images/lbox_bg_blue.gif"></td>
181
			          <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>
182
			        </tr>
183
			      </table>
184
			    </td>
185
			  </tr>
186
			</table>
6682 dpurdie 187
		<!-- END DETAILS ------------------------------------------------------------->
5357 dpurdie 188
		</td>
189
  </tr>
190
</table>
5957 dpurdie 191
<!-- FOOTER -->
192
<!--#include file="_footer.asp"-->
5357 dpurdie 193
</body>
194
</html>