Subversion Repositories DevTools

Rev

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

Rev 5590 Rev 5635
Line 18... Line 18...
18
<%
18
<%
19
'------------ ACCESS CONTROL ------------------
19
'------------ ACCESS CONTROL ------------------
20
%>
20
%>
21
<!--#include file="_access_control_login.asp"-->
21
<!--#include file="_access_control_login.asp"-->
22
<!--#include file="_access_control_general.asp"-->
22
<!--#include file="_access_control_general.asp"-->
23
<!--#include file="_access_control_project.asp"-->
-
 
24
<%
23
<%
25
'------------ Variable Definition -------------
24
'------------ Variable Definition -------------
26
Dim rsTemp
25
Dim rsTemp
27
'------------ Constants Declaration -----------
26
'------------ Constants Declaration -----------
28
'------------ Variable Init -------------------
27
'------------ Variable Init -------------------
Line 54... Line 53...
54
End Function
53
End Function
55
%>
54
%>
56
<%
55
<%
57
'Process submition
56
'Process submition
58
If CBool(QStrPar("action")) AND QStrPar("btn") = "Update" Then
57
If CBool(QStrPar("action")) AND QStrPar("btn") = "Update" Then
59
   Call Update_Scheduling_Message ( QStrPar("FRmsg_id"), QStrPar("FRmsg"), QStrPar("FRduedate") )
58
    Call Update_Scheduling_Message ( QStrPar("FRmsg_id"), QStrPar("FRmsg"), QStrPar("FRduedate") )
60
      ReloadParentWindow()
59
    ReloadParentWindow()
61
      Response.End
60
    Response.End
62
ElseIf CBool(QStrPar("action")) AND QStrPar("btn") = "Delete" AND  objAccessControl.UserLogedIn Then
61
ElseIf CBool(QStrPar("action")) AND QStrPar("btn") = "Delete" AND  objAccessControl.UserLogedIn Then
63
   Call Delete_Scheduling_Message ( QStrPar("FRmsg_id") )
62
    Call Delete_Scheduling_Message ( QStrPar("FRmsg_id") )
64
      ReloadParentWindow()
63
    ReloadParentWindow()
65
      Response.End
64
    Response.End
66
End If
65
End If
67
%>
66
%>
68
<html>
67
<html>
69
<head>
68
<head>
70
<title>Release Manager</title>
69
<title>Release Manager</title>
Line 72... Line 71...
72
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
71
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
73
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
72
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
74
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
73
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
75
<link rel="stylesheet" href="images/navigation.css" type="text/css">
74
<link rel="stylesheet" href="images/navigation.css" type="text/css">
76
<script language="JavaScript" src="images/common.js"></script>
75
<script language="JavaScript" src="images/common.js"></script>
-
 
76
<!--#include file="_jquery_includes.asp"-->
77
<script language="JavaScript" src="images/calendar.js"></script>
77
<script language="JavaScript">
-
 
78
    $(document).ready(function(){
-
 
79
        $("#dateInput").datepicker({
-
 
80
            constrainInput: true,
-
 
81
            showOn: 'both',
-
 
82
            buttonImageOnly : true,
-
 
83
            buttonImage: "images/i_calendar.gif",
-
 
84
            buttonText: "Select Date",
-
 
85
            dateFormat : "D dd-M-yy",
-
 
86
            minDate : 1,
-
 
87
            changeYear : true, 
-
 
88
            yearRange : "0000:2099",
-
 
89
            changeMonth: true
-
 
90
        });
-
 
91
 
-
 
92
        checkText();
-
 
93
    })
-
 
94
 
-
 
95
    // Before we submit the form
-
 
96
    // Grab the date and insert into a hidden field in a controlled format
-
 
97
    function submitCheck()
-
 
98
    {
-
 
99
        var edate = $("#dateInput").val()
-
 
100
        //console.log("edate",edate);
-
 
101
 
-
 
102
        var d4 = $("#dateInput").datepicker("getDate");
-
 
103
        var d6 = $.datepicker.formatDate("dd/M/yy", new Date(d4));
-
 
104
        $("#FRduedate").val(d6);
-
 
105
        //console.log ("Get:", d4, d6);
-
 
106
 
-
 
107
        return true;
-
 
108
    }
-
 
109
    // Update the Submit(Add) button based on the number of chars in the TextArea
-
 
110
    function checkText()
-
 
111
    {
-
 
112
       var count = ($("#textArea").val().length > 10);
-
 
113
       var but = $("#formSubmit");
-
 
114
       but.toggleClass("form_btn_comp", count);
-
 
115
       but.toggleClass("form_btn_comp_disabled", !count);
-
 
116
       but.prop("disabled", !count );
-
 
117
    }
-
 
118
</script>
78
</head>
119
</head>
79
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();document.scheduletask.FRmsg.focus();">
120
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();document.scheduletask.FRmsg.focus();">
80
<%Set rsTemp = OraDatabase.DbCreateDynaset( Get_Message_Details (QStrPar("FRmsg_id")), cint(0))%>
121
<%Set rsTemp = OraDatabase.DbCreateDynaset( Get_Message_Details (QStrPar("FRmsg_id")), cint(0))%>
81
<form class="form_tight" name="scheduletask" method="post" action="<%=scriptName%>?done=done<%=QSTR_FullQuery%>" onSubmit="return check();">
122
<form class="form_tight" name="scheduletask" method="post" action="<%=scriptName%>?done=done<%=QSTR_FullQuery%>">
82
  <table border="0" cellspacing="0" cellpadding="2">
123
  <table border="0" cellspacing="0" cellpadding="2">
83
    <tr>
124
    <tr>
84
      <td valign="top" nowrap colspan="2" class="wform_ttl" background="images/bg_form_lightgray.gif">
125
      <td valign="top" nowrap colspan="2" class="wform_ttl" background="images/bg_form_lightgray.gif">
85
        <table border="0" cellspacing="1" cellpadding="2">
126
        <table border="0" cellspacing="1" cellpadding="2">
86
          <tr>
127
          <tr>
87
             <td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Due Date </td>
128
             <td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Due Date </td>
88
             <td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
129
             <td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
89
             <input type="text" name="FRduedate" maxlength="10" size="10" class="form_item" value="<%=EuroDate (rsTemp.Fields("due_date"))%>">
130
             <input type="text" maxlength="15" size="15" class="form_item" value="<%=DisplayDate (rsTemp.Fields("due_date"))%>" id="dateInput" xxdisabled="disabled">
90
             <a href="javascript:show_calendar('scheduletask.FRduedate',null,null,null);"><img src="images/i_calendar.gif" width="16" height="16" border="0"></a>
-
 
91
           </td>
131
               </td>
92
               </tr>
132
            </tr>
93
               <tr>
133
            <tr>
94
                  <td colspan="2" nowrap class="form_field" background="images/bg_form_lightbluedark.gif" valign="top">
134
               <td colspan="2" nowrap class="form_field" background="images/bg_form_lightbluedark.gif" valign="top">
95
                     <textarea name="FRmsg" cols="80" rows="10" class="form_item"><%=rsTemp.Fields("msg_details")%></textarea>
135
                    <textarea name="FRmsg" cols="80" rows="12" class="form_item" oninput="checkText()" id="textArea"><%=rsTemp.Fields("msg_details")%></textarea>
96
                     <input type="hidden" name="FRmsg_id" value="<%=QStrPar("FRmsg_id")%>">
-
 
97
                     <input type="hidden" name="action" value="true">
136
                    <input type="hidden" name="action" value="true">
98
                  </td>
137
               </td>
99
               </tr>
138
            </tr>
100
            </table>
139
         </table>
101
         </td>
140
         </td>
102
      </tr>
141
      </tr>
103
      <tr>
142
      <tr>
104
      <td align="right">
143
      <td align="right">
105
        <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">
144
        <input type="submit" name="btn" value="Update" class="form_btn_comp" id="formSubmit" onClick="return submitCheck();">
106
        <input type="submit" name="btn" value="Delete" class="form_btn_comp" onClick="clickedButton=true;">
145
        <input type="submit" name="btn" value="Delete" class="form_btn_comp" onClick="clickedButton=true;">
107
        <input type="reset" name="btn" value="Cancel" class="form_btn_comp"  onClick="parent.closeIFrame();"">
146
        <input type="reset" name="btn" value="Cancel" class="form_btn_comp" onclick="parent.closeIFrame();">
-
 
147
        <input type="hidden" name="FRduedate" value="" id="FRduedate">
108
      </td>
148
      </td>
109
      </tr>
149
      </tr>
110
   </table>
150
   </table>
111
</form>
151
</form>
112
</body>
152
</body>