summaryrefslogtreecommitdiff
path: root/demos/blog-tutorial/protected/common
diff options
context:
space:
mode:
authorxue <>2007-04-03 21:43:22 +0000
committerxue <>2007-04-03 21:43:22 +0000
commit51db38c9423a1d3bf476bb30054cf3288ee16c88 (patch)
tree370665b0eb19070334b73e73e4080239b1a5c055 /demos/blog-tutorial/protected/common
parent03dbe16b7762cc1a9e57df4e9e34bc04f46bb57f (diff)
Added blog-tutorial.
Diffstat (limited to 'demos/blog-tutorial/protected/common')
-rw-r--r--demos/blog-tutorial/protected/common/InfoBox.php13
-rw-r--r--demos/blog-tutorial/protected/common/NoteBox.php13
-rw-r--r--demos/blog-tutorial/protected/common/TipBox.php13
-rw-r--r--demos/blog-tutorial/protected/common/TopicList.php8
-rw-r--r--demos/blog-tutorial/protected/common/TopicList.tpl70
5 files changed, 117 insertions, 0 deletions
diff --git a/demos/blog-tutorial/protected/common/InfoBox.php b/demos/blog-tutorial/protected/common/InfoBox.php
new file mode 100644
index 00000000..271ce1e7
--- /dev/null
+++ b/demos/blog-tutorial/protected/common/InfoBox.php
@@ -0,0 +1,13 @@
+<?php
+
+class InfoBox extends TControl
+{
+ public function render($writer)
+ {
+ $writer->write("<div class=\"info\"><b class=\"tip\">Info:</b>\n");
+ $body=$this->renderChildren($writer);
+ $writer->write("</div>");
+ }
+}
+
+?> \ No newline at end of file
diff --git a/demos/blog-tutorial/protected/common/NoteBox.php b/demos/blog-tutorial/protected/common/NoteBox.php
new file mode 100644
index 00000000..f5123380
--- /dev/null
+++ b/demos/blog-tutorial/protected/common/NoteBox.php
@@ -0,0 +1,13 @@
+<?php
+
+class NoteBox extends TControl
+{
+ public function render($writer)
+ {
+ $writer->write("<div class=\"note\"><b class=\"tip\">Note:</b>\n");
+ $body=$this->renderChildren($writer);
+ $writer->write("</div>");
+ }
+}
+
+?> \ No newline at end of file
diff --git a/demos/blog-tutorial/protected/common/TipBox.php b/demos/blog-tutorial/protected/common/TipBox.php
new file mode 100644
index 00000000..2464a61a
--- /dev/null
+++ b/demos/blog-tutorial/protected/common/TipBox.php
@@ -0,0 +1,13 @@
+<?php
+
+class TipBox extends TControl
+{
+ public function render($writer)
+ {
+ $writer->write("<div class=\"tip\"><b class=\"tip\">Tip:</b>\n");
+ $body=$this->renderChildren($writer);
+ $writer->write("</div>");
+ }
+}
+
+?> \ No newline at end of file
diff --git a/demos/blog-tutorial/protected/common/TopicList.php b/demos/blog-tutorial/protected/common/TopicList.php
new file mode 100644
index 00000000..ce827cc0
--- /dev/null
+++ b/demos/blog-tutorial/protected/common/TopicList.php
@@ -0,0 +1,8 @@
+<?php
+
+class TopicList extends TTemplateControl
+{
+
+}
+
+?> \ No newline at end of file
diff --git a/demos/blog-tutorial/protected/common/TopicList.tpl b/demos/blog-tutorial/protected/common/TopicList.tpl
new file mode 100644
index 00000000..555b0efe
--- /dev/null
+++ b/demos/blog-tutorial/protected/common/TopicList.tpl
@@ -0,0 +1,70 @@
+<div id="toc">
+
+<div class="topic">
+<div>Introduction</div>
+<ul>
+ <li><a href="?page=Overview">Overview</a></li>
+ <li><a href="?page=Requirements">Requirement Analysis</a></li>
+</ul>
+</div>
+
+<div class="topic">
+<div>Day 1: Experiencing PRADO</div>
+<ul>
+ <li><a href="?page=Day1.Setup">Initial Setup</a></li>
+ <li><a href="?page=Day1.CreateContact">Creating Contact Page</a></li>
+ <li><a href="?page=Day1.ShareLayout">Sharing Common Layout</a></li>
+</ul>
+</div>
+
+<div class="topic">
+<div>Day 2: Using Database</div>
+<ul>
+ <li><a href="?page=Day2.CreateDB">Creating Database</a></li>
+ <li><a href="?page=Day2.ConnectDB">Establishing DB Connection</a></li>
+ <li><a href="?page=Day2.CreateDAO">Creating DAOs</a></li>
+ <li><a href="?page=">Creating NewPost Page</a></li>
+ <li><a href="?page=">Creating ListPost Page</a></li>
+</ul>
+</div>
+
+<div class="topic">
+<div>Day 3: Authentication and Authorization</div>
+<ul>
+ <li><a href="?page=">Creating Login Page</a></li>
+ <li><a href="?page=">Using PRADO Auth Framework</a></li>
+ <li><a href="?page=">Database-Driven Authentication</a></li>
+</ul>
+</div>
+
+<div class="topic">
+<div>Day 4: Developing and Using Components</div>
+<ul>
+</ul>
+</div>
+
+<div class="topic">
+<div>Day 5: Customization and Refactoring</div>
+<ul>
+ <li><a href="?page=">Using Themes and Skins</a></li>
+ <li><a href="?page=">Customizing Error Handling</a></li>
+ <li><a href="?page=">Logging</a></li>
+</ul>
+</div>
+
+<div class="topic">
+<div>Day 6: Performance Tuneup and Deployment</div>
+<ul>
+ <li><a href="?page=">Caching</a></li>
+</ul>
+</div>
+
+<div class="topic">
+<div>Summary</div>
+<ul>
+ <li><a href="?page=">Development Process</a></li>
+ <li><a href="?page=">Future Work</a></li>
+</ul>
+</div>
+
+</div> \ No newline at end of file