Lines Matching full:php
1 <h1><?php echo $tpl->getLang('report') ?></h1>
4 <form action="<?php echo $tpl->url('report') ?>" method="post">
6 …<label><?php echo $tpl->getLang('report from') ?>: <input name="from" value="<?php echo $tpl->valu…
7 …<label><?php echo $tpl->getLang('report to') ?>: <input name="to" value="<?php echo $tpl->value('t…
9 <button><?php echo $tpl->getLang('show') ?></button>
14 <h2><?php echo $tpl->getLang('issues') ?></h2>
18 <th><?php echo $tpl->getLang('type') ?></th>
19 <th><?php echo ucfirst($tpl->getLang('proposal')) ?></th>
20 <th><?php echo ucfirst($tpl->getLang('open')) ?></th>
21 <th><?php echo ucfirst($tpl->getLang('report threads done')) ?></th>
22 <th><?php echo ucfirst($tpl->getLang('closed')) ?></th>
23 <th><?php echo ucfirst($tpl->getLang('report threads rejected')) ?></th>
24 <th><?php echo ucfirst($tpl->getLang('all')) ?></th>
26 <?php foreach ($tpl->get('issues') as $issue): ?>
29 <?php if (empty($issue['label_name'])) : ?>
30 <i><?php echo $tpl->getLang('issue_type_no_specified') ?></i>
31 <?php else: ?>
32 <?php echo $issue['label_name'] ?>
33 <?php endif ?>
35 <td><?php echo $issue['proposal'] ?></td>
36 <td><?php echo $issue['opened'] ?></td>
37 <td><?php echo $issue['done'] ?></td>
38 <td><?php echo $issue['closed'] ?></td>
39 <td><?php echo $issue['rejected'] ?></td>
40 <td><?php echo $issue['count_all'] ?></td>
42 <?php endforeach ?>
44 <th><?php echo $tpl->getLang('report_total') ?></th>
45 <td><?php echo array_sum(array_column($tpl->get('issues'), 'proposal')) ?></td>
46 <td><?php echo array_sum(array_column($tpl->get('issues'), 'opened')) ?></td>
47 <td><?php echo array_sum(array_column($tpl->get('issues'), 'done')) ?></td>
48 <td><?php echo array_sum(array_column($tpl->get('issues'), 'closed')) ?></td>
49 <td><?php echo array_sum(array_column($tpl->get('issues'), 'rejected')) ?></td>
50 <td><?php echo array_sum(array_column($tpl->get('issues'), 'count_all')) ?></td>
56 <th><?php echo $tpl->getLang('type') ?></th>
57 <th><?php echo ucfirst($tpl->getLang('report threads cost')) ?></th>
58 <th><?php echo ucfirst($tpl->getLang('report threads cost closed')) ?></th>
59 <th><?php echo ucfirst($tpl->getLang('average_of_close')) ?></th>
61 <?php foreach ($tpl->get('issues') as $issue): ?>
64 <?php if (empty($issue['label_name'])) : ?>
65 <i><?php echo $tpl->getLang('issue_type_no_specified') ?></i>
66 <?php else: ?>
67 <?php echo $issue['label_name'] ?>
68 <?php endif ?>
71 <?php if (empty($issue['sum_all'])) : ?>
73 <?php else: ?>
74 <?php echo $issue['sum_all'] ?>
75 <?php endif ?>
78 <?php if (empty($issue['sum_closed'])) : ?>
80 <?php else: ?>
81 <?php echo $issue['sum_closed'] ?>
82 <?php endif ?>
85 <?php if (empty($issue['avg_closed'])) : ?>
87 <?php else: ?>
88 <?php echo round($issue['avg_closed']) ?> <?php echo $tpl->getLang('days') ?>
89 <?php endif ?>
92 <?php endforeach ?>
94 <th><?php echo $tpl->getLang('report_total') ?></th>
95 <td><?php echo array_sum(array_column($tpl->get('issues'), 'sum_all')) ?></td>
96 <td><?php echo array_sum(array_column($tpl->get('issues'), 'sum_closed')) ?></td>
97 <?php $numerator = array_sum(array_column($tpl->get('issues'), 'avg_closed')) ?>
98 <?php $denominator = count(array_filter(array_column($tpl->get('issues'), 'avg_closed'))) ?>
99 <td><?php echo $denominator > 0 ? round($numerator/$denominator) : 0 ?>
100 <?php echo $tpl->getLang('days') ?></td>
106 <th><?php echo ucfirst($tpl->getLang('causes')) ?></th>
107 <th><?php echo ucfirst($tpl->getLang('risks')) ?></th>
108 <th><?php echo ucfirst($tpl->getLang('opportunities')) ?></th>
109 <th><?php echo ucfirst($tpl->getLang('all')) ?></th>
113 <td><?php echo $tpl->get('comments')['cause'] ?></td>
114 <td><?php echo $tpl->get('comments')['risk'] ?></td>
115 <td><?php echo $tpl->get('comments')['opportunity'] ?></td>
116 <td><?php echo $tpl->get('comments')['all'] ?></td>
120 <h2><?php echo $tpl->getLang('nav projects') ?></h2>
124 <th><?php echo ucfirst($tpl->getLang('proposal')) ?></th>
125 <th><?php echo ucfirst($tpl->getLang('open')) ?></th>
126 <th><?php echo ucfirst($tpl->getLang('report threads done')) ?></th>
127 <th><?php echo ucfirst($tpl->getLang('closed')) ?></th>
128 <th><?php echo ucfirst($tpl->getLang('report threads rejected')) ?></th>
129 <th><?php echo ucfirst($tpl->getLang('all')) ?></th>
131 <?php foreach ($tpl->get('projects') as $project): ?>
133 <td><?php echo $project['proposal'] ?></td>
134 <td><?php echo $project['opened'] ?></td>
135 <td><?php echo $project['done'] ?></td>
136 <td><?php echo $project['closed'] ?></td>
137 <td><?php echo $project['rejected'] ?></td>
138 <td><?php echo $project['count_all'] ?></td>
140 <?php endforeach ?>
145 <th><?php echo ucfirst($tpl->getLang('report threads cost')) ?></th>
146 <th><?php echo ucfirst($tpl->getLang('report threads cost closed')) ?></th>
147 <th><?php echo ucfirst($tpl->getLang('average_of_close')) ?></th>
149 <?php foreach ($tpl->get('projects') as $project): ?>
152 <?php if (empty($project['sum_all'])) : ?>
154 <?php else: ?>
155 <?php echo $project['sum_all'] ?>
156 <?php endif ?>
159 <?php if (empty($project['sum_closed'])) : ?>
161 <?php else: ?>
162 <?php echo $project['sum_closed'] ?>
163 <?php endif ?>
166 <?php if (empty($project['avg_closed'])) : ?>
168 <?php else: ?>
169 <?php echo round($project['avg_closed']) ?> <?php echo $tpl->getLang('days') ?>
170 <?php endif ?>
173 <?php endforeach ?>
176 <h2><?php echo $tpl->getLang('tasks') ?></h2>
180 <th><?php echo ucfirst($tpl->getLang('task_type')) ?></th>
181 <th><?php echo ucfirst($tpl->getLang('open')) ?></th>
182 <th><?php echo ucfirst($tpl->getLang('number_of_close_on_time')) ?></th>
183 <th><?php echo ucfirst($tpl->getLang('number_of_close_off_time')) ?></th>
184 <th><?php echo ucfirst($tpl->getLang('all')) ?></th>
187 <?php foreach ($tpl->get('tasks') as $task): ?>
190 <?php if (empty($task['task_program_name'])) : ?>
191 <i><?php echo $tpl->getLang('tasks_no_type') ?></i>
192 <?php else: ?>
193 <?php echo $task['task_program_name'] ?>
194 <?php endif ?>
196 <td><?php echo $task['opened'] ?></td>
197 <td><?php echo $task['closed_on_time'] ?></td>
198 <td><?php echo $task['closed_after_the_dedline'] ?></td>
199 <td><?php echo $task['count_all'] ?></td>
201 <?php endforeach ?>
203 <th><?php echo $tpl->getLang('report_total') ?></th>
204 <td><?php echo array_sum(array_column($tpl->get('tasks'), 'opened')) ?></td>
205 <td><?php echo array_sum(array_column($tpl->get('tasks'), 'closed_on_time')) ?></td>
206 … <td><?php echo array_sum(array_column($tpl->get('tasks'), 'closed_after_the_dedline')) ?></td>
207 <td><?php echo array_sum(array_column($tpl->get('tasks'), 'count_all')) ?></td>
213 <th><?php echo ucfirst($tpl->getLang('task_type')) ?></th>
214 <th><?php echo ucfirst($tpl->getLang('report threads cost')) ?></th>
215 <th><?php echo ucfirst($tpl->getLang('report threads cost closed')) ?></th>
217 <?php foreach ($tpl->get('tasks') as $task): ?>
220 <?php if (empty($task['task_program_name'])) : ?>
221 <i><?php echo $tpl->getLang('tasks_no_type') ?></i>
222 <?php else: ?>
223 <?php echo $task['task_program_name'] ?>
224 <?php endif ?>
227 <?php if (empty($task['total_cost'])) : ?>
229 <?php else: ?>
230 <?php echo $task['total_cost'] ?>
231 <?php endif ?>
234 <?php if (empty($task['cost_of_closed'])) : ?>
236 <?php else: ?>
237 <?php echo $task['cost_of_closed'] ?>
238 <?php endif ?>
241 <?php endforeach ?>
243 <th><?php echo $tpl->getLang('report_total') ?></th>
244 <td><?php echo array_sum(array_column($tpl->get('tasks'), 'total_cost')) ?></td>
245 <td><?php echo array_sum(array_column($tpl->get('tasks'), 'cost_of_closed')) ?></td>