summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Controls/Samples
diff options
context:
space:
mode:
authorxue <>2006-04-01 17:31:28 +0000
committerxue <>2006-04-01 17:31:28 +0000
commit0a12bef112fe6a1569531e40b7cc063b0f52f44c (patch)
tree9e6049c48a9008081cb124153392fc21a24aad44 /demos/quickstart/protected/pages/Controls/Samples
parentaf7a742944cc2d515cac1fcd22363483827c36b3 (diff)
Added THiddenField and THtmlArea demos.
Diffstat (limited to 'demos/quickstart/protected/pages/Controls/Samples')
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/THtmlArea/Home.page42
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/THtmlArea/Home.php21
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TImageMap/Home.page4
3 files changed, 64 insertions, 3 deletions
diff --git a/demos/quickstart/protected/pages/Controls/Samples/THtmlArea/Home.page b/demos/quickstart/protected/pages/Controls/Samples/THtmlArea/Home.page
new file mode 100644
index 00000000..71343e64
--- /dev/null
+++ b/demos/quickstart/protected/pages/Controls/Samples/THtmlArea/Home.page
@@ -0,0 +1,42 @@
+<com:TContent ID="body">
+
+<h1>THtmlArea Samples</h1>
+
+<table class="sampletable">
+
+<tr><td class="samplenote">
+THtmlArea with default settings:
+</td><td class="sampleaction">
+<com:THtmlArea ID="HtmlArea1" />
+<com:TButton Text="Submit" OnClick="button1Clicked" />
+<br/>
+<com:TLiteral Encode="true" ID="Result1" />
+</td></tr>
+
+<tr><td class="samplenote">
+THtmlArea with customized size and table toolbar:
+</td><td class="sampleaction">
+<com:THtmlArea ID="HtmlArea2" Width="500px" Height="250px">
+ <prop:Options>
+ plugins : "table"
+ theme_advanced_buttons3 : "tablecontrols"
+ </prop:Options>
+</com:THtmlArea>
+<com:TButton Text="Submit" OnClick="button2Clicked" />
+<br/>
+<com:TLiteral Encode="true" ID="Result2" />
+</td></tr>
+
+<tr><td class="samplenote">
+THtmlArea with visual editting disabled:
+</td><td class="sampleaction">
+<com:THtmlArea ID="HtmlArea3" EnableVisualEdit="false" />
+<br/>
+<com:TButton Text="Submit" OnClick="button3Clicked" />
+<br/>
+<com:TLiteral Encode="true" ID="Result3" />
+</td></tr>
+
+</table>
+
+</com:TContent> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/Controls/Samples/THtmlArea/Home.php b/demos/quickstart/protected/pages/Controls/Samples/THtmlArea/Home.php
new file mode 100644
index 00000000..c56b5229
--- /dev/null
+++ b/demos/quickstart/protected/pages/Controls/Samples/THtmlArea/Home.php
@@ -0,0 +1,21 @@
+<?php
+
+class Home extends TPage
+{
+ public function button1Clicked($sender,$param)
+ {
+ $this->Result1->Text="You have entered: ".$this->HtmlArea1->Text;
+ }
+
+ public function button2Clicked($sender,$param)
+ {
+ $this->Result2->Text="You have entered: ".$this->HtmlArea2->Text;
+ }
+
+ public function button3Clicked($sender,$param)
+ {
+ $this->Result3->Text="You have entered: ".$this->HtmlArea3->Text;
+ }
+}
+
+?> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TImageMap/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TImageMap/Home.page
index bf291456..a75c3dd2 100644
--- a/demos/quickstart/protected/pages/Controls/Samples/TImageMap/Home.page
+++ b/demos/quickstart/protected/pages/Controls/Samples/TImageMap/Home.page
@@ -25,9 +25,7 @@
<com:TRectangleHotSpot
HotspotMode="PostBack"
PostBackValue="Welcome!"
- CausesValidation="true"
- ValidationGroup="Group1"
- AlternateText="Button 2"
+ AlternateText="Postback button"
Top="52"
Left="172"
Bottom="259"