Date: 04/18/00
- Next message: uw: "[PHPLIB-DEV] cvs commit"
- Previous message: kk: "[PHPLIB-DEV] cvs commit"
- Next in thread: uw: "[PHPLIB-DEV] cvs commit"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: uw
Date: Tue Apr 18 13:58:13 2000
Modified files:
php-lib/pages/form/example_form.inc
php-lib/pages/form/example_template_bridge.inc
php-lib/pages/form/index.php3
Log message:
- demonstration of new type "date" added
Index: php-lib/pages/form/example_form.inc
diff -u php-lib/pages/form/example_form.inc:1.2 php-lib/pages/form/example_form.inc:1.3
--- php-lib/pages/form/example_form.inc:1.2 Mon Apr 17 11:22:40 2000
+++ php-lib/pages/form/example_form.inc Tue Apr 18 13:57:41 2000
@@ -344,6 +344,24 @@
)
);
+ $this->addElement(
+ array (
+ "name" => "date_en",
+ "type" => "date",
+ "format" => "Y-m-d D/F/l/A/M",
+ "language" => "en"
+
+ )
+ );
+
+ $this->addElement(
+ array (
+ "name" => "date_de",
+ "type" => "date",
+ "format" => "H:i:s D/F/l/A/M",
+ "language" => "de"
+ )
+ );
// autoload the form with HTTP_[POST|GET]_VARS
$this->autoloadValues();
Index: php-lib/pages/form/example_template_bridge.inc
diff -u php-lib/pages/form/example_template_bridge.inc:1.3 php-lib/pages/form/example_template_bridge.inc:1.4
--- php-lib/pages/form/example_template_bridge.inc:1.3 Mon Apr 17 13:23:05 2000
+++ php-lib/pages/form/example_template_bridge.inc Tue Apr 18 13:57:41 2000
@@ -88,6 +88,13 @@
)
);
+ $this->addElement(
+ array (
+ "name" => "date_en",
+ "label" => "New type: date",
+ "optional" => true
+ )
+ );
$this->addSubmit("plainsubmit");
} // end func Init
Index: php-lib/pages/form/index.php3
diff -u php-lib/pages/form/index.php3:1.2 php-lib/pages/form/index.php3:1.3
--- php-lib/pages/form/index.php3:1.2 Mon Apr 17 12:42:34 2000
+++ php-lib/pages/form/index.php3 Tue Apr 18 13:57:41 2000
@@ -95,7 +95,15 @@
<tr>
<td align="left" valign="top">[radio2] type radio</td>
<td align="left" valign="top" colspan="2"><?php $form->showElement("radio2[0]"); $form->showElement("radio2[1]");?></td>
- </tr>
+ </tr>
+ <tr>
+ <td align="left" valign="top">[date_en] type date, Y-m-d D/F/l/A/M</td>
+ <td align="left" valign="top" colspan="2"><?php $form->showElement("date_en"); ?></td>
+ </tr>
+ <tr>
+ <td align="left" valign="top">[date_de] type date, H:i:s D/F/l/A/M</td>
+ <td align="left" valign="top" colspan="2"><?php $form->showElement("date_de"); ?></td>
+ </tr>
<tr>
<td align="left" valign="top">[plainsubmit] type submit</td>
<td align="left" valign="top" colspan="2"><?php $form->showElement("plainsubmit"); ?></td>
-
PHPLIB Developers Mailing List. Send messages to <phplib-dev <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-dev-request <email protected>> in
the body, not the subject, of your message.
- Next message: uw: "[PHPLIB-DEV] cvs commit"
- Previous message: kk: "[PHPLIB-DEV] cvs commit"
- Next in thread: uw: "[PHPLIB-DEV] cvs commit"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

