From c0006cf0da8c3499060df7378cc376c98cbce7c4 Mon Sep 17 00:00:00 2001 From: xue <> Date: Thu, 29 Dec 2005 03:28:49 +0000 Subject: Added TLabel samples. --- .../quickstart/protected/controls/SampleLayout.tpl | 10 ++++---- .../protected/pages/Controls/Samples/Label.page | 29 +++++++++++++++++++++- demos/quickstart/themes/Simple/style.css | 10 ++++++-- framework/Web/UI/WebControls/TLabel.php | 2 +- 4 files changed, 42 insertions(+), 9 deletions(-) diff --git a/demos/quickstart/protected/controls/SampleLayout.tpl b/demos/quickstart/protected/controls/SampleLayout.tpl index f1237010..8dc32436 100644 --- a/demos/quickstart/protected/controls/SampleLayout.tpl +++ b/demos/quickstart/protected/controls/SampleLayout.tpl @@ -8,22 +8,22 @@ -
+
+
PRADO QuickStart Tutorial Sample
+
Copyright © 2005 PradoSoft
+
-
+
-
-
-
\ 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 index 2fe542a9..2fa77988 100644 --- a/demos/quickstart/protected/pages/Controls/Samples/Label.page +++ b/demos/quickstart/protected/pages/Controls/Samples/Label.page @@ -1,3 +1,30 @@ -test + +

TLabel Samples

+ +
+ +
+ +
+ +
+ +
+ +
+ +This is a label with empty Text property and nonempty body. + +
+
\ No newline at end of file diff --git a/demos/quickstart/themes/Simple/style.css b/demos/quickstart/themes/Simple/style.css index a4e15ff8..2bdddae8 100644 --- a/demos/quickstart/themes/Simple/style.css +++ b/demos/quickstart/themes/Simple/style.css @@ -146,12 +146,18 @@ tt { border-bottom: 1px dotted silver; } -.samplebar { +.sampleheader { background:#00487D; color:white; padding:3px; } -.samplebar a { +.sampleheader a { color:white; +} + +.samplepanel { + margin: 10px; + border: 1px solid silver; + padding: 10px; } \ No newline at end of file diff --git a/framework/Web/UI/WebControls/TLabel.php b/framework/Web/UI/WebControls/TLabel.php index af40f897..5a53def4 100644 --- a/framework/Web/UI/WebControls/TLabel.php +++ b/framework/Web/UI/WebControls/TLabel.php @@ -18,7 +18,7 @@ * TLabel will render the contents enclosed within its component tag * if {@link setText Text} is empty. * To use TLabel as a form label, associate it with a control by setting the - * {@link setAssociateControlID AssociateControlID} property. + * {@link setAssociatedControlID AssociatedControlID} property. * The associated control must be locatable within the label's naming container. * * Note, {@link setText Text} will NOT be encoded for rendering. -- cgit v1.2.3