Lines Matching refs:this

28         $this->R = $R;
29 $this->log = plugin_load('helper', 'statdisplay_log');
33 $this->summary($from, $to);
36 $this->month($from);
39 $this->monthby('day', $from);
42 $this->monthby('hour', $from);
45 $this->referer($from);
48 $this->entry($from);
51 $this->url($from);
56 $this->ua($from);
59 $this->progress();
62 $this->userdownloads($from);
72 $pct = sprintf('%.2f', $this->log->progress());
73 …$this->R->doc .= '<div class="statdisplay-progress" title="' . $pct . '%"><span style="width: ' . …
84 $this->listtable(
85 $this->log->logdata[$date]['referer_url'],
86 $this->log->logdata[$date]['referer']['count'],
87 sprintf($this->getLang('t_topReferrer'), $date)
99 $this->listtable(
100 $this->log->logdata[$date]['entry'],
101 $this->log->logdata[$date]['page']['all']['count'],
102 sprintf($this->getLang('t_topEntry'), $date)
114 $this->listtable(
115 $this->log->logdata[$date]['useragent'],
116 $this->log->logdata[$date]['page']['all']['count'],
117 sprintf($this->getLang('t_topUserAgents'), $date)
129 $this->listtable(
130 $this->log->logdata[$date]['page_url'],
131 $this->log->logdata[$date]['page']['all']['count'],
132 sprintf($this->getLang('t_topPages'), $date)
145 $data = $this->log->logdata[$date];
147 $title = sprintf($this->getLang('t_' . $by), $date);
149 $this->R->table_open();
151 $this->R->tablerow_open();
152 $this->head($title, 11);
153 $this->R->tablerow_close();
155 $this->R->tablerow_open();
156 $this->head($this->getLang($by));
157 $this->head($this->getLang('hits'), 2);
158 $this->head($this->getLang('media'), 2);
159 $this->head($this->getLang('pages'), 2);
160 $this->head($this->getLang('visitors'), 2);
161 $this->head($this->getLang('traffic'), 2);
162 $this->R->tablerow_close();
167 $this->R->tablerow_open();
168 $this->hcell($idx);
170 $this->cell($data['hits'][$by][$idx]['count']);
171 … $this->cell($this->pct($data['hits'][$by][$idx]['count'], $data['hits']['all']['count']));
173 $this->cell($data['media'][$by][$idx]['count']);
174 … $this->cell($this->pct($data['media'][$by][$idx]['count'], $data['media']['all']['count']));
176 $this->cell($data['page'][$by][$idx]['count']);
177 … $this->cell($this->pct($data['page'][$by][$idx]['count'], $data['page']['all']['count']));
179 $this->cell($data['hits'][$by][$idx]['visitor']);
180 … $this->cell($this->pct($data['hits'][$by][$idx]['visitor'], $data['hits']['all']['visitor']));
182 $this->cell(filesize_h($data['hits'][$by][$idx]['bytes']));
183 … $this->cell($this->pct($data['hits'][$by][$idx]['bytes'], $data['hits']['all']['bytes']));
185 $this->R->tablerow_close();
188 $this->R->table_close();
199 $data = $this->log->logdata[$date];
201 $this->R->table_open();
203 $this->R->tablerow_open();
204 $this->head(sprintf($this->getLang('t_statisticMonth'), $date), 3);
205 $this->R->tablerow_close();
207 $this->R->tablerow_open();
208 $this->hcell($this->getLang('totalHits'));
209 $this->cell($data['page']['all']['count'] + $data['media']['all']['count'], 2);
210 $this->R->tablerow_close();
212 $this->R->tablerow_open();
213 $this->hcell($this->getLang('totalFiles'));
214 $this->cell($data['media']['all']['count'], 2);
215 $this->R->tablerow_close();
217 $this->R->tablerow_open();
218 $this->hcell($this->getLang('totalPages'));
219 $this->cell($data['page']['all']['count'], 2);
220 $this->R->tablerow_close();
222 $this->R->tablerow_open();
223 $this->hcell($this->getLang('totalVisitors'));
224 $this->cell($data['page']['all']['visitor'], 2);
225 $this->R->tablerow_close();
227 $this->R->tablerow_open();
228 $this->hcell($this->getLang('totalBytes'));
229 $this->cell(filesize_h($data['page']['all']['bytes']), 2);
230 $this->R->tablerow_close();
232 $this->R->tablerow_open();
233 $this->head('');
234 $this->head($this->getLang('avg'));
235 $this->head($this->getLang('max'));
236 $this->R->tablerow_close();
238 $this->R->tablerow_open();
239 $this->hcell($this->getLang('hitsHour'));
240 $this->cell($this->log->avg($data['hits']['hour'], 'count'));
241 $this->cell($this->log->max($data['hits']['hour'], 'count'));
242 $this->R->tablerow_close();
244 $this->R->tablerow_open();
245 $this->hcell($this->getLang('hitsDay'));
246 $this->cell($this->log->avg($data['hits']['day'], 'count'));
247 $this->cell($this->log->max($data['hits']['day'], 'count'));
248 $this->R->tablerow_close();
250 $this->R->tablerow_open();
251 $this->hcell($this->getLang('filesDay'));
252 $this->cell($this->log->avg($data['media']['day'], 'count'));
253 $this->cell($this->log->max($data['media']['day'], 'count'));
254 $this->R->tablerow_close();
256 $this->R->tablerow_open();
257 $this->hcell($this->getLang('pagesDay'));
258 $this->cell($this->log->avg($data['page']['day'], 'count'));
259 $this->cell($this->log->max($data['page']['day'], 'count'));
260 $this->R->tablerow_close();
262 $this->R->tablerow_open();
263 $this->hcell($this->getLang('bytesDay'));
264 $this->cell(filesize_h($this->log->avg($data['hits']['day'], 'bytes')));
265 $this->cell(filesize_h($this->log->max($data['hits']['day'], 'bytes')));
266 $this->R->tablerow_close();
268 $this->R->tablerow_open();
269 $this->head($this->getLang('hitsStatusCode'), 3);
270 $this->R->tablerow_close();
272 foreach ((array)$this->log->logdata[$date]['status']['all'] as $code => $count) {
273 $this->R->tablerow_open();
274 $this->hcell('Status ' . $code . ' - ' . $this->getLang('status_' . $code));
275 $this->cell($count, 2);
276 $this->R->tablerow_close();
279 $this->R->table_close();
290 $this->R->table_open();
292 $this->R->tablerow_open();
293 $this->head($this->getLang('summaryMonth'), 10);
294 $this->R->tablerow_close();
296 $this->R->tablerow_open();
297 $this->head($this->getLang('month'), 1, 2);
298 $this->head($this->getLang('dailyavg'), 4);
299 $this->head($this->getLang('totals'), 5);
300 $this->R->tablerow_close();
302 $this->R->tablerow_open();
303 $this->head($this->getLang('hits'));
304 $this->head($this->getLang('files'));
305 $this->head($this->getLang('pages'));
306 $this->head($this->getLang('visitors'));
307 $this->head($this->getLang('hits'));
308 $this->head($this->getLang('files'));
309 $this->head($this->getLang('pages'));
310 $this->head($this->getLang('visitors'));
311 $this->head($this->getLang('bytes'));
313 $this->R->tablerow_close();
315 foreach ((array)$this->log->logdata as $month => $data) {
323 $this->R->tablerow_open();
325 $this->cell($month, 1, false); // Month
327 $this->cell(round($this->log->avg($data['hits']['day'] ?? [], 'count'))); // Hits
328 $this->cell(round($this->log->avg($data['media']['day'] ?? [], 'count'))); // Files
329 $this->cell(round($this->log->avg($data['page']['day'] ?? [], 'count'))); // Pages
330 $this->cell(round($this->log->avg($data['hits']['day'] ?? [], 'visitor'))); // Visits
332 $this->cell($data['hits']['all']['count']); // Hits
333 $this->cell($data['media']['all']['count']); // Files
334 $this->cell($data['page']['all']['count']); // Pages
335 $this->cell($data['hits']['all']['visitor']); // Visitors
336 $this->cell(filesize_h($data['hits']['all']['bytes'])); // kBytes
338 $this->R->tablerow_close();
341 $this->R->table_close();
349 $usertraffic = $this->log->usertraffic($date);
351 …$this->listtable($usertraffic, $this->log->sum($usertraffic), $this->getLang('t_usertraffic'), tru…
370 $this->R->table_open();
372 $this->R->tablerow_open();
373 $this->head($title, 4);
374 $this->R->tablerow_close();
376 $this->R->tablerow_open();
377 $this->head('#');
378 $this->head($this->getLang('name'));
380 $this->head($this->getLang('traffic'), 2);
382 $this->head($this->getLang('hits'), 2);
384 $this->R->tablerow_close();
393 $this->R->tablerow_open();
394 $this->cell($row);
395 $this->hcell($key);
396 $this->cell($val);
397 $this->cell($this->pct($count, $max));
398 $this->R->tablerow_close();
400 if ($row > $this->log->top_limit) break;
403 $this->R->table_close();
429 $this->R->tableheader_open($col, 'center', $row);
430 $this->R->cdata($data);
431 $this->R->tableheader_close();
442 $this->cell($data, $span, false);
461 $this->R->tablecell_open($span, $align);
462 $this->R->cdata($data);
463 $this->R->tablecell_close();