Subversion Repositories DevTools

Rev

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