| 826 |
|
|
| 827 |
int section_list_ex_dir_display(SECTION_LIST *p_section) |
int section_list_ex_dir_display(SECTION_LIST *p_section) |
| 828 |
{ |
{ |
|
char str_section_name[LINE_BUFFER_LEN]; |
|
| 829 |
MENU_SET ex_menu_set; |
MENU_SET ex_menu_set; |
| 830 |
int ch = 0; |
int ch = 0; |
| 831 |
|
|
| 835 |
return -1; |
return -1; |
| 836 |
} |
} |
| 837 |
|
|
| 838 |
|
if (p_section->ex_menu_tm == 0) // N/A |
| 839 |
|
{ |
| 840 |
|
moveto(2, 1); |
| 841 |
|
clrtoeol(); |
| 842 |
|
prints("该版块精华区未开放"); |
| 843 |
|
press_any_key(); |
| 844 |
|
return 0; |
| 845 |
|
} |
| 846 |
|
|
| 847 |
if (get_section_ex_menu_set(p_section, &ex_menu_set) < 0) |
if (get_section_ex_menu_set(p_section, &ex_menu_set) < 0) |
| 848 |
{ |
{ |
| 849 |
log_error("get_section_ex_menu_set(sid=%d) error\n", p_section->sid); |
log_error("get_section_ex_menu_set(sid=%d) error\n", p_section->sid); |
| 851 |
} |
} |
| 852 |
if (get_menu_shm_readonly(&ex_menu_set) < 0) |
if (get_menu_shm_readonly(&ex_menu_set) < 0) |
| 853 |
{ |
{ |
| 854 |
log_error("set_menu_shm_readonly(sid=%d) error\n", p_section->sid); |
log_error("get_menu_shm_readonly(sid=%d) error\n", p_section->sid); |
| 855 |
return -3; |
return -3; |
| 856 |
} |
} |
| 857 |
|
|
|
snprintf(str_section_name, sizeof(str_section_name), "[%s | 精华区]", p_section->sname); |
|
|
|
|
| 858 |
clearscr(); |
clearscr(); |
| 859 |
show_bottom(str_section_name); |
show_bottom(""); |
| 860 |
|
|
| 861 |
if (display_menu(&ex_menu_set) == 0) |
if (display_menu(&ex_menu_set) == 0) |
| 862 |
{ |
{ |
| 884 |
break; |
break; |
| 885 |
case REDRAW: |
case REDRAW: |
| 886 |
clearscr(); |
clearscr(); |
| 887 |
show_bottom(str_section_name); |
show_bottom(""); |
| 888 |
display_menu(&ex_menu_set); |
display_menu(&ex_menu_set); |
| 889 |
break; |
break; |
| 890 |
case NOREDRAW: |
case NOREDRAW: |