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
151 ghuddy 4
Response.Expires = 0   ' always load the page, dont store
119 ghuddy 5
%>
6
<%
7
'=====================================================
151 ghuddy 8
'               Reason for version
119 ghuddy 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 )
151 ghuddy 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
119 ghuddy 47
End Function
48
 
49
%>
50
<%
51
'Process submition
52
If CBool(QStrPar("action")) AND objAccessControl.UserLogedIn Then
151 ghuddy 53
   Call UpdateReasonForVersion ( Request("pv_id"), Request("FRreason") )
54
   Call OpenInParentWindow ("fixed_issues.asp?pv_id="& Request("pv_id") &"&rtag_id="& Request("rtag_id") )
55
   Call CloseWindow
56
 
119 ghuddy 57
End If
58
%>
59
<html>
151 ghuddy 60
   <head>
61
      <title>Release Manager</title>
62
      <meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
63
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
64
      <link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
65
      <link rel="stylesheet" href="images/navigation.css" type="text/css">
66
      <script language="JavaScript" src="images/common.js"></script>
67
   </head>
68
   <body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();document.reason.FRreason.focus();">
69
      <form name="reason" method="post" action="<%=scriptName%>" onSubmit="MM_validateForm('FRreason','Reason for This Version','maxLength:4000');return document.MM_returnValue;">
70
         <table width="100%" border="0" cellspacing="0" cellpadding="2" height="100%">
71
            <tr>
72
               <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>
73
               <td background="images/lbox_bg_blue.gif" nowrap width="50%" class="wform_ttl">&nbsp;Reason for This Version</td>
74
               <td background="images/lbox_bg_blue.gif" align="right" width="50%">
75
                  <input type="submit" name="btn" value="Submit" class="form_btn_comp">
76
                  <input type="reset" name="btn" value="Cancel" class="form_btn_comp" onclick="self.close()">
77
               </td>
78
               <td background="images/lbox_bg_blue.gif" align="right" width="1%%" nowrap>
79
                  <img src="images/h_trsp_dot.gif" width="5" height="22">
80
               </td>
81
            </tr>
82
            <tr>
83
               <td height="100%" width="1%">&nbsp;</td>
84
               <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif">
85
                  <table width="100%" border="0" cellspacing="1" cellpadding="2">
86
                     <tr>
87
                        <td width="1%"><img src="images/h_trsp_dot.gif" width="10" height="30"></td>
88
                        <td nowrap width="100%">&nbsp; </td>
89
                     </tr>
90
                     <tr>
91
                        <td width="1%">&nbsp;</td>
92
                        <td nowrap width="100%" background="images/bg_form_lightbluedark.gif" class="form_txt">
93
                           <textarea name="FRreason" class="form_item" style="width: 420px; height: 150px"><%=Format4HTML(Get_Comments( parPv_id ))%></textarea>
94
                           <input type="hidden" name="pv_id" value="<%=parPv_id%>">
95
                           <input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
96
                           <input type="hidden" name="action" value="true">
97
                        </td>
98
                     </tr>
99
                     <tr>
100
                        <td width="1%">&nbsp;</td>
101
                        <td nowrap width="100%">
102
                        <p>&nbsp;</p>
103
                        </td>
104
                     </tr>
105
                  </table>
106
               </td>
107
            </tr>
108
            <tr>
109
               <td height="1%" width="1%"><img src="images/h_trsp_dot.gif" width="5" height="5"></td>
110
               <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/lbox_bg_blue.gif"></td>
111
            </tr>
112
         </table>
113
      </form>
114
   </body>
119 ghuddy 115
</html>
116
 
117
 
118
<!-- DESTRUCTOR ------->
151 ghuddy 119
<!--#include file="common/destructor.asp"-->