Rev 62 | Blame | Compare with Previous | Last modification | View Log | RSS feed
<%@LANGUAGE="VBSCRIPT"%><%Option explicitResponse.Expires = 0 ' always load the page, dont store%><%'=====================================================' EDIT MEMO Note'=====================================================%><!--#include file="common/config.asp"--><!--#include file="common/globals.asp"--><!--#include file="common/qstr.asp"--><!--#include file="common/common_subs.asp"--><!--#include file="common/formating.asp"--><!--#include file="common/common_dbedit.asp"--><!--#include file="common/_popup_window_common.asp"--><%'------------ ACCESS CONTROL ------------------%><!--#include file="_access_control_general.asp"--><%'------------ Variable Definition -------------Dim rsTemp'------------ Constants Declaration -----------'------------ Variable Init -------------------'----------------------------------------------%><%Function Update_Memo_Message( SSmsg_id, SSmsg, SSexpdate )OraSession.BeginTransOraDatabase.ExecuteSQL _" UPDATE message_board"&_" SET msg_details = '"& SSmsg &"', expiry_date = "& TO_ORADATE( SSexpdate ) &_" WHERE msg_id = "& SSmsg_idOraSession.CommitTransEnd FunctionFunction Delete_Memo_Message( SSmsg_id )OraSession.BeginTransOraDatabase.ExecuteSQL _" DELETE message_board"&_" WHERE msg_id = "& SSmsg_idOraSession.CommitTransEnd FunctionFunction Get_Message_Details ( NNmsg_id )Get_Message_Details = _" SELECT * FROM message_board WHERE msg_id = "& NNmsg_idEnd Function%><%'Process submitionIf CBool(QStrPar("action")) AND QStrPar("btn") = "Update" ThenCall Update_Memo_Message ( QStrPar("FRmsg_id"), QStrPar("FRmsg"), QStrPar("FRexpdate") )%><script language="JavaScript" type="text/javascript">opener.location='default.asp?refresh=true<%=QSTR%>';</script><%Call CloseWindowElseIf CBool(QStrPar("action")) AND QStrPar("btn") = "Delete" ThenCall Delete_Memo_Message ( QStrPar("FRmsg_id") )%><script language="JavaScript" type="text/javascript">opener.location='default.asp?refresh=true<%=QSTR%>';</script><%Call CloseWindowEnd If%><html><head><title>Release Manager</title><meta HTTP-EQUIV="Pragma" CONTENT="no-cache"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link rel="stylesheet" href="images/release_manager_style.css" type="text/css"><link rel="stylesheet" href="images/navigation.css" type="text/css"><script language="JavaScript" src="images/common.js"></script><script language="JavaScript" src="images/calendar.js"></script></head><body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();document.memo.FRmsg.focus();"><%Set rsTemp = OraDatabase.DbCreateDynaset( Get_Message_Details (QStrPar("FRmsg_id")), cint(0))%><form name="memo" method="post" action="<%=scriptName%>?done=done<%=QSTR_All%>" onSubmit="return check();"><table width="100%" border="0" cellspacing="0" cellpadding="2" height="100%"><tr><td background="images/lbox_bg_orange.gif" width="1%" height="1%"><img src="images/h_trsp_dot.gif" width="22" height="1"></td><td background="images/lbox_bg_green.gif" nowrap width="50%" class="wform_ttl"> EDIT Memo</td><td background="images/lbox_bg_green.gif" align="right" width="50%"><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"><input type="submit" name="btn" value="Delete" class="form_btn_comp" onClick="clickedButton=true;"><input type="reset" name="btn" value="Cancel" class="form_btn_comp" onclick="self.close()"></td><td background="images/lbox_bg_green.gif" align="right" width="1%%" nowrap><img src="images/h_trsp_dot.gif" width="5" height="22"> </td></tr><tr><td height="100%" width="1%"> </td><td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif"><table width="100%" border="0" cellspacing="1" cellpadding="2"><tr><td width="1%"><img src="images/h_trsp_dot.gif" width="10" height="30"></td><td width="1%" nowrap class="form_group" valign="bottom"></td><td nowrap width="100%"> </td></tr><tr><td width="1%"> </td><td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Expiry Date </td><td nowrap width="100%" background="images/bg_form_lightbluedark.gif" class="form_txt"><input type="text" name="FRexpdate" maxlength="10" size="10" class="form_item" value="<%=EuroDate (rsTemp.Fields("expiry_date"))%>"><A onmouseover="window.status='Select a date';return true;" onmouseout="window.status='';return true;" href="javascript:show_calendar('memo.FRexpdate',null,null,null);"><img src="images/i_calendar.gif" width="16" height="16" border="0"></a></td></tr><tr><td width="1%"> </td><td colspan="2" nowrap class="form_field" background="images/bg_form_lightbluedark.gif" valign="top"><textarea name="FRmsg" cols="40" rows="10" class="form_item"><%=rsTemp.Fields("msg_details")%></textarea><input type="hidden" name="FRmsg_id" value="<%=QStrPar("FRmsg_id")%>"><input type="hidden" name="action" value="true"></td></tr><tr><td width="1%"> </td><td width="1%" nowrap class="form_field"><img src="images/h_trsp_dot.gif" width="100" height="10"></td><td nowrap width="100%"><p> </p></td></tr></table></td></tr><tr><td height="1%" width="1%"><img src="images/h_trsp_dot.gif" width="5" height="5"></td><td valign="top" nowrap colspan="3" class="wform_ttl" background="images/lbox_bg_green.gif"></td></tr></table></form></body></html><!-- DESTRUCTOR -------><!--#include file="common/globals_destructor.asp"-->