summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorxue <>2005-12-24 23:11:04 +0000
committerxue <>2005-12-24 23:11:04 +0000
commitc968872380db2d7641c0cd9d07edd845b10f43a4 (patch)
treed77fdb235675a7f1e799b95cec7bdc0a40aaf011 /demos
parent79d8f0512eab3fb0c138ea5cf0f5c577e9ff2cb8 (diff)
Diffstat (limited to 'demos')
-rw-r--r--demos/personal/protected/Pages/HomePage.php21
-rw-r--r--demos/personal/protected/Pages/HomePage.tpl3
-rw-r--r--demos/personal/protected/Pages/LoginPage.php15
-rw-r--r--demos/personal/protected/Pages/LoginPage.tpl7
4 files changed, 0 insertions, 46 deletions
diff --git a/demos/personal/protected/Pages/HomePage.php b/demos/personal/protected/Pages/HomePage.php
deleted file mode 100644
index 6c69e44b..00000000
--- a/demos/personal/protected/Pages/HomePage.php
+++ /dev/null
@@ -1,21 +0,0 @@
-<?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
diff --git a/demos/personal/protected/Pages/HomePage.tpl b/demos/personal/protected/Pages/HomePage.tpl
deleted file mode 100644
index 9471a9b9..00000000
--- a/demos/personal/protected/Pages/HomePage.tpl
+++ /dev/null
@@ -1,3 +0,0 @@
-<com:TContent ID="main" >
-main content
-</com:TContent> \ No newline at end of file
diff --git a/demos/personal/protected/Pages/LoginPage.php b/demos/personal/protected/Pages/LoginPage.php
deleted file mode 100644
index 3b5cc3f9..00000000
--- a/demos/personal/protected/Pages/LoginPage.php
+++ /dev/null
@@ -1,15 +0,0 @@
-<?php
-
-class LoginPage extends TPage
-{
- public function login($sender,$param)
- {
- $manager=$this->Application->getModule('auth');
- if($manager->login($this->username->Text,$this->password->Text))
- $this->Application->Response->redirect($this->Application->Request->Items['ReturnUrl']);
- else
- $this->error->Text='login failed';
- }
-}
-
-?> \ No newline at end of file
diff --git a/demos/personal/protected/Pages/LoginPage.tpl b/demos/personal/protected/Pages/LoginPage.tpl
deleted file mode 100644
index 588b8f6a..00000000
--- a/demos/personal/protected/Pages/LoginPage.tpl
+++ /dev/null
@@ -1,7 +0,0 @@
-<com:TContent ID="main" >
-Username: <com:TTextBox ID="username" /><br/>
-Password: <com:TTextBox ID="password" TextMode="Password" /><br/>
-<com:TButton Text="Login" Click="login" />
-<com:TLabel ID="error" />
-</com:TContent>
-