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