|
@@ 370-379 (lines=10) @@
|
| 367 |
|
$criteria->setLimit(1); |
| 368 |
|
$tbl = array(); |
| 369 |
|
$tbl = $h_oledrion_products->getObjects($criteria); |
| 370 |
|
if (count($tbl) == 1) { |
| 371 |
|
// Trouvé |
| 372 |
|
$tmpProduct = null; |
| 373 |
|
$tmpProduct = $tbl[0]; |
| 374 |
|
$xoopsTpl->assign('next_product_id', $tmpProduct->getVar('product_id')); |
| 375 |
|
$xoopsTpl->assign('next_product_title', $tmpProduct->getVar('product_title')); |
| 376 |
|
$xoopsTpl->assign('next_product_url_rewrited', $tmpProduct->getLink()); |
| 377 |
|
$xoopsTpl->assign('next_product_href_title', Oledrion_utils::makeHrefTitle($tmpProduct->getVar('product_title'))); |
| 378 |
|
} else { |
| 379 |
|
$xoopsTpl->assign('next_product_id', 0); |
| 380 |
|
} |
| 381 |
|
|
| 382 |
|
// Recherche du produit précédant le produit en cours. |
|
@@ 399-408 (lines=10) @@
|
| 396 |
|
$criteria->setLimit(1); |
| 397 |
|
$tbl = array(); |
| 398 |
|
$tbl = $h_oledrion_products->getObjects($criteria); |
| 399 |
|
if (count($tbl) == 1) { |
| 400 |
|
// Trouvé |
| 401 |
|
$tmpProduct = null; |
| 402 |
|
$tmpProduct = $tbl[0]; |
| 403 |
|
$xoopsTpl->assign('previous_product_id', $tmpProduct->getVar('product_id')); |
| 404 |
|
$xoopsTpl->assign('previous_product_title', $tmpProduct->getVar('product_title')); |
| 405 |
|
$xoopsTpl->assign('previous_product_url_rewrited', $tmpProduct->getLink()); |
| 406 |
|
$xoopsTpl->assign('previous_product_href_title', Oledrion_utils::makeHrefTitle($tmpProduct->getVar('product_title'))); |
| 407 |
|
} else { |
| 408 |
|
$xoopsTpl->assign('previous_product_id', 0); |
| 409 |
|
} |
| 410 |
|
} else { |
| 411 |
|
$xoopsTpl->assign('showprevnextlink', false); |