/[LeafOK_CVS]/fenglin/bbs/search_user.php
ViewVC logotype

Diff of /fenglin/bbs/search_user.php

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

Revision 1.18 by sysadm, Sat Apr 5 04:11:35 2025 UTC Revision 1.21 by sysadm, Sun Apr 6 08:16:26 2025 UTC
# Line 63  if ($row = mysqli_fetch_array($rs)) Line 63  if ($row = mysqli_fetch_array($rs))
63    
64  mysqli_free_result($rs);  mysqli_free_result($rs);
65    
66    if (!in_array($rpp, $BBS_list_rpp_options))
67    {
68            $rpp = $BBS_list_rpp_options[0];
69    }
70    
71  $page_total = ceil($toa / $rpp);  $page_total = ceil($toa / $rpp);
72  if ($page > $page_total)  if ($page > $page_total)
73  {  {
# Line 221  while ($row = mysqli_fetch_array($rs)) Line 226  while ($row = mysqli_fetch_array($rs))
226  ?>  ?>
227                                          </td>                                          </td>
228                                          <td class="username">                                          <td class="username">
229                                                  <a class="s2" href="" onclick="return show_profile(<? echo $row["UID"]; ?>);"><? echo $row["username"]; ?></a>                                                  <a class="s2" href="show_profile.php?uid=<? echo $row["UID"]; ?>" target=_blank><? echo $row["username"]; ?></a>
230                                          </td>                                          </td>
231                                          <td class="dark">                                          <td class="dark">
232                                                  <? echo $row["nickname"]; ?>                                                  <? echo $row["nickname"]; ?>
# Line 230  while ($row = mysqli_fetch_array($rs)) Line 235  while ($row = mysqli_fetch_array($rs))
235                                                  <? echo user_level($row["exp"]); ?>                                                  <? echo user_level($row["exp"]); ?>
236                                          </td>                                          </td>
237                                          <td class="login_dt">                                          <td class="login_dt">
238                                                  <? echo $row["last_login_dt"]; ?>                                                  <? echo (new DateTimeImmutable($row["last_login_dt"]))->setTimezone($_SESSION["BBS_user_tz"])->format("Y-m-d H:i:s"); ?>
239                                          </td>                                          </td>
240                                          <td class="level">                                          <td class="level">
241  <?  <?
242          if ($_SESSION["BBS_priv"]->checkpriv(0, S_MSG))          if ($_SESSION["BBS_priv"]->checkpriv(0, S_MSG))
243          {          {
244  ?>  ?>
245                                                  <a class="s2" href="" onclick="return NW_open('send_msg.php?user_id=<? echo $row["UID"]; ?>', 'send_msg', 500, 300);">发送消息</a>                                                  <a class="s2" href="" onclick="return NW_open('send_msg.php?uid=<? echo $row["UID"]; ?>', 'send_msg', 500, 300);">发送消息</a>
246  <?  <?
247          }          }
248  ?>  ?>


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

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