diff options
Diffstat (limited to 'demos/personal/protected/Pages/Home.php')
-rw-r--r-- | demos/personal/protected/Pages/Home.php | 21 |
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 |