/[LeafOK_CVS]/lbbs/src/section_list_display.c
ViewVC logotype

Diff of /lbbs/src/section_list_display.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.37 by sysadm, Tue Jun 24 10:01:24 2025 UTC Revision 1.39 by sysadm, Wed Jun 25 14:52:07 2025 UTC
# Line 826  int section_list_display(const char *sna Line 826  int section_list_display(const char *sna
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    
# Line 836  int section_list_ex_dir_display(SECTION_ Line 835  int section_list_ex_dir_display(SECTION_
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);
# Line 843  int section_list_ex_dir_display(SECTION_ Line 851  int section_list_ex_dir_display(SECTION_
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          {          {
# Line 878  int section_list_ex_dir_display(SECTION_ Line 884  int section_list_ex_dir_display(SECTION_
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:


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1