|
@@ 1277-1285 (lines=9) @@
|
| 1274 |
|
$tbl_authors_d[$oneitem->getVar('auth_id')] = xoops_trim($oneitem->getVar('auth_name')) . ' ' . xoops_trim($oneitem->getVar('auth_firstname')); |
| 1275 |
|
} |
| 1276 |
|
// Recherche des auteurs de ce livre |
| 1277 |
|
if ($edit) { |
| 1278 |
|
$criteria = new CriteriaCompo(); |
| 1279 |
|
$criteria->add(new Criteria('ba_type', 1, '=')); |
| 1280 |
|
$criteria->add(new Criteria('ba_book_id', $item->getVar('book_id'), '=')); |
| 1281 |
|
$tbl_book_authors = $h_bookshop_booksauthors->getObjects($criteria); |
| 1282 |
|
foreach ($tbl_book_authors as $onebook) { |
| 1283 |
|
$tbl_book_authors_d[] = $onebook->getVar('ba_auth_id'); |
| 1284 |
|
} |
| 1285 |
|
} |
| 1286 |
|
$author_select = new XoopsFormSelect(_BOOKSHOP_AUTHORS, 'authors', $tbl_book_authors_d, 5, true); |
| 1287 |
|
$author_select->addOptionArray($tbl_authors_d); |
| 1288 |
|
$author_select->setDescription(_AM_BOOKSHOP_SELECT_HLP); |
|
@@ 1301-1309 (lines=9) @@
|
| 1298 |
|
$tbl_translators_d[$oneitem->getVar('auth_id')] = xoops_trim($oneitem->getVar('auth_name')) . ' ' . xoops_trim($oneitem->getVar('auth_firstname')); |
| 1299 |
|
} |
| 1300 |
|
// Recherche des traducteurs du livre ********************************* |
| 1301 |
|
if ($edit) { |
| 1302 |
|
$criteria = new CriteriaCompo(); |
| 1303 |
|
$criteria->add(new Criteria('ba_type', 2, '=')); |
| 1304 |
|
$criteria->add(new Criteria('ba_book_id', $item->getVar('book_id'), '=')); |
| 1305 |
|
$tbl_book_translators = $h_bookshop_booksauthors->getObjects($criteria); |
| 1306 |
|
foreach ($tbl_book_translators as $onebook) { |
| 1307 |
|
$tbl_book_translators_d[] = $onebook->getVar('ba_auth_id'); |
| 1308 |
|
} |
| 1309 |
|
} |
| 1310 |
|
$translator_select = new XoopsFormSelect(_BOOKSHOP_TRANSLATORS, 'translators', $tbl_book_translators_d, 5, true); |
| 1311 |
|
$translator_select->addOptionArray($tbl_translators_d); |
| 1312 |
|
$translator_select->setDescription(_AM_BOOKSHOP_SELECT_HLP); |