| 1 |
<?php
|
| 2 |
// Prevent load standalone
|
| 3 |
if (!isset($result_set))
|
| 4 |
{
|
| 5 |
exit();
|
| 6 |
}
|
| 7 |
?>
|
| 8 |
<html>
|
| 9 |
<head>
|
| 10 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
| 11 |
<title>用户查找结果</title>
|
| 12 |
<link rel="stylesheet" href="<?= get_theme_file('css/default'); ?>" type="text/css">
|
| 13 |
<style type="text/css">
|
| 14 |
TD.head,TD.level,TD.login_dt,TD.dark,TD.username
|
| 15 |
{
|
| 16 |
border-right: #d0d3F0 1px solid;
|
| 17 |
border-left: #d0d3F0 1px solid;
|
| 18 |
border-bottom: #d0d3F0 1px solid;
|
| 19 |
}
|
| 20 |
TD.head
|
| 21 |
{
|
| 22 |
font-family: 楷体;
|
| 23 |
color: #909090;
|
| 24 |
}
|
| 25 |
TD.login_dt,TD.level,TD.dark,TD.username
|
| 26 |
{
|
| 27 |
text-align: center;
|
| 28 |
}
|
| 29 |
TD.login_dt,TD.dark
|
| 30 |
{
|
| 31 |
color: #909090;
|
| 32 |
background-color: #eaf0Fa;
|
| 33 |
}
|
| 34 |
TD.head,TD.level
|
| 35 |
{
|
| 36 |
background-color: #fafbfc;
|
| 37 |
}
|
| 38 |
TD.level
|
| 39 |
{
|
| 40 |
color: orange;
|
| 41 |
}
|
| 42 |
TD.username
|
| 43 |
{
|
| 44 |
background-color: #fafbfc;
|
| 45 |
}
|
| 46 |
TD.username:hover
|
| 47 |
{
|
| 48 |
background-color: #eaf0Fa;
|
| 49 |
}
|
| 50 |
</style>
|
| 51 |
|
| 52 |
<script type="text/javascript">
|
| 53 |
function ch_page(page)
|
| 54 |
{
|
| 55 |
document.change_page.page.value = page;
|
| 56 |
document.change_page.submit();
|
| 57 |
return false;
|
| 58 |
}
|
| 59 |
|
| 60 |
function ch_rpp()
|
| 61 |
{
|
| 62 |
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();
|
| 64 |
return false;
|
| 65 |
}
|
| 66 |
</script>
|
| 67 |
</head>
|
| 68 |
<body>
|
| 69 |
<center>
|
| 70 |
<table cols="2" border="0" cellpadding="0" cellspacing="0" width="1050">
|
| 71 |
<tr>
|
| 72 |
<td colspan="2" style="color:green;">
|
| 73 |
<a class="s2" href="main.php"><?= $BBS_name; ?></a>>>查找<?= ($result_set["data"]["online"] ? "在线" : ""); ?><?= ($result_set["data"]["friend"] ? "好友" : "用户"); ?>
|
| 74 |
</td>
|
| 75 |
</tr>
|
| 76 |
<tr bgcolor="#d0d3F0" height="2">
|
| 77 |
<td colspan="2"></td></tr>
|
| 78 |
<tr>
|
| 79 |
<td class="dark" width="3%"></td>
|
| 80 |
<td class="head" width="97%">
|
| 81 |
<?php
|
| 82 |
if ($result_set["data"]["toa"] == 0)
|
| 83 |
{
|
| 84 |
?>未找到指定用户<?php
|
| 85 |
}
|
| 86 |
else
|
| 87 |
{
|
| 88 |
?>用户查找结果(共<?= $result_set["data"]["toa"]; ?>位)
|
| 89 |
<?php
|
| 90 |
}
|
| 91 |
?>(当前在线注册用户<?= $result_set["data"]["user_online"]; ?>位,游客<?= $result_set["data"]["guest_online"]; ?>位)
|
| 92 |
</td>
|
| 93 |
</tr>
|
| 94 |
</table>
|
| 95 |
<table border="0" cellpadding="1" cellspacing="0" width="1050">
|
| 96 |
<tr height="10">
|
| 97 |
<td>
|
| 98 |
</td>
|
| 99 |
</tr>
|
| 100 |
</table>
|
| 101 |
<table bgcolor="#f0F3Fa" border="0" cellpadding="0" cellspacing="0" width="1050">
|
| 102 |
<tr bgcolor="#d0d3F0" height="20">
|
| 103 |
<td class="title" width="4%"></td>
|
| 104 |
<td class="title" width="15%">用户ID</td>
|
| 105 |
<td class="title" width="20%">昵称</td>
|
| 106 |
<td class="title" width="12%">等级</td>
|
| 107 |
<td class="title" width="18%">最后登陆时间</td>
|
| 108 |
<td class="title" width="27%"></td>
|
| 109 |
<td class="title" width="4%"></td>
|
| 110 |
</tr>
|
| 111 |
<?php
|
| 112 |
foreach ($result_set["data"]["users"] as $user)
|
| 113 |
{
|
| 114 |
?>
|
| 115 |
<tr height="25">
|
| 116 |
<td class="dark">
|
| 117 |
<?php
|
| 118 |
if ($user["gender_pub"])
|
| 119 |
{
|
| 120 |
if ($user["gender"] == 'M')
|
| 121 |
{
|
| 122 |
echo ("<font color=blue>♂</font>");
|
| 123 |
}
|
| 124 |
else
|
| 125 |
{
|
| 126 |
echo ("<font color=red>♀</font>");
|
| 127 |
}
|
| 128 |
}
|
| 129 |
else
|
| 130 |
{
|
| 131 |
echo ("<font color=green>?</font>");
|
| 132 |
}
|
| 133 |
?>
|
| 134 |
</td>
|
| 135 |
<td class="username">
|
| 136 |
<a class="s2" href="show_profile.php?uid=<?= $user["uid"]; ?>" target=_blank><?= $user["username"]; ?></a>
|
| 137 |
</td>
|
| 138 |
<td class="dark">
|
| 139 |
<?= $user["nickname"]; ?>
|
| 140 |
</td>
|
| 141 |
<td class="level">
|
| 142 |
<?= user_level($user["exp"]); ?>
|
| 143 |
</td>
|
| 144 |
<td class="login_dt">
|
| 145 |
<?= $user["last_login_dt"]->format("Y-m-d H:i:s"); ?>
|
| 146 |
</td>
|
| 147 |
<td class="level">
|
| 148 |
<?php
|
| 149 |
if ($_SESSION["BBS_priv"]->checkpriv(0, S_MSG))
|
| 150 |
{
|
| 151 |
?>
|
| 152 |
<a class="s2" href="read_msg.php?sent=1&uid=<?= $user["uid"]; ?>" target=_blank>发送消息</a>
|
| 153 |
<?php
|
| 154 |
}
|
| 155 |
?>
|
| 156 |
</td>
|
| 157 |
<td align="center">
|
| 158 |
</td>
|
| 159 |
</tr>
|
| 160 |
<?php
|
| 161 |
}
|
| 162 |
?>
|
| 163 |
</table>
|
| 164 |
<table cols="3" border="0" cellpadding="5" cellspacing="0" width="1050">
|
| 165 |
<tr bgcolor="#d0d3F0" height="10">
|
| 166 |
<td colspan="3" >
|
| 167 |
</td>
|
| 168 |
</tr>
|
| 169 |
<tr height="10">
|
| 170 |
<td colspan="3" >
|
| 171 |
</td>
|
| 172 |
</tr>
|
| 173 |
<tr>
|
| 174 |
<form action="search_user.php" method="get" id="change_page" name="change_page">
|
| 175 |
<td width="30%" style="color: #909090">
|
| 176 |
每页<select size="1" id="rpp" name="rpp" onchange="ch_rpp();">
|
| 177 |
<?php
|
| 178 |
foreach ($BBS_list_rpp_options as $v)
|
| 179 |
{
|
| 180 |
echo ("<option value=\"$v\"" . ($v == $result_set["data"]["rpp"] ? " selected" : "") . ">$v</option>");
|
| 181 |
}
|
| 182 |
?>
|
| 183 |
</select>人
|
| 184 |
<?php
|
| 185 |
if ($result_set["data"]["page"] > 1)
|
| 186 |
{
|
| 187 |
?>
|
| 188 |
<a class="s8" title="首页" href="" onclick="return ch_page(1);">|◀</a>
|
| 189 |
<a class="s8" title="上一页" href="" onclick="return ch_page(<?= ($result_set["data"]["page"] - 1); ?>);">◀</a>
|
| 190 |
<?php
|
| 191 |
}
|
| 192 |
else
|
| 193 |
{
|
| 194 |
?>
|
| 195 |
|◀ ◀
|
| 196 |
<?php
|
| 197 |
}
|
| 198 |
?>
|
| 199 |
第<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"])
|
| 202 |
{
|
| 203 |
?>
|
| 204 |
<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(<?= ($result_set["data"]["page_total"]); ?>);">▶|</a>
|
| 206 |
<?php
|
| 207 |
}
|
| 208 |
else
|
| 209 |
{
|
| 210 |
?>
|
| 211 |
▶ ▶|
|
| 212 |
<?php
|
| 213 |
}
|
| 214 |
?>
|
| 215 |
</td>
|
| 216 |
<td width="50%">
|
| 217 |
<select name="type">
|
| 218 |
<option value="0" <?php if ($result_set["data"]["type"] == 0) echo "selected"; ?> >按用户名</option>
|
| 219 |
<option value="1" <?php if ($result_set["data"]["type"] == 1) echo "selected"; ?> >按昵称</option>
|
| 220 |
</select>
|
| 221 |
<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" <?= ($result_set["data"]["online"] ? "checked" : "");?>><font color=#909090>在线</font>
|
| 223 |
<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>
|
| 225 |
</td>
|
| 226 |
<td width="10%">
|
| 227 |
</td>
|
| 228 |
</form>
|
| 229 |
</tr>
|
| 230 |
</table>
|
| 231 |
</center>
|
| 232 |
<?php
|
| 233 |
include "./foot.inc.php";
|
| 234 |
?>
|
| 235 |
</body>
|
| 236 |
</html>
|