PHP Classes

File: sample.php

Recommend this page to a friend!
  Classes of simon taylor   DateSel   sample.php   Download  
File: sample.php
Role: Example script
Content type: text/plain
Description: PHP Sample File
Class: DateSel
Graphical Date Selector in php and Javascript
Author: By
Last change: updated file to be current with most recent release of the class
Date: 21 years ago
Size: 1,292 bytes
 

Contents

Class file image Download
<!doctype html public "-//W3C//DTD HTML 4.0 //EN">
<html>
<head>
       <title>Title here!</title>
<style>
  .actionbuttonssmall{background-color: Green;border: 0px;color: Aqua;width: 25px;height: 20px;font-size: 9px;}
  .actionbuttonsbig{background-color: Green;border: 0px;color: Aqua;width: 45px;height: 20px;font-size: 9px;}
  .yearokbutton{background-color: Gray;border: 0px;color: Aqua;width: 15px;height: 20px;font-size: 9px;}
  .daybuttons{border: 0px;width: 25px;height: 15px;background-color: #EEEEEE ;background: #EEEEEE ;font-family: Tahoma;font-size: 12px;position: relative;}
  .presseddaybutton{border: 2px;width: 25px;height: 15px;background: white ;font-family: Tahoma;font-size: 12px;position: relative;}
  .caltable {border: 0px;background-color: #EEEEEE;font-family: Tahoma;font-size: 12px;}
  .monthyear {border: 0px;background-color: Silver;font-family: Tahoma;font-size: 12px;align :center}
</style>
</head>
<body>
   <form>
       <input type="text" name="tst">
   </form>
<?php

require('./includes/datesel.inc');
$dsel = new DateSel("document.forms[0].tst.value",true,'mo','yyyy-mm-dd');
print
$dsel->ChangeButton('both');
print
$dsel->DrawCal();
print
$dsel->AddJavascript();
print
$dsel->setDate('y2003m05d18');
               
?>
</body>
</html>