From b2fba25e4b146c4896304377643e498a22a3ced0 Mon Sep 17 00:00:00 2001 From: xue <> Date: Thu, 2 Feb 2006 06:29:24 +0000 Subject: Added a demo of using TDataGrid with automatically generated columns. --- framework/Log/TLogRouter.php | 14 +++++++++----- framework/Web/UI/WebControls/TDataGrid.php | 4 ++-- 2 files changed, 11 insertions(+), 7 deletions(-) (limited to 'framework') diff --git a/framework/Log/TLogRouter.php b/framework/Log/TLogRouter.php index ef16cb67..4b6141e4 100644 --- a/framework/Log/TLogRouter.php +++ b/framework/Log/TLogRouter.php @@ -604,14 +604,14 @@ class TBrowserLogRoute extends TLogRoute $category = is_array($this->getCategories()) ? implode(', ',$this->getCategories()) : ''; $string = << + - + EOD; return $string; @@ -626,7 +626,11 @@ EOD; $msg = preg_replace('/\(line[^\)]+\)$/','',$log[0]); //remove line number info $string = << - + + + + + EOD; return $string; @@ -651,7 +655,7 @@ EOD; $string = "
-

Trace Information: $category

+ Application Log
 CategoryMessageFrom First(s)From Last(s)CategoryMessageTime Spent (s)Cumulated Time Spent (s)
 {$log[2]}{$msg}{$total}{$delta} {$log[2]}{$msg}{$delta}{$total}
"; foreach(self::$_levelValues as $name => $level) { - $string .= "getColorLevel($level); + $string .= "getColorLevel($level); $string .= ";margin: 0.5em;\">".strtoupper($name).""; } $string .= "
"; diff --git a/framework/Web/UI/WebControls/TDataGrid.php b/framework/Web/UI/WebControls/TDataGrid.php index 9d55f37e..8b159905 100644 --- a/framework/Web/UI/WebControls/TDataGrid.php +++ b/framework/Web/UI/WebControls/TDataGrid.php @@ -72,7 +72,7 @@ Prado::using('System.Web.UI.WebControls.TTable'); * on top and/or bottom of the table. How the pager will be displayed is determined by PagerDisplay * and PagerButtonCount properties. The former decides the position of the pager and latter * specifies how many buttons are to be used for paging purpose. Clicking on a pager button will raise - * an OnPageCommand event. You can respond to this event, specify the page to be displayed by + * an onPageIndexChanged event. You can respond to this event, specify the page to be displayed by * setting CurrentPageIndex property, and then invoke databind on the datagrid. * * TDataGrid supports two kinds of paging. The first one is based on the number of data items in @@ -94,7 +94,7 @@ Prado::using('System.Web.UI.WebControls.TTable'); * - OnSelectCommand, select * - OnDeleteCommand, delete * - OnUpdateCommand, update - * - OnPageCommand, page + * - onPageIndexChanged, page * - OnSortCommand, sort * The data list will always raise an OnItemCommand * upon its receiving a bubbled OnCommand event. -- cgit v1.2.3