Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Oct 2009
    Location
    Dallas,Tx USA
    Posts
    54
    Thanks
    4
    Thanked 0 Times in 0 Posts

    greyout dates in popup calendar

    I have a reservation page where there is a maximum day limit which can be set from 1 thru 5 on config.php

    After setting it, from addreservation.php page i will retreive it and based on the value i have to show only those dates below the limit from today's date.

    suppose the noofdays is set to 4, calendar should show only those 4 dates

    01/07/2010
    01/08/2010
    01/09/2010
    01/10/2010 and grey out other dates.
    PHP Code:
    <td align="left"><input name="ResrvDate" type="text" id="ResrvDate" value="<?php echo isset($_SESSION['ResrvDate']) ? $_SESSION['ResrvDate'] : "";?>"
                        readonly="readonly" style="width:80px;" />
                          <img alt="" id="CalImg" onclick="showandgetdate('ResrvDate');" height="15"
                        src="css/images/icons/cal.png" width="16" />

  • #2
    Senior Coder tomws's Avatar
    Join Date
    Nov 2007
    Location
    Arkansas
    Posts
    2,644
    Thanks
    29
    Thanked 330 Times in 326 Posts
    You have only given a portion of a table cell and no relevant PHP.
    Are you a Help Vampire?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •