| 17 |
if (isset($_GET["type"])) |
if (isset($_GET["type"])) |
| 18 |
$type=intval($_GET["type"]); |
$type=intval($_GET["type"]); |
| 19 |
else |
else |
| 20 |
$type=1; |
$type=2; |
| 21 |
|
|
| 22 |
if (isset($_GET["online"])) |
if (isset($_GET["online"])) |
| 23 |
$online=($_GET["online"]=="on"); |
$online=($_GET["online"]=="on"); |
| 37 |
|
|
| 38 |
$db_conn=include "./db_open.inc.php"; |
$db_conn=include "./db_open.inc.php"; |
| 39 |
|
|
| 40 |
$rs=mysql_query("select user_online.UID from user_online". |
$rs=mysql_query("select user_online.SID from user_online". |
| 41 |
" where UID=0 and current_action not in". |
" where UID=0 and current_action not in". |
| 42 |
" ('max_user_limit','max_ip_limit','max_session_limit','exit')". |
" ('max_user_limit','max_ip_limit','max_session_limit','exit')". |
| 43 |
" group by SID") |
" group by SID") |
| 45 |
$guest_count=mysql_num_rows($rs); |
$guest_count=mysql_num_rows($rs); |
| 46 |
mysql_free_result($rs); |
mysql_free_result($rs); |
| 47 |
|
|
| 48 |
$rs=mysql_query("select user_online.UID from user_online". |
$rs=mysql_query("select user_online.SID from user_online". |
| 49 |
" where UID<>0 and current_action not in". |
" where UID<>0 and current_action not in". |
| 50 |
" ('max_user_limit','max_ip_limit','max_session_limit','exit')". |
" ('max_user_limit','max_ip_limit','max_session_limit','exit')". |
| 51 |
" group by SID") |
" group by SID") |
| 82 |
?> |
?> |
| 83 |
<html> |
<html> |
| 84 |
<head> |
<head> |
| 85 |
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"> |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| 86 |
<title>用户查找结果</title> |
<title>鐢ㄦ埛鏌ユ壘缁撴灉</title> |
| 87 |
<link rel="stylesheet" href="css/default.css" type="text/css"> |
<link rel="stylesheet" href="css/default.css" type="text/css"> |
| 88 |
|
|
| 89 |
<style type="text/css"> |
<style type="text/css"> |
| 95 |
} |
} |
| 96 |
TD.head |
TD.head |
| 97 |
{ |
{ |
| 98 |
font-family: 楷体_GB2312; |
font-family: 妤蜂綋; |
| 99 |
color:#909090; |
color:#909090; |
| 100 |
} |
} |
| 101 |
TD.login_dt,TD.level,TD.dark,TD.username |
TD.login_dt,TD.level,TD.dark,TD.username |
| 124 |
<table cols="2" border="0" cellpadding="0" cellspacing="0" width="770"> |
<table cols="2" border="0" cellpadding="0" cellspacing="0" width="770"> |
| 125 |
<tr> |
<tr> |
| 126 |
<td colspan="2" style="color:green;"> |
<td colspan="2" style="color:green;"> |
| 127 |
<a class="s2" href="main.php">枫林在线论坛</a>>>查找<? echo ($online?"在线":""); ?><? echo ($friend?"好友":"用户"); ?> |
<a class="s2" href="main.php">鏋灄鍦ㄧ嚎璁哄潧</a>>>鏌ユ壘<? echo ($online?"鍦ㄧ嚎":""); ?><? echo ($friend?"濂藉弸":"鐢ㄦ埛"); ?> |
| 128 |
</td> |
</td> |
| 129 |
</tr> |
</tr> |
| 130 |
<tr bgcolor="#d0d3F0" height="2"> |
<tr bgcolor="#d0d3F0" height="2"> |
| 135 |
<? if ($u_count==0) |
<? if ($u_count==0) |
| 136 |
{ |
{ |
| 137 |
?> |
?> |
| 138 |
未找到指定用户<? } |
鏈壘鍒版寚瀹氱敤鎴<? } |
| 139 |
else |
else |
| 140 |
{ |
{ |
| 141 |
?>用户查找结果(共<? echo $u_count; ?>位)<? } ?> |
?>鐢ㄦ埛鏌ユ壘缁撴灉锛堝叡<? echo $u_count; ?>浣嶏級<? } ?> |
| 142 |
(当前在线注册用户<? echo $user_count; ?>位,游客<? echo $guest_count; ?>位) |
锛堝綋鍓嶅湪绾挎敞鍐岀敤鎴<? echo $user_count; ?>浣嶏紝娓稿<? echo $guest_count; ?>浣嶏級 |
| 143 |
</td> |
</td> |
| 144 |
</tr> |
</tr> |
| 145 |
</table> |
</table> |
| 152 |
<table bgcolor="#f0F3Fa" border="0" cellpadding="0" cellspacing="0" width="770"> |
<table bgcolor="#f0F3Fa" border="0" cellpadding="0" cellspacing="0" width="770"> |
| 153 |
<tr bgcolor="#d0d3F0" height="20"> |
<tr bgcolor="#d0d3F0" height="20"> |
| 154 |
<td class="title" width="4%"></td> |
<td class="title" width="4%"></td> |
| 155 |
<td class="title" width="15%">用户ID</td> |
<td class="title" width="15%">鐢ㄦ埛ID</td> |
| 156 |
<td class="title" width="20%">昵称</td> |
<td class="title" width="20%">鏄电О</td> |
| 157 |
<td class="title" width="12%">等级</td> |
<td class="title" width="12%">绛夌骇</td> |
| 158 |
<td class="title" width="18%">最后登陆时间</td> |
<td class="title" width="18%">鏈鍚庣櫥闄嗘椂闂</td> |
| 159 |
<td class="title" width="27%"></td> |
<td class="title" width="27%"></td> |
| 160 |
<td class="title" width="4%"></td> |
<td class="title" width="4%"></td> |
| 161 |
</tr> |
</tr> |
| 189 |
if ($row["gender_pub"]) |
if ($row["gender_pub"]) |
| 190 |
{ |
{ |
| 191 |
if ($row["gender"] == 'M') |
if ($row["gender"] == 'M') |
| 192 |
echo ("<font color=blue>♂</font>"); |
echo ("<font color=blue>鈾</font>"); |
| 193 |
else |
else |
| 194 |
echo ("<font color=red>♀</font>"); |
echo ("<font color=red>鈾</font>"); |
| 195 |
} |
} |
| 196 |
else |
else |
| 197 |
{ |
{ |
| 212 |
<? echo $row["last_login_dt"]; ?> |
<? echo $row["last_login_dt"]; ?> |
| 213 |
</td> |
</td> |
| 214 |
<td class="level"> |
<td class="level"> |
| 215 |
<a class="s2" href="javascript:NW_open('send_msg.php?user_id=<? echo $row["UID"]; ?>','send_msg',500,300)">发送消息</a> |
<a class="s2" href="javascript:NW_open('send_msg.php?user_id=<? echo $row["UID"]; ?>','send_msg',500,300)">鍙戦佹秷鎭</a> |
| 216 |
<a class="s2" href="javascript:NW_open('bbs_email.php?user_id=<? echo $row["UID"]; ?>','send_msg',500,300)">发送邮件</a> |
<a class="s2" href="javascript:NW_open('bbs_email.php?user_id=<? echo $row["UID"]; ?>','send_msg',500,300)">鍙戦侀偖浠</a> |
| 217 |
</td> |
</td> |
| 218 |
<td align="center"> |
<td align="center"> |
| 219 |
</td> |
</td> |
| 241 |
<input type="hidden" id="search_text" name="search_text" value="<? echo $search_text;?>"> |
<input type="hidden" id="search_text" name="search_text" value="<? echo $search_text;?>"> |
| 242 |
<input type="hidden" id="online" name="online" value="<? echo ($online?"on":"off"); ?>"> |
<input type="hidden" id="online" name="online" value="<? echo ($online?"on":"off"); ?>"> |
| 243 |
<input type="hidden" id="friend" name="friend" value="<? echo ($friend?"on":"off"); ?>"> |
<input type="hidden" id="friend" name="friend" value="<? echo ($friend?"on":"off"); ?>"> |
| 244 |
分页: <? echo $page; ?>/<? echo $page_total; ?>页 |
鍒嗛〉: <? echo $page; ?>/<? echo $page_total; ?>椤 |
| 245 |
<? if ($page>1) |
<? if ($page>1) |
| 246 |
{ |
{ |
| 247 |
?><a class="s8" title="首页" href="search_user.php?page=1&type=<? echo $type; ?>&online=<? echo ($online?"on":"off"); ?>&friend=<? echo ($friend?"on":"off"); ?><? if ($search_text!="") echo "&search_text=".$search_text;?>"><font face=webdings>9</font></a><a class="s8" title="上一页" href="search_user.php?page=<? echo $page-1; ?>&type=<? echo $type; ?>&online=<? echo ($online?"on":"off"); ?>&friend=<? echo ($friend?"on":"off"); ?><? if ($search_text!="") echo "&search_text=".$search_text;?>"><font face=webdings>7</font></a><? } |
?><a class="s8" title="棣栭〉" href="search_user.php?page=1&type=<? echo $type; ?>&online=<? echo ($online?"on":"off"); ?>&friend=<? echo ($friend?"on":"off"); ?><? if ($search_text!="") echo "&search_text=".$search_text;?>"><font face=webdings>9</font></a><a class="s8" title="涓婁竴椤" href="search_user.php?page=<? echo $page-1; ?>&type=<? echo $type; ?>&online=<? echo ($online?"on":"off"); ?>&friend=<? echo ($friend?"on":"off"); ?><? if ($search_text!="") echo "&search_text=".$search_text;?>"><font face=webdings>7</font></a><? } |
| 248 |
else |
else |
| 249 |
{ |
{ |
| 250 |
?><font face=webdings>97</font><? } ?> |
?><font face=webdings>97</font><? } ?> |
| 251 |
<input id="page_id" name="page" value="<? echo ($page) ; ?>" size="2"> |
<input id="page_id" name="page" value="<? echo ($page) ; ?>" size="2"> |
| 252 |
<? if ($page<$page_total) |
<? if ($page<$page_total) |
| 253 |
{ |
{ |
| 254 |
?><a class="s8" title="下一页" href="search_user.php?page=<? echo $page+1; ?>&type=<? echo $type; ?>&online=<? echo ($online?"on":"off"); ?>&friend=<? echo ($friend?"on":"off"); ?><? if ($search_text!="") echo "&search_text=".$search_text;?>"><font face=webdings>8</font></a><a class="s8" title="尾页" href="search_user.php?page=<? echo $page_total; ?>&type=<? echo $type; ?>&online=<? echo ($online?"on":"off"); ?>&friend=<? echo ($friend?"on":"off"); ?><? if ($search_text!="") echo "&search_text=".$search_text;?>"><font face=webdings>:</font></a><? } |
?><a class="s8" title="涓嬩竴椤" href="search_user.php?page=<? echo $page+1; ?>&type=<? echo $type; ?>&online=<? echo ($online?"on":"off"); ?>&friend=<? echo ($friend?"on":"off"); ?><? if ($search_text!="") echo "&search_text=".$search_text;?>"><font face=webdings>8</font></a><a class="s8" title="灏鹃〉" href="search_user.php?page=<? echo $page_total; ?>&type=<? echo $type; ?>&online=<? echo ($online?"on":"off"); ?>&friend=<? echo ($friend?"on":"off"); ?><? if ($search_text!="") echo "&search_text=".$search_text;?>"><font face=webdings>:</font></a><? } |
| 255 |
else |
else |
| 256 |
{ |
{ |
| 257 |
?><font face=webdings>8:</font><? } ?> |
?><font face=webdings>8:</font><? } ?> |
| 259 |
</td> |
</td> |
| 260 |
<td width="50" align="center"> |
<td width="50" align="center"> |
| 261 |
<form action="search_user.php" method="get" id="search"> |
<form action="search_user.php" method="get" id="search"> |
| 262 |
<font color=#909090>查找用户</font> |
<font color=#909090>鏌ユ壘鐢ㄦ埛</font> |
| 263 |
<select name="type"> |
<select name="type"> |
| 264 |
<option value="2" <? if ($type==2) echo "selected"; ?> >按用户名</option> |
<option value="2" <? if ($type==2) echo "selected"; ?> >鎸夌敤鎴峰悕</option> |
| 265 |
<option value="1" <? if ($type==1) echo "selected"; ?> >按昵称</option> |
<option value="1" <? if ($type==1) echo "selected"; ?> >鎸夋樀绉</option> |
| 266 |
</select> |
</select> |
| 267 |
<input type="text" id="search_text" name="search_text" size="15"> |
<input type="text" id="search_text" name="search_text" size="15"> |
| 268 |
<input type="checkbox" id="online" name="online" <? echo ($online?"checked":"");?> ><font color=#909090>在线</font> |
<input type="checkbox" id="online" name="online" <? echo ($online?"checked":"");?> ><font color=#909090>鍦ㄧ嚎</font> |
| 269 |
<input type="checkbox" id="friend" name="friend" <? echo ($friend?"checked":"");?> ><font color=#909090>好友</font> |
<input type="checkbox" id="friend" name="friend" <? echo ($friend?"checked":"");?> ><font color=#909090>濂藉弸</font> |
| 270 |
<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> |
| 271 |
</form> |
</form> |
| 272 |
</td> |
</td> |
| 273 |
<td width="25"> |
<td width="25"> |