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