Subversion Repositories DevTools

Rev

Rev 5506 | Rev 5635 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5506 Rev 5590
Line 4... Line 4...
4
Response.Expires = 0   ' always load the page, dont store
4
Response.Expires = 0   ' always load the page, dont store
5
%>
5
%>
6
<%
6
<%
7
'=====================================================
7
'=====================================================
8
'               Schedule a Task
8
'               Schedule a Task
-
 
9
'               _wform_schedule_add.asp
9
'=====================================================
10
'=====================================================
10
%>
11
%>
11
<!--#include file="common/conf.asp"-->
12
<!--#include file="common/conf.asp"-->
12
<!--#include file="common/globals.asp"-->
13
<!--#include file="common/globals.asp"-->
13
<!--#include file="common/qstr.asp"-->
14
<!--#include file="common/qstr.asp"-->
Line 28... Line 29...
28
%>
29
%>
29
<%
30
<%
30
Function Insert_Scheduling_Message( SSmsg, SSduedate )
31
Function Insert_Scheduling_Message( SSmsg, SSduedate )
31
   Dim SEQ_msg_id
32
   Dim SEQ_msg_id
32
   SEQ_msg_id = Get_From_DUAL("SEQ_MSG_ID.nextval")
33
   SEQ_msg_id = Get_From_DUAL("SEQ_MSG_ID.nextval")
-
 
34
 
33
   objEH.TryORA ( OraSession )
35
   objEH.TryORA ( OraSession )
34
   On Error Resume Next
36
   On Error Resume Next
-
 
37
 
35
   OraDatabase.ExecuteSQL _
38
   OraDatabase.ExecuteSQL _
36
      " INSERT INTO message_board (msg_id, msg_details, submition_date, due_date)"&_
39
      " INSERT INTO message_board (msg_id, msg_details, submition_date, due_date)"&_
37
      " VALUES ("& SEQ_msg_id &", '"& SSmsg &"', "& ORA_SYSDATE &","& TO_ORADATE( SSduedate ) &")"
40
      " VALUES ("& SEQ_msg_id &", '"& SSmsg &"', "& ORA_SYSDATE &","& TO_ORADATE( SSduedate ) &")"
38
   objEH.CatchORA ( OraSession )
41
   objEH.CatchORA ( OraSession )
39
End Function
42
End Function
40
%>
43
%>
41
<%
44
<%
42
'Process submition
45
'Process submition
43
If CBool(QStrPar("action")) AND  objAccessControl.UserLogedIn  Then
46
If CBool(QStrPar("action")) AND  objAccessControl.UserLogedIn  Then
44
   Call Insert_Scheduling_Message ( QStrPar("FRmsg"), QStrPar("FRduedate") )
47
   Call Insert_Scheduling_Message ( QStrPar("FRmsg"), QStrPar("FRduedate") )
45
   %>
-
 
46
   <script language="JavaScript" type="text/javascript">
-
 
47
   opener.location='index.asp?refresh=true<%=QSTR%>';
48
      ReloadParentWindow()
48
   </script>
-
 
49
   <%
-
 
50
   Call CloseWindow
49
      Response.End
51
End If
50
End If
52
%>
51
%>
53
<html>
52
<html>
54
<head>
53
<head>
55
<title>Release Manager</title>
54
<title>Release Manager</title>
Line 60... Line 59...
60
<link rel="stylesheet" href="images/navigation.css" type="text/css">
59
<link rel="stylesheet" href="images/navigation.css" type="text/css">
61
<script language="JavaScript" src="images/common.js"></script>
60
<script language="JavaScript" src="images/common.js"></script>
62
<script language="JavaScript" src="images/calendar.js"></script>
61
<script language="JavaScript" src="images/calendar.js"></script>
63
</head>
62
</head>
64
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();document.scheduletask.FRmsg.focus();">
63
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();document.scheduletask.FRmsg.focus();">
65
<form name="scheduletask" method="post" action="<%=scriptName%>?done=done<%=QSTR_FullQuery%>" onSubmit="return check();">
64
<form class="form_tight" name="scheduletask" method="post" action="<%=scriptName%>?done=done<%=QSTR_FullQuery%>" onSubmit="return check();">
66
   <table width="100%" border="0" cellspacing="0" cellpadding="2" height="100%">
65
  <table border="0" cellspacing="0" cellpadding="2">
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;Schedule
-
 
70
         a Task</td>
-
 
71
         <td background="images/lbox_bg_blue.gif" align="right" width="50%">
-
 
72
            <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">
-
 
73
            <input type="reset" name="btn" value="Cancel" class="form_btn_comp" onclick="self.close()">
-
 
74
         </td>
-
 
75
         <td background="images/lbox_bg_blue.gif" align="right" width="1%%" nowrap>
-
 
76
         <img src="images/h_trsp_dot.gif" width="5" height="22"> </td>
-
 
77
      </tr>
-
 
78
      <tr>
66
    <tr>
79
         <td height="100%" width="1%">&nbsp;</td>
-
 
80
         <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif">
67
      <td valign="top" nowrap colspan="2" class="wform_ttl" background="images/bg_form_lightgray.gif">
81
         <table width="100%" border="0" cellspacing="1" cellpadding="2">
68
        <table border="0" cellspacing="1" cellpadding="2">
82
            <tr>
-
 
83
               <td width="1%"><img src="images/h_trsp_dot.gif" width="10" height="30"></td>
-
 
84
               <td width="1%" nowrap class="form_group" valign="bottom"></td>
-
 
85
               <td nowrap width="100%">&nbsp; </td>
-
 
86
            </tr>
-
 
87
            <tr>
69
          <tr>
88
               <td width="1%">&nbsp;</td>
-
 
89
               <td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Due
70
               <td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Due Date </td>
90
               Date </td>
-
 
91
               <td nowrap width="100%" background="images/bg_form_lightbluedark.gif" class="form_txt">
71
            <td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
92
                  <input type="text" name="FRduedate" maxlength="10" size="10" class="form_item" value="<%=EuroDate(Date+7)%>">
72
                  <input type="text" name="FRduedate" maxlength="10" size="10" class="form_item" value="<%=EuroDate(Date+7)%>">
93
                  <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>
73
                  <a href="javascript:show_calendar('scheduletask.FRduedate',null,null,null);"><img src="images/i_calendar.gif" width="16" height="16" border="0"></a>
94
               </td>
74
               </td>
95
            </tr>
75
            </tr>
96
            <tr>
76
            <tr>
97
               <td width="1%">&nbsp;</td>
-
 
98
               <td colspan="2" nowrap class="form_field" background="images/bg_form_lightbluedark.gif" valign="top">
77
               <td colspan="2" nowrap class="form_field" background="images/bg_form_lightbluedark.gif" valign="top">
99
                  <textarea name="FRmsg" cols="40" rows="10" class="form_item"></textarea>
78
              <textarea name="FRmsg" cols="80" rows="10" class="form_item"></textarea>
100
                  <input type="hidden" name="action" value="true">
79
                  <input type="hidden" name="action" value="true">
101
               </td>
80
               </td>
102
            </tr>
81
            </tr>
103
            <tr>
-
 
104
               <td width="1%">&nbsp;</td>
-
 
105
               <td width="1%" nowrap class="form_field"><img src="images/h_trsp_dot.gif" width="100" height="10"></td>
-
 
106
               <td nowrap width="100%">
-
 
107
                  <p>&nbsp;</p>
-
 
108
               </td>
-
 
109
            </tr>
-
 
110
         </table>
82
         </table>
111
         </td>
83
         </td>
112
      </tr>
84
      </tr>
113
      <tr>
85
      <tr>
-
 
86
      <td align="right">
114
         <td height="1%" width="1%"><img src="images/h_trsp_dot.gif" width="5" height="5"></td>
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">
115
         <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/lbox_bg_blue.gif"></td>
88
        <input type="reset" name="btn" value="Cancel" class="form_btn_comp" onclick="parent.closeIFrame();">
-
 
89
      </td>
116
      </tr>
90
      </tr>
117
   </table>
91
   </table>
118
</form>
92
</form>
119
</body>
93
</body>
120
</html>
94
</html>