dvelist.js

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

JS
375 行
字号
		document.write (topiclist.DateAndTime[i]);
		document.write ('</TD></tr>');
	}
	
	document.write ('</table>');
	//分页
	Dvbbs.Board_Setting[26]=(Dvbbs.Board_Setting[26]*1)
	Dvbbs.totalrec=(Dvbbs.totalrec*1)
	if(Dvbbs.totalrec%Dvbbs.Board_Setting[26]==0) 
	{
		Dvbbs.n=Dvbbs.totalrec/Dvbbs.Board_Setting[26];
	}
	else
	{
		Dvbbs.n=(Dvbbs.totalrec-Dvbbs.totalrec%Dvbbs.Board_Setting[26])/Dvbbs.Board_Setting[26]+1;
	}
	document.write ('<table border="0" cellpadding="0" cellspacing="3" width="'+ Dvbbs.Forum_Body[12]+'" align="center" >');
	document.write ('<form method=post action="list.asp?boardid='+Dvbbs.BoardID+'&action='+Dvbbs.Myaction+'">');
	document.write ('<tr><td valign="middle"><input type=hidden name=selTimeLimit value="">');
	document.write ('页次:<b>'+Dvbbs.currentpage+' </b>/<b> '+Dvbbs.n+ '</b>页 每页<b>'+Dvbbs.Board_Setting[26]+' </b> 总数<b>   '+Dvbbs.totalrec+' </b></td>');
	document.write ('<td valign="middle"><div align="right" >分页:');
	if (Dvbbs.currentpage==1)
	{
		document.write ('<font face=webdings color="'+Dvbbs.Forum_Body[8]+'">9</font>');
	}
	else
	{
		document.write ('<a href="?boardid='+Dvbbs.BoardID+'&page=1&selTimeLimit=" title="首页"><font face=webdings>9</font></a>');
	}
	if (Dvbbs.p*10 > 0)
	{
		document.write ('<a href="?boardid='+Dvbbs.BoardID+'&page='+Dvbbs.p*10+'&selTimeLimit=" title="上十页"><font face=webdings>7</font></a> ');
	}
	document.write ('<b>');
	for (i=Dvbbs.p*10+1;i<Dvbbs.p*10+11;i++)
	{
		if (i==Dvbbs.n) break;
		if (i==Dvbbs.currentpage)
		{
			document.write (' <font color="'+Dvbbs.Forum_Body[8]+'">'+i+'</font> ');
		}
		else
		{
			document.write (' <a href="?boardid='+Dvbbs.BoardID+'&page='+i+'&selTimeLimit=">'+i+'</a> ');
		}
	}
	document.write ('</b>');
	if (i<Dvbbs.n)
	{
		document.write ('<a href="?boardid='+Dvbbs.BoardID+'&page='+i+'&selTimeLimit=" title="下十页"><font face=webdings>8</font></a>   ');
	}
	if (Dvbbs.currentpage==Dvbbs.n)
	{
		document.write ('<Font face=webdings color="'+Dvbbs.Forum_Body[8]+'">:</font>');
	}
	else
	{
		document.write ('<a href="?boardid='+Dvbbs.BoardID+'&page='+Dvbbs.n+'&selTimeLimit=" title="尾页"><font face=webdings>:</font></a>  ');
	}
	document.write ('转到:<input type=text name=Page size=3 maxlength=10  value="'+Dvbbs.currentpage+'"><input type=submit value=Go name=submit>');
	document.write ('</div></td></tr>');
	document.write ('</form></table>');
	//搜索和快速跳转
	document.write ('<table border="0" cellpadding="0" cellspacing="3" width="'+Dvbbs.Forum_Body[12]+'" align="center">');
	document.write ('<tr>');
	document.write ('<FORM METHOD=POST ACTION="queryresult.asp?boardid='+Dvbbs.BoardID+'&sType=2&SearchDate=30&pSearch=1">');
	document.write ('<td width="50%" valign=middle nowrap height="40">');
	document.write ('快速搜索:<input type=text name="keyword">&nbsp;<input type=submit name=submit value="搜索">');
	document.write ('</td>');
	document.write ('</FORM>');
	document.write ('<td valign=middle nowrap width="50%"><div align="right">');
	document.write ('&nbsp;&nbsp;<select onchange="if(this.options[this.selectedIndex].value!=\'\'){location=this.options[this.selectedIndex].value;}">');
	document.write ('<option selected>跳转论坛至...</option>');
	for (ii=0;ii<Dvbbs.Alllist.length;ii++)
	{
		document.write ('<option value="list.asp?boardid='+Dvbbs.Alllist[ii].cid+'" ');
		if (Dvbbs.Alllist[ii].cid==Dvbbs.BoardID)
		{
			document.write ('selected')
		}
		
		document.write (' >╋'+Dvbbs.Alllist[ii].bbstype+'</option>');
		
		for (kk=0;kk<Dvbbs.Alllist[ii].boardid.length;kk++)
		{
			document.write ('<option value="list.asp?boardid='+Dvbbs.Alllist[ii].boardid[kk]+'" ');
			if (Dvbbs.Alllist[ii].boardid[kk]==Dvbbs.BoardID)
			{
				document.write ('selected');
			}
			Dvbbs.Alllist[ii].Depth[kk]=(Dvbbs.Alllist[ii].Depth[kk]*1)
			if ((Dvbbs.Alllist[ii].Depth[kk]*1)==1)
			{
				document.write (' >&nbsp;&nbsp;├'+Dvbbs.Alllist[ii].BoardType[kk]+'</option>');
			}
			else
			{
				document.write (' >');
				for (ppp=1;ppp<Dvbbs.Alllist[ii].Depth[kk];ppp++)
				{
					document.write ('&nbsp;&nbsp;│');				
				}
				document.write ('&nbsp;&nbsp;├'+Dvbbs.Alllist[ii].BoardType[kk]+'</option>');
				
			}	
		}
		
	}
	document.write ('</select>');
	document.write ('<div></td></tr></table>');
	document.write ('<BR>');
	//论坛图例
	document.write ('<table cellspacing="1" cellpadding="3" width="100%" class="tableborder1" align="center"><tr>');
	document.write ('<th width="80%" align="left"> -=> '+Dvbbs.Forum_Info[0]+'图例</th>');
	document.write ('<th noWrap width="20%" align="right">所有时间均为 -'+ Dvbbs.Forum_Info[9]+' &nbsp;</th>');
	document.write ('</tr>');
	document.write ('<tr><td colspan="2" class="tablebody1">');
	document.write ('<table cellspacing="4" cellpadding="0" width="92%" border="0" align="center">');
	document.write ('<tr><td><img src="'+Dvbbs.Forum_Info[7]+Dvbbs.Forum_statePic[0]+'"> 开放的主题</td>');
	document.write ('<td><img src="'+Dvbbs.Forum_Info[7]+Dvbbs.Forum_statePic[1]+'"> 回复超过10贴</td>');
	document.write ('<td><img src="'+Dvbbs.Forum_Info[7]+Dvbbs.Forum_statePic[2]+'"> 锁定的主题</td>');
	document.write ('<td><img src="'+Dvbbs.Forum_Info[7]+Dvbbs.Forum_statePic[3]+'"> 固顶的主题 </td>');
	document.write ('<td><img src="'+Dvbbs.Forum_Info[7]+Dvbbs.Forum_statePic[9]+'"> 总固顶的主题 </td>');
	document.write ('<td> <img src="'+Dvbbs.Forum_Info[7]+Dvbbs.Forum_statePic[4]+'"> 精华帖子 </td>');
	document.write ('<td> <img src="'+Dvbbs.Forum_Info[7]+Dvbbs.Forum_statePic[12]+'"> 投票帖子 </td>');
	document.write ('</tr>');
	document.write ('</table>');
	document.write ('</td></tr></table>');	
	if (Dvbbs.Forum_Setting[15]=='1'||Dvbbs.Forum_Setting[14]=='1')
	{
		ShowOnline();
		
	}
}

function loadThreadFollow(t_id,b_id){
	var targetImg =eval("document.all.followImg" + t_id);
	var targetDiv =eval("document.all.follow" + t_id);
	if (targetImg.src.indexOf("nofollow")!=-1){return false;}
	
	if ("object"==typeof(targetImg)){
		if (targetDiv.style.display!='block'){
			targetDiv.style.display="block";
			targetImg.src="pic/minus.gif";
			if (targetImg.loaded=="no"){
		document.frames["hiddenframe"].location.replace("loadtree1.asp?boardid="+b_id+"&rootid="+t_id);
				
			}
		}else{
			targetDiv.style.display="none";
			targetImg.src="pic/plus.gif";
		}
	}
}

//分解最后发贴字串的函数
function showlastpost(lastpoststr,thisboardid)
{
	if (lastpoststr=='$$$$'||lastpoststr=='')
	{
		return('主题:无<br>作者:无<br>日期:无')
	}
	else
	{
		var str='';
		lastpoststr=lastpoststr.split("$");
		str+='主题:';
		str+='<a href="Dispbbs.asp?boardid='+thisboardid+'&ID='+lastpoststr[6]+'&replyID='+lastpoststr[1]+'&skin=1" title="转到'+lastpoststr[3]+'">';
		str+=lastpoststr[3].substring(0,10);
		str+='</a>';
		str+='<br>作者:';
		str+='<a href="dispuser.asp?id='+lastpoststr[5]+'" target="_blank">'+lastpoststr[0] +'</a>';
		str+='<br>日期:';
		str+=lastpoststr[2] +'&nbsp;<a href="dispbbs.asp?Boardid='+thisboardid+'&ID='+ lastpoststr[6] +'&replyID=' + lastpoststr[1] +'&skin=1"><IMG border=0 src="'+Dvbbs.Forum_Info[7]+Dvbbs.Forum_statePic[5]+'" title="转到:'+lastpoststr[3]+'"></a>';
		return(str)
	}

}
function CheckAll(form)  
  {  
  for (var i=0;i<form.elements.length;i++)  
    {  
    var e = form.elements[i];  
    if (e.name != 'chkall')  
       e.checked = form.chkall.checked;  
    }  
  }  

⌨️ 快捷键说明

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