Subversion Repositories DevTools

Rev

Rev 5957 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5357 dpurdie 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
%>
50
<%
51
'Process submition
52
If CBool(QStrPar("action")) AND objAccessControl.UserLogedIn Then
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
 
57
End If
58
%>
59
<html>
60
   <head>
61
      <title>Release Manager</title>
62
      <link rel="shortcut icon" href="<%=FavIcon%>"/>
63
      <meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
64
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
6579 dpurdie 65
      <link rel="stylesheet" href="images/release_manager_style.css?ver=<%=VixVerNum%>" type="text/css">
66
      <link rel="stylesheet" href="images/navigation.css?ver=<%=VixVerNum%>" type="text/css">
67
      <script language="JavaScript" src="images/common.js?ver=<%=VixVerNum%>"></script>
5357 dpurdie 68
   </head>
69
   <body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();document.reason.FRreason.focus();">
5590 dpurdie 70
      <form class="form_tight" name="reason" method="post" action="<%=scriptName%>" onSubmit="MM_validateForm('FRreason','Reason for This Version','maxLength:4000');return document.MM_returnValue;">
71
         <table border="0" cellspacing="0" cellpadding="2">
5357 dpurdie 72
            <tr>
73
               <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif">
74
                  <table width="100%" border="0" cellspacing="1" cellpadding="2">
75
                     <tr>
76
                        <td nowrap width="100%" background="images/bg_form_lightbluedark.gif" class="form_txt">
77
                           <textarea name="FRreason" class="form_item" style="width: 420px; height: 150px"><%=Format4HTML(Get_Comments( parPv_id ))%></textarea>
78
                           <input type="hidden" name="pv_id" value="<%=parPv_id%>">
79
                           <input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
80
                           <input type="hidden" name="action" value="true">
81
                        </td>
82
                     </tr>
83
                  </table>
84
               </td>
85
            </tr>
86
            <tr>
5590 dpurdie 87
               <td align="right">
88
                  <input type="submit" name="btn" value="Submit" class="form_btn_comp">
89
                  <input type="reset" name="btn" value="Cancel" class="form_btn_comp" onclick="parent.closeIFrame();">
90
               </td>
5357 dpurdie 91
            </tr>
92
         </table>
93
      </form>
94
   </body>
95
</html>
96
<!-- DESTRUCTOR ------->
97
<!--#include file="common/destructor.asp"-->