From f61df44944316c87923530ef5f23725ffd410d92 Mon Sep 17 00:00:00 2001 From: xue <> Date: Fri, 20 Jan 2006 18:11:14 +0000 Subject: Added a dynamically created table demo. --- .../pages/Controls/Samples/TTable/Home.page | 7 +++++ .../pages/Controls/Samples/TTable/Home.php | 33 ++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 demos/quickstart/protected/pages/Controls/Samples/TTable/Home.php (limited to 'demos/quickstart/protected/pages/Controls') diff --git a/demos/quickstart/protected/pages/Controls/Samples/TTable/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TTable/Home.page index cec92f67..9ffe6565 100644 --- a/demos/quickstart/protected/pages/Controls/Samples/TTable/Home.page +++ b/demos/quickstart/protected/pages/Controls/Samples/TTable/Home.page @@ -39,6 +39,13 @@ Table with rows and customized font, background image, etc.: + +A dynamically created table: + + + + + \ No newline at end of file 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 @@ +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 -- cgit v1.2.3