summaryrefslogtreecommitdiff
path: root/demos/personal/protected/a/HomePage.php
diff options
context:
space:
mode:
authorxue <>2005-11-16 18:41:59 +0000
committerxue <>2005-11-16 18:41:59 +0000
commitfdd0a3ad7b2f9f942b94fde84277529ecae2a3b3 (patch)
treefe4126c804bab2a96a85990c218ec4dd7384c59e /demos/personal/protected/a/HomePage.php
parente27780e23d0df3e0a08fd3ae4e60fc81a51d42cc (diff)
Diffstat (limited to 'demos/personal/protected/a/HomePage.php')
-rw-r--r--demos/personal/protected/a/HomePage.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/demos/personal/protected/a/HomePage.php b/demos/personal/protected/a/HomePage.php
new file mode 100644
index 00000000..6c69e44b
--- /dev/null
+++ b/demos/personal/protected/a/HomePage.php
@@ -0,0 +1,21 @@
+<?php
+
+class HomePage 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