Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
119 ghuddy 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
' 			 	   Add 
5
'               --- PROCESS FORM ---
6
'=====================================================
7
%>
8
<%
9
Option explicit
10
' Good idea to set when using redirect
11
Response.Expires = 0	' always load the page, dont store
12
%>
13
 
14
<!--#include file="common/conf.asp"-->
15
<!--#include file="common/globals.asp"-->
16
<!--#include file="common/formating.asp"-->
17
<!--#include file="common/qstr.asp"-->
18
<!--#include file="common/common_subs.asp"-->
19
<!--#include file="common/common_dbedit.asp"-->
20
<%
21
'------------ ACCESS CONTROL ------------------
22
%>
23
<!--#include file="_access_control_login.asp"-->
24
<!--#include file="_access_control_general.asp"-->
25
<!--#include file="_access_control_project.asp"-->
26
<%
27
'------------ Variable Definition -------------
28
Dim ProblemsString
29
Dim OverideWarnings
30
'------------ Constants Declaration -----------
31
'------------ Variable Init -------------------
32
ProblemsString = NULL
33
 
34
OverideWarnings = "N"
35
If InStr( 1, Request("btn"), "YES", 1 ) > 0 Then OverideWarnings = "Y"
36
 
37
'----------------------------------------------
38
%>
39
<%
40
Sub AddReleaseReference	( nRtagId, nRefRtagId, outProblemsString )
41
 
42
	OraDatabase.Parameters.Add "RTAG_ID", 			nRtagId, 		ORAPARM_INPUT, ORATYPE_NUMBER 
43
	OraDatabase.Parameters.Add "REF_RTAG_ID", 		nRefRtagId, 	ORAPARM_INPUT, ORATYPE_NUMBER
44
	OraDatabase.Parameters.Add "PROBLEM_STRING", 	NULL, 			ORAPARM_OUTPUT, ORATYPE_VARCHAR2
45
 
46
 
47
	OraSession.BeginTrans
48
 
49
	OraDatabase.ExecuteSQL _
50
	" BEGIN "&_
51
	" 	PK_RELEASE.ADD_RELEASE_REFERENCE ( :RTAG_ID, :REF_RTAG_ID, :PROBLEM_STRING ); "&_
52
	" END; "
53
 
54
	OraSession.CommitTrans
55
 
56
	outProblemsString = OraDatabase.Parameters("PROBLEM_STRING").Value 
57
 
58
 
59
	OraDatabase.Parameters.Remove "RTAG_ID"
60
	OraDatabase.Parameters.Remove "REF_RTAG_ID"
61
	OraDatabase.Parameters.Remove "PROBLEM_STRING"
62
End Sub
63
%>
64
<%
65
'-----------------------  MAIN LINE  ---------------------------
66
 
67
'------ ACCESS CONTROL ----------
68
If NOT objAccessControl.IsVisible("AddReleaseReference") Then
69
	Call OpenInWindow ( "Login.asp?message=4&rfile="& scriptName & objPMod.ComposeURLWithout("rfile") )
70
End If
71
'--------------------------------
72
 
73
If (Request("RefRtag_id") <> "")  AND  (Request("ToRtag_id") <> "") Then
74
 
75
	'--- Process submition ---
76
	Call AddReleaseReference ( Request("ToRtag_id"), Request("RefRtag_id"), ProblemsString )
77
 
78
	If IsNull( ProblemsString ) Then
79
		Response.Redirect( "dependencies.asp?rtag_id="& Request("ToRtag_id") )
80
	End If
81
 
82
Else
83
 
84
	Err.Raise 8, "This page requires more paramaters to run.<br>"& objPMod.ComposeURL()
85
 
86
End If
87
 
88
'----------------------------------------------------------------
89
%>
90
 
91
 
92
<html>
93
<head>
94
<title>Release Manager</title>
95
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
96
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
97
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
98
<link rel="stylesheet" href="images/navigation.css" type="text/css">
99
<script language="JavaScript" src="images/common.js"></script>
100
 
101
</head>
102
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
103
<!-- BODY ---->
104
 
105
 
106
<table width="100%" height="98%"  border="0" cellpadding="0" cellspacing="0">
107
  <tr>
108
    <td align="center" valign="middle" background="images/bg_form_lightgray.gif"><table width="650" border="0" cellspacing="0" cellpadding="0">
109
      <tr>
110
        <td>
111
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
112
            <tr>
113
              <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>
114
              <td background="images/lbox_bg_blue.gif"><!-- Heading -->
115
                  <img src="images/h_trsp_dot.gif" width="1" height="20">
116
                  <!-- END Heading --></td>
117
              <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>
118
            </tr>
119
            <tr>
120
              <td width="1%" bgcolor="#FFFFFF"><img src="images/h_trsp_dot.gif" width="10" height="100"></td>
121
              <td bgcolor="#FFFFFF" valign="top">
122
                <!-- Body -->
123
                <table width="100%" border="0" cellspacing="1" cellpadding="2">
124
                  <form name="form" method="get" action="<%=ScriptName%>">
125
                    <tr>
126
                      <td width="1%"><img src="images/h_trsp_dot.gif" width="1" height="10"></td>
127
                      <td width="1%" nowrap class="form_group" valign="bottom"></td>
128
                      <td nowrap width="100%" align="right" class="form_step"></td>
129
                    </tr>
130
                    <tr>
131
                      <td width="1%">&nbsp;</td>
132
                      <td colspan="2" width="1%" nowrap class="form_field">
133
                        <table width="100%"  border="0" cellspacing="0" cellpadding="10">
134
                          <tr>
135
                            <td background="images/bg_form_lightbluedark.gif"><p class="err_ttl">Please note:</p></td>
136
                          </tr>
137
                          <tr>
138
                            <td background="images/bg_form_lightgray.gif" class="form_item">
139
							<%
140
							' Format problem report string to html
141
							Response.write Replace( Server.HTMLEncode( ProblemsString ), VBNewLine, "<br>" )
142
							%>
143
							</td>
144
                          </tr>
145
                          <tr>
146
                            <td background="images/bg_form_lightgray.gif" class="form_item">This action will be cancelled ? </td>
147
                          </tr>
148
                      </table></td>
149
                    </tr>
150
                    <tr>
151
                      <td width="1%">&nbsp;</td>
152
                      <td width="1%" nowrap class="form_field"><img src="images/h_trsp_dot.gif" width="1" height="1"></td>
153
                      <td nowrap width="100%" class="body_scol">
154
					  	<br>
155
                        <input type="reset" name="btn" value="   OK   " class="form_btn" onClick="history.back();">
156
                        <br><br>
157
                      </td>
158
                    </tr>
159
					<%=objPMod.ComposeHiddenTags()%>
160
                  </form>
161
                </table>
162
                <!-- END Body-->
163
              </td>
164
              <td width="1%" background="images/lbox_bgside_white.gif">&nbsp;</td>
165
            </tr>
166
            <tr>
167
              <td width="1%" background="images/lbox_bg_blue.gif" valign="bottom"><img src="images/lbox_bl_cnr_b.gif" width="13" height="13"></td>
168
              <td background="images/lbox_bg_blue.gif"></td>
169
              <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>
170
            </tr>
171
        </table></td>
172
      </tr>
173
    </table></td>
174
  </tr>
175
</table>
176
</body>
177
</html>
178
 
179
 
180
<!-- DESTRUCTOR ------->
181
<!--#include file="common/destructor.asp"-->