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