/[LeafOK_CVS]/lbbs/utils/bin/gen_section_menu.php
ViewVC logotype

Diff of /lbbs/utils/bin/gen_section_menu.php

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

Revision 1.1 by sysadm, Mon May 19 01:50:56 2025 UTC Revision 1.2 by sysadm, Mon May 19 06:27:24 2025 UTC
# Line 41  Line 41 
41                  exit();                  exit();
42          }          }
43    
44            // Generate menu of section class
45          $buffer .= <<<MENU          $buffer .= <<<MENU
46  #---------------------------------------------------------------------  #---------------------------------------------------------------------
47  %S_EGROUP  %S_EGROUP
48    ·µ»Ø[¡û] ½øÈë[¡ú] Ñ¡Ôñ[¡ü,¡ý]      ·µ»Ø[¡û] ½øÈë[¡ú] Ñ¡Ôñ[¡ü,¡ý]
49      ÏÂÊô°æ¿é  À¸Ä¿Ãû³Æ                    ÖÐ  ÎÄ  Ðð  Êö                              ÏÂÊô°æ¿é  À¸Ä¿Ãû³Æ                    ÖÐ  ÎÄ  Ðð  Êö                        
50    
51    
# Line 97  MENU; Line 98  MENU;
98    
99          foreach ($section_hierachy as $c_index => $section_class)          foreach ($section_hierachy as $c_index => $section_class)
100          {          {
101                    // Generate menu of sections in section_class[$c_index]
102                  $buffer .= <<<MENU                  $buffer .= <<<MENU
103  #---------------------------------------------------------------------  #---------------------------------------------------------------------
104  %S__{$section_class["name"]}  %S__{$section_class["name"]}
105    ·µ»Ø[¡û] ½øÈë[¡ú] Ñ¡Ôñ[¡ü,¡ý]      ·µ»Ø[¡û] ½øÈë[¡ú] Ñ¡Ôñ[¡ü,¡ý]
106      Ö÷ÌâÊýÁ¿  °æ¿éÃû³Æ                    ÖÐ  ÎÄ  Ðð  Êö                              Ö÷ÌâÊýÁ¿  °æ¿éÃû³Æ                    ÖÐ  ÎÄ  Ðð  Êö                        
107    
108    
# Line 156  MENU; Line 158  MENU;
158    
159          }          }
160    
161            // Generate menu of all sections
162            $buffer .= <<<MENU
163    #---------------------------------------------------------------------
164    %S_BOARD
165        ·µ»Ø[¡û] ½øÈë[¡ú] Ñ¡Ôñ[¡ü,¡ý]
166        ÏÂÊô°æ¿é  À¸Ä¿Ãû³Æ                    ÖÐ  ÎÄ  Ðð  Êö                        
167    
168    
169    
170    
171    
172    
173    
174    
175    
176    
177    
178    
179    
180    
181    
182    
183    
184    
185    
186    
187    %
188    #---------------------------------------------------------------------
189    %menu M_BOARD
190    title       0, 0, "[°æ¿éÁбí]"
191    screen      2, 0, S_BOARD
192    page        4, 1, 20
193    
194    MENU;
195    
196            $display_row = 4;
197    
198            foreach ($section_hierachy as $c_index => $section_class)
199            {
200                    $class_title_f = "[" . addslashes($section_class['title']) . "]" . str_repeat(" ", 14 - str_length($section_class['title']));
201    
202                    foreach ($section_class["sections"] as $s_index => $section)
203                    {
204                            $topic_count = 0; // TODO
205    
206                            $title_f = str_repeat(" ", 5 - intval(log10($topic_count))) . $topic_count . " £«  " .
207                                    $section['name'] . str_repeat(" ", 22 - strlen($section['name'])) .
208                                    $class_title_f .
209                                    addslashes($section['title']);
210    
211                            $buffer .= <<<MENU
212                            @LIST_SECTION   {$display_row}, 4, 1, {$section['read_user_level']},   "{$section['name']}",    "{$title_f}"
213    
214                            MENU;
215    
216                            $display_row = 0;
217                    }
218            }
219    
220            $buffer .= <<<MENU
221    %
222    
223    MENU;
224    
225          unset($section_hierachy);          unset($section_hierachy);
226    
227          mysqli_close($db_conn);          mysqli_close($db_conn);


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

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