/[LeafOK_CVS]/fenglin/bbs/section_list_dst.inc.php
ViewVC logotype

Diff of /fenglin/bbs/section_list_dst.inc.php

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

Revision 1.4 by sysadm, Sat Apr 12 05:04:07 2025 UTC Revision 1.6 by sysadm, Wed Apr 23 05:13:56 2025 UTC
# Line 1  Line 1 
1  <?  <?php
2          require_once "../bbs/section_list.inc.php";          require_once "../bbs/section_list.inc.php";
3    
4          function section_list_dst(mysqli $db_conn, int $sid_exclude = 0) : string          function section_list_dst(mysqli $db_conn, int $sid_exclude = 0) : string
# Line 11  Line 11 
11                  $ret = load_section_list($section_hierachy,                  $ret = load_section_list($section_hierachy,
12                          function (array $section, array $filter_param) : bool                          function (array $section, array $filter_param) : bool
13                          {                          {
14                                  return ($section["SID"] != $filter_param["sid"] && $_SESSION["BBS_priv"]->checkpriv($secion["SID"], S_POST));                                  return ($section["SID"] != $filter_param["sid"] && $_SESSION["BBS_priv"]->checkpriv($section["SID"], S_POST));
15                          },                          },
16                          function (array $section, array $filter_param) : mixed                          function (array $section, array $filter_param) : mixed
17                          {                          {
# Line 28  Line 28 
28                          echo mysqli_error($db_conn);                          echo mysqli_error($db_conn);
29  ?>  ?>
30                          <option value="0">---数据查询错误---</option>                          <option value="0">---数据查询错误---</option>
31  <?  <?php
32                  }                  }
33                  else                  else
34                  {                  {
35  ?>  ?>
36                          <option value="0">-----选择版块-----</option>                          <option value="0">-----选择版块-----</option>
37  <?  <?php
38                  }                  }
39                                    
40                  foreach ($section_hierachy as $c_index => $section_class)                  foreach ($section_hierachy as $c_index => $section_class)
41                  {                  {
42  ?>  ?>
43                          <option value="0">==<? echo $section_class["title"]; ?>==</option>                          <option value="0">==<?= $section_class["title"]; ?>==</option>
44  <?  <?php
45                          foreach ($section_class["sections"] as $s_index => $section)                          foreach ($section_class["sections"] as $s_index => $section)
46                          {                          {
47  ?>  ?>
48                          <option value="<? echo $section["sid"]; ?>">&nbsp;&nbsp;├<? echo $section["title"]; ?></option>                          <option value="<?= $section["sid"]; ?>">&nbsp;&nbsp;├<?= $section["title"]; ?></option>
49  <?  <?php
50                          }                          }
51                  }                  }
52    


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

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