From 4794f46add373ea5b62506c4fb5efb63614d6e44 Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 1 Nov 2023 19:53:36 +0100 Subject: [PATCH] =?UTF-8?q?hundeprofile=20sind=20jetzt=20=C3=B6ffentlich?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/pages/dogs/controller.php | 6 +- web/pages/dogs/dog.html.php | 120 +++++++++++++++++++--------------- 2 files changed, 69 insertions(+), 57 deletions(-) diff --git a/web/pages/dogs/controller.php b/web/pages/dogs/controller.php index 5d89e69..e3cce46 100644 --- a/web/pages/dogs/controller.php +++ b/web/pages/dogs/controller.php @@ -209,12 +209,12 @@ class Dogs extends Page { { $dogid = $this->params[0]; $d = new Dog(); - $res = new Result(); - if(!$d->isMyDog($dogid)) - return 'Not your dog :('; + //if(!$d->isMyDog($dogid)) + // return 'Not your dog :('; $d->load($dogid); + $this->set('ismydog',$d->isMyDog($dogid)); $this->set('results', $d->getResults()); $this->set('dogdata', $d->data); $this->set('dogid', $dogid); diff --git a/web/pages/dogs/dog.html.php b/web/pages/dogs/dog.html.php index 8a74f14..eca80a1 100644 --- a/web/pages/dogs/dog.html.php +++ b/web/pages/dogs/dog.html.php @@ -37,11 +37,13 @@ +
+ @@ -68,71 +70,81 @@ - - 0): ?> + + getField('name',$result['tournament']); - $tdate = $t->getField('date',$result['tournament']); - $rname = $run->getField('name',$result['run']); + $tname = $t->getField('name',$result['tournament']); + $tdate = $t->getField('date',$result['tournament']); + $rname = $run->getField('name',$result['run']); - $sdata['dates'][] = $tdate; + $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']; + $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' + //'Geschwindigkeit', 'Fehler', 'Verweigerungen', 'Zeit', 'Punkte','Platz' - ?> + ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + getField('name',$result['dog']) ); ?> + + + + - - - - - - - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - getField('name',$result['dog']) ); ?> - - - + + 0): ?>
@@ -214,6 +226,6 @@ myChart.setOption(option);
- + \ No newline at end of file