summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Controls/Samples
diff options
context:
space:
mode:
authorxue <>2006-03-27 04:33:13 +0000
committerxue <>2006-03-27 04:33:13 +0000
commit84cd815b93ddbb19c3f1314b7135b1c373ce421c (patch)
tree65b7931691e84e9a7e22f3fe0c0362d4f43cb31a /demos/quickstart/protected/pages/Controls/Samples
parent3192eb5cafef46ed5203a8cb2f7ae885e5693a47 (diff)
Added TLiteral, TPlaceHolder demos.
Diffstat (limited to 'demos/quickstart/protected/pages/Controls/Samples')
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TLiteral/Home.page13
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TPlaceHolder/Home.page11
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TPlaceHolder/Home.php16
3 files changed, 40 insertions, 0 deletions
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TLiteral/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TLiteral/Home.page
new file mode 100644
index 00000000..118d1627
--- /dev/null
+++ b/demos/quickstart/protected/pages/Controls/Samples/TLiteral/Home.page
@@ -0,0 +1,13 @@
+<com:TContent ID="body">
+
+<h1>TLiteral Sample</h1>
+
+<p>
+<com:TLiteral Text="This is a piece of unencoded text." />
+</p>
+
+<p>
+<com:TLiteral Text="This is a piece of encoded <a>text</a>." Encode="true"/>
+</p>
+
+</com:TContent> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TPlaceHolder/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TPlaceHolder/Home.page
new file mode 100644
index 00000000..f2b0d372
--- /dev/null
+++ b/demos/quickstart/protected/pages/Controls/Samples/TPlaceHolder/Home.page
@@ -0,0 +1,11 @@
+<com:TContent ID="body">
+
+<h1>TPlaceHolder Sample</h1>
+
+<p>
+This sample shows how to insert <com:TPlaceHolder ID="PlaceHolder1" />
+at a place that is reserved on a template. The dynamic content can be
+either static texts or controls.
+</p>
+
+</com:TContent> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TPlaceHolder/Home.php b/demos/quickstart/protected/pages/Controls/Samples/TPlaceHolder/Home.php
new file mode 100644
index 00000000..ecae7876
--- /dev/null
+++ b/demos/quickstart/protected/pages/Controls/Samples/TPlaceHolder/Home.php
@@ -0,0 +1,16 @@
+<?php
+
+class Home extends TPage
+{
+ public function onInit($param)
+ {
+ parent::onInit($param);
+ $label=new TLabel;
+ $label->Text='dynamic';
+ $label->BackColor='silver';
+ $this->PlaceHolder1->Controls[]=$label;
+ $this->PlaceHolder1->Controls[]=' content';
+ }
+}
+
+?> \ No newline at end of file