Subversion Repositories DevTools

Rev

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

Rev Author Line No. Line
119 ghuddy 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("RELEASEMANAGER_MEMORY")("devl_environment") = "clearcase"
85
%>
86
<html>
87
<head>
88
<title>Release Manager</title>
89
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
90
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
91
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
92
<link rel="stylesheet" href="images/navigation.css" type="text/css">
93
<script language="JavaScript" src="images/common.js"></script>
94
<!-- TIPS -->
95
<script language="JavaScript" src="images/tipster.js"></script>
96
<script language="JavaScript" src="images/_help_tips.js"></script>
97
 
98
<!-- DROPDOWN MENUS -->
99
<!--#include file="_menu_def.asp"-->
100
<script language="JavaScript1.2" src="images/popup_menu.js"></script>
101
 
102
</head>
103
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
104
<!-- MENU LAYERS -------------------------------------->
105
<div id="popmenu" class="menuskin" onMouseover="clearhidemenu();highlightmenu(event,'on')" onMouseout="highlightmenu(event,'off');dynamichide(event)"> 
106
</div>
107
<!-- TIPS LAYERS -------------------------------------->
108
<div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10">&nbsp;</div>
109
<!----------------------------------------------------->
110
 
111
<!-- HEADER -->
112
<!--#include file="_header.asp"-->
113
<!-- BODY ---->
114
<table width="100%" height="80%" border="0" cellpadding="0" cellspacing="0">
115
  <tr>
116
    <td align="center" valign="top" background="images/bg_lght_gray.gif">
117
		  <!-- MIDDLE -->
118
			<table width="650" border="0" cellspacing="0" cellpadding="0">
119
			  <tr> 
120
			    <td> 
121
			      <table width="100%" border="0" cellspacing="0" cellpadding="0">
122
			        <tr> 
123
			          <td width="1%">&nbsp;</td>
124
			          <td align="right"><img src="images/h_trsp_dot.gif" width="30" height="30"></td>
125
			          <td width="1%">&nbsp;</td>
126
			        </tr>
127
			        <tr> 
128
			          <td width="1%">&nbsp;</td>
129
			          <td> 
130
			            <table width="100%" border="0" cellspacing="0" cellpadding="0">
131
			              <tr> 
132
			                <td nowrap class="form_ttl">EXPORT dependencies</td>
133
			                <td align="right" valign="bottom">
134
			                  <%Call Generate_Tab_Menu ( TABarray3, "ClearCase style", "blue" )%>
135
			                </td>
136
			              </tr>
137
			            </table>
138
			          </td>
139
			          <td width="1%">&nbsp;</td>
140
			        </tr>
141
			        <tr> 
142
			          <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>
143
			          <td background="images/lbox_bg_blue.gif">
144
					    <!-- Heading -->
145
					  	<table width="100%" border="0" cellspacing="0" cellpadding="0">
146
			              <tr> 
147
			                <td nowrap class="lbox_ttl_w"><%=pkgInfoHash.Item ("pkg_name")%>&nbsp;<%=pkgInfoHash.Item ("pkg_version")%></td>
148
							<td width="1%"><img src="images/h_trsp_dot.gif" width="1" height="46"></td>
149
			                <td align="right">
150
							<!-- ACTION BUTTONS ------------------------------------------->
151
							<!------------------------------------------------------------->
152
			                </td>
153
			              </tr>
154
			            </table>
155
			            <!-- END Heading -->
156
			          </td>
157
			          <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>
158
			        </tr>
159
			        <tr> 
160
			          <td width="1%" bgcolor="#FFFFFF"><img src="images/h_trsp_dot.gif" width="10" height="100"></td>
161
			          <td bgcolor="#FFFFFF" valign="top"> 
162
			            <!-- Body -->
163
			            <table width="100%" border="0" cellspacing="1" cellpadding="2">
164
						<form name="close" method="post" action="dependencies.asp?done=done&hidenv=<%=QSTR_All%>">
165
			                <tr> 
166
			                  <td nowrap width="100%">&nbsp; </td>
167
			                </tr>
168
			                <tr> 
169
			                  <td nowrap width="100%"><span class="form_txt">Copy this dependency export list into your build file to build this package.</span><br><br>
170
			                    <textarea name="FRdeps" rows="25" cols="100" wrap="OFF" class="form_item" onFocus="this.select()"><%=Dependency_List( parPv_id, blankLabel )%></textarea>
171
								<br>
172
								<%If blankLabel Then Call DisplayInfo ( "BLANK_LABEL_WARNING", "300" )%>
173
								<br>
174
								<input type="submit" name="btn" value="  Close  " class="form_btn">
175
								<br><br>
176
			                  </td>
177
			                </tr>
178
						</form>
179
			            </table>
180
			            <!-- END Body-->
181
			          </td>
182
			          <td width="1%" background="images/lbox_bgside_white.gif">&nbsp;</td>
183
			        </tr>
184
			        <tr> 
185
			          <td width="1%" background="images/lbox_bg_blue.gif" valign="bottom"><img src="images/lbox_bl_cnr_b.gif" width="13" height="13"></td>
186
			          <td background="images/lbox_bg_blue.gif"></td>
187
			          <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>
188
			        </tr>
189
			      </table>
190
			    </td>
191
			  </tr>
192
			</table>
193
 
194
		</td>
195
  </tr>
196
  <tr>
197
    <td valign="bottom" background="images/bg_lght_gray.gif">
198
	<!-- FOOTER -->
199
	<!--#include file="_footer.asp"-->
200
	</td>
201
  </tr>
202
</table>
203
</body>
204
</html>
205
<%
206
Call Destroy_All_Objects
207
%>