Subversion Repositories DevTools

Rev

Rev 62 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<%@LANGUAGE="VBSCRIPT"%>
<%
Option explicit
Response.Expires = 0    ' always load the page, dont store
%>
<%
'=====================================================
'                                       Schedule a Task
'=====================================================
%>
<!--#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 -------------
'------------ Constants Declaration -----------
'------------ Variable Init -------------------
'----------------------------------------------
%>
<%
Function Insert_Scheduling_Message( SSmsg, SSduedate )
        Dim SEQ_msg_id
        SEQ_msg_id = Get_From_DUAL("SEQ_MSG_ID.nextval")
        OraSession.BeginTrans
        OraDatabase.ExecuteSQL _
                " INSERT INTO message_board (msg_id, msg_details, submition_date, due_date)"&_
                " VALUES ("& SEQ_msg_id &", '"& SSmsg &"', "& ORA_SYSDATE &","& TO_ORADATE( SSduedate ) &")"
        OraSession.CommitTrans
End Function
%>
<%
'Process submition
If CBool(QStrPar("action")) AND  objAccessControl.UserLogedIn  Then
                Call Insert_Scheduling_Message ( QStrPar("FRmsg"), QStrPar("FRduedate") )
                %>
                <script language="JavaScript" type="text/javascript">
                opener.location='default.asp?refresh=true<%=QSTR%>';
                </script>               
                <%
                Call CloseWindow
End 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.scheduletask.FRmsg.focus();">
<form name="scheduletask" 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">&nbsp;Schedule 
        a Task</td>
      <td background="images/lbox_bg_green.gif" align="right" width="50%"> 
        <input type="submit" name="btn" value="   ADD   " class="form_btn_comp" onClick="clickedButton=true;MM_validateForm('FRduedate','Due Date','R','FRmsg','Message details','R');return document.MM_returnValue">
        <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%">&nbsp;</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%">&nbsp; </td>
          </tr>
          <tr> 
            <td width="1%">&nbsp;</td>
            <td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Due 
              Date </td>
            <td nowrap width="100%" background="images/bg_form_lightbluedark.gif" class="form_txt"> 
              <input type="text" name="FRduedate" maxlength="10" size="10" class="form_item" value="<%=EuroDate(Date+7)%>">
              <A onmouseover="window.status='Select a date';return true;" onmouseout="window.status='';return true;" href="javascript:show_calendar('scheduletask.FRduedate',null,null,null);"><img src="images/i_calendar.gif" width="16" height="16" border="0"></a> 
            </td>
          </tr>
          <tr> 
            <td width="1%">&nbsp;</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"></textarea>
              <input type="hidden" name="action" value="true">
            </td>
          </tr>
          <tr> 
            <td width="1%">&nbsp;</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>&nbsp;</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"-->