Subversion Repositories DevTools

Rev

Rev 5506 | Rev 5635 | 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
'               MEMO Note
9
'=====================================================
10
%>
11
<!--#include file="common/conf.asp"-->
12
<!--#include file="common/globals.asp"-->
13
<!--#include file="common/qstr.asp"-->
14
<!--#include file="common/common_subs.asp"-->
15
<!--#include file="common/formating.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_login.asp"-->
22
<!--#include file="_access_control_general.asp"-->
23
<!--#include file="_access_control_project.asp"-->
24
<%
25
'------------ Variable Definition -------------
26
'------------ Constants Declaration -----------
27
'------------ Variable Init -------------------
28
'----------------------------------------------
29
%>
30
<%
31
Function Insert_Memo_Message( SSmsg, SSexpdate )
32
   Dim SEQ_msg_id
33
   SEQ_msg_id = Get_From_DUAL("SEQ_MSG_ID.nextval")
34
 
35
   objEH.TryORA ( OraSession )
36
   On Error Resume Next
37
 
38
   OraDatabase.ExecuteSQL _
39
      " INSERT INTO message_board (msg_id, msg_details, submition_date, expiry_date)"&_
40
      " VALUES ("& SEQ_msg_id &", '"& SSmsg &"', "& ORA_SYSDATE &","& TO_ORADATE( SSexpdate ) &")"
41
 
42
   objEH.CatchORA ( OraSession )
43
End Function
44
%>
45
<%
46
'Process submition
47
If CBool(QStrPar("action")) Then
48
      Call Insert_Memo_Message ( QStrPar("FRmsg"), QStrPar("FRexpdate") )
5590 dpurdie 49
      ReloadParentWindow()
50
      Response.End
5357 dpurdie 51
End If
52
%>
53
<html>
54
<head>
55
<title>Release Manager</title>
56
<link rel="shortcut icon" href="<%=FavIcon%>"/>
57
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
58
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
59
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
60
<link rel="stylesheet" href="images/navigation.css" type="text/css">
61
<script language="JavaScript" src="images/common.js"></script>
62
<script language="JavaScript" src="images/calendar.js"></script>
63
</head>
64
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();document.memo.FRmsg.focus();">
5590 dpurdie 65
<form class="form_tight" name="memo" method="post" action="<%=scriptName%>?done=done<%=QSTR_All%>" onSubmit="return check();">
66
  <table border="0" cellspacing="0" cellpadding="2">
5357 dpurdie 67
    <tr>
5590 dpurdie 68
      <td valign="top" nowrap colspan="2" class="wform_ttl" background="images/bg_form_lightgray.gif">
69
        <table border="0" cellspacing="1" cellpadding="2">
5357 dpurdie 70
          <tr>
71
            <td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Expiry Date </td>
5590 dpurdie 72
            <td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
5357 dpurdie 73
              <input type="text" name="FRexpdate" maxlength="10" size="10" class="form_item" value="<%=EuroDate(Date+7)%>">
5590 dpurdie 74
              <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 75
            </td>
76
          </tr>
77
          <tr>
78
            <td colspan="2" nowrap class="form_field" background="images/bg_form_lightbluedark.gif" valign="top">
5590 dpurdie 79
              <textarea name="FRmsg" cols="80" rows="10" class="form_item"></textarea>
5357 dpurdie 80
              <input type="hidden" name="action" value="true">
81
            </td>
82
          </tr>
83
        </table>
84
      </td>
85
    </tr>
86
    <tr>
5590 dpurdie 87
      <td align="right">
88
        <input type="submit" name="btn" value="Add" class="form_btn_comp" onClick="clickedButton=true;MM_validateForm('FRexpdate','Expiry Date','R','FRmsg','Message details','R');return document.MM_returnValue">
89
        <input type="reset" name="btn" value="Cancel" class="form_btn_comp" onclick="parent.closeIFrame();">
90
      </td>
5357 dpurdie 91
    </tr>
92
  </table>
93
</form>
94
</body>
95
</html>
96
 
97
 
98
<!-- DESTRUCTOR ------->
99
<!--#include file="common/destructor.asp"-->