[Phphtmllib-devel] phphtmllib/examples form3.php,1.4,1.5
Status: Beta
Brought to you by:
hemna
From: <cu...@us...> - 2004-03-12 14:54:46
|
Update of /cvsroot/phphtmllib/phphtmllib/examples In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28509/examples Modified Files: form3.php Log Message: Added set_element_order() and changed month generation to use the built in php setlocale() function. This is still not well tested. Index: form3.php =================================================================== RCS file: /cvsroot/phphtmllib/phphtmllib/examples/form3.php,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- form3.php 11 Mar 2004 06:01:14 -0000 1.4 +++ form3.php 12 Mar 2004 14:35:08 -0000 1.5 @@ -163,11 +163,14 @@ // FEDays($label, $required = TRUE, $width = NULL, $height = NULL) { $this->add_element(new FEDays("FEDays label", false)); + // set the locale to dutch + setlocale(LC_TIME, 'nl_NL'); + $date_element = new FEDate("FEDate label", false); - $date_element->set_locale('de'); $date_element->set_short_months(); $date_element->set_min_year(1970); $date_element->set_max_year(1975); + $date_element->set_element_order('mdy'); $this->add_element($date_element); // a list box that allows you to select multiple items @@ -324,4 +327,5 @@ $page = new Form3Page("Form Example 3"); print $page->render(); + ?> |