⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dvhotlist.js

📁 胜天购物销售系统前台购买特征: 时代购物系统前台购物车部分界面友好
💻 JS
字号:
function dvbbs_hotlist(taction,stype,totalrec,ordername){
if (taction==1)
{
document.write ('	<form action="hotlist.asp" method=get><table cellpadding=0 cellspacing=0 border=0 width="'+Dvbbs.Forum_Body[12]+'" align=center>');
document.write ('	<tr><td>目前共有<font color='+Dvbbs.Forum_Body[8]+'>'+totalrec+'</font>个'+ordername+'');
document.write ('	</td>');
document.write ('	<td width=200 align=right>');
document.write ('	<input type=hidden name=boardid value="'+Dvbbs.BoardID+'">');
document.write ('	<input type=hidden name=stype value="'+stype+'">');
document.write ('	<select name=SearchDate onchange=\'javascript:submit()\'>');
document.write ('	<option value=all>查看所有的主题');
document.write ('	<option value=1>查看一天内的主题');
document.write ('	<option value=2>查看两天内的主题');
document.write ('	<option value=7>查看一星期内的主题');
document.write ('	<option value=15>查看半个月内的主题');
document.write ('	<option value=30>查看一个月内的主题');
document.write ('	<option value=60>查看两个月内的主题');
document.write ('	<option value=180>查看半年内的主题');
document.write ('	</select>');
document.write ('	</td></tr>');
document.write ('	</table></form>');
document.write ('<TABLE cellPadding=3 cellSpacing=1 class=tableborder1 align=center>');
document.write ('<TR valign=middle>');
document.write ('<Th height=25 width=32>状态</Th>');
document.write ('<Th width=*>主 题</Th>');
document.write ('<Th width=80>作 者</Th>');
document.write ('<Th width=64>回复/人气</Th>');
document.write ('<Th width=195>最后更新 | 回复人</Th>');
document.write ('</TR>');
}else{
document.write ('</table>');
}
}

function dvbbs_hotlist_loop(locktopic,boardID,topicid,Expression,title,postuserid,postusername,isvote,votetotal,child,hits,LastRootID,LastID,lasttime,LastUserID,LastUser){
document.write ('<TR><TD align=middle class=tablebody2 width=32>');
if (locktopic==1)
{
	document.write ('<img src='+Dvbbs.Forum_Info[7]+Dvbbs.Forum_statePic[2]+' alt="本主题已锁定">');
}
else{
	document.write ('<img src='+Dvbbs.Forum_Info[7]+Dvbbs.Forum_statePic[1]+'>');
}
document.write ('</TD><TD class=tablebody1 width=*><a href="dispbbs.asp?boardID='+boardID+'&ID='+topicid+'&skin=1" target=_blank>');
document.write ('<img src='+Dvbbs.Forum_Info[8]+Expression+' border=0 alt="开新窗口浏览此主题"></a>');
document.write ('<a href="dispbbs.asp?boardID='+boardID+'&ID='+topicid+'&skin=1">'+title+'</a></TD><TD align=middle  class=tablebody2  width=80><a href="dispuser.asp?id='+postuserid+'">'+postusername+'</a></TD>');
document.write ('<TD class=tablebody1 width=64 align=center>');
if (isvote==1)
{
	document.write ('<FONT color='+Dvbbs.Forum_Body[8]+'><b>'+votetotal+'</b></font>  票');
}
else{
	document.write (''+child+'/'+hits+'');
}
document.write ('</TD>');
document.write ('<TD  class=tablebody2 width=195>&nbsp;<a href="dispbbs.asp?boardid='+boardID+'&id='+LastRootID+'&'+LastID+'" >'+lasttime+'</a>&nbsp;<font color="'+Dvbbs.Forum_Body[8]+'">|</font>&nbsp;<a href="dispuser.asp?id='+LastUserID+'" target=_blank>'+LastUser+'</a></TD></TR> ');
}

function dvbbs_hotlist_page(currentpage,Pcount,totalrec,stype,SearchDate){
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></font></td>');
document.write ('<td valign=middle nowrap><div align=right><p>分页:');

if (currentpage > 4)
{
	document.write ('<a href="?page=1&stype='+stype+'&SearchDate='+SearchDate+'&boardid='+Dvbbs.BoardID+'">[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+'&stype='+stype+'&SearchDate='+SearchDate+'&boardid='+Dvbbs.BoardID+'">['+i+']</a>');
		}
		else{
			document.write (' <font color='+Dvbbs.Forum_Body[8]+'>['+i+']</font>');
		}
	}
}
if (currentpage+3 < Pcount)
{
	document.write ('... <a href="?page='+Pcount+'&stype='+stype+'&SearchDate='+SearchDate+'&boardid='+Dvbbs.BoardID+'">['+Pcount+']</a>');
}
document.write ('</p></div></font></td></tr></table>');
}

⌨️ 快捷键说明

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