From f8259bb73731552eb77dcd1254d711507e4932c4 Mon Sep 17 00:00:00 2001 From: xue <> Date: Sat, 14 Jan 2006 06:56:13 +0000 Subject: TDataList completed. A preliminary demo added. --- demos/quickstart/protected/controls/TopicList.tpl | 4 ++-- .../protected/pages/Controls/DataList.page | 9 ++++++++ .../pages/Controls/Samples/TDataList/Sample1.page | 21 ++++++++++++++++++ .../pages/Controls/Samples/TDataList/Sample1.php | 25 ++++++++++++++++++++++ 4 files changed, 57 insertions(+), 2 deletions(-) create mode 100644 demos/quickstart/protected/pages/Controls/DataList.page create mode 100644 demos/quickstart/protected/pages/Controls/Samples/TDataList/Sample1.page create mode 100644 demos/quickstart/protected/pages/Controls/Samples/TDataList/Sample1.php (limited to 'demos/quickstart') diff --git a/demos/quickstart/protected/controls/TopicList.tpl b/demos/quickstart/protected/controls/TopicList.tpl index 5f81ef99..c7e36184 100644 --- a/demos/quickstart/protected/controls/TopicList.tpl +++ b/demos/quickstart/protected/controls/TopicList.tpl @@ -36,8 +36,8 @@ Simple HTML Controls
List Controls
Validation Controls
-TRepeater
-TDataList
+TRepeater
+TDataList
TDataGrid
Active Controls
Authoring New Controls
diff --git a/demos/quickstart/protected/pages/Controls/DataList.page b/demos/quickstart/protected/pages/Controls/DataList.page new file mode 100644 index 00000000..65919ee2 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/DataList.page @@ -0,0 +1,9 @@ + + +

TDataList

+

+TBC +

+ + +
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Samples/TDataList/Sample1.page b/demos/quickstart/protected/pages/Controls/Samples/TDataList/Sample1.page new file mode 100644 index 00000000..e25525f8 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TDataList/Sample1.page @@ -0,0 +1,21 @@ + + +

TDataList Sample 1

+ + + + +<%#$this->Parent->DataItem['name']%> + + + + +
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Samples/TDataList/Sample1.php b/demos/quickstart/protected/pages/Controls/Samples/TDataList/Sample1.php new file mode 100644 index 00000000..0f72dbf5 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TDataList/Sample1.php @@ -0,0 +1,25 @@ +'John','age'=>'31'), + array('name'=>'Bea','age'=>'35'), + array('name'=>'Rose','age'=>'33'), + array('name'=>'Diane','age'=>'37'), + array('name'=>'Bob','age'=>'30'), + ); + } + + public function onLoad($param) + { + parent::onLoad($param); + $this->DataList->DataSource=$this->getDataSource(); + $this->DataList->SelectedItemIndex=1; + $this->DataList->dataBind(); + } +} + +?> \ No newline at end of file -- cgit v1.2.3