summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Controls/Samples
diff options
context:
space:
mode:
authorxue <>2007-09-24 16:03:13 +0000
committerxue <>2007-09-24 16:03:13 +0000
commit7fa7f25806e92fe0c4f9c647d413a4fa58680e59 (patch)
tree324646c670cad16ac27eb3ea9617f0c5709132d4 /demos/quickstart/protected/pages/Controls/Samples
parent230c523ecd7477c80c34d8c662732ea45adae2bc (diff)
added TConditional.
Diffstat (limited to 'demos/quickstart/protected/pages/Controls/Samples')
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TConditional/Home.page14
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TConditional/Home.php7
2 files changed, 21 insertions, 0 deletions
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TConditional/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TConditional/Home.page
new file mode 100644
index 00000000..0c099551
--- /dev/null
+++ b/demos/quickstart/protected/pages/Controls/Samples/TConditional/Home.page
@@ -0,0 +1,14 @@
+<com:TContent ID="body">
+<h1>TConditional Samples</h1>
+
+<com:TConditional Condition="Prado::getVersion()==='3.1.1'">
+<prop:TrueTemplate>
+ <com:TLabel Text="You are using PRADO 3.1.1" />
+</prop:TrueTemplate>
+<prop:FalseTemplate>
+ <com:TLabel Text="You are using PRADO <%= Prado::getVersion() %>" />
+</prop:FalseTemplate>
+</com:TConditional>
+
+<div class="last-modified">$Id$</div>
+</com:TContent> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TConditional/Home.php b/demos/quickstart/protected/pages/Controls/Samples/TConditional/Home.php
new file mode 100644
index 00000000..badbca73
--- /dev/null
+++ b/demos/quickstart/protected/pages/Controls/Samples/TConditional/Home.php
@@ -0,0 +1,7 @@
+<?php
+
+class Home extends TPage
+{
+}
+
+?> \ No newline at end of file