get($currId); } elseif (isset($fatherId) && isset($motherId)) { // future litter? /* create dummy future dog */ $dog = new Dog(); $dog->name = 'future litter'; //default icon for future litter $photo = new Photo(); $photo->thumb_ref = "images/dog_standing.gif"; $dog->photo = $photo; //sire $sireDog = new ShadowDog(); $sireDog->id = $fatherId; $dog->sire = $sireDog; //dam $damDog = new ShadowDog(); $damDog->id = $motherId; $dog->dam = $damDog; } if (isset($dog)) { # begin table echo ''; # do tree. echo ''; DbTriad ($dog, 1, $generations, null); # end table //echo ''; echo ''; echo '
Pedigree of '.$dog->name.'
This pedigree was generated by '.$PROJECT_NAME.'
'; } ?>