- |
- |
-
- |
-
- |
-
- |
-
- |
-
- |
-
- |
-
+
+
+
+ |
+ 鐢ㄦ埛ID |
+ 鏄电О |
+ 绛夌骇 |
+ 鏈鍚庣櫥闄嗘椂闂 |
+ |
+ |
+
$color[0]="#f0F3Fa";
$color[1]="#FAFBFC";
$color_index=-1;
$color_count=2;
-$rs=mysql_query("select user_list.UID,username,nickname,".
- "IF(user_pubinfo.gender_pub,IF(user_pubinfo.gender='M',".
- "'♂','♀'),'') as gender".
- " from user_list".
+$rs=mysql_query("select user_list.UID,username,nickname,exp,".
+ "gender,gender_pub,last_login_dt 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%' order by ".($type==1?"nickname":"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"]:"").
+ " order by ".($type==1?"nickname":"username").
" limit ".($page-1)*$page_max_record.",$page_max_record")
or die("Query user error!");
-do
+while($row=mysql_fetch_array($rs))
{
$color_index=($color_index+1)%$color_count;
?>
-
- |
- |
-
- for ($i=1; $i<=6; $i=$i+1)
+
+ |
+
+ if ($row["gender_pub"])
+ {
+ if ($row["gender"] == 'M')
+ echo ("鈾");
+ else
+ echo ("鈾");
+ }
+ else
{
- if ($row=mysql_fetch_array($rs))
- {
+ echo ("?");
+ }
?>
- |
- echo $row["gender"]; ?>)"> echo ($type==1?$row["nickname"]:$row["username"]); ?>
|
-
- }
- else
- {
-?>
-
+ |
+ )"> echo $row["username"]; ?>
+ |
+
+ echo $row["nickname"]; ?>
+ |
+
+ echo user_level($row["exp"]); ?>
+ |
+
+ echo $row["last_login_dt"]; ?>
+ |
+
+ ','send_msg',500,300)">鍙戦佹秷鎭
+ ','send_msg',500,300)">鍙戦侀偖浠
|
-
- }
- }
-?>
|
-}while($row);
+}
?>
@@ -158,17 +239,19 @@ mysql_close($db_conn);
|
|
|
|