Subversion Repositories DevTools

Rev

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