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.     $dp->enableTimePicker true;
  16.  
  17. ?>
  18.  
  19. <p>
  20.     Time picker
  21. </p>
  22. <pre style="font-size:11px">
  23. &lt;?php
  24.  
  25. // include the class
  26. require "../class.datepicker.php";
  27.  
  28. // instantiate the object
  29. $dp=new datepicker();
  30.  
  31. // allow selection of time also
  32. $dp->enableTimePicker = true;
  33.  
  34. ?&gt;
  35.  
  36. &lt;input type="text" id="date">
  37.  
  38. &lt;--
  39. we're showing the current month of the current year and also have the current time preselected
  40. --&gt;
  41.  
  42. &lt;input type="button" value="..." onclick="&lt;?=$dp->show("date", date("m") , date("Y"), date("H"), date("i"))?>">
  43. </pre>
  44.  
  45. <p>Click on the button to see it work</p>
  46.  
  47. <input type="text" id="date">
  48.  
  49. <input type="button" value="..." onclick="<?=$dp->show("date"date("m")date("Y")date("H")date("i"))?>">
  50.  
  51. </body>
  52. </html>

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