summaryrefslogtreecommitdiff
path: root/demos/time-tracker/protected/pages/TimeTracker
diff options
context:
space:
mode:
authorwei <>2006-07-26 01:44:57 +0000
committerwei <>2006-07-26 01:44:57 +0000
commit5c1132f6da292a689bc52bd7f20a83ff8d733fbd (patch)
tree3b61f33aff5aac63bc192564602c2ff482913cf5 /demos/time-tracker/protected/pages/TimeTracker
parentcbb7a11179b9c1c46e35f04d07d6386a44e400b2 (diff)
Allow nested GroupBy result maps
Diffstat (limited to 'demos/time-tracker/protected/pages/TimeTracker')
-rw-r--r--demos/time-tracker/protected/pages/TimeTracker/LogTimeEntry.php4
-rw-r--r--demos/time-tracker/protected/pages/TimeTracker/ReportProject.page6
2 files changed, 6 insertions, 4 deletions
diff --git a/demos/time-tracker/protected/pages/TimeTracker/LogTimeEntry.php b/demos/time-tracker/protected/pages/TimeTracker/LogTimeEntry.php
index cc27c93c..a134289c 100644
--- a/demos/time-tracker/protected/pages/TimeTracker/LogTimeEntry.php
+++ b/demos/time-tracker/protected/pages/TimeTracker/LogTimeEntry.php
@@ -50,8 +50,10 @@ class LogTimeEntry extends TPage
$this->projectMembers->DataSource = $users;
$this->projectMembers->dataBind();
if(is_int($index = array_search($this->User->Name, $users)))
+ {
$this->projectMembers->SelectedIndex = $index;
- $this->showTimeSheet();
+ $this->showTimeSheet();
+ }
}
public function showTimeSheet()
diff --git a/demos/time-tracker/protected/pages/TimeTracker/ReportProject.page b/demos/time-tracker/protected/pages/TimeTracker/ReportProject.page
index 065b6b17..50345afa 100644
--- a/demos/time-tracker/protected/pages/TimeTracker/ReportProject.page
+++ b/demos/time-tracker/protected/pages/TimeTracker/ReportProject.page
@@ -5,10 +5,10 @@
<legend>Project Report</legend>
<com:TMultiView ID="views" ActiveViewIndex="0">
<com:TView>
- <com:TLabel ForControl="projects"
+ <com:TLabel ForControl="projectList"
Text="Select a project. Use ctrl+click to select multiple resources at once: "/>
- <com:TListBox ID="projects" CssClass="projects" />
- <com:TButton Text="Generate Report" />
+ <com:TListBox ID="projectList" CssClass="projects" SelectionMode="Multiple" />
+ <com:TButton Text="Generate Report" OnClick="generateReport_Clicked"/>
</com:TView>
</com:TMultiView>