From 46cf4dcd4012ee43ca1226ed3267060747a59f0d Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 31 Oct 2023 22:42:26 +0000 Subject: [PATCH] stats prepared --- web/pages/dogs/controller.php | 2 +- web/pages/dogs/{dog.html => dog.html.php} | 44 ++++++++++++++++------- web/pages/runs/edit_result.html | 10 +++--- 3 files changed, 37 insertions(+), 19 deletions(-) rename web/pages/dogs/{dog.html => dog.html.php} (81%) diff --git a/web/pages/dogs/controller.php b/web/pages/dogs/controller.php index 42e2671..5d89e69 100644 --- a/web/pages/dogs/controller.php +++ b/web/pages/dogs/controller.php @@ -218,7 +218,7 @@ class Dogs extends Page { $this->set('results', $d->getResults()); $this->set('dogdata', $d->data); $this->set('dogid', $dogid); - $this->set('template', 'dog.html'); + $this->set('template', 'dog.html.php'); } function maySeeThisPage() { diff --git a/web/pages/dogs/dog.html b/web/pages/dogs/dog.html.php similarity index 81% rename from web/pages/dogs/dog.html rename to web/pages/dogs/dog.html.php index 7e8fb83..8a74f14 100644 --- a/web/pages/dogs/dog.html +++ b/web/pages/dogs/dog.html.php @@ -74,8 +74,20 @@ $run = new Run(); $tname = $t->getField('name',$result['tournament']); + $tdate = $t->getField('date',$result['tournament']); $rname = $run->getField('name',$result['run']); + $sdata['dates'][] = $tdate; + + $sdata['speed'][] = $result['speed']; + $sdata['errors'][] = $result['errors']; + $sdata['refusals'][] = $result['refusals']; + $sdata['time'][] = $result['runtime']; + $sdata['points'][] = $result['points']; + $sdata['rating'][] = $result['rating']; + + //'Geschwindigkeit', 'Fehler', 'Verweigerungen', 'Zeit', 'Punkte','Platz' + ?> @@ -122,7 +134,7 @@
-
+