summaryrefslogtreecommitdiff
path: root/demos/time-tracker/protected/pages/TimeTracker/ReportProject.page
blob: 5f961da4e4571712d5ac2d95d33a0f4947243dc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<com:TContent ID="Main">
<h2>Project Reports</h2>

<fieldset class="project-report">
	<legend>Project Report</legend>
<com:TMultiView ID="views" ActiveViewIndex="0">
	<com:TView>
		<com:TLabel ForControl="projectList" 
			Text="Select a project. Use ctrl+click to select multiple projects at once: "/>
		<com:TListBox ID="projectList" CssClass="projects" SelectionMode="Multiple" />
		<com:TButton Text="Generate Report" OnClick="generateReport_Clicked"/>		
	</com:TView>
	<com:TView>
		<com:TRepeater ID="projects" onItemCreated="project_itemCreated" EnableViewState="false">
		<prop:ItemTemplate>
		<!-- project -->
			<table class="project">
				<tr>
					<th>Project Name</th>
					<th>Est. Hours</th>
					<th>Actual Hours</th>
					<th>Est. Completion</th>
				</tr>
				<tr>
					<td><%# h($this->DataItem->ProjectName) %></td>
					<td><%# h($this->DataItem->EstimateHours) %></td>
					<td><%# h($this->DataItem->ActualHours) %></td>
					<td>
						<com:System.I18N.TDateFormat 
							Pattern="dd/MM/yyyy"
							Value=<%# $this->DataItem->EstimateCompletion %> />
					</td>
				</tr>
				
			<com:TRepeater ID="category" onItemCreated="Page.category_itemCreated" EnableViewState="false">
			<prop:HeaderTemplate>
				<tr><td></td><td colspan="2">
			</prop:HeaderTemplate>
			<prop:FooterTemplate>
				</tr></td><td></td>
			</prop:FooterTemplate>
			<prop:ItemTemplate>			

			<!-- category -->
				<table class="category">
					<tr>
					<th>Category</th>
					<th>Est. Hours</th>
					<th>Actual Hours</th>
					</tr>
					<tr>
						<td><%# h($this->DataItem->CategoryName) %></td>
						<td><%# h($this->DataItem->EstimateHours) %></td>
						<td><%# h($this->DataItem->ActualHours) %></td>
					</tr>
					
					
				<com:TRepeater ID="members" EnableViewState="false">
					<prop:ItemTemplate>
					<!-- member -->				
						<tr>
							<td colspan="2">
							<%# h($this->DataItem['username']) %>
						</td>
						<td>
							<%# h($this->DataItem['hours']) %>
						</td>
						</tr>
					<!-- //member -->
					</prop:ItemTemplate>
				</com:TRepeater>
				
				</table>		
			<!-- //category -->
								
			</prop:ItemTemplate>
			</com:TRepeater>
							
			</table>
		<!-- //project -->
		</prop:ItemTemplate>
		</com:TRepeater>
	</com:TView>
</com:TMultiView>

</fieldset>

</com:TContent>