| 193 |
|
|
| 194 |
MENU; |
MENU; |
| 195 |
|
|
| 196 |
|
// Generate menu of favourite sections |
| 197 |
|
$buffer .= <<<MENU |
| 198 |
|
#--------------------------------------------------------------------- |
| 199 |
|
%menu M_FAVOUR |
| 200 |
|
title 0, 0, "[°æ¿éÊÕ²Ø]" |
| 201 |
|
screen 2, 0, S_BOARD |
| 202 |
|
use_filter |
| 203 |
|
page 4, 1, 20 |
| 204 |
|
|
| 205 |
|
MENU; |
| 206 |
|
|
| 207 |
|
$display_row = 4; |
| 208 |
|
|
| 209 |
|
foreach ($section_hierachy as $c_index => $section_class) |
| 210 |
|
{ |
| 211 |
|
$class_title_f = "[" . addslashes($section_class['title']) . "]" . str_repeat(" ", 10 - str_length($section_class['title'])); |
| 212 |
|
|
| 213 |
|
foreach ($section_class["sections"] as $s_index => $section) |
| 214 |
|
{ |
| 215 |
|
$article_count = $section['udf_values']['article_count']; |
| 216 |
|
|
| 217 |
|
$title_f = str_repeat(" ", 5 - intval(log10($article_count))) . $article_count . " £« " . |
| 218 |
|
$section['name'] . str_repeat(" ", 20 - strlen($section['name'])) . |
| 219 |
|
$class_title_f . addslashes($section['title']) . str_repeat(" ", 22 - str_length($section['title'])) . |
| 220 |
|
$section['udf_values']['section_master']; |
| 221 |
|
|
| 222 |
|
$buffer .= <<<MENU |
| 223 |
|
@LIST_SECTION {$display_row}, 4, {$section['sid']}, {$section['read_user_level']}, "{$section['name']}", "{$title_f}" |
| 224 |
|
|
| 225 |
|
MENU; |
| 226 |
|
|
| 227 |
|
$display_row = 0; |
| 228 |
|
} |
| 229 |
|
} |
| 230 |
|
|
| 231 |
|
$buffer .= <<<MENU |
| 232 |
|
% |
| 233 |
|
|
| 234 |
|
MENU; |
| 235 |
|
|
| 236 |
unset($section_hierachy); |
unset($section_hierachy); |
| 237 |
|
|
| 238 |
mysqli_close($db_conn); |
mysqli_close($db_conn); |