summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Controls/Samples/TTable/Home.php
diff options
context:
space:
mode:
authorxue <>2006-01-20 18:11:14 +0000
committerxue <>2006-01-20 18:11:14 +0000
commitf61df44944316c87923530ef5f23725ffd410d92 (patch)
tree4b87bd3d4e9d36adb9b3f23b2ff7387900db0fb6 /demos/quickstart/protected/pages/Controls/Samples/TTable/Home.php
parent22c0b4956ff476ae165bf93a448f0980dfa050f3 (diff)
Added a dynamically created table demo.
Diffstat (limited to 'demos/quickstart/protected/pages/Controls/Samples/TTable/Home.php')
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TTable/Home.php33
1 files changed, 33 insertions, 0 deletions
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TTable/Home.php b/demos/quickstart/protected/pages/Controls/Samples/TTable/Home.php
new file mode 100644
index 00000000..fa5efe38
--- /dev/null
+++ b/demos/quickstart/protected/pages/Controls/Samples/TTable/Home.php
@@ -0,0 +1,33 @@
+<?php
+
+class Home extends TPage
+{
+ public function onLoad($param)
+ {
+ $this->Table->GridLines='Both';
+
+ $row=new TTableRow;
+ $this->Table->Rows[]=$row;
+
+ $cell=new TTableHeaderCell;
+ $cell->Text='Header 1';
+ $row->Cells[]=$cell;
+
+ $cell=new TTableHeaderCell;
+ $cell->Text='Header 2';
+ $row->Cells[]=$cell;
+
+ $row=new TTableRow;
+ $this->Table->Rows[]=$row;
+
+ $cell=new TTableCell;
+ $cell->Text='Cell 1';
+ $row->Cells[]=$cell;
+
+ $cell=new TTableCell;
+ $cell->Text='Cell 2';
+ $row->Cells[]=$cell;
+ }
+}
+
+?> \ No newline at end of file