/[LeafOK_CVS]/fenglin/bbs/themes/default/search_user.view.php
ViewVC logotype

Diff of /fenglin/bbs/themes/default/search_user.view.php

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

Revision 1.2 by sysadm, Sat Apr 19 04:18:14 2025 UTC Revision 1.3 by sysadm, Wed Apr 23 05:13:57 2025 UTC
# Line 1  Line 1 
1  <?  <?php
2          // Prevent load standalone          // Prevent load standalone
3          if (!isset($result_set))          if (!isset($result_set))
4          {          {
# Line 9  Line 9 
9  <head>  <head>
10  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
11  <title>用户查找结果</title>  <title>用户查找结果</title>
12  <link rel="stylesheet" href="<? echo get_theme_file('css/default'); ?>" type="text/css">  <link rel="stylesheet" href="<?= get_theme_file('css/default'); ?>" type="text/css">
13  <style type="text/css">  <style type="text/css">
14  TD.head,TD.level,TD.login_dt,TD.dark,TD.username  TD.head,TD.level,TD.login_dt,TD.dark,TD.username
15  {  {
# Line 59  function ch_page(page) Line 59  function ch_page(page)
59    
60  function ch_rpp()  function ch_rpp()
61  {  {
62          document.change_page.page.value = Math.floor((document.change_page.page.value - 1) * <? echo $result_set["data"]["rpp"]; ?> / document.change_page.rpp.value) + 1;          document.change_page.page.value = Math.floor((document.change_page.page.value - 1) * <?= $result_set["data"]["rpp"]; ?> / document.change_page.rpp.value) + 1;
63          document.change_page.submit();          document.change_page.submit();
64          return false;          return false;
65  }  }
# Line 70  function ch_rpp() Line 70  function ch_rpp()
70                          <table cols="2" border="0" cellpadding="0" cellspacing="0" width="1050">                          <table cols="2" border="0" cellpadding="0" cellspacing="0" width="1050">
71                                  <tr>                                  <tr>
72                                          <td colspan="2" style="color:green;">                                          <td colspan="2" style="color:green;">
73                                                  <a class="s2" href="main.php"><? echo $BBS_name; ?></a>&gt;&gt;查找<? echo ($result_set["data"]["online"] ? "在线" : ""); ?><? echo ($result_set["data"]["friend"] ? "好友" : "用户"); ?>                                                  <a class="s2" href="main.php"><?= $BBS_name; ?></a>&gt;&gt;查找<?= ($result_set["data"]["online"] ? "在线" : ""); ?><?= ($result_set["data"]["friend"] ? "好友" : "用户"); ?>
74                                          </td>                                          </td>
75                                  </tr>                                  </tr>
76                                  <tr bgcolor="#d0d3F0" height="2">                                  <tr bgcolor="#d0d3F0" height="2">
# Line 78  function ch_rpp() Line 78  function ch_rpp()
78                                  <tr>                                  <tr>
79                                          <td class="dark" width="3%"></td>                                          <td class="dark" width="3%"></td>
80                                          <td class="head" width="97%">                                          <td class="head" width="97%">
81  <?  <?php
82          if ($result_set["data"]["toa"] == 0)          if ($result_set["data"]["toa"] == 0)
83          {          {
84  ?>未找到指定用户<?  ?>未找到指定用户<?php
85          }          }
86          else          else
87          {          {
88  ?>用户查找结果(共<? echo $result_set["data"]["toa"]; ?>位)  ?>用户查找结果(共<?= $result_set["data"]["toa"]; ?>位)
89  <?  <?php
90          }          }
91  ?>(当前在线注册用户<? echo $result_set["data"]["user_online"]; ?>位,游客<? echo $result_set["data"]["guest_online"]; ?>位)  ?>(当前在线注册用户<?= $result_set["data"]["user_online"]; ?>位,游客<?= $result_set["data"]["guest_online"]; ?>位)
92                                          </td>                                          </td>
93                                  </tr>                                  </tr>
94                          </table>                          </table>
# Line 108  function ch_rpp() Line 108  function ch_rpp()
108                                          <td class="title" width="27%"></td>                                          <td class="title" width="27%"></td>
109                                          <td class="title" width="4%"></td>                                          <td class="title" width="4%"></td>
110                                  </tr>                                  </tr>
111  <?  <?php
112          foreach ($result_set["data"]["users"] as $user)          foreach ($result_set["data"]["users"] as $user)
113          {          {
114  ?>  ?>
115                                  <tr height="25">                                  <tr height="25">
116                                          <td class="dark">                                          <td class="dark">
117  <?  <?php
118                  if ($user["gender_pub"])                  if ($user["gender_pub"])
119                  {                  {
120                          if ($user["gender"] == 'M')                          if ($user["gender"] == 'M')
# Line 133  function ch_rpp() Line 133  function ch_rpp()
133  ?>  ?>
134                                          </td>                                          </td>
135                                          <td class="username">                                          <td class="username">
136                                                  <a class="s2" href="show_profile.php?uid=<? echo $user["uid"]; ?>" target=_blank><? echo $user["username"]; ?></a>                                                  <a class="s2" href="show_profile.php?uid=<?= $user["uid"]; ?>" target=_blank><?= $user["username"]; ?></a>
137                                          </td>                                          </td>
138                                          <td class="dark">                                          <td class="dark">
139                                                  <? echo $user["nickname"]; ?>                                                  <?= $user["nickname"]; ?>
140                                          </td>                                          </td>
141                                          <td class="level">                                          <td class="level">
142                                                  <? echo user_level($user["exp"]); ?>                                                  <?= user_level($user["exp"]); ?>
143                                          </td>                                          </td>
144                                          <td class="login_dt">                                          <td class="login_dt">
145                                                  <? echo $user["last_login_dt"]->format("Y-m-d H:i:s"); ?>                                                  <?= $user["last_login_dt"]->format("Y-m-d H:i:s"); ?>
146                                          </td>                                          </td>
147                                          <td class="level">                                          <td class="level">
148  <?  <?php
149                  if ($_SESSION["BBS_priv"]->checkpriv(0, S_MSG))                  if ($_SESSION["BBS_priv"]->checkpriv(0, S_MSG))
150                  {                  {
151  ?>  ?>
152                                                  <a class="s2" href="read_msg.php?sent=1&uid=<? echo $user["uid"]; ?>" target=_blank>发送消息</a>                                                  <a class="s2" href="read_msg.php?sent=1&uid=<?= $user["uid"]; ?>" target=_blank>发送消息</a>
153  <?  <?php
154                  }                  }
155  ?>  ?>
156                                          </td>                                          </td>
157                                          <td align="center">                                          <td align="center">
158                                          </td>                                          </td>
159                                  </tr>                                  </tr>
160  <?  <?php
161          }          }
162  ?>  ?>
163                          </table>                          </table>
# Line 174  function ch_rpp() Line 174  function ch_rpp()
174                                  <form action="search_user.php" method="get" id="change_page" name="change_page">                                  <form action="search_user.php" method="get" id="change_page" name="change_page">
175                                          <td width="30%" style="color: #909090">                                          <td width="30%" style="color: #909090">
176                                          每页<select size="1" id="rpp" name="rpp" onchange="ch_rpp();">                                          每页<select size="1" id="rpp" name="rpp" onchange="ch_rpp();">
177  <?  <?php
178          foreach ($BBS_list_rpp_options as $v)          foreach ($BBS_list_rpp_options as $v)
179          {          {
180                  echo ("<option value=\"$v\"" . ($v == $result_set["data"]["rpp"] ? " selected" : "") . ">$v</option>");                  echo ("<option value=\"$v\"" . ($v == $result_set["data"]["rpp"] ? " selected" : "") . ">$v</option>");
181          }          }
182  ?>  ?>
183                          </select>人                          </select>人
184  <?  <?php
185          if ($result_set["data"]["page"] > 1)          if ($result_set["data"]["page"] > 1)
186          {          {
187  ?>  ?>
188                          <a class="s8" title="首页" href="" onclick="return ch_page(1);">|◀</a>                          <a class="s8" title="首页" href="" onclick="return ch_page(1);">|◀</a>
189                          <a class="s8" title="上一页" href="" onclick="return ch_page(<? echo ($result_set["data"]["page"] - 1); ?>);">◀</a>                          <a class="s8" title="上一页" href="" onclick="return ch_page(<?= ($result_set["data"]["page"] - 1); ?>);">◀</a>
190  <?  <?php
191          }          }
192          else          else
193          {          {
194  ?>  ?>
195  |◀ ◀  |◀ ◀
196  <?  <?php
197          }          }
198  ?>  ?>
199                  第<input id="page" name="page" value="<? echo ($result_set["data"]["page"]) ; ?>" style="width: 30px;">/<? echo $result_set["data"]["page_total"]; ?>页                  第<input id="page" name="page" value="<?= ($result_set["data"]["page"]) ; ?>" style="width: 30px;">/<?= $result_set["data"]["page_total"]; ?>页
200  <?  <?php
201          if ($result_set["data"]["page"] < $result_set["data"]["page_total"])          if ($result_set["data"]["page"] < $result_set["data"]["page_total"])
202          {          {
203  ?>  ?>
204                          <a class="s8" title="下一页" href="" onclick="return ch_page(<? echo ($result_set["data"]["page"] + 1); ?>);">▶</a>                          <a class="s8" title="下一页" href="" onclick="return ch_page(<?= ($result_set["data"]["page"] + 1); ?>);">▶</a>
205                          <a class="s8" title="尾页" href="" onclick="return ch_page(<? echo ($result_set["data"]["page_total"]); ?>);">▶|</a>                          <a class="s8" title="尾页" href="" onclick="return ch_page(<?= ($result_set["data"]["page_total"]); ?>);">▶|</a>
206  <?  <?php
207          }          }
208          else          else
209          {          {
210  ?>  ?>
211  ▶ ▶|  ▶ ▶|
212  <?  <?php
213          }          }
214  ?>  ?>
215                                          </td>                                          </td>
# Line 218  function ch_rpp() Line 218  function ch_rpp()
218                                                          <option value="0" <? if ($result_set["data"]["type"] == 0) echo "selected"; ?> >按用户名</option>                                                          <option value="0" <? if ($result_set["data"]["type"] == 0) echo "selected"; ?> >按用户名</option>
219                                                          <option value="1" <? if ($result_set["data"]["type"] == 1) echo "selected"; ?> >按昵称</option>                                                          <option value="1" <? if ($result_set["data"]["type"] == 1) echo "selected"; ?> >按昵称</option>
220                                                  </select>                                                  </select>
221                                                  <input type="text" id="search_text" name="search_text" size="15" value="<? echo $result_set["data"]["search_text"];?>">                                                  <input type="text" id="search_text" name="search_text" size="15" value="<?= $result_set["data"]["search_text"];?>">
222                                                  <input type="checkbox" id="online" name="online" value="1" <? echo ($result_set["data"]["online"] ? "checked" : "");?>><font color=#909090>在线</font>                                                  <input type="checkbox" id="online" name="online" value="1" <?= ($result_set["data"]["online"] ? "checked" : "");?>><font color=#909090>在线</font>
223                                                  <input type="checkbox" id="friend" name="friend" value="1" <? echo ($result_set["data"]["friend"] ? "checked" : "");?>><font color=#909090>好友</font>                                                  <input type="checkbox" id="friend" name="friend" value="1" <?= ($result_set["data"]["friend"] ? "checked" : "");?>><font color=#909090>好友</font>
224                                                  <input type=image src="images/search.gif" alt="查找用户" border="0" name="image"></a>                                                  <input type=image src="images/search.gif" alt="查找用户" border="0" name="image"></a>
225                                          </td>                                          </td>
226                                          <td width="10%">                                          <td width="10%">
# Line 229  function ch_rpp() Line 229  function ch_rpp()
229                                  </tr>                                  </tr>
230                          </table>                          </table>
231                  </center>                  </center>
232  <?  <?php
233  include "./foot.inc.php";  include "./foot.inc.php";
234  ?>  ?>
235  </body>  </body>


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

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