Index: lams_monitoring/web/emailnotifications/courseNotifications.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_monitoring/web/emailnotifications/courseNotifications.jsp,v diff -u -r1.1.2.4 -r1.1.2.5 --- lams_monitoring/web/emailnotifications/courseNotifications.jsp 6 Sep 2011 12:25:48 -0000 1.1.2.4 +++ lams_monitoring/web/emailnotifications/courseNotifications.jsp 14 Oct 2011 17:55:11 -0000 1.1.2.5 @@ -17,15 +17,20 @@ + + @@ -91,22 +96,30 @@ } var emailBody = escape(document.getElementById("emailBody").value); + var scheduleDate = $("#datePicker").datepicker( "getDate" ); + scheduleDate = (scheduleDate == null) ? "" : scheduleDate.getTime(); $.ajax({ async: false, url: '', - data: 'method=emailUsers&' + params+ "&emailBody=" + emailBody, + data: 'method=emailUsers&' + params+ "&emailBody=" + emailBody + "&scheduleDate=" + scheduleDate, dataType: 'json', type: 'post', success: function (json) { if (json.isSuccessfullySent) { alert(''); + } else if (json.isSuccessfullyScheduled) { + alert(''); } else { alert(''); } } }); }); - + + $( "#datePicker" ).datepicker({ + dateFormat: 'dd/mm/yy', + minDate: 0 + }); }); @@ -170,6 +183,13 @@
?method=emailUsers" method="post" id="emailNotificationsForm" >
+ + + +

+ + <%@ include file="scheduleOptions.jsp"%> + ${lesson.lessonName} home.do?method=learner&lessonID=${lesson.lessonId} @@ -178,6 +198,7 @@

" /> +
@@ -217,6 +238,7 @@

+