--- fenglin/bbs/search_user.php 2004/12/05 09:59:38 1.5 +++ fenglin/bbs/search_user.php 2025/03/28 10:32:21 1.13 @@ -1,91 +1,84 @@ -0 and current_action not in". - " ('max_user_limit','max_ip_limit','max_session_limit','exit')". - " group by SID") - or die("Count user error!"); -$user_count=mysql_num_rows($rs); -mysql_free_result($rs); - -$rs=mysql_query("select count(user_list.UID) as rec_count from user_list". - ($online?" inner join user_online on user_list.UID=user_online.UID":""). - ($friend?" inner join friend_list on user_list.UID=friend_list.fUID":""). - " inner join user_pubinfo on user_list.UID=user_pubinfo.UID where". - " user_list.enable and ".($type==1?"user_pubinfo.nickname":"user_list.username"). - " like '%$search_author%'". - ($online ? " and current_action not in". - " ('max_user_limit','max_ip_limit','max_session_limit','exit')":""). - ($friend ? " and friend_list.UID=".$_SESSION["BBS_uid"]:"") - ) - or die("Query user error!"); +$rs = mysqli_query($db_conn, $sql); +if ($rs == false) +{ + echo("Query user error" . mysqli_error($db_conn)); + exit(); +} -$row=mysql_fetch_array($rs); -$u_count=$row["rec_count"]; +if ($row = mysqli_fetch_array($rs)) +{ + $toa = $row["rec_count"]; +} -mysql_free_result($rs); +mysqli_free_result($rs); -$toa=$u_count; -if ($toa==0) - $toa=1; +$page_total = ceil($toa / $rpp); +if ($page > $page_total) +{ + $page = $page_total; +} -$page_total=intval($toa/$page_max_record); -if (($toa % $page_max_record)>0) - $page_total++; -if ($page>$page_total) - $page=$page_total; +if ($page <= 0) +{ + $page = 1; +} ?> - - 用户查找结果 + + 鐢ㄦ埛鏌ユ壘缁撴灉 - - + +
@@ -132,14 +148,17 @@ TD.level
- 枫林在线论坛>>查找 + >>鏌ユ壘
- - 未找到指定用户鏈壘鍒版寚瀹氱敤鎴用户查找结果(共位) - (当前在线注册用户位,游客位) +?>鐢ㄦ埛鏌ユ壘缁撴灉锛堝叡浣嶏級 +锛堝綋鍓嶅湪绾挎敞鍐岀敤鎴浣嶏紝娓稿浣嶏級
@@ -152,36 +171,34 @@ TD.level - - - - + + + + - -
用户ID昵称等级最后登陆时间鐢ㄦ埛ID鏄电О绛夌骇鏈鍚庣櫥闄嗘椂闂
@@ -189,9 +206,13 @@ while($row=mysql_fetch_array($rs)) if ($row["gender_pub"]) { if ($row["gender"] == 'M') - echo (""); + { + echo (""); + } else - echo (""); + { + echo (""); + } } else { @@ -199,7 +220,7 @@ while($row=mysql_fetch_array($rs)) } ?> + )"> @@ -212,20 +233,17 @@ while($row=mysql_fetch_array($rs)) - ','send_msg',500,300)">发送消息 - ','send_msg',500,300)">发送邮件 + ','send_msg',500,300)">鍙戦佹秷鎭
- - - + - +
@@ -236,48 +254,68 @@ mysql_close($db_conn);
-
- - "> - "> - 分页: /页 -1) -{ -?>&friend=">9&friend=">797 - -&friend=">8&friend=">:8: -
-
- +
+
+ 姣忛〉浜 + 1) +{ +?> + 9 + 7 + +9 7 + + 绗/椤 + + 8 + : + +8 : + + + + + >鍦ㄧ嚎 + >濂藉弸 + +
-