summaryrefslogtreecommitdiff
path: root/demos/personal/protected/Pages/Home.php
diff options
context:
space:
mode:
authorxue <>2005-12-24 23:12:57 +0000
committerxue <>2005-12-24 23:12:57 +0000
commit2e3ff4ed70c3f06feb06b66dafd9b9ba7e47a191 (patch)
tree59b152b9e362f9ea633b3029d5cab7500bf4ea8e /demos/personal/protected/Pages/Home.php
parentc968872380db2d7641c0cd9d07edd845b10f43a4 (diff)
Diffstat (limited to 'demos/personal/protected/Pages/Home.php')
-rw-r--r--demos/personal/protected/Pages/Home.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/demos/personal/protected/Pages/Home.php b/demos/personal/protected/Pages/Home.php
new file mode 100644
index 00000000..cca7d57b
--- /dev/null
+++ b/demos/personal/protected/Pages/Home.php
@@ -0,0 +1,21 @@
+<?php
+
+class Home extends TPage
+{
+ public function onPreInit($param)
+ {
+ parent::onPreInit($param);
+ if(!$this->getUser()->getIsGuest())
+ $this->setTheme('');
+ }
+
+ public function testClick($sender,$param)
+ {
+ if($sender->BackColor==='')
+ $sender->BackColor='blue';
+ else
+ $sender->BackColor='';
+ }
+}
+
+?> \ No newline at end of file