| @@ 44-51 (lines=8) @@ | ||
| 41 | ||
| 42 | $hotel_guide_rows = array(); |
|
| 43 | $hotel_today_special_rows = array(); |
|
| 44 | foreach ($hotelnews as $key => $row) { |
|
| 45 | if (in_array($key, $hotel_guide) && count($hotel_guide_rows) < 6) { |
|
| 46 | $hotel_guide_rows[] = $row; |
|
| 47 | } |
|
| 48 | if (in_array($key, $hotel_today_special) && count($hotel_today_special_rows) < 6) { |
|
| 49 | $hotel_today_special_rows[] = $row; |
|
| 50 | } |
|
| 51 | } |
|
| 52 | ||
| 53 | $block['module_url'] = XOOPS_URL . '/modules/martin/'; |
|
| 54 | $block['hotelrank'] = getModuleArray('hotelrank', 'hotelrank', true, null, $xoopsModuleConfig); |
|
| @@ 46-53 (lines=8) @@ | ||
| 43 | ||
| 44 | $hotel_guide_rows = array(); |
|
| 45 | $hotel_today_special_rows = array(); |
|
| 46 | foreach ($hotelnews as $key => $row) { |
|
| 47 | if (in_array($key, $hotel_guide) && count($hotel_guide_rows) < 8) { |
|
| 48 | $hotel_guide_rows[] = $row; |
|
| 49 | } |
|
| 50 | if (in_array($key, $hotel_today_special) && count($hotel_today_special_rows) < 8) { |
|
| 51 | $hotel_today_special_rows[] = $row; |
|
| 52 | } |
|
| 53 | } |
|
| 54 | ||
| 55 | ob_start(); |
|
| 56 | $Tpl = new xoopsTpl(); |
|