Login   Register  
PHP Classes
elePHPant
Icontem

File: default_picker.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Evgeny  >  DatePicker  >  default_picker.php  >  Download  
File: default_picker.php
Role: Example script
Content type: text/plain
Description: example
Class: DatePicker
Generation of date chooser form fields
Author: By
Last change:
Date: 2003-08-11 08:37
Size: 771 bytes
 

Contents

Class file image Download
<?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>