|
@@ 307-317 (lines=11) @@
|
| 304 |
|
// X latest books all categories ****************************************** ******* |
| 305 |
|
$count = bookshop_getmoduleoption('summarylast'); |
| 306 |
|
$xoopsTpl->assign('summarylast', $count); |
| 307 |
|
if ($count > 0) { |
| 308 |
|
$tblTmp = array(); |
| 309 |
|
$tblTmp = $h_bookshop_books->getRecentBooks(0, $count); |
| 310 |
|
foreach ($tblTmp as $item) { |
| 311 |
|
$datas = array( |
| 312 |
|
'last_categs_book_title' => $item->getVar('book_title'), |
| 313 |
|
'last_categs_book_url_rewrited' => $h_bookshop_books->GetBookLink($item->getVar('book_id'), $item->getVar('book_title')), |
| 314 |
|
'last_categs_book_href_title' => bookshop_makeHrefTitle($item->getVar('book_title')) |
| 315 |
|
); |
| 316 |
|
$xoopsTpl->append('book_all_categs', $datas); |
| 317 |
|
} |
| 318 |
|
unset($tblTmp); |
| 319 |
|
} |
| 320 |
|
|
|
@@ 324-334 (lines=11) @@
|
| 321 |
|
// X latest books in this category ****************************************** *************** |
| 322 |
|
$count = bookshop_getmoduleoption('summarycategory'); |
| 323 |
|
$xoopsTpl->assign('summarycategory', $count); |
| 324 |
|
if ($count > 0) { |
| 325 |
|
$tblTmp = array(); |
| 326 |
|
$tblTmp = $h_bookshop_books->getRecentBooks(0, $count, $book->getVar('book_cid')); |
| 327 |
|
foreach ($tblTmp as $item) { |
| 328 |
|
$datas = array( |
| 329 |
|
'last_categ_book_title' => $item->getVar('book_title'), |
| 330 |
|
'last_categ_book_url_rewrited' => $h_bookshop_books->GetBookLink($item->getVar('book_id'), $item->getVar('book_title')), |
| 331 |
|
'last_categ_book_href_title' => bookshop_makeHrefTitle($item->getVar('book_title')) |
| 332 |
|
); |
| 333 |
|
$xoopsTpl->append('book_current_categ', $datas); |
| 334 |
|
} |
| 335 |
|
unset($tblTmp); |
| 336 |
|
} |
| 337 |
|
|