dvboardstat.js

来自「胜天购物销售系统前台购买特征: 时代购物系统前台购物车部分界面友好」· JavaScript 代码 · 共 195 行

JS
195 行
字号
function dvbbs_boardstat_main(stats,taction){
if (taction==1)
{
	document.write ('<table cellpadding=5 cellspacing=1 class=tableborder1 align=center>');
	document.write ('<tr>');
	document.write ('<th width="20%">论坛名称</th>');
	document.write ('<th width="70%">图形比例</th>');
	document.write ('<th width="10%">'+stats+'</th>');
	document.write ('</tr>');
}else
{
	document.write ('</table>');
}
}

function dvbbs_boardstat_main_loop(boardid,boardtype,g,wid,sinfo){
document.write ('<tr>');
document.write ('<td class=tablebody2 align=center><a href="list.asp?boardid='+boardid+'">'+boardtype+'</a></td>');
document.write ('<td');
if (Dvbbs.BoardID==boardid)
{
	document.write (' class=tablebody2');
}
else{
	document.write (' class=tablebody1');
}
document.write ('><img src="'+Dvbbs.Forum_Info[7]+'bar'+g+'.gif" width="'+wid+'" height=8></td>');
document.write ('<td class=tablebody2 align=center>'+sinfo+'</td>');
document.write ('</tr>');
}

function dvbbs_boardstat_stat_var(reaction,allonline,online,guest,boardtype,todaynums,bbsnums,topicnums){
document.write ('<table cellpadding=5 cellspacing=1  class=tableborder1 align=center>');
document.write ('<tr>');
document.write ('<th id=TableTitleLink width="16%">');
document.write ('<a href="?boardid='+Dvbbs.BoardID+'"><b>今日帖数图例</b></a>');
document.write ('</th>');
document.write ('<th id=TableTitleLink width="16%">');
document.write ('<a href="?action=lasttopicnum&boardid='+Dvbbs.BoardID+'"><b>主题数图例</b></a>');
document.write ('</th>');
document.write ('<th id=TableTitleLink width="16%">');
document.write ('<a href="?action=lastbbsnum&boardid='+Dvbbs.BoardID+'"><b>总帖数图例</b></a>');
document.write ('</th>');
document.write ('<th id=TableTitleLink width="16%">');
document.write ('<a href="?reaction=online&boardid='+Dvbbs.BoardID+'"><b>在线图例</b></a>');
document.write ('</th>');
document.write ('<th id=TableTitleLink width="16%">');
document.write ('<a href="?reaction=onlineinfo&boardid='+Dvbbs.BoardID+'"><b>在线情况</b></a>');
document.write ('</th>');
document.write ('<th id=TableTitleLink width="17%">');
document.write ('<a href="?reaction=onlineUserinfo&boardid='+Dvbbs.BoardID+'"><b>用户组在线图例</b></a>');
document.write ('</th>');
document.write ('</tr>');
document.write ('<tr>');
document.write ('<td  align=center colspan=6 class=tablebody1>');
if (reaction!='')
{
	if (Dvbbs.BoardID>0)
	{
		document.write ('当前论坛共有<B>'+allonline+'</B>位用户在线,其中'+boardtype+'有<B>'+online+'</B>位在线用户与<B>'+guest+'</B>位客人');
	}
	else{
		document.write ('当前论坛共有<B>'+allonline+'</B>位用户在线');
	}
}
else
{
	document.write ('目前<b>'+boardtype+'</b>  今日帖数:'+todaynums+' 帖子总数: '+bbsnums+' 主题总数:'+topicnums+'');
}
document.write ('</td>');
document.write ('</tr>');
document.write ('</table>');
document.write ('<BR>');
}

function dvbbs_boardstat_onlinemain(taction){
if (taction==1)
{
document.write ('<table cellpadding=6 cellspacing=1 align=center class=tableborder1>');
document.write ('<tr>');
document.write ('<th width=10% >用户名</th>');
document.write ('<th width=35% >当前位置</th>');
document.write ('<th width=20% >用户信息</th>');
document.write ('<th width=18% >来源鉴定</th>');
document.write ('<th width=22% >活动时间</th>');
document.write ('</tr>');
}
else{
document.write ('</table>');
}
}

function dvbbs_boardstat_onlinemain_loop(onlinename,stats,browser,ipinfo,timeinfo){
document.write ('<tr>');
document.write ('<td align=center class=tablebody1><a href=dispuser.asp?name='+dvhtmlencode(onlinename)+' target=_blank>'+dvhtmlencode(onlinename)+'</a></td>');
document.write ('<td align=center class=tablebody2>'+stats+'</td>');
document.write ('<td align=center class=tablebody1>'+browser+'</td>');
document.write ('<td align=center class=tablebody2>');
document.write (ipinfo);
document.write ('</td><td align=center class=tablebody1>'+timeinfo+'</td></td>');
document.write ('</tr>');
}

function dvbbs_boardstat_onlinemain_page(currentpage,Pcount,totalrec,reaction){
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 ('每页<b>'+Dvbbs.Forum_Setting[11]+'</b> 共有<b>'+totalrec+'</b>条</td>');
document.write ('<td valign=middle nowrap><div align=right><p>分页:');
var endpage;
Pcount=(Pcount*1);
currentpage=(currentpage*1);
if (currentpage>4)
{
	document.write ('<a href="?page=1&boardid=Dvbbs.BoardID&reaction='+reaction+'>[1]</a> ...');
}
if (Pcount>(currentpage+3))
{
	endpage=(currentpage+3);
}else{
	endpage=Pcount;
}

for (i=(currentpage-3);i<(endpage+1);i++ )
{
	if (i>0)
	{
		if (i==currentpage)
		{
			document.write (' <font color='+Dvbbs.Forum_Body[8]+'>['+i+']</font>');
		}
		else{
			document.write (' <a href="?page='+i+'&boardid='+Dvbbs.BoardID+'&reaction='+reaction+'">['+i+']</a>')
		}
	}
}
if ((currentpage+3) < Pcount)
{
	document.write ('... <a href="?page='+Pcount+'&boardid='+Dvbbs.BoardID+'&reaction='+reaction+'">['+Pcount+']</a>');
}
document.write ('</font></td></tr>');
document.write ('</table>');

}

function dvbbs_boardstat_onlineinfo(percentonline,myindexonline,taction){
if (taction==1)
{
document.write ('<table cellpadding=6 cellspacing=1 align=center class=tableborder1>');
document.write ('<tr>');
document.write ('<th width="20%">论坛名称</th>');
document.write ('<th width="70%">图形比例</th>');
document.write ('<th width="10%">在线人数</th>');
document.write ('</tr>');
document.write ('<tr>');
document.write ('<td class=tablebody2 align=center>论坛其它位置</td>');
document.write ('<td class=tablebody1><img src='+Dvbbs.Forum_Info[7]+'bar10.gif width="'+percentonline+'" height=8></td>');
document.write ('<td class=tablebody2 align=center>'+myindexonline+'</td>');
document.write ('</tr>');
}
else{
document.write ('</table>');
}
}

function dvbbs_boardstat_onlineinfo_loop(bid,boardtype,g,percentonline,onlineNum){
document.write ('<tr>');
document.write ('<td class=tablebody2 align=center><a href="list.asp?boardid='+bid+'">'+boardtype+'</a></td>');
document.write ('<td class=tablebody1><img src="'+Dvbbs.Forum_Info[7]+'bar'+g+'.gif"" width="'+percentonline+'" height=8></td>');
document.write ('<td class=tablebody2 align=center>'+onlineNum+'</td>');
document.write ('</tr>');
}

function dvbbs_boardstat_useronline(taction){
if (taction==1)
{
document.write ('<table cellpadding=6 cellspacing=1 align=center class=tableborder1>');
document.write ('<tr>');
document.write ('<th width="20%">用户组别</th>');
document.write ('<th width="70%">图形比例</th>');
document.write ('<th width="10%" >在线人数</th>');
document.write ('</tr>');
}
else{
document.write ('</table>');
}
}

function dvbbs_boardstat_useronline_loop(title,g,onlineNum,percentonline){
document.write ('<tr>');
document.write ('<td class=tablebody2 align=center>'+title+'</td>');
document.write ('<td class=tablebody1><img src="'+Dvbbs.Forum_Info[7]+'bar'+g+'.gif"" width="'+percentonline+'" height=8></td>');
document.write ('<td class=tablebody2 align=center>'+onlineNum+'</td>');
document.write ('</tr>');
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?