📄 dvtoplist.js
字号:
function dvbbs_toplist(taction,ordername,usernum,bbsnum,select1,select2,select3,select7,select8){
if (taction==1)
{
document.write ('<table cellpadding=6 cellspacing=1 align=center class=tableborder1>');
document.write ('<form method=POST action=toplist.asp>');
document.write ('<tr>');
document.write ('<td colspan=5 valign=top width=350 class=tabletitle2> >> <B>'+ordername+'</B> <<<BR><BR>');
document.write (' 总注册用户数: '+usernum+' 人 发贴总数: '+bbsnum+' 篇</td>');
document.write ('<td colspan=6 align=right class=tabletitle2>');
document.write ('<select name=orders onchange=\'javascript:submit()\'>');
document.write ('<option value=1 '+select1+'>发贴总数Top'+Dvbbs.Forum_Setting[68]+'</option>');
document.write ('<option value=2 '+select2+'>最新注册用户</option>');
document.write ('<option value=3 '+select3+'>'+Dvbbs.Forum_Setting[68]+'大富翁</option>');
document.write ('<option value=7 '+select7+'>所有用户列表</option>');
document.write ('<option value=8 '+select8+'>管理团队</option>');
document.write ('</select>');
document.write ('</td></tr></form>');
document.write ('<tr>');
document.write ('<th>用户名</th>');
document.write ('<th>Email</th>');
document.write ('<th>OICQ</th>');
document.write ('<th>主页</th>');
document.write ('<th>短消息</th>');
document.write ('<th>注册时间</th>');
document.write ('<th>等级状态</th>');
document.write ('<th>发贴总数</th>');
document.write ('<th>财产</th></tr>');
}else{
document.write ('</table>');
}
}
function dvbbs_toplist_loop(userid,username,useremail,oicq,homepage,addDate,userclass,article,wealth){
document.write ('<tr bgcolor='+Dvbbs.Forum_Body[4]+'>');
document.write ('<td class=tablebody1> <a href=dispuser.asp?id='+userid+' target=_blank>'+username+'</a></td>');
document.write ('<td align=center class=tablebody2><a href=mailto:'+useremail+'><img border=0 src='+Dvbbs.Forum_Info[7]+Dvbbs.Forum_TopicPic[10]+'></a></td>');
document.write ('<td align=center class=tablebody1>');
if (oicq!='')
{
document.write ('<a href=http://search.tencent.com/cgi-bin/friend/user_show_info?ln='+oicq+' target=_blank><img src='+Dvbbs.Forum_Info[7]+Dvbbs.Forum_TopicPic[11]+' alt=\'查看 OICQ:'+oicq+' 的资料\' border=0 ></a>');
}
else{
document.write ('没有');
}
document.write ('</td>');
document.write ('<td align=center class=tablebody2>');
if (homepage!='')
{
document.write ('<a href='+homepage+' target=_blank><img border=0 src='+Dvbbs.Forum_Info[7]+Dvbbs.Forum_TopicPic[14]+'></a>');
}
else{
document.write ('没有');
}
document.write ('</td>');
document.write ('<td align=center class=tablebody1><a href=javascript:openScript(\'messanger.asp?action=new&touser='+username+'\',500,400)><img src='+Dvbbs.Forum_Info[7]+Dvbbs.Forum_TopicPic[7]+' border=0></a></td>');
document.write ('<td align=center class=tablebody2>'+addDate+'</td>');
document.write ('<td align=center class=tablebody1> '+userclass+'<br>');
document.write ('</td>');
document.write ('<td align=center class=tablebody2>'+article+'</td>');
document.write ('<td align=center class=tablebody1>'+wealth+'</td>');
document.write ('</tr>');
}
function dvbbs_toplist_page(currentpage,Pcount,totalrec,orders){
document.write ('<table border=0 cellpadding=0 cellspacing=3 width="'+Dvbbs.Forum_Body[12]+'" align=center>');
document.write ('<tr><td valign=middle nowrap>');
document.write ('页次:<b>'+currentpage+'</b>/<b>'+Pcount+'</b>页');
document.write (' ');
document.write ('每页<b>'+Dvbbs.Forum_Setting[11]+'</b> 总数<b>'+totalrec+'</b></font></td>');
document.write ('<td valign=middle nowrap><div align=right><p>分页:');
if (currentpage > 4)
{
document.write ('<a href="?page=1&orders='+orders+'">[1]</a> ...');
}
var endpage;
if (Pcount>currentpage+3)
{
endpage=currentpage+3;
}
else{
endpage=Pcount;
}
for (i=currentpage-3;i<endpage+1 ;i++ )
{
if (i>0)
{
if (i>currentpage || i<currentpage)
{
document.write (' <a href="?page='+i+'&orders='+orders+'">['+i+']</a>');
}else{
document.write (' <font color='+Dvbbs.Forum_Body[8]+'>['+i+']</font>');
}
}
}
if (currentpage+3 < Pcount)
{
document.write ('... <a href="?page='+Pcount+'&orders='+orders+'">['+Pcount+']</a>');
}
document.write ('</p></div></font></td></tr></table>');
}
function dvbbs_toplist_emp(){
document.write ('<tr><td colspan=9 class=tablebody1> 还没有任何用户数据。</font></td></tr>');
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -