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
'------------ Constants Declaration -----------
25
'------------ Constants Declaration -----------
27
'------------ Variable Init -------------------
26
'------------ Variable Init -------------------
28
'----------------------------------------------
27
'----------------------------------------------
Line 57... Line 56...
57
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
56
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
58
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
57
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
59
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
58
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
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>
-
 
61
<!--#include file="_jquery_includes.asp"-->
62
<script language="JavaScript" src="images/calendar.js"></script>
62
<script language="JavaScript">
-
 
63
    $(document).ready(function(){
-
 
64
        $("#dateInput").datepicker({
-
 
65
            constrainInput: true,
-
 
66
            showOn: 'both',
-
 
67
            buttonImageOnly : true,
-
 
68
            buttonImage: "images/i_calendar.gif",
-
 
69
            buttonText: "Select Date",
-
 
70
            dateFormat : "D dd-M-yy",
-
 
71
            minDate : 1,
-
 
72
            changeYear : true, 
-
 
73
            yearRange : "0000:2099",
-
 
74
            changeMonth: true
-
 
75
        });
-
 
76
 
-
 
77
        checkText();
-
 
78
    })
-
 
79
 
-
 
80
    // Before we submit the form
-
 
81
    // Grab the date and insert into a hidden field in a controlled format
-
 
82
    function submitCheck()
-
 
83
    {
-
 
84
        var edate = $("#dateInput").val()
-
 
85
        //console.log("edate",edate);
-
 
86
 
-
 
87
        var d4 = $("#dateInput").datepicker("getDate");
-
 
88
        var d6 = $.datepicker.formatDate("dd/M/yy", new Date(d4));
-
 
89
        $("#FRexpdate").val(d6);
-
 
90
        //console.log ("Get:", d4, d6);
-
 
91
 
-
 
92
        return true;
-
 
93
    }
-
 
94
    // Update the Submit(Add) button based on the number of chars in the TextArea
-
 
95
    function checkText()
-
 
96
    {
-
 
97
       var count = ($("#textArea").val().length > 10);
-
 
98
       var but = $("#formSubmit");
-
 
99
       but.toggleClass("form_btn_comp", count);
-
 
100
       but.toggleClass("form_btn_comp_disabled", !count);
-
 
101
       but.prop("disabled", !count );
-
 
102
    }
-
 
103
</script>
63
</head>
104
</head>
64
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();document.memo.FRmsg.focus();">
105
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();document.memo.FRmsg.focus();">
65
<form class="form_tight" name="memo" method="post" action="<%=scriptName%>?done=done<%=QSTR_All%>" onSubmit="return check();">
106
<form class="form_tight" name="memo" method="post" action="<%=scriptName%>?done=done<%=QSTR_All%>">
66
  <table border="0" cellspacing="0" cellpadding="2">
107
  <table border="0" cellspacing="0" cellpadding="2">
67
    <tr>
108
    <tr>
68
      <td valign="top" nowrap colspan="2" class="wform_ttl" background="images/bg_form_lightgray.gif">
109
      <td valign="top" nowrap colspan="2" class="wform_ttl" background="images/bg_form_lightgray.gif">
69
        <table border="0" cellspacing="1" cellpadding="2">
110
        <table border="0" cellspacing="1" cellpadding="2">
70
          <tr>
111
          <tr>
71
            <td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Expiry Date </td>
112
            <td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Expiry Date </td>
72
            <td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
113
            <td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
73
              <input type="text" name="FRexpdate" maxlength="10" size="10" class="form_item" value="<%=EuroDate(Date+7)%>">
114
              <input type="text" maxlength="15" size="15" class="form_item" value="<%=DisplayDate(Date+7)%>"  id="dateInput" xxdisabled="disabled">
74
              <a href="javascript:show_calendar('memo.FRexpdate',null,null,null);"><img src="images/i_calendar.gif" width="16" height="16" border="0"></a>
-
 
75
            </td>
115
            </td>
76
          </tr>
116
          </tr>
77
          <tr>
117
          <tr>
78
            <td colspan="2" nowrap class="form_field" background="images/bg_form_lightbluedark.gif" valign="top">
118
            <td colspan="2" nowrap class="form_field" background="images/bg_form_lightbluedark.gif" valign="top">
79
              <textarea name="FRmsg" cols="80" rows="10" class="form_item"></textarea>
119
              <textarea name="FRmsg" cols="80" rows="12" class="form_item" oninput="checkText()" id="textArea"></textarea>
80
              <input type="hidden" name="action" value="true">
120
              <input type="hidden" name="action" value="true">
81
            </td>
121
            </td>
82
          </tr>
122
          </tr>
83
        </table>
123
        </table>
84
      </td>
124
      </td>
85
    </tr>
125
    </tr>
86
    <tr>
126
    <tr>
87
      <td align="right">
127
      <td align="right">
88
        <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">
128
        <input type="submit" name="btn" value="Add" class="form_btn_comp" id="formSubmit" onClick="return submitCheck();">
89
        <input type="reset" name="btn" value="Cancel" class="form_btn_comp" onclick="parent.closeIFrame();">
129
        <input type="reset" name="btn" value="Cancel" class="form_btn_comp" onclick="parent.closeIFrame();">
-
 
130
        <input type="hidden" name="FRexpdate" value="" id="FRexpdate">
90
      </td>
131
      </td>
91
    </tr>
132
    </tr>
92
  </table>
133
  </table>
93
</form>
134
</form>
94
</body>
135
</body>