/[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.17 by sysadm, Fri Apr 4 05:59:31 2025 UTC Revision 1.20 by sysadm, Sun Apr 6 03:46:57 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 118  TD.username:hover Line 123  TD.username:hover
123  }  }
124  </style>  </style>
125    
126  <script language="JavaScript" src="/js/nw_open.js"></script>  <script type="text/javascript" src="../js/nw_open.js"></script>
127  <script language="JavaScript">  <script type="text/javascript">
128  function ch_page(page)  function ch_page(page)
129  {  {
130          document.change_page.page.value = page;          document.change_page.page.value = page;
# Line 129  function ch_page(page) Line 134  function ch_page(page)
134    
135  function ch_rpp()  function ch_rpp()
136  {  {
137          document.change_page.page.value = Math.floor(document.change_page.page.value * <? echo $rpp; ?> / document.change_page.rpp.value);          document.change_page.page.value = Math.floor((document.change_page.page.value - 1) * <? echo $rpp; ?> / document.change_page.rpp.value) + 1;
138          document.change_page.submit();          document.change_page.submit();
139          return false;          return false;
140  }  }
# 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 237  while ($row = mysqli_fetch_array($rs)) Line 242  while ($row = mysqli_fetch_array($rs))
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  ?>  ?>
# Line 265  mysqli_free_result($rs); Line 270  mysqli_free_result($rs);
270                                          <td width="30%" style="color:#909090">                                          <td width="30%" style="color:#909090">
271                                          每页<select size="1" id="rpp" name="rpp" onchange="ch_rpp();">                                          每页<select size="1" id="rpp" name="rpp" onchange="ch_rpp();">
272  <?  <?
273          foreach ($BBS_rpp_options as $v)          foreach ($BBS_list_rpp_options as $v)
274          {          {
275                  echo ("<option value=\"$v\"" . ($v == $rpp ? " selected" : "") . ">$v</option>");                  echo ("<option value=\"$v\"" . ($v == $rpp ? " selected" : "") . ">$v</option>");
276          }          }


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

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