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 @@
+
-
- 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'
- ?>
+ ?>
+
+
+ = $tname; ?>
+ |
+
+ = $rname; ?>
+ |
+
+ = escape($result['ranking']); ?>
+ |
+
+ = $result['disqualified']?'Ja':'Nein'; ?>
+ |
+
+ = escape($result['refusals']); ?>
+ |
+
+ = escape($result['errors']); ?>
+ |
+
+ = escape($result['timefaults']); ?>
+ |
+
+ = escape($result['runtime']); ?>
+ |
+
+ = escape($result['penalties']); ?>
+ |
+
+ = escape($result['speed']); ?>
+ |
+
+ = escape($result['rating']); ?>
+ |
+
+ = escape( (new Dog())->getField('name',$result['dog']) ); ?>
+ |
+
+
+
-
- = $tname; ?>
- |
-
- = $rname; ?>
- |
-
- = escape($result['ranking']); ?>
+ |
+
+ Dieser Hund hat noch keine Ergebnisse
+
|
-
- = $result['disqualified']?'Ja':'Nein'; ?>
- |
-
- = escape($result['refusals']); ?>
- |
-
- = escape($result['errors']); ?>
- |
-
- = escape($result['timefaults']); ?>
- |
-
- = escape($result['runtime']); ?>
- |
-
- = escape($result['penalties']); ?>
- |
-
- = escape($result['speed']); ?>
- |
-
- = escape($result['rating']); ?>
- |
-
- = escape( (new Dog())->getField('name',$result['dog']) ); ?>
- |
-
-
+
+ 0): ?>