summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Layout.php
diff options
context:
space:
mode:
authorxue <>2005-12-23 17:53:37 +0000
committerxue <>2005-12-23 17:53:37 +0000
commitb9cd9367da104e5d3a4310fd1c40b841f5fbb286 (patch)
treef57dc89a9afabb37aaa86f5411251e436d149e0c /demos/quickstart/protected/pages/Layout.php
parent9c1e1d5efa7ebef6596e4d2dd8a42892648c8e1b (diff)
Diffstat (limited to 'demos/quickstart/protected/pages/Layout.php')
-rw-r--r--demos/quickstart/protected/pages/Layout.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/demos/quickstart/protected/pages/Layout.php b/demos/quickstart/protected/pages/Layout.php
new file mode 100644
index 00000000..a82d2fff
--- /dev/null
+++ b/demos/quickstart/protected/pages/Layout.php
@@ -0,0 +1,15 @@
+<?php
+
+class Layout extends TTemplateControl
+{
+ public function toggleTopicPanel($sender,$param)
+ {
+ $this->TopicPanel->Visible=!$this->TopicPanel->Visible;
+ if($this->TopicPanel->Visible)
+ $sender->Text="Hide TOC";
+ else
+ $sender->Text="Show TOC";
+ }
+}
+
+?> \ No newline at end of file