| @@ 26-38 (lines=13) @@ | ||
| 23 | /** |
|
| 24 | * @return mixed |
|
| 25 | */ |
|
| 26 | function b_adslight_add() |
|
| 27 | { |
|
| 28 | global $xoopsDB; |
|
| 29 | ||
| 30 | $xt = new XoopsTree($xoopsDB->prefix('adslight_categories'), 'cid', 'pid'); |
|
| 31 | $jump = XOOPS_URL . '/modules/adslight/addlisting.php?cid='; |
|
| 32 | ob_start(); |
|
| 33 | $xt->makeMySelBox('title', 'title', 0, 1, 'pid', "location=\"" . $jump . "\"+this.options[this.selectedIndex].value"); |
|
| 34 | $block['selectbox'] = ob_get_contents(); |
|
| 35 | ob_end_clean(); |
|
| 36 | ||
| 37 | return $block; |
|
| 38 | } |
|
| 39 | ||
| @@ 556-569 (lines=14) @@ | ||
| 553 | /** |
|
| 554 | * @return mixed |
|
| 555 | */ |
|
| 556 | public static function goCategory |
|
| 557 | () |
|
| 558 | { |
|
| 559 | global $xoopsDB; |
|
| 560 | ||
| 561 | $xt = new XoopsTree($xoopsDB->prefix('adslight_categories'), 'cid', 'pid'); |
|
| 562 | $jump = XOOPS_URL . '/modules/adslight/viewcats.php?cid='; |
|
| 563 | ob_start(); |
|
| 564 | $xt->makeMySelBox('title', 'title', 0, 1, 'pid', "location=\"" . $jump . "\"+this.options[this.selectedIndex].value"); |
|
| 565 | $block['selectbox'] = ob_get_contents(); |
|
| 566 | ob_end_clean(); |
|
| 567 | ||
| 568 | return $block; |
|
| 569 | } |
|
| 570 | ||
| 571 | // ADSLIGHT Version 2 // |
|
| 572 | // Fonction rss.php RSS par categories |
|