<?php
require('lib/date_picker.php');
function show_values($a) {
if($a) {
echo "<pre>"; print_r($a); echo "</pre>";
}
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
</head>
<body>
<h3>Default picker:</h3>
<form action="" method="post" name="my_form" id="my_form">
<?php
$date = new DatePicker();
echo $date->js(); // js function
echo $date->day(); // select tag with days
echo $date->month(); // select tag with mohth
echo $date->year(); // select tag with years
show_values($_POST); // print_r $_POST if any;
?>
<input type="submit">
</form>
<hr size="2" noshade>
</body>
</html>
|