diff options
author | wei <> | 2006-07-28 07:56:03 +0000 |
---|---|---|
committer | wei <> | 2006-07-28 07:56:03 +0000 |
commit | fbf05a159bc1a688940c16dc304eaaf140188b01 (patch) | |
tree | 9346b49526b9ef908e59039244b2f3c220f5a530 /demos/time-tracker/protected/pages/TimeTracker/ReportProject.php | |
parent | ff6db29dff9b4778b97d2234d08cdcc10770562a (diff) |
Time-Tracker Demo: Escape html entities in output.
Diffstat (limited to 'demos/time-tracker/protected/pages/TimeTracker/ReportProject.php')
-rw-r--r-- | demos/time-tracker/protected/pages/TimeTracker/ReportProject.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/demos/time-tracker/protected/pages/TimeTracker/ReportProject.php b/demos/time-tracker/protected/pages/TimeTracker/ReportProject.php index fea372be..fcb1c865 100644 --- a/demos/time-tracker/protected/pages/TimeTracker/ReportProject.php +++ b/demos/time-tracker/protected/pages/TimeTracker/ReportProject.php @@ -22,11 +22,17 @@ class ReportProject extends TPage public function generateReport_Clicked($sender, $param)
{
+ if(count($this->projectList->SelectedValues) > 0)
+ $this->showReport();
+ }
+
+ protected function showReport()
+ {
$reportDao = $this->Application->Modules['daos']->getDao('ReportDao');
$reports = $reportDao->getTimeReportsByProjectIDs($this->projectList->SelectedValues);
$this->views->ActiveViewIndex = 1;
$this->projects->DataSource = $reports;
- $this->projects->dataBind();
+ $this->projects->dataBind();
}
public function project_itemCreated($sender, $param)
|