| @@ 469-476 (lines=8) @@ | ||
| 466 | // } |
|
| 467 | $l = XoopsRequest::getString('l', 'a', 'get'); |
|
| 468 | //make the redirect |
|
| 469 | if (!isset($_GET['r'])) { |
|
| 470 | //insert into pedigree_temp |
|
| 471 | // $query = 'UPDATE ' . $GLOBALS['xoopsDB']->prefix('pedigree_temp') . ' SET father =' . $_GET['selsire'] . ' WHERE ID=' . $random; |
|
| 472 | // $GLOBALS['xoopsDB']->queryF($query); |
|
| 473 | $query = 'UPDATE ' . $GLOBALS['xoopsDB']->prefix('pedigree_temp') . ' SET father =' . XoopsRequest::getInt('selsire', 0, 'get') . ' WHERE Id=' . $random; |
|
| 474 | $GLOBALS['xoopsDB']->queryF($query); |
|
| 475 | redirect_header('add_dog.php?f=dam&random=' . $random . '&st=' . $st . '&r=1&l=a', 1, strtr(_MA_PEDIGREE_ADD_SIREOK, array('[mother]' => $pedigree->getConfig('mother')))); |
|
| 476 | } |
|
| 477 | ||
| 478 | $xoopsTpl->assign('sire', '1'); |
|
| 479 | //create list of males dog to select from |
|
| @@ 399-405 (lines=7) @@ | ||
| 396 | $random = XoopsRequest::getInt('random', 0); |
|
| 397 | $st = XoopsRequest::getInt('st', 0, 'get'); |
|
| 398 | //make the redirect |
|
| 399 | if (!isset($_GET['r'])) { |
|
| 400 | //insert into pedigree_temp |
|
| 401 | // $query = 'UPDATE ' . $GLOBALS['xoopsDB']->prefix('pedigree_temp') . ' SET father =' . $_GET['selsire'] . ' WHERE ID=' . $random; |
|
| 402 | $query = 'UPDATE ' . $GLOBALS['xoopsDB']->prefix('pedigree_temp') . ' SET father =' . XoopsRequest::getInt('selsire', 0, 'get') . ' WHERE Id=' . $random; |
|
| 403 | $GLOBALS['xoopsDB']->queryF($query); |
|
| 404 | redirect_header('add_litter.php?f=dam&random=' . $random . '&st=' . $st . '&r=1', 1, strtr(_MA_PEDIGREE_ADD_SIREOK, array('[mother]' => $moduleConfig['mother']))); |
|
| 405 | } |
|
| 406 | //find letter on which to start else set to 'a' |
|
| 407 | // if (isset($_GET['l'])) { |
|
| 408 | // $l = $_GET['l']; |
|