summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxue <>2005-12-28 20:59:09 +0000
committerxue <>2005-12-28 20:59:09 +0000
commitf481e13ebf72336ed2dc90c8ec9f5d4db5b62664 (patch)
tree2b1c6f373a114cdacc462d8f90b1798467e4e679
parente8b60312037e54c34a06d6f57d7c21946cf3cd1f (diff)
-rw-r--r--.gitattributes4
-rw-r--r--demos/quickstart/protected/controls/SampleLayout.php15
-rw-r--r--demos/quickstart/protected/controls/SampleLayout.tpl29
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/Label.page3
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/config.xml5
-rw-r--r--demos/quickstart/protected/pages/Controls/Simple.page3
-rw-r--r--demos/quickstart/themes/Simple/style.css10
7 files changed, 68 insertions, 1 deletions
diff --git a/.gitattributes b/.gitattributes
index 69801520..a41f6bc1 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -18,6 +18,8 @@ demos/quickstart/protected/controls/Layout.php -text
demos/quickstart/protected/controls/Layout.tpl -text
demos/quickstart/protected/controls/RunBar.php -text
demos/quickstart/protected/controls/RunBar.tpl -text
+demos/quickstart/protected/controls/SampleLayout.php -text
+demos/quickstart/protected/controls/SampleLayout.tpl -text
demos/quickstart/protected/controls/TopicList.php -text
demos/quickstart/protected/controls/TopicList.tpl -text
demos/quickstart/protected/pages/Configurations/AppConfig.page -text
@@ -28,6 +30,8 @@ demos/quickstart/protected/pages/Configurations/Templates2.page -text
demos/quickstart/protected/pages/Configurations/Templates3.page -text
demos/quickstart/protected/pages/Construction.page -text
demos/quickstart/protected/pages/Controls/Overview.page -text
+demos/quickstart/protected/pages/Controls/Samples/Label.page -text
+demos/quickstart/protected/pages/Controls/Samples/config.xml -text
demos/quickstart/protected/pages/Controls/Simple.page -text
demos/quickstart/protected/pages/Controls/Simple1.page -text
demos/quickstart/protected/pages/Fundamentals/Applications.page -text
diff --git a/demos/quickstart/protected/controls/SampleLayout.php b/demos/quickstart/protected/controls/SampleLayout.php
new file mode 100644
index 00000000..ee7f41ff
--- /dev/null
+++ b/demos/quickstart/protected/controls/SampleLayout.php
@@ -0,0 +1,15 @@
+<?php
+
+class SampleLayout extends TTemplateControl
+{
+ public function toggleTopicPanel($sender,$param)
+ {
+ $this->TopicPanel->Visible=!$this->TopicPanel->Visible;
+ if($this->TopicPanel->Visible)
+ $sender->Text="Hide TOC";
+ else
+ $sender->Text="Show TOC";
+ }
+}
+
+?> \ No newline at end of file
diff --git a/demos/quickstart/protected/controls/SampleLayout.tpl b/demos/quickstart/protected/controls/SampleLayout.tpl
new file mode 100644
index 00000000..f1237010
--- /dev/null
+++ b/demos/quickstart/protected/controls/SampleLayout.tpl
@@ -0,0 +1,29 @@
+<!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" >
+
+<com:THead Title="PRADO QuickStart Sample">
+<meta http-equiv="content-language" content="en"/>
+</com:THead>
+
+<body>
+<com:TForm>
+
+<div class="samplebar">
+<div style="float:left">
+<a href="?">PRADO QuickStart Tutorial</a> Sample
+</div>
+<div style="text-align:right">
+Copyright &copy; 2005 <a href="http://www.pradosoft.com">PradoSoft</a>
+</div>
+</div>
+</div>
+<div style="margin:15px;">
+<div>
+<com:TContentPlaceHolder ID="body" />
+</div>
+
+</div>
+
+</com:TForm>
+</body>
+</html> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/Controls/Samples/Label.page b/demos/quickstart/protected/pages/Controls/Samples/Label.page
new file mode 100644
index 00000000..2fe542a9
--- /dev/null
+++ b/demos/quickstart/protected/pages/Controls/Samples/Label.page
@@ -0,0 +1,3 @@
+<com:TContent ID="body">
+test
+</com:TContent> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/Controls/Samples/config.xml b/demos/quickstart/protected/pages/Controls/Samples/config.xml
new file mode 100644
index 00000000..ecd29bd4
--- /dev/null
+++ b/demos/quickstart/protected/pages/Controls/Samples/config.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<configuration>
+ <pages MasterClass="Controls.SampleLayout" />
+</configuration> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/Controls/Simple.page b/demos/quickstart/protected/pages/Controls/Simple.page
index 7242cded..94061711 100644
--- a/demos/quickstart/protected/pages/Controls/Simple.page
+++ b/demos/quickstart/protected/pages/Controls/Simple.page
@@ -4,7 +4,8 @@
<h2>TLabel</h2>
<p>
-<tt>TLabel</tt> displays a piece of text on a Web page. The text to be displayed is set via its <tt>Text</tt> property. If <tt>Text</tt> is empty, content enclosed within the <tt>TLabel</tt> component tag will be displayed. <tt>TLabel</tt> may also be used a form label associated with some control on the form. <tt>Text</tt> is not HTML-encoded when being rendered. Make sure it does not contain dangerous characters that you want to avoid.
+<tt>TLabel</tt> displays a piece of text on a Web page. The text to be displayed is set via its <tt>Text</tt> property. If <tt>Text</tt> is empty, content enclosed within the <tt>TLabel</tt> component tag will be displayed. <tt>TLabel</tt> may also be used as a form label associated with some control on the form. Since <tt>Text</tt> is not HTML-encoded when being rendered, make sure it does not contain dangerous characters that you want to avoid.
</p>
+<com:RunBar PagePath="Controls.Samples.Label" />
</com:TContent> \ No newline at end of file
diff --git a/demos/quickstart/themes/Simple/style.css b/demos/quickstart/themes/Simple/style.css
index 9b22b7bd..4fc38e07 100644
--- a/demos/quickstart/themes/Simple/style.css
+++ b/demos/quickstart/themes/Simple/style.css
@@ -143,4 +143,14 @@ code {
tt {
font-family: "Courier New", Courier, mono;
border-bottom: 1px dotted silver;
+}
+
+.samplebar {
+ background:#00487D;
+ color:white;
+ padding:3px;
+}
+
+.samplebar a {
+ color:white;
} \ No newline at end of file