Subversion Repositories DevTools

Rev

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