Subversion Repositories DevTools

Rev

Rev 5958 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5355 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/config.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
 
22
<!--#include file="_access_control_general.asp"-->
23
 
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
	OraSession.BeginTrans
35
	OraDatabase.ExecuteSQL _
36
		" INSERT INTO message_board (msg_id, msg_details, submition_date, expiry_date)"&_
37
		" VALUES ("& SEQ_msg_id &", '"& SSmsg &"', "& ORA_SYSDATE &","& TO_ORADATE( SSexpdate ) &")"
38
  	OraSession.CommitTrans
39
End Function
40
%>
41
<%
42
'Process submition
43
If CBool(QStrPar("action")) Then
44
		Call Insert_Memo_Message ( QStrPar("FRmsg"), QStrPar("FRexpdate") )
45
		%>
46
		<script language="JavaScript" type="text/javascript">
47
		opener.location='default.asp?refresh=true<%=QSTR%>';
48
		</script>		
49
		<%
50
		Call CloseWindow
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">
6663 dpurdie 59
<link rel="stylesheet" href="images/release_manager_style.css?ver=<%=VixVerNum%>" type="text/css">
60
<link rel="stylesheet" href="images/navigation.css?ver=<%=VixVerNum%>" type="text/css">
61
<script language="JavaScript" src="images/common.js?ver=<%=VixVerNum%>"></script>
62
<script language="JavaScript" src="images/calendar.js?ver=<%=VixVerNum%>"></script>
5355 dpurdie 63
</head>
64
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();document.memo.FRmsg.focus();">
65
<form name="memo" method="post" action="<%=scriptName%>?done=done<%=QSTR_All%>" onSubmit="return check();">
66
  <table width="100%" border="0" cellspacing="0" cellpadding="2" height="100%">
67
    <tr> 
68
      <td background="images/lbox_bg_orange.gif" width="1%" height="1%"><img src="images/h_trsp_dot.gif" width="22" height="1"></td>
69
      <td background="images/lbox_bg_blue.gif" nowrap width="50%" class="wform_ttl">&nbsp;ADD Memo</td>
70
      <td background="images/lbox_bg_blue.gif" align="right" width="50%"> 
71
        <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">
72
        <input type="reset" name="btn" value="Cancel" class="form_btn_comp" onclick="self.close()">
73
      </td>
74
      <td background="images/lbox_bg_blue.gif" align="right" width="1%%" nowrap> 
75
        <img src="images/h_trsp_dot.gif" width="5" height="22"> </td>
76
    </tr>
77
    <tr> 
78
      <td height="100%" width="1%">&nbsp;</td>
79
      <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif"> 
80
        <table width="100%" border="0" cellspacing="1" cellpadding="2">
81
          <tr> 
82
            <td width="1%"><img src="images/h_trsp_dot.gif" width="10" height="30"></td>
83
            <td width="1%" nowrap class="form_group" valign="bottom"></td>
84
            <td nowrap width="100%">&nbsp; </td>
85
          </tr>
86
          <tr> 
87
            <td width="1%">&nbsp;</td>
88
            <td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Expiry Date </td>
89
            <td nowrap width="100%" background="images/bg_form_lightbluedark.gif" class="form_txt"> 
90
              <input type="text" name="FRexpdate" maxlength="10" size="10" class="form_item" value="<%=EuroDate(Date+7)%>">
91
              <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> 
92
            </td>
93
          </tr>
94
          <tr> 
95
            <td width="1%">&nbsp;</td>
96
            <td colspan="2" nowrap class="form_field" background="images/bg_form_lightbluedark.gif" valign="top"> 
97
              <textarea name="FRmsg" cols="40" rows="10" class="form_item"></textarea>
98
              <input type="hidden" name="action" value="true">
99
            </td>
100
          </tr>
101
          <tr> 
102
            <td width="1%">&nbsp;</td>
103
            <td width="1%" nowrap class="form_field"><img src="images/h_trsp_dot.gif" width="100" height="10"></td>
104
            <td nowrap width="100%"> 
105
              <p>&nbsp;</p>
106
            </td>
107
          </tr>
108
        </table>
109
      </td>
110
    </tr>
111
    <tr>
112
      <td height="1%" width="1%"><img src="images/h_trsp_dot.gif" width="5" height="5"></td>
113
      <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/lbox_bg_blue.gif"></td>
114
    </tr>
115
  </table>
116
</form>
117
</body>
118
</html>
119
<!-- DESTRUCTOR ------->
19 rsolanki 120
<!--#include file="common/globals_destructor.asp"-->