diff options
Diffstat (limited to 'demos/quickstart/protected/pages/Controls/Samples')
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 |