📄 userlist.php
字号:
<?
/* BMForum Plus! Bulletin Board Systems Version : Plus! This is a freeware, but don't change the copyright information. A SourceForge Project - GNU Licence project. Web Site: http://www.bmforum.com Copyright (C) Bluview Technology*/
require("datafile/config.php");
require("getskin.php");
$usergroupfile="datafile/usergroup.php";
if (file_exists($usergroupfile)) {
$usergroupdata=file($usergroupfile);
}
$user_list_file='datafile/userlist.php';
if ($member_list==0) {
include("header.php");
navi_bar($gl[139],$gl[138],'','no');
msg_box($gl[138],$gl[277]);
include("footer.php");
exit;
}
require("header.php");
navi_bar($gl[139],$gl[138],'','no');
if(!empty($jumppage)) $gotpage=$jumppage;
else $gotpage=$page;
?>
<br>
<table width=<?=$tablewidth?>% border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="<?=$bordercolor?>">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="2">
<tr align=center><td colspan=7 height="24" bgcolor=<?=$tile_back?> background="<?=$tile_back?>" class=title><?=$gl[138]?></td></tr>
<tr bgcolor="<?=$titlecolor?>" background='<?=$tile_back?>' >
<td width="15%" align="center"><?=$gl[140]?></td>
<td width="14%" align="center"><?=$gl[130]?></td>
<td width="17%" align="center"><?=$gl[133]?></td>
<td width="17%" align="center"><?=$gl[134]?></td>
</tr>
<?php
$fileopenit=@file($user_list_file);
$fileopenitx=@file($user_list_file);
$fcount=count($fileopenit);
if($type==""){
$pageshow=$page;
if (empty($page)) {$page=0; $pageshow=1;}
if(!empty($jumppage)){ $page=$jumppage-1; $pageshow=$page+1; }
$page=$page*$userperpage;
$n=floor($fcount/$userperpage)+1;
$count=$page+$userperpage;
}else{
$fileopenitx="";
for($i=0; $i<$fcount; $i++) {
$user_infoshow=explode("|",$fileopenit[$i]);
if($user_infoshow[1]==$type){
$fileopenitx[]=$fileopenit[$i];
}
}
$fcount=count($fileopenitx);
$pageshow=$page;
if (empty($page)) {$page=0; $pageshow=1;}
if(!empty($jumppage)){ $page=$jumppage-1; $pageshow=$page+1; }
$page=$page*$userperpage;
$n=floor($fcount/$userperpage)+1;
$count=$page+$userperpage;
}
for($i=$page; $i<$count; $i++) {
$user_infoshow=explode("|",$fileopenitx[$i]);
$user_infoshow[0]=str_replace("<?exit;?>","",$user_infoshow[0]);
if($user_infoshow[0]!=""){
$user_infoshowx=explode("_",$user_infoshow[2]);
$regdate=getfulldate($user_infoshowx[0]);
$dsinfo=explode("|",$usergroupdata[$user_infoshow[1]]);
$uname=$dsinfo[0];
list(,,,,,,,,,,,,$postamount)=get_user_info($user_infoshow[0]);
echo "<tr bgcolor=$forumcolorone>";
echo "<td align=center>$uname</td>";
echo "<td align=center bgcolor=$forumcolortwo><a href='profile.php?job=show&target=".urlencode($user_infoshow[0])."'>$user_infoshow[0]</a></td>";
echo "<td align=center>$regdate</td>";
echo "<td align=center bgcolor=$forumcolortwo>$postamount</td></tr>";
}
}
?>
<tr>
<td bgcolor=<?=$tile_back?> background='<?=$tile_back?>' align=center colspan=6><input type="button" value="<?=$gl[14]?>" onClick="location.href='index.php'" >
<input type="button" value="<?=$gl[15]?>" onClick="javascript:history.back(1)" ></td>
</tr>
</table>
</td>
</tr>
</table>
<!---Pages list begin-->
<br>
<TABLE width=<?=$tablewidth?>% align=center cellspacing=0 cellpadding=0>
<TR>
<TD ><font face="verdana" bgcolor="#EEEEEE"><a href=userlist.php?jumppage=<? echo $pageshow-1;?>&type=<?=$type?>&list=<?=$list?>><?=$gl[142]?></a> <a href=userlist.php?jumppage=<? echo $pageshow+1;?>&type=<?=$type?>&list=<?=$list?>><?=$gl[143]?></a> <br>
<?
if(empty($gotpage)) $gotpage=1;
$nextpage=$gotpage+1;
$previouspage=$gotpage-1;
$maxpagenum=$gotpage+4;
$minpagenum=$gotpage-4;
if ($gotpage>=2) echo "<a href=\"userlist.php?type=$type&list=$list&jumppage=$previouspage\"><b><</b></a> ";
else echo "<b><</b> ";
if ($gotpage<=$n) echo "<a href=\"userlist.php?type=$type&list=$list&jumppage=$nextpage\"><b>></b></a> ";
else echo "<b>></b> ";
echo "<a href=\"userlist.php?type=$type&list=$list&jumppage=\"><b><<</b></a> <a href=\"userlist.php?type=$type&list=$list&jumppage=$n\"><b>>></b></a> ";
for ($i=$minpagenum; $i<=$maxpagenum; $i++) {
if ($i>0 && $i<=$n) {
if($i==$gotpage){
echo " <b>$i</b> ";
}else{
echo " <a href=\"userlist.php?type=$type&list=$list&jumppage=$i\"><b>$i</b></a> ";
}
}
}
?>
<form name=jump action=userlist.php?type=<?=$type?>&list=<?=$list?> method=post>
<?=$gl[145]?> <b><?=$pageshow?> </b><?=$gl[146]?> <?=$gl[147]?> <b><?=$n?></b> <?=$gl[146]?> <?=$gl[149]?><input type='text' name='jumppage' size=4 maxlength=4 style='background-color:#FFFFFF; color:#8888AA; border: 1 double #B4B4B4' ><?=$gl[146]?>
<input type='submit' value='<?=$gl[137]?>' style='color: #000000;height:18px; background-color: #f3f3f3; border-style: solid; border-width: 1' name='submit'> <b>[ <?=$userperpage?><?=$gl[153]?>/<?=$gl[146]?> ]</b>
</form></td><td align=right>
<form action="userlist.php" method=post>
<?=$gl[436]?><select name='type'><option value=''><?=$gl[437]?></option><?
$count=count($usergroupdata);
for($i=0;$i<$count;$i++){
$deinfo=explode("|",$usergroupdata[$i]);
echo "<option value='$i'>$deinfo[0]</option>";
}
?></select>
<input type='submit' value='<?=$gl[137]?>' style='color: #000000;height:18px; background-color: #f3f3f3; border-style: solid; border-width: 1' name='submit'>
</form>
</font></TD>
</TR>
</TABLE>
<!------Pages list end--->
<br>
<? require("footer.php");
exit;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -