%META:TOPICINFO{author="SrikanthR" date="1215569721" format="1.1" reprev="1.2" version="1.2"}%
%INCLUDE{"%SYSTEMWEB%/JSCalendarContribInline"}%
---++Check the reservations on a particular date
%BR%
<table border="0">
<tr>
<td >
<div id="calendar-container" >
<script type="text/javascript">
  function dateChanged(calendar) {
    // Beware that this function is called even if the end-user only
    // changed the month/year.  In order to determine if a date was
    // clicked you can use the dateClicked property of the calendar:
    if (calendar.dateClicked) {
      // OK, a date was clicked, redirect to /yyyy/mm/dd/index.php
      var y = calendar.date.getFullYear();
      var m = calendar.date.getMonth();     // integer, 0..11
      var d = calendar.date.getDate();  
m++;
//var caldate=y+"-"+m+"-"+d;
      //window.location = "/" + y + "/" + m + "/" + d + "/index.php";
window.location = "ReservationOnDate?date="+y+"-"+m+"-"+d;
    }
  };

  Calendar.setup(
    {
      flat         : "calendar-container", // ID of the parent element
      flatCallback : dateChanged           // our callback function
    }
  );
</script>

</td>
</tr>
</table>
%SHOW_RESERVATION_ON_DATE{Table="ReservationTable" date="%URLPARAM{"date"}%" }%
