Subversion Repositories DevTools

Rev

Go to most recent revision | Details | 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
%>
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"-->
115
<form name="notes" method="post" action="<%=scriptName%>">
116
  <table width="100%" border="0" cellspacing="0" cellpadding="2" height="100%">
117
    <tr> 
118
      <td background="images/lbox_bg_orange.gif" width="1%" height="1%"><img src="images/i_note.gif" width="18" height="22" hspace="5"></td>
119
      <td background="images/lbox_bg_blue.gif" nowrap width="50%" class="wform_ttl">Issue Notes</td>
120
      <td background="images/lbox_bg_blue.gif" align="right" width="50%"> 
121
        <input type="submit" name="btn" value="Submit" class="form_btn_comp" onClick="ValidString('FRnotes',255);return document.validstr_returnValue;">
122
        <input type="reset" name="btn" value="Cancel" class="form_btn_comp" onclick="self.close()">
123
      </td>
124
      <td background="images/lbox_bg_blue.gif" align="right" width="1%%" nowrap> 
125
        <img src="images/h_trsp_dot.gif" width="5" height="22"> </td>
126
    </tr>
127
    <tr> 
128
      <td height="100%" width="1%">&nbsp;</td>
129
      <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif"> 
130
        <table width="100%" border="0" cellspacing="1" cellpadding="2">
131
          <tr> 
132
            <td width="1%"><img src="images/h_trsp_dot.gif" width="10" height="30"></td>
133
            <td nowrap width="100%">&nbsp; </td>
134
          </tr>
135
          <tr> 
136
            <td width="1%">&nbsp;</td>
137
            <td nowrap width="100%" background="images/bg_form_lightbluedark.gif" class="form_txt"> 
138
              <textarea name="FRnotes" cols="60" rows="10" class="form_item" id="FRnotes"><%=Get_Notes( parPv_id, parIss_db, parIss_id )%></textarea>
139
			  <input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
140
			  <input type="hidden" name="pv_id" value="<%=parPv_id%>">
141
			  <input type="hidden" name="iss_db" value="<%=parIss_db%>">
142
			  <input type="hidden" name="iss_id" value="<%=parIss_id%>">
143
              <input type="hidden" name="action" value="true">
144
            </td>
145
          </tr>
146
          <tr> 
147
            <td width="1%">&nbsp;</td>
148
            <td nowrap width="100%"> 
149
              <p>&nbsp;</p>
150
            </td>
151
          </tr>
152
        </table>
153
      </td>
154
    </tr>
155
    <tr>
156
      <td height="1%" width="1%"><img src="images/h_trsp_dot.gif" width="5" height="5"></td>
157
      <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/lbox_bg_blue.gif"></td>
158
    </tr>
159
  </table>
160
</form>
161
</body>
162
</html>
163
 
164
 
165
<!-- DESTRUCTOR ------->
119 ghuddy 166
<!--#include file="common/destructor.asp"-->