Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
119 ghuddy 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
Option explicit
4
Response.Expires = 0	' always load the page, dont store
5
%>
6
<%
7
'=====================================================
8
'					Import Release
9
'=====================================================
10
%>
11
<!--#include file="common/conf.asp"-->
12
<!--#include file="common/globals.asp"-->
13
<!--#include file="common/qstr.asp"-->
14
<!--#include file="common/common_subs.asp"-->
15
<!--#include file="common/common_dbedit.asp"-->
16
<!--#include file="common/_popup_window_common.asp"-->
17
<%
18
'------------ ACCESS CONTROL ------------------
19
%>
20
<!--#include file="_access_control_login.asp"-->
21
<!--#include file="_access_control_general.asp"-->
22
<!--#include file="_access_control_project.asp"-->
23
<%
24
'------------ Variable Definition -------------
25
Dim parFRproj_id
26
Dim parFRpkg_id
27
Dim parFRrtag_id
28
Dim parToRtag_id
29
'------------ Constants Declaration -----------
30
'------------ Variable Init -------------------
31
parFRproj_id = QStrPar("FRproj_id")
32
parFRpkg_id = QStrPar("FRpkg_id")
33
parFRrtag_id = QStrPar("FRrtag_id")
34
parToRtag_id = QStrPar("ToRtag_id")
35
If parFRpkg_id = "" Then parFRpkg_id = "-1"
36
If parFRproj_id = "" Then parFRproj_id = "-1"
37
If parFRrtag_id = "" Then parFRrtag_id = "-1"
38
'----------------------------------------------
39
%>
40
<%
41
Sub Get_Packages ( NNproj_id )
42
	Dim rsTemp, Query_String, tempLINK
43
	Query_String = _
44
	"SELECT * FROM packages ORDER BY pkg_name ASC"
45
	Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
46
 
47
	Response.write "<select name='FRproj_id' onChange=""MM_jumpMenu('parent',this,0)"" class='form_item'>"
48
		Response.write "<option value=''>Select Package</option>"
49
		While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
50
			tempLINK = scriptName &"?FRproj_id="& rsTemp.Fields("pkg_id") &"&FRrtag_id=&ToRtag_id="& parToRtag_id &"&"& objPMod.ComposeURL()
51
 
52
			If NNproj_id = Cstr(rsTemp.Fields("pkg_id")) Then
53
	        	Response.write "<option value='"& tempLINK &"' selected>"& (rsTemp.Fields("pkg_name")) &"</option>"
54
	        Else
55
				Response.write "<option value='"& tempLINK &"'>"& (rsTemp.Fields("pkg_name")) &"</option>"
56
			End If
57
			rsTemp.MoveNext
58
		WEnd
59
	Response.write "</select>"
60
 
61
	rsTemp.Close
62
	Set rsTemp = nothing
63
End Sub
64
 
65
 
66
 
67
Sub Get_Package_Versions ( NNproj_id, NNrtag_id )
68
	Dim rsTemp, Query_String, tempLINK, productId
69
	Query_String = _
70
	"SELECT pv_id, pkg_version FROM package_versions WHERE pkg_id = "& NNproj_id &" ORDER BY pkg_version ASC"
71
	Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
72
 
73
	Response.write "<select name='FRrtag_id' onChange=""MM_jumpMenu('parent',this,0)"" class='form_item'>"
74
		If NNproj_id <> "-1" Then
75
			Response.write "<option value=''>Select Package Version</option>"
76
			While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
77
				tempLINK = scriptName &"?FRrtag_id="& rsTemp.Fields("pv_id") &"&FRproj_id="& NNproj_id &"&ToRtag_id="& parToRtag_id &"&"& objPMod.ComposeURL()
78
 
79
				If NNrtag_id = Cstr(rsTemp.Fields("pv_id")) Then
80
		        	Response.write "<option value='"& tempLINK &"' selected>"& (rsTemp.Fields("pkg_version")) &"</option>"
81
		        Else
82
					Response.write "<option value='"& tempLINK &"'>"& (rsTemp.Fields("pkg_version")) &"</option>"
83
				End If
84
				rsTemp.MoveNext
85
			WEnd
86
		End If
87
	Response.write "</select>"
88
 
89
	rsTemp.Close
90
	Set rsTemp = nothing
91
End Sub
92
%>
93
<%
94
'Process submition
95
If CBool(QStrPar("action")) Then
96
	%>
97
	<script language="JavaScript" type="text/javascript">
98
	window.opener.location='_import_dependency.asp?FROMRtag_id=<%=Request.Form("FromRtag_id")%>&ToRtag_id=<%=Request.Form("ToRtag_id")%>&<%=objPMod.ComposeURL()%>';
99
	</script>		
100
	<%
101
	Call CloseWindow
102
End If
103
%>
104
<html>
105
<head>
106
<title>Release Manager</title>
107
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
108
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
109
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
110
<link rel="stylesheet" href="images/navigation.css" type="text/css">
111
<script language="JavaScript" src="images/common.js"></script>
112
</head>
113
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();">
114
<form name="importrel" method="post" action="<%=scriptName%>">
115
  <table width="100%" border="0" cellspacing="0" cellpadding="2" height="100%">
116
    <tr> 
117
      <td background="images/lbox_bg_orange.gif" width="1%" height="1%"><img src="images/i_change_group_off.gif" width="22" height="25" hspace="5"></td>
118
      <td background="images/lbox_bg_blue.gif" nowrap width="50%" class="wform_ttl">Import 
119
        Package Dependencies</td>
120
      <td background="images/lbox_bg_blue.gif" align="right" width="50%"> 
121
        <input type="submit" name="btn" value="Import" class="form_btn_comp" onClick="MM_validateForm('FRproj_id','Project','R','FRrtag_id','Release Name','R');return document.MM_returnValue">
122
        <input type="reset" name="btn" value="Cancel" class="form_btn_comp" onclick="self.close()">
123
      </td>
124
      <td background="images/lbox_bg_blue.gif" align="right" width="1%%" nowrap> 
125
        <img src="images/h_trsp_dot.gif" width="5" height="22"> </td>
126
    </tr>
127
    <tr> 
128
      <td height="100%" width="1%">&nbsp;</td>
129
      <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif"> 
130
        <table width="100%" border="0" cellspacing="1" cellpadding="2">
131
          <tr> 
132
            <td width="1%"><img src="images/h_trsp_dot.gif" width="10" height="30"></td>
133
            <td width="1%" nowrap class="form_group" valign="bottom"></td>
134
            <td nowrap width="100%">&nbsp; </td>
135
          </tr>
136
          <tr> 
137
            <td width="1%">&nbsp;</td>
138
            <td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Package</td>
139
            <td nowrap width="100%" background="images/bg_form_lightbluedark.gif" class="form_txt"> 
140
              <%Call Get_Packages ( parFRproj_id )%>
141
            </td>
142
          </tr>
143
          <tr> 
144
            <td width="1%">&nbsp;</td>
145
            <td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Package Version </td>
146
            <td nowrap width="100%" background="images/bg_form_lightbluedark.gif" class="form_txt"> 
147
              <%Call Get_Package_Versions ( parFRproj_id, parFRrtag_id )%>
148
              <input type="hidden" name="ToRtag_id" value="<%=parToRtag_id%>">
149
			  <input type="hidden" name="FromRtag_id" value="<%=parFRrtag_id%>">
150
			  <input type="hidden" name="FRrtag_id" value="<%=Request("FRrtag_id")%>">
151
			  <input type="hidden" name="rtag_id" value="<%=Request("rtag_id")%>">
152
              <input type="hidden" name="action" value="true">
153
            </td>
154
          </tr>
155
          <tr> 
156
            <td width="1%">&nbsp;</td>
157
            <td width="1%" nowrap class="form_field"><img src="images/h_trsp_dot.gif" width="100" height="10"></td>
158
            <td nowrap width="100%"> 
159
              <p>&nbsp;</p>
160
            </td>
161
          </tr>
162
        </table>
163
      </td>
164
    </tr>
165
    <tr> 
166
      <td height="1%" width="1%"><img src="images/h_trsp_dot.gif" width="5" height="5"></td>
167
      <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/lbox_bg_blue.gif"></td>
168
    </tr>
169
  </table>
170
</form>
171
</body>
172
</html>
173
 
174
 
175
<!-- DESTRUCTOR ------->
176
<!--#include file="common/destructor.asp"-->