| 5357 |
dpurdie |
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
|
|
2 |
<%
|
|
|
3 |
Option explicit
|
|
|
4 |
Response.Expires = 0 ' always load the page, dont store
|
|
|
5 |
%>
|
|
|
6 |
<%
|
|
|
7 |
'=====================================================
|
|
|
8 |
' Issue Notes
|
|
|
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 |
'------------ ACCESS CONTROL ------------------
|
|
|
20 |
%>
|
|
|
21 |
<!--#include file="_access_control_general.asp"-->
|
|
|
22 |
<%
|
|
|
23 |
'------------ Variable Definition -------------
|
|
|
24 |
Dim parPv_id
|
|
|
25 |
Dim parIss_db
|
|
|
26 |
Dim parIss_id
|
|
|
27 |
'------------ Constants Declaration -----------
|
|
|
28 |
'------------ Variable Init -------------------
|
|
|
29 |
parPv_id = QStrPar("pv_id")
|
|
|
30 |
parIss_db = QStrPar("iss_db")
|
|
|
31 |
parIss_id = QStrPar("iss_id")
|
|
|
32 |
'----------------------------------------------
|
|
|
33 |
%>
|
|
|
34 |
<%
|
|
|
35 |
Function Get_Notes( NNPv_id, NNiss_db, NNiss_id )
|
|
|
36 |
Dim rsTemp, Query_String
|
|
|
37 |
Query_String = _
|
|
|
38 |
" SELECT notes"&_
|
|
|
39 |
" FROM cq_issues"&_
|
|
|
40 |
" WHERE pv_id = "& NNPv_id &" AND iss_db="& NNiss_db &" AND iss_id="& NNiss_id
|
|
|
41 |
Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
|
|
|
42 |
If ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF)) Then
|
|
|
43 |
Get_Notes = rsTemp.Fields("notes")
|
|
|
44 |
End If
|
|
|
45 |
rsTemp.Close
|
|
|
46 |
Set rsTemp = nothing
|
|
|
47 |
End Function
|
|
|
48 |
|
|
|
49 |
Sub Update_Issue_Notes ( NNPv_id, NNiss_db, NNiss_id, SSparNotes )
|
|
|
50 |
Dim rsTemp, Query_String
|
|
|
51 |
Query_String = _
|
|
|
52 |
" SELECT notes"&_
|
|
|
53 |
" FROM cq_issues"&_
|
|
|
54 |
" WHERE pv_id = "& NNPv_id &" AND iss_db="& NNiss_db &" AND iss_id="& NNiss_id
|
|
|
55 |
Set rsTemp = OraDatabase.CreateDynaset( Query_String, cint(0))
|
|
|
56 |
'update fields
|
|
|
57 |
rsTemp.Edit
|
|
|
58 |
rsTemp.Fields("notes").Value = SSparNotes
|
|
|
59 |
rsTemp.Update
|
|
|
60 |
|
|
|
61 |
rsTemp.Close
|
|
|
62 |
Set rsTemp = nothing
|
|
|
63 |
End Sub
|
|
|
64 |
%>
|
|
|
65 |
<%
|
|
|
66 |
'Process submition
|
|
|
67 |
If CBool(QStrPar("action")) Then
|
|
|
68 |
Call Update_Issue_Notes ( parPv_id, parIss_db, parIss_id, QStrPar("FRnotes") )
|
|
|
69 |
Call OpenInParentWindow ( "fixed_issues.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id &"&hidenv=true" )
|
|
|
70 |
Call CloseWindow
|
|
|
71 |
Else
|
|
|
72 |
'------------ Action Requirements -------------------
|
|
|
73 |
If NOT objAccessControl.UserLogedIn Then
|
|
|
74 |
' NOT AUTHENTICATED
|
|
|
75 |
Call OpenInParentWindow("login.asp?rfile=fixed_issues.asp"& QSTR_All)
|
|
|
76 |
Call CloseWindow
|
|
|
77 |
|
|
|
78 |
End If
|
|
|
79 |
|
|
|
80 |
End If
|
|
|
81 |
%>
|
|
|
82 |
<html>
|
|
|
83 |
<head>
|
|
|
84 |
<title>Release Manager</title>
|
|
|
85 |
<link rel="shortcut icon" href="<%=FavIcon%>"/>
|
|
|
86 |
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
|
|
87 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
|
88 |
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
|
|
|
89 |
<link rel="stylesheet" href="images/navigation.css" type="text/css">
|
|
|
90 |
<script language="JavaScript" src="images/common.js"></script>
|
|
|
91 |
<script language="JavaScript" type="text/javascript">
|
|
|
92 |
// Verify if comments are too long and not HTML
|
|
|
93 |
<!--
|
|
|
94 |
function ValidString(ob,sz) {
|
|
|
95 |
var val, maxchars, HTMLchr;
|
|
|
96 |
maxchars=sz;
|
|
|
97 |
HTMLchr=/[\<\>\'\"]+/i;
|
|
|
98 |
val=MM_findObj(ob);
|
|
|
99 |
val=val.value;
|
|
|
100 |
if (val.length>maxchars) {
|
|
|
101 |
vixAlert('Notes are too long!\n\nMaximum of '+ maxchars +' characters is allowed!');
|
|
|
102 |
document.validstr_returnValue = false;
|
|
|
103 |
} else if (val.match(HTMLchr)) {
|
|
|
104 |
vixAlert('Notes contain invalid characters like \'< > quotes\'');
|
|
|
105 |
document.validstr_returnValue = false;
|
|
|
106 |
} else {
|
|
|
107 |
document.validstr_returnValue = true;
|
|
|
108 |
}
|
|
|
109 |
}
|
|
|
110 |
//-->
|
|
|
111 |
</script>
|
|
|
112 |
</head>
|
|
|
113 |
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();document.notes.FRnotes.focus();">
|
|
|
114 |
<!--#include file="_jquery_includes.asp"-->
|
| 5590 |
dpurdie |
115 |
<form class="form_tight" name="notes" method="post" action="<%=scriptName%>">
|
|
|
116 |
<table border="0" cellspacing="0" cellpadding="2">
|
| 5357 |
dpurdie |
117 |
<tr>
|
|
|
118 |
<td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif">
|
|
|
119 |
<table width="100%" border="0" cellspacing="1" cellpadding="2">
|
|
|
120 |
<tr>
|
|
|
121 |
<td nowrap width="100%" background="images/bg_form_lightbluedark.gif" class="form_txt">
|
|
|
122 |
<textarea name="FRnotes" cols="60" rows="10" class="form_item" id="FRnotes"><%=Get_Notes( parPv_id, parIss_db, parIss_id )%></textarea>
|
|
|
123 |
<input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
|
|
|
124 |
<input type="hidden" name="pv_id" value="<%=parPv_id%>">
|
|
|
125 |
<input type="hidden" name="iss_db" value="<%=parIss_db%>">
|
|
|
126 |
<input type="hidden" name="iss_id" value="<%=parIss_id%>">
|
|
|
127 |
<input type="hidden" name="action" value="true">
|
|
|
128 |
</td>
|
|
|
129 |
</tr>
|
|
|
130 |
</table>
|
|
|
131 |
</td>
|
|
|
132 |
</tr>
|
| 5590 |
dpurdie |
133 |
<tr>
|
|
|
134 |
<td align="right">
|
|
|
135 |
<input type="submit" name="btn" value="Submit" class="form_btn_comp" onClick="ValidString('FRnotes',255);return document.validstr_returnValue;">
|
|
|
136 |
<input type="reset" name="btn" value="Cancel" class="form_btn_comp" onclick="parent.closeIFrame();">
|
|
|
137 |
</td>
|
|
|
138 |
</tr>
|
| 5357 |
dpurdie |
139 |
</table>
|
|
|
140 |
</form>
|
|
|
141 |
</body>
|
|
|
142 |
</html>
|
|
|
143 |
<!-- DESTRUCTOR ------->
|
| 119 |
ghuddy |
144 |
<!--#include file="common/destructor.asp"-->
|