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