datePicker
[ class tree: datePicker ] [ index: datePicker ] [ all elements ]

example

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html>
  3.     <head>
  4.         <title>datepicker test</title>
  5.     </head>
  6. <body>
  7. <?php
  8.  
  9.     // include the class
  10.         require "../class.datepicker.php";
  11.  
  12.     // instantiate the object
  13.         $dp=new datepicker();
  14.     
  15.     // restrict selectable dates to every second day from today on and for a week
  16.         $dp->selectableDatesRange array(
  17.         array(mktime()strtotime("+1 week")2)
  18.     )
  19.  
  20. ?>
  21.  
  22. <p>
  23.     Restrict selectable dates...
  24. </p>
  25. <pre style="font-size:11px">
  26. // include the class
  27. require "../class.datepicker.php";
  28.  
  29. // instantiate the object
  30. $dp=new datepicker();
  31.  
  32. // restrict selectable dates to every second day between today and a week from today
  33. $dp->selectableDatesRange = array(
  34.     array(mktime(), strtotime("+1 week"), 2)
  35. )
  36.  
  37. &lt;input type="text" id="date">
  38.  
  39. &lt;input type="button" value="..." onclick="&lt;?=$dp->show("date")?>">
  40. </pre>
  41.  
  42. <p>Click on the button to see it work</p>
  43.  
  44. <input type="text" id="date">
  45.  
  46. <input type="button" value="..." onclick="<?=$dp->show("date")?>">
  47.  
  48. </body>
  49. </html>

Documentation generated on Thu, 04 Sep 2008 10:13:49 +0300 by phpDocumentor 1.3.0RC6