diff options
author | xue <> | 2005-11-16 18:42:57 +0000 |
---|---|---|
committer | xue <> | 2005-11-16 18:42:57 +0000 |
commit | 28f69400fcb8ee74a2ea4bbf81afa00c1e6d5263 (patch) | |
tree | c2233bd30cddf3912af2617d1dc3636917467876 /demos/personal/protected/Pages/HomePage.php | |
parent | fdd0a3ad7b2f9f942b94fde84277529ecae2a3b3 (diff) |
Diffstat (limited to 'demos/personal/protected/Pages/HomePage.php')
-rw-r--r-- | demos/personal/protected/Pages/HomePage.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/demos/personal/protected/Pages/HomePage.php b/demos/personal/protected/Pages/HomePage.php new file mode 100644 index 00000000..6c69e44b --- /dev/null +++ b/demos/personal/protected/Pages/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 |