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
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
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
86
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
87
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
88
<link rel="stylesheet" href="images/navigation.css" type="text/css">
89
<script language="JavaScript" src="images/common.js"></script>
90
<script language="JavaScript" type="text/javascript">
91
// Verify if comments are too long and not HTML
92
<!--
93
function ValidString(ob,sz) {
94
	var val, maxchars, HTMLchr;
95
	maxchars=sz;
96
	HTMLchr=/[\<\>\'\"]+/i;
97
	val=MM_findObj(ob);
98
	val=val.value;
99
	if (val.length>maxchars) {
100
		alert('Notes are too long!\n\nMaximum of '+ maxchars +' characters is allowed!');
101
   		document.validstr_returnValue = false;
102
	} else if (val.match(HTMLchr)) {
103
		alert('Notes contain invalid characters like \'< > quotes\'');
104
   		document.validstr_returnValue = false;
105
	} else {
106
		document.validstr_returnValue = true;
107
	}
108
}
109
//-->
110
</script>
111
</head>
112
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();document.notes.FRnotes.focus();">
113
<form name="notes" method="post" action="<%=scriptName%>">
114
  <table width="100%" border="0" cellspacing="0" cellpadding="2" height="100%">
115
    <tr> 
116
      <td background="images/lbox_bg_orange.gif" width="1%" height="1%"><img src="images/i_note.gif" width="18" height="22" hspace="5"></td>
117
      <td background="images/lbox_bg_blue.gif" nowrap width="50%" class="wform_ttl">Issue Notes</td>
118
      <td background="images/lbox_bg_blue.gif" align="right" width="50%"> 
119
        <input type="submit" name="btn" value="Submit" class="form_btn_comp" onClick="ValidString('FRnotes',255);return document.validstr_returnValue;">
120
        <input type="reset" name="btn" value="Cancel" class="form_btn_comp" onclick="self.close()">
121
      </td>
122
      <td background="images/lbox_bg_blue.gif" align="right" width="1%%" nowrap> 
123
        <img src="images/h_trsp_dot.gif" width="5" height="22"> </td>
124
    </tr>
125
    <tr> 
126
      <td height="100%" width="1%">&nbsp;</td>
127
      <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif"> 
128
        <table width="100%" border="0" cellspacing="1" cellpadding="2">
129
          <tr> 
130
            <td width="1%"><img src="images/h_trsp_dot.gif" width="10" height="30"></td>
131
            <td nowrap width="100%">&nbsp; </td>
132
          </tr>
133
          <tr> 
134
            <td width="1%">&nbsp;</td>
135
            <td nowrap width="100%" background="images/bg_form_lightbluedark.gif" class="form_txt"> 
136
              <textarea name="FRnotes" cols="60" rows="10" class="form_item" id="FRnotes"><%=Get_Notes( parPv_id, parIss_db, parIss_id )%></textarea>
137
			  <input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
138
			  <input type="hidden" name="pv_id" value="<%=parPv_id%>">
139
			  <input type="hidden" name="iss_db" value="<%=parIss_db%>">
140
			  <input type="hidden" name="iss_id" value="<%=parIss_id%>">
141
              <input type="hidden" name="action" value="true">
142
            </td>
143
          </tr>
144
          <tr> 
145
            <td width="1%">&nbsp;</td>
146
            <td nowrap width="100%"> 
147
              <p>&nbsp;</p>
148
            </td>
149
          </tr>
150
        </table>
151
      </td>
152
    </tr>
153
    <tr>
154
      <td height="1%" width="1%"><img src="images/h_trsp_dot.gif" width="5" height="5"></td>
155
      <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/lbox_bg_blue.gif"></td>
156
    </tr>
157
  </table>
158
</form>
159
</body>
160
</html>
161
 
162
 
163
<!-- DESTRUCTOR ------->
164
<!--#include file="common/destructor.asp"-->