|
@@ 92-98 (lines=7) @@
|
| 89 |
|
$sql = 'SELECT * FROM ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree') . " WHERE Id='" . $row['father'] . "'"; |
| 90 |
|
$resfather = $GLOBALS['xoopsDB']->query($sql); |
| 91 |
|
$numfields = mysqli_num_rows($resfather); |
| 92 |
|
if (!$numfields == '0') { |
| 93 |
|
while (false !== ($rowfetch = $GLOBALS['xoopsDB']->fetchArray($resfather))) { |
| 94 |
|
$form->addElement(new XoopsFormLabel('<b>' . strtr(_MA_PEDIGREE_FLD_FATH, array('[father]' => $pedigree->getConfig('father'))) . '</b>', "<img src=\"assets/images/male.gif\"><a href=\"seldog.php?curval=" . $row['Id'] . "&gend=1&letter=a\">" . $rowfetch['NAAM'] . '</a>')); |
| 95 |
|
} |
| 96 |
|
} else { |
| 97 |
|
$form->addElement(new XoopsFormLabel('<b>' . strtr(_MA_PEDIGREE_FLD_FATH, array('[father]' => $pedigree->getConfig('father'))) . '</b>', "<img src=\"assets/images/male.gif\"><a href=\"seldog.php?curval=" . $row['Id'] . "&gend=1&letter=a\">Unknown</a>")); |
| 98 |
|
} |
| 99 |
|
//mother |
| 100 |
|
$sql = 'SELECT * FROM ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree') . " WHERE Id='" . $row['mother'] . "'"; |
| 101 |
|
$resmother = $GLOBALS['xoopsDB']->query($sql); |
|
@@ 103-109 (lines=7) @@
|
| 100 |
|
$sql = 'SELECT * FROM ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree') . " WHERE Id='" . $row['mother'] . "'"; |
| 101 |
|
$resmother = $GLOBALS['xoopsDB']->query($sql); |
| 102 |
|
$numfields = mysqli_num_rows($resmother); |
| 103 |
|
if (!$numfields == '0') { |
| 104 |
|
while (false !== ($rowfetch = $GLOBALS['xoopsDB']->fetchArray($resmother))) { |
| 105 |
|
$form->addElement(new XoopsFormLabel('<b>' . strtr(_MA_PEDIGREE_FLD_MOTH, array('[mother]' => $pedigree->getConfig('mother'))) . '</b>', "<img src=\"assets/images/female.gif\"><a href=\"seldog.php?curval=" . $row['Id'] . "&gend=0&letter=a\">" . $rowfetch['NAAM'] . '</a>')); |
| 106 |
|
} |
| 107 |
|
} else { |
| 108 |
|
$form->addElement(new XoopsFormLabel('<b>' . strtr(_MA_PEDIGREE_FLD_MOTH, array('[mother]' => $pedigree->getConfig('mother'))) . '</b>', "<img src=\"assets/images/female.gif\"><a href=\"seldog.php?curval=" . $row['Id'] . "&gend=0&letter=a\">Unknown</a>")); |
| 109 |
|
} |
| 110 |
|
//owner/breeder |
| 111 |
|
if ('1' == $pedigree->getConfig('ownerbreeder')) { |
| 112 |
|
$owner_select = new XoopsFormSelect('<b>' . _MA_PEDIGREE_FLD_OWNE . '</b>', $name = 'id_owner', $value = $row['id_owner'], $size = 1, $multiple = false); |