summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/JuiControls/Samples/TJuiDatePicker/Home.php
diff options
context:
space:
mode:
authorJens Klaer <kj.landwehr.software@gmail.com>2015-10-14 14:12:18 +0200
committerJens Klaer <kj.landwehr.software@gmail.com>2015-10-14 14:12:18 +0200
commit3a90a37ca45f91d9f314eaa1f7e86c056e56e7bb (patch)
tree61c56713ac69fa0a1f00f879fcb73a4bc2d78f6e /demos/quickstart/protected/pages/JuiControls/Samples/TJuiDatePicker/Home.php
parent7ec5cb6a6ef106c9662905988697045dcd0f378a (diff)
Added TJuiDatePicker
an alternative datepicker control using the datepicker widget from jqueryui
Diffstat (limited to 'demos/quickstart/protected/pages/JuiControls/Samples/TJuiDatePicker/Home.php')
-rw-r--r--demos/quickstart/protected/pages/JuiControls/Samples/TJuiDatePicker/Home.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/demos/quickstart/protected/pages/JuiControls/Samples/TJuiDatePicker/Home.php b/demos/quickstart/protected/pages/JuiControls/Samples/TJuiDatePicker/Home.php
new file mode 100644
index 00000000..5126f68e
--- /dev/null
+++ b/demos/quickstart/protected/pages/JuiControls/Samples/TJuiDatePicker/Home.php
@@ -0,0 +1,30 @@
+<?php
+
+class Home extends TPage
+{
+
+ public function change4($sender, $param)
+ {
+ $this->dp4->getOptions()->showAnim = $sender->getSelectedValue();
+ }
+
+ public function change5($sender, $param)
+ {
+ $value = $sender->getValue();
+ switch ($value) {
+ case 'button':
+ $this->dp5->getOptions()->showButtonPanel = $sender->getChecked();
+ break;
+ case 'menu':
+ $this->dp5->getOptions()->changeYear = $this->dp5->getOptions()->changeMonth = $sender->getChecked();
+ break;
+ case 'week':
+ $this->dp5->getOptions()->showWeek = $sender->getChecked();
+ break;
+ case 'month':
+ $this->dp5->getOptions()->numberOfMonths = $sender->getChecked() ? 3 : 1;
+ break;
+ }
+ }
+
+} \ No newline at end of file