Subversion Repositories DevTools

Rev

Go to most recent revision | 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
'					Reason for version
9
'=====================================================
10
%>
11
<!--#include file="common/conf.asp"-->
12
<!--#include file="common/globals.asp"-->
13
<!--#include file="common/formating.asp"-->
14
<!--#include file="common/qstr.asp"-->
15
<!--#include file="common/common_subs.asp"-->
16
<!--#include file="common/common_dbedit.asp"-->
17
<!--#include file="common/_popup_window_common.asp"-->
18
<%
19
' Set rfile parameter. This is a return page after Login
20
Call objPMod.StoreParameter ( "rfile", "fixed_issues.asp" )
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 parPv_id
29
'------------ Constants Declaration -----------
30
'------------ Variable Init -------------------
31
parPv_id = QStrPar("pv_id")
32
'----------------------------------------------
33
%>
34
<%
35
Function Get_Comments( NNPv_id )
36
	Dim rsTemp, Query_String
37
	Query_String = _
38
	" SELECT comments"&_
39
	"  FROM package_versions"&_
40
	" WHERE pv_id = "& NNPv_id
41
	Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
42
	If ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF)) Then
43
		Get_Comments = rsTemp.Fields("comments")
44
	End If
45
	rsTemp.Close
46
	Set rsTemp = nothing
47
End Function
48
 
49
Sub Submit_Reason_For_Version ( NNPv_id, SSparReason )
50
	Dim rsTemp, Query_String
51
	Query_String = _
52
	" SELECT comments"&_
53
	" FROM package_versions"&_
54
	" WHERE pv_id = "& NNPv_id 
55
	Set rsTemp = OraDatabase.CreateDynaset( Query_String, cint(0))
56
	'update fields
57
	rsTemp.Edit
58
	rsTemp.Fields("comments").Value = SSparReason
59
	rsTemp.Update
60
 
61
	rsTemp.Close
62
	Set rsTemp = nothing
63
 
64
 
65
	'/* Log Action */
66
	Call Log_Action ( NNPv_id, "reason_for_release", SSparReason )
67
 
68
End Sub
69
%>
70
<%
71
'Process submition
72
If CBool(QStrPar("action")) AND objAccessControl.UserLogedIn Then
73
	Call Submit_Reason_For_Version ( Request("pv_id"), Request("FRreason") )
74
	Call OpenInParentWindow ("fixed_issues.asp?pv_id="& Request("pv_id") &"&rtag_id="& Request("rtag_id") )
75
	Call CloseWindow
76
 
77
End If
78
%>
79
<html>
80
<head>
81
<title>Release Manager</title>
82
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
83
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
84
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
85
<link rel="stylesheet" href="images/navigation.css" type="text/css">
86
<script language="JavaScript" src="images/common.js"></script>
87
</head>
88
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();document.reason.FRreason.focus();">
89
<form name="reason" method="post" action="<%=scriptName%>" onSubmit="MM_validateForm('FRreason','Reason for This Version','maxLength:4000');return document.MM_returnValue;">
90
  <table width="100%" border="0" cellspacing="0" cellpadding="2" height="100%">
91
    <tr> 
92
      <td background="images/lbox_bg_orange.gif" width="1%" height="1%"><img src="images/s_notes_off.gif" width="20" height="24" hspace="5" border="0"></td>
93
      <td background="images/lbox_bg_blue.gif" nowrap width="50%" class="wform_ttl">&nbsp;Reason for This Version</td>
94
      <td background="images/lbox_bg_blue.gif" align="right" width="50%"> 
95
        <input type="submit" name="btn" value="Submit" class="form_btn_comp">
96
        <input type="reset" name="btn" value="Cancel" class="form_btn_comp" onclick="self.close()">
97
      </td>
98
      <td background="images/lbox_bg_blue.gif" align="right" width="1%%" nowrap> 
99
        <img src="images/h_trsp_dot.gif" width="5" height="22"> </td>
100
    </tr>
101
    <tr> 
102
      <td height="100%" width="1%">&nbsp;</td>
103
      <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif"> 
104
        <table width="100%" border="0" cellspacing="1" cellpadding="2">
105
          <tr> 
106
            <td width="1%"><img src="images/h_trsp_dot.gif" width="10" height="30"></td>
107
            <td nowrap width="100%">&nbsp; </td>
108
          </tr>
109
          <tr> 
110
            <td width="1%">&nbsp;</td>
111
            <td nowrap width="100%" background="images/bg_form_lightbluedark.gif" class="form_txt"> 
112
              <textarea name="FRreason" class="form_item" style="width: 420px; height: 150px"><%=Format4HTML(Get_Comments( parPv_id ))%></textarea>
113
			  <input type="hidden" name="pv_id" value="<%=parPv_id%>">
114
			  <input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
115
              <input type="hidden" name="action" value="true">
116
            </td>
117
          </tr>
118
          <tr> 
119
            <td width="1%">&nbsp;</td>
120
            <td nowrap width="100%"> 
121
              <p>&nbsp;</p>
122
            </td>
123
          </tr>
124
        </table>
125
      </td>
126
    </tr>
127
    <tr>
128
      <td height="1%" width="1%"><img src="images/h_trsp_dot.gif" width="5" height="5"></td>
129
      <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/lbox_bg_blue.gif"></td>
130
    </tr>
131
  </table>
132
</form>
133
</body>
134
</html>
135
 
136
 
137
<!-- DESTRUCTOR ------->
138
<!--#include file="common/destructor.asp"-->