| 5357 |
dpurdie |
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
|
|
2 |
<%
|
|
|
3 |
Option explicit
|
|
|
4 |
Response.Expires = 0 ' always load the page, dont store
|
|
|
5 |
%>
|
|
|
6 |
<%
|
|
|
7 |
'=====================================================
|
|
|
8 |
' EDIT MEMO Note
|
| 5590 |
dpurdie |
9 |
' _wform_memo_edit.asp
|
| 5357 |
dpurdie |
10 |
'=====================================================
|
|
|
11 |
%>
|
|
|
12 |
<!--#include file="common/conf.asp"-->
|
|
|
13 |
<!--#include file="common/globals.asp"-->
|
|
|
14 |
<!--#include file="common/qstr.asp"-->
|
|
|
15 |
<!--#include file="common/common_subs.asp"-->
|
|
|
16 |
<!--#include file="common/formating.asp"-->
|
|
|
17 |
<!--#include file="common/common_dbedit.asp"-->
|
|
|
18 |
<!--#include file="common/_popup_window_common.asp"-->
|
|
|
19 |
<%
|
|
|
20 |
'------------ ACCESS CONTROL ------------------
|
|
|
21 |
%>
|
|
|
22 |
<!--#include file="_access_control_login.asp"-->
|
|
|
23 |
<!--#include file="_access_control_general.asp"-->
|
|
|
24 |
<!--#include file="_access_control_project.asp"-->
|
|
|
25 |
<%
|
|
|
26 |
'------------ Variable Definition -------------
|
|
|
27 |
Dim rsTemp
|
|
|
28 |
'------------ Constants Declaration -----------
|
|
|
29 |
'------------ Variable Init -------------------
|
|
|
30 |
'----------------------------------------------
|
|
|
31 |
%>
|
|
|
32 |
<%
|
|
|
33 |
Function Update_Memo_Message( SSmsg_id, SSmsg, SSexpdate )
|
|
|
34 |
objEH.TryORA ( OraSession )
|
|
|
35 |
On Error Resume Next
|
|
|
36 |
|
|
|
37 |
OraDatabase.ExecuteSQL _
|
|
|
38 |
" UPDATE message_board"&_
|
|
|
39 |
" SET msg_details = '"& SSmsg &"', expiry_date = "& TO_ORADATE( SSexpdate ) &_
|
|
|
40 |
" WHERE msg_id = "& SSmsg_id
|
|
|
41 |
|
|
|
42 |
objEH.CatchORA ( OraSession )
|
|
|
43 |
End Function
|
|
|
44 |
|
|
|
45 |
Function Delete_Memo_Message( SSmsg_id )
|
|
|
46 |
objEH.TryORA ( OraSession )
|
|
|
47 |
On Error Resume Next
|
|
|
48 |
|
|
|
49 |
OraDatabase.ExecuteSQL _
|
|
|
50 |
" DELETE message_board"&_
|
|
|
51 |
" WHERE msg_id = "& SSmsg_id
|
|
|
52 |
|
|
|
53 |
objEH.CatchORA ( OraSession )
|
|
|
54 |
End Function
|
|
|
55 |
|
|
|
56 |
Function Get_Message_Details ( NNmsg_id )
|
|
|
57 |
Get_Message_Details = _
|
|
|
58 |
" SELECT * FROM message_board WHERE msg_id = "& NNmsg_id
|
|
|
59 |
End Function
|
|
|
60 |
%>
|
|
|
61 |
<%
|
|
|
62 |
'Process submition
|
|
|
63 |
If CBool(QStrPar("action")) AND QStrPar("btn") = "Update" Then
|
|
|
64 |
Call Update_Memo_Message ( QStrPar("FRmsg_id"), QStrPar("FRmsg"), QStrPar("FRexpdate") )
|
| 5590 |
dpurdie |
65 |
ReloadParentWindow()
|
|
|
66 |
Response.End
|
| 5357 |
dpurdie |
67 |
ElseIf CBool(QStrPar("action")) AND QStrPar("btn") = "Delete" Then
|
|
|
68 |
Call Delete_Memo_Message ( QStrPar("FRmsg_id") )
|
| 5590 |
dpurdie |
69 |
ReloadParentWindow()
|
|
|
70 |
Response.End
|
| 5357 |
dpurdie |
71 |
End If
|
|
|
72 |
%>
|
|
|
73 |
<html>
|
|
|
74 |
<head>
|
|
|
75 |
<title>Release Manager</title>
|
|
|
76 |
<link rel="shortcut icon" href="<%=FavIcon%>"/>
|
|
|
77 |
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
|
|
78 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
|
79 |
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
|
|
|
80 |
<link rel="stylesheet" href="images/navigation.css" type="text/css">
|
|
|
81 |
<script language="JavaScript" src="images/common.js"></script>
|
|
|
82 |
<script language="JavaScript" src="images/calendar.js"></script>
|
|
|
83 |
</head>
|
|
|
84 |
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();document.memo.FRmsg.focus();">
|
|
|
85 |
<%Set rsTemp = OraDatabase.DbCreateDynaset( Get_Message_Details (QStrPar("FRmsg_id")), cint(0))%>
|
| 5590 |
dpurdie |
86 |
<form class="form_tight" name="memo" method="post" action="<%=scriptName%>?done=done<%=QSTR_All%>" onSubmit="return check();">
|
|
|
87 |
<table border="0" cellspacing="0" cellpadding="2">
|
| 5357 |
dpurdie |
88 |
<tr>
|
| 5590 |
dpurdie |
89 |
<td valign="top" nowrap colspan="2" class="wform_ttl" background="images/bg_form_lightgray.gif">
|
|
|
90 |
<table border="0" cellspacing="1" cellpadding="2">
|
| 5357 |
dpurdie |
91 |
<tr>
|
|
|
92 |
<td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Expiry Date </td>
|
| 5590 |
dpurdie |
93 |
<td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
|
|
|
94 |
<input type="text" name="FRexpdate" maxlength="10" size="10" class="form_item" value="<%=EuroDate(Date+7)%>">
|
|
|
95 |
<a href="javascript:show_calendar('memo.FRexpdate',null,null,null);"><img src="images/i_calendar.gif" width="16" height="16" border="0"></a>
|
| 5357 |
dpurdie |
96 |
</td>
|
|
|
97 |
</tr>
|
|
|
98 |
<tr>
|
|
|
99 |
<td colspan="2" nowrap class="form_field" background="images/bg_form_lightbluedark.gif" valign="top">
|
| 5590 |
dpurdie |
100 |
<textarea name="FRmsg" cols="80" rows="10" class="form_item"><%=rsTemp.Fields("msg_details")%></textarea>
|
|
|
101 |
<input type="hidden" name="FRmsg_id" value="<%=QStrPar("FRmsg_id")%>">
|
| 5357 |
dpurdie |
102 |
<input type="hidden" name="action" value="true">
|
|
|
103 |
</td>
|
|
|
104 |
</tr>
|
|
|
105 |
</table>
|
|
|
106 |
</td>
|
|
|
107 |
</tr>
|
|
|
108 |
<tr>
|
| 5590 |
dpurdie |
109 |
<td align="right">
|
|
|
110 |
<input type="submit" name="btn" value="Update" class="form_btn_comp" onClick="clickedButton=true;MM_validateForm('FRduedate','Due Date','R','FRmsg','Message details','R');return document.MM_returnValue">
|
|
|
111 |
<input type="submit" name="btn" value="Delete" class="form_btn_comp" onClick="clickedButton=true;">
|
|
|
112 |
<input type="reset" name="btn" value="Cancel" class="form_btn_comp" onclick="parent.closeIFrame();">
|
|
|
113 |
</td>
|
| 5357 |
dpurdie |
114 |
</tr>
|
|
|
115 |
</table>
|
|
|
116 |
</form>
|
|
|
117 |
</body>
|
|
|
118 |
</html>
|
|
|
119 |
|
|
|
120 |
|
|
|
121 |
<!-- DESTRUCTOR ------->
|
|
|
122 |
<!--#include file="common/destructor.asp"-->
|