📄 dvshow.js
字号:
var TopicCount=0;
var star;
var Pcount=0;
var maxpage=0;
var filetype='';
var username='';
var tab='';
function filelist()
{
this.edit =new Array();
this.F_ID =new Array();
this.F_AnnounceID =new Array();
this.F_BoardID=new Array();
this.F_Filename=new Array();
this.F_FileType =new Array();
this.F_Type =new Array();
this.F_DownNum =new Array();
this.F_ViewNum =new Array();
this.F_Readme =new Array();
this.golist=new Array();
this.showfile=new Array();
this.fileinfo=new Array();
this.F_Username =new Array();
this.F_typename=new Array();
}
var Dvflies=new filelist();
var Toplist=new filelist();
var Toplist1=new filelist();
function show()
{
document.write ('<table cellpadding=3 cellspacing=1 align=center class=tableborder1 >');
document.write ('<tr>');
document.write ('<th height=25 align=center colspan="2">'+ Dvbbs.Stats+'</th>');
document.write ('</tr>');
document.write ('<tr>');
document.write ('<td width="180" valign="top" class=tablebody2>');
document.write ('<table cellpadding=2 cellspacing=1 class=tableborder2 style="width:200;word-break:break-all;">');
document.write ('<tr>');
document.write ('<th height=25 align=center >TOP 10 展区热门排行</th>');
document.write ('</tr>');
for (i=0;i<Toplist.F_ID.length;i++)
{
document.write ('<tr><td valign=top class=tablebody1>');
document.write ('<font face=Webdings>4</font><a href="fileshow.asp?boardid='+Toplist.F_BoardID[i]+'&id='+Toplist.F_ID[i]+'" target="_blank" title="点击浏览文件">');
document.write (Toplist.fileinfo[i].substring(0,14));
document.write ('</a></td></tr>');
}
document.write ('</table>');
document.write ('<br>');
document.write ('<table cellpadding=2 cellspacing=1 class=tableborder2 style="width:200;word-break:break-all;">');
document.write ('<tr>');
document.write ('<th height=25 align=center >TOP 10 展区最新排行</th>');
document.write ('</tr>');
for (i=0;i<Toplist1.F_ID.length;i++)
{
document.write ('<tr><td valign=top class=tablebody1>');
document.write ('<font face=Webdings>4</font><a href="fileshow.asp?boardid='+Toplist1.F_BoardID[i]+'&id='+Toplist1.F_ID[i]+'" target="_blank" title="点击浏览文件">');
document.write (Toplist1.fileinfo[i].substring(0,14));
document.write ('</a></td></tr>');
}
document.write ('</table>');
document.write ('</td><td width=* valign="top" class=tablebody1>');
document.write ('<table cellpadding=6 cellspacing=1 align=center width="100%"><form method=POST action="?" >');
document.write ('<tr><td align=center width="*" >');
if (username!='')
{
document.write ('浏览<font color="'+Dvbbs.Forum_Body[8]+'" >'+username+'</font>的个人展览');
}
document.write ('<td width="200" align="right">');
document.write ('<input type="text" name="username" size="20" value="'+username+'"><input type="submit" name="Submit" value="用户查询">');
document.write ('</td> <td width="150" align="right"> ');
document.write ('<select name=filetype onchange="javascript:submit()">');
document.write ('<option value="" >按文件分类浏览</option>');
var iupload='文件集|图片集|FLASH集|音乐集|电影集';
iupload=iupload.split("|")
for (i=0;i<iupload.length;i++)
{
document.write ('<option value="'+i+'"');
if (i==(filetype*1))
{
document.write ('selected');
}
document.write ('>'+iupload[i]+'</option>');
document.write (filetype);
}
document.write (' </select></td>');
document.write ('<td width="120" align="right"><select name=boardid onchange="javascript:submit()">');
document.write ('<option selected>选择分论坛...</option>');
for (ii=0;ii<Dvbbs.Alllist.length;ii++)
{
document.write ('<option value="'+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="'+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 (' > ├'+Dvbbs.Alllist[ii].BoardType[kk]+'</option>');
}
else
{
document.write (' >');
for (ppp=1;ppp<Dvbbs.Alllist[ii].Depth[kk];ppp++)
{
document.write (' │');
}
document.write (' ├'+Dvbbs.Alllist[ii].BoardType[kk]+'</option>');
}
}
}
document.write ('</select></td>');
document.write ('<td width=20>');
document.write ('<select name=tab onchange=\'javascript:submit()\'>');
document.write ('<option value="" >分列</option>');
document.write (' <option value="2" >2列</option>');
document.write (' <option value="3" >3列</option>');
document.write (' <option value="4" >4列</option>');
document.write ('</select>');
document.write ('</td>');
document.write ('</tr>');
document.write ('</form>');
document.write ('</table>');
document.write ('<table cellpadding=1 cellspacing=1 border=0 width=100% style="word-break:break-all;">');
document.write ('<tr>');
var kk=0
if (Dvflies.F_ID.length==0)
{
document.write ('<tr ><td height=26 class=tablebody2 align=center>');
document.write ('<font color="'+Dvbbs.Forum_Body[8]+'">所查看的文件已被删除或禁止展示!</font>');
document.write ('</td></tr >');
}
else
{
for (i=0;i<Dvflies.F_ID.length;i++)
{
document.write ('<td width="25%" height="200" align="center" class=tablebody1>');
document.write ('<table cellpadding=2 cellspacing=1 class=tableborder1 style="width:100%;height=100%;word-break:break-all;" >');
document.write ('<tr><td Width="100%" height="130" align="center" valign=top class=tablebody1>');
if (Dvbbs.FindUser)
{
document.write ('<table border=0 width=100% cellspacing=0 cellpadding=0>');
document.write ('<tr><td width=* align=left>');
if (Dvflies.edit[i]=='True')
{
document.write ('<a href=myfile.asp?action=edit&editid='+Dvflies.F_ID[i]+' title="编辑该文件" ><img src="'+Dvbbs.Forum_Info[7]+'editfile.gif" border=0 width="10" height="10"></a>');
document.write (' <a href=myfile.asp?action=fdel&delid='+Dvflies.F_ID[i]+' title="删除该文件" ><img src="'+Dvbbs.Forum_Info[7]+'delete.gif" border=0 width="10" height="10"></a>');
}
document.write ('</td><td width=20 align=right><a href=fileshow.asp?action=send&id='+Dvflies.F_ID[i]+' ><img src="'+Dvbbs.Forum_Info[7]+'newmail.gif" border=0 title="发送给朋友"></a></td></tr></table>');
}
document.write ('<br><a href="fileshow.asp?boardid='+Dvflies.F_BoardID[i]+'&id='+Dvflies.F_ID[i]+'" target="_blank" title="点击浏览文件">'+Dvflies.showfile[i]+'</a><br>');
document.write ('</td></tr><tr><td class=tablebody2 >作者: <a href=dispuser.asp?name='+Dvflies.F_Username[i]+' >'+Dvflies.F_Username[i]+'</a>');
document.write ('<br>属性: <a href=show.asp?filetype='+Dvflies.F_Type[i]+' >'+Dvflies.F_typename[i]+' [');
if (Dvflies.F_Type[i]=='0')
{
document.write ('<font color="'+Dvbbs.Forum_Body[8]+'">'+Dvflies.F_DownNum[i]+'</font>');
}
else
{
document.write ('<font color="'+Dvbbs.Forum_Body[8]+'">'+Dvflies.F_ViewNum[i]+'</font>');
}
document.write (']</a><br>说明:');
if(Dvflies.F_Readme[i]!='')
{
if(Dvflies.F_Readme[i].length>26)
{
document.write (Dvflies.F_Readme[i].substr(0,26)+'....');
}
else
{
document.write (Dvflies.F_Readme[i]);
}
}
else
{
document.write ('<font color=gray>未有记录</a>');
}
document.write ('<br>'+Dvflies.golist[i]);
document.write ('</td></tr></table></td>');
if (kk==(tab*1)-1)
{
document.write ('</tr><tr>');
kk=0
}
else
{kk++}
}
}
document.write ('</tr></table>');
document.write ('<BR><table cellpadding=0 cellspacing=3 border=0 width=100% align=center ><form method=post action=""?boardid="&request("boardid")&"&filetype="&request("filetype")&"&username="&request("username")&"&tab="&tab&" >');
document.write ('<tr><td valign=middle nowrap>展区共有<b>'+TopicCount+'</b>幅作品,每页最多展示'+maxpage+'个文件,共<b><font color=red>'+Pcount+'</font></b>页。');
document.write ('</td><td align=center>');
if (star!='1')
{
document.write ('<font face=Webdings>3</font><a href="?star='+((star*1)-1)+'&boardid='+Dvbbs.BoardID+'&filetype='+filetype+'&username='+username+'&tab='+tab+'" >上一页</A> ');
}
else
{
document.write ('<font face=Webdings>3</font><font color=#996633>上一页</font>');
}
document.write (' <a href="?star='+((star*1)+1)+'&boardid='+Dvbbs.BoardID+'&filetype='+filetype+'&username='+username+'&tab='+tab+' ">下一页</a><font face=Webdings>4</font>');
document.write ('</td><td align=Right>');
var vendpage;
if ((star*1)>4)
{
document.write (' <a href="?star=1&boardid='+Dvbbs.BoardID+'&filetype='+filetype+'&username='+username+'&tab='+tab+' ">[1]</a> ...');
}
if ((Pcount*1)>(star*1)+3)
{
vendpage=(star*1)+3
}
else
{
vendpage=(Pcount*1)
}
for (vv=star*1-3;vv <vendpage+1;vv++ )
{
if (vv>0)
{
if (vv==star*1)
{
document.write ('<font color=#996633>['+vv+']</font>');
}
else
{
document.write (' <a href="?star='+vv+'&boardid='+Dvbbs.BoardID+'&filetype='+filetype+'&username='+username+'&tab='+tab+' ">['+vv+']</a>');
}
}
}
if (((star*1)+3)<(Pcount*1))
{
document.write ('... <a href="?star='+Pcount+'&boardid='+Dvbbs.BoardID+'&filetype='+filetype+'&username='+username+'&tab='+tab+' ">['+Pcount+']</a>');
}
document.write ('转到:<input type=text name=star size=3 maxlength=10 value="'+star+'"><input type=submit value=Go id=button1 name=button1 >');
document.write ('</td></tr></form></table>');
document.write ('</td></tr>');
document.write ('<tr><th height=25 align=center colspan="2">'+Dvbbs.Stats+'</th>');
document.write ('</tr></table>');
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -