From 28f69400fcb8ee74a2ea4bbf81afa00c1e6d5263 Mon Sep 17 00:00:00 2001 From: xue <> Date: Wed, 16 Nov 2005 18:42:57 +0000 Subject: --- demos/personal/protected/Pages/HomePage.php | 21 ++++++++++++++++++++ demos/personal/protected/Pages/HomePage.tpl | 3 +++ demos/personal/protected/Pages/Layout.php | 7 +++++++ demos/personal/protected/Pages/Layout.tpl | 29 ++++++++++++++++++++++++++++ demos/personal/protected/Pages/LoginPage.php | 15 ++++++++++++++ demos/personal/protected/Pages/LoginPage.tpl | 7 +++++++ demos/personal/protected/Pages/config.xml | 8 ++++++++ 7 files changed, 90 insertions(+) create mode 100644 demos/personal/protected/Pages/HomePage.php create mode 100644 demos/personal/protected/Pages/HomePage.tpl create mode 100644 demos/personal/protected/Pages/Layout.php create mode 100644 demos/personal/protected/Pages/Layout.tpl create mode 100644 demos/personal/protected/Pages/LoginPage.php create mode 100644 demos/personal/protected/Pages/LoginPage.tpl create mode 100644 demos/personal/protected/Pages/config.xml (limited to 'demos/personal/protected/Pages') 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 @@ +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 new file mode 100644 index 00000000..9471a9b9 --- /dev/null +++ b/demos/personal/protected/Pages/HomePage.tpl @@ -0,0 +1,3 @@ + +main content + \ No newline at end of file diff --git a/demos/personal/protected/Pages/Layout.php b/demos/personal/protected/Pages/Layout.php new file mode 100644 index 00000000..ba96038b --- /dev/null +++ b/demos/personal/protected/Pages/Layout.php @@ -0,0 +1,7 @@ + \ No newline at end of file diff --git a/demos/personal/protected/Pages/Layout.tpl b/demos/personal/protected/Pages/Layout.tpl new file mode 100644 index 00000000..bf3cd7ac --- /dev/null +++ b/demos/personal/protected/Pages/Layout.tpl @@ -0,0 +1,29 @@ + + + + +My Personal Website + + + +
+

Your Name Here

+

My Personal Site

+ +
+
+ +
+ +
+ + \ No newline at end of file diff --git a/demos/personal/protected/Pages/LoginPage.php b/demos/personal/protected/Pages/LoginPage.php new file mode 100644 index 00000000..3a3b8432 --- /dev/null +++ b/demos/personal/protected/Pages/LoginPage.php @@ -0,0 +1,15 @@ +Application->AuthManager; + 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 new file mode 100644 index 00000000..588b8f6a --- /dev/null +++ b/demos/personal/protected/Pages/LoginPage.tpl @@ -0,0 +1,7 @@ + +Username:
+Password:
+ + +
+ diff --git a/demos/personal/protected/Pages/config.xml b/demos/personal/protected/Pages/config.xml new file mode 100644 index 00000000..b3d6b036 --- /dev/null +++ b/demos/personal/protected/Pages/config.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file -- cgit v1.2.3