Subversion Repositories DevTools

Rev

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

<%@LANGUAGE="VBSCRIPT"%>
<%
Option explicit
Response.Expires = 0    ' always load the page, dont store
%>
<%
'=====================================================
'                                       EDIT Scheduled 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 -------------
Dim rsTemp
'------------ Constants Declaration -----------
'------------ Variable Init -------------------
'----------------------------------------------
%>
<%
Function Update_Scheduling_Message( SSmsg_id, SSmsg, SSduedate )
        OraSession.BeginTrans
        OraDatabase.ExecuteSQL _
                " UPDATE message_board"&_
                " SET msg_details = '"& SSmsg &"', due_date = "& TO_ORADATE( SSduedate ) &_
                " WHERE msg_id = "& SSmsg_id
        OraSession.CommitTrans
End Function

Function Delete_Scheduling_Message( SSmsg_id )
        OraSession.BeginTrans
        OraDatabase.ExecuteSQL _
                " DELETE message_board"&_
                " WHERE msg_id = "& SSmsg_id
        OraSession.CommitTrans
End Function

Function Get_Message_Details ( NNmsg_id )
        Get_Message_Details = _
        " SELECT * FROM message_board WHERE msg_id = "& NNmsg_id
End Function
%>
<%
'Process submition
If CBool(QStrPar("action")) AND QStrPar("btn") = "Update" Then
        Call Update_Scheduling_Message ( QStrPar("FRmsg_id"), QStrPar("FRmsg"), QStrPar("FRduedate") )
        %>
        <script language="JavaScript" type="text/javascript">
        opener.location='default.asp?refresh=true<%=QSTR%>';
        </script>               
        <%
        Call CloseWindow
ElseIf CBool(QStrPar("action")) AND QStrPar("btn") = "Delete" AND  objAccessControl.UserLogedIn Then
        Call Delete_Scheduling_Message ( QStrPar("FRmsg_id") )
        %>
        <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();">
<%Set rsTemp = OraDatabase.DbCreateDynaset( Get_Message_Details (QStrPar("FRmsg_id")), cint(0))%>
<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_blue.gif" nowrap width="50%" class="wform_ttl">&nbsp;EDIT Scheduled Task</td>
      <td background="images/lbox_bg_blue.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_blue.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 (rsTemp.Fields("due_date"))%>">
              <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"><%=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%">&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_blue.gif"></td>
    </tr>
  </table>
</form>
</body>
</html>

<!-- DESTRUCTOR ------->
<!--#include file="common/globals_destructor.asp"-->