summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/protected/pages
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests/tickets/protected/pages')
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket897.page8
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket897.php9
2 files changed, 17 insertions, 0 deletions
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket897.page b/tests/FunctionalTests/tickets/protected/pages/Ticket897.page
new file mode 100644
index 00000000..93237b98
--- /dev/null
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket897.page
@@ -0,0 +1,8 @@
+<com:TContent ID="Content">
+
+ <com:TDatePicker ID="Date" DateFormat="MM/dd" InputMode="DropDownList"/>
+ <com:TButton ID="SendButton" ButtonType="Submit" Text="Send" onClick="onButtonClicked" />
+
+ <com:TLabel ID="Output"/>
+
+</com:TContent>
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket897.php b/tests/FunctionalTests/tickets/protected/pages/Ticket897.php
new file mode 100644
index 00000000..b0b8959f
--- /dev/null
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket897.php
@@ -0,0 +1,9 @@
+<?php
+class Ticket897 extends TPage {
+
+ public function onButtonClicked($sender, $param) {
+ $this->Output->Text = date('Y-m-d', $this->Date->TimeStamp);
+ }
+
+}
+?>