summaryrefslogtreecommitdiff
path: root/demos/personal/protected/a
diff options
context:
space:
mode:
authorxue <>2005-11-16 18:42:57 +0000
committerxue <>2005-11-16 18:42:57 +0000
commit28f69400fcb8ee74a2ea4bbf81afa00c1e6d5263 (patch)
treec2233bd30cddf3912af2617d1dc3636917467876 /demos/personal/protected/a
parentfdd0a3ad7b2f9f942b94fde84277529ecae2a3b3 (diff)
Diffstat (limited to 'demos/personal/protected/a')
-rw-r--r--demos/personal/protected/a/HomePage.php21
-rw-r--r--demos/personal/protected/a/HomePage.tpl3
-rw-r--r--demos/personal/protected/a/Layout.php7
-rw-r--r--demos/personal/protected/a/Layout.tpl29
-rw-r--r--demos/personal/protected/a/LoginPage.php15
-rw-r--r--demos/personal/protected/a/LoginPage.tpl7
-rw-r--r--demos/personal/protected/a/config.xml8
7 files changed, 0 insertions, 90 deletions
diff --git a/demos/personal/protected/a/HomePage.php b/demos/personal/protected/a/HomePage.php
deleted file mode 100644
index 6c69e44b..00000000
--- a/demos/personal/protected/a/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/a/HomePage.tpl b/demos/personal/protected/a/HomePage.tpl
deleted file mode 100644
index 9471a9b9..00000000
--- a/demos/personal/protected/a/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/a/Layout.php b/demos/personal/protected/a/Layout.php
deleted file mode 100644
index ba96038b..00000000
--- a/demos/personal/protected/a/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/a/Layout.tpl b/demos/personal/protected/a/Layout.tpl
deleted file mode 100644
index bf3cd7ac..00000000
--- a/demos/personal/protected/a/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/a/LoginPage.php b/demos/personal/protected/a/LoginPage.php
deleted file mode 100644
index 3a3b8432..00000000
--- a/demos/personal/protected/a/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/a/LoginPage.tpl b/demos/personal/protected/a/LoginPage.tpl
deleted file mode 100644
index 588b8f6a..00000000
--- a/demos/personal/protected/a/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/a/config.xml b/demos/personal/protected/a/config.xml
deleted file mode 100644
index b3d6b036..00000000
--- a/demos/personal/protected/a/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