summaryrefslogtreecommitdiff
path: root/demos/personal/protected/pages
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/pages
parente27780e23d0df3e0a08fd3ae4e60fc81a51d42cc (diff)
Diffstat (limited to 'demos/personal/protected/pages')
-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/Layout.php7
-rw-r--r--demos/personal/protected/pages/Layout.tpl29
-rw-r--r--demos/personal/protected/pages/LoginPage.php15
-rw-r--r--demos/personal/protected/pages/LoginPage.tpl7
-rw-r--r--demos/personal/protected/pages/config.xml8
7 files changed, 0 insertions, 90 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/Layout.php b/demos/personal/protected/pages/Layout.php
deleted file mode 100644
index ba96038b..00000000
--- a/demos/personal/protected/pages/Layout.php
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-
-class Layout extends TTemplateControl
-{
-}
-
-?> \ No newline at end of file
diff --git a/demos/personal/protected/pages/Layout.tpl b/demos/personal/protected/pages/Layout.tpl
deleted file mode 100644
index bf3cd7ac..00000000
--- a/demos/personal/protected/pages/Layout.tpl
+++ /dev/null
@@ -1,29 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
-<head>
-<title>My Personal Website</title>
-</head>
-<body>
-<com:TForm>
-<div class="header">
- <h1>Your Name Here</h1>
- <h2>My Personal Site</h2>
- <div class="nav">
- <a href=<%=$this->Service->constructUrl('home') %> >HOME</a> |
- <a href=<%=$this->Service->constructUrl('resume') %> >RESUME</a> |
- <a href=<%=$this->Service->constructUrl('links') %> >LINKS</a> |
- <a href=<%=$this->Service->constructUrl('albums') %> >ALBUMS</a> |
- <a href=<%=$this->Service->constructUrl('login') %> >LOGIN</a>
- </div>
-</div>
-<div class="main">
-<com:TContentPlaceHolder ID="main" />
-</div>
-<div class="footer">
- Copyright &copy; 2005 Your Name here.<br/>
- Powered by <a href="http://www.pradosoft.com/">PRADO</a>.
-</div>
-</com:TForm>
-</body>
-</html> \ 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 3a3b8432..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->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
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>
-
diff --git a/demos/personal/protected/pages/config.xml b/demos/personal/protected/pages/config.xml
deleted file mode 100644
index b3d6b036..00000000
--- a/demos/personal/protected/pages/config.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-
-<configuration>
- <pages MasterClass="Pages.Layout">
- <page id="home" type="HomePage" />
- <page id="login" type="LoginPage" />
- </pages>
-</configuration> \ No newline at end of file