📄 dvmyfile.js
字号:
function dvbbs_myfile_main(taction,stype,sname,filenum){
if (taction==1)
{
document.write ('<br>');
document.write ('<table cellpadding=3 cellspacing=1 align=center class=tableborder2 >');
document.write ('<form action="" method=get>');
document.write ('<tr><td><a href=?action=fadd >[新增文件库]</a>,<a href=show.asp?username='+Dvbbs.MemberName+' >[个人展区]</a>,目前共有'+filenum+'个文件');
if (stype!='')
{
document.write (',其中《'+sname+'》共<font color='+Dvbbs.Forum_Body[8]+'>'+filenum+'</font>个。');
}
document.write ('</td>');
document.write ('<td width=200 align=right>');
document.write ('<select name=Stype onchange=\'javascript:submit()\'>');
document.write ('<option value=all>查看文件类型');
document.write ('<option value=0>文件集');
document.write ('<option value=1>图片集');
document.write ('<option value=2>FLASH集');
document.write ('<option value=3>音乐集');
document.write ('<option value=4>电影集');
document.write ('<option value=5>所有文件');
document.write ('</select>');
document.write ('</td></tr></form>');
document.write ('</table>');
document.write ('<table cellpadding=3 cellspacing=1 align=center class=tableborder1>');
document.write ('<form action="myfile.asp?action=fdel" method=post name=myfile><tr>');
document.write ('<th colspan=7 height=25 align=left>-=> 最新上传文件</th></tr>');
document.write ('<tr>');
document.write ('<td align=center valign=middle width=30 class=tabletitle2><b>属性</b></td>');
document.write ('<td align=center valign=middle width=* class=tabletitle2><b>文件说明</b></td>');
document.write ('<td align=center valign=middle width=60 class=tabletitle2><b>大小</b></td>');
document.write ('<td align=center valign=middle width=60 class=tabletitle2><b>下载/浏览</b></td>');
document.write ('<td align=center valign=middle width=120 class=tabletitle2><b>日期</b></td>');
document.write ('<td align=center valign=middle width=60 class=tabletitle2><b>类型</b></td>');
document.write ('<td align=center valign=middle width=120 class=tabletitle2><b>操作</b></td>');
document.write ('</tr>');
}
else{
document.write ('<tr><td colspan=7 align=right class=tablebody2>请选择可以删除的文件,<input type=checkbox name=chkall value=on onclick="CheckAll(this.form)">全选 <input type=submit name=Submit value=执行 onclick="{if(confirm(\'您确定执行的操作吗?\')){this.document.myfile.submit();return true;}return false;}"></td></tr>');
document.write ('</form></table>');
}
}
function dvbbs_myfile_main_emp(){
document.write ('<tr><td class=tablebody1 align=center valign=middle colspan=7>您的文件库中没有任何内容。</td></tr>');
}
function dvbbs_myfile_main_loop(F_FileType,F_BoardID,F_ID,readme,F_FileSize,F_DownNum,F_ViewNum,F_AddTime,useradmin,F_typename){
document.write ('<tr>');
document.write ('<td align=center valign=middle class=tablebody2><img src="images/files/'+F_FileType+'.gif" border=0></td>');
document.write ('<td align=left valign=middle class=tablebody1><a href="fileshow.asp?boardid='+F_BoardID+'&id='+F_ID+'" target="_blank" >');
document.write (readme);
document.write ('</a></td>');
document.write ('<td align=right valign=middle class=tablebody2>'+F_FileSize+'<b>B</b></td>');
document.write ('<td align=center valign=middle class=tablebody1>'+F_DownNum+'/'+F_ViewNum+'</td>');
document.write ('<td align=left valign=middle class=tablebody2>'+F_AddTime+'</td>');
document.write ('<td align=center valign=middle class=tablebody1>'+F_typename+'</td>');
document.write ('<td align=center valign=middle class=tablebody2>');
document.write (useradmin);
document.write ('</td></tr>');
}
function dvbbs_myfile_main_page(stats,TopicCount,Pcount,star){
document.write ('<table cellpadding=0 cellspacing=3 border=0 width='+Dvbbs.Forum_Body[12]+' align=center><form method=post action="myfile.asp"><tr><td valign=middle nowrap align=left>'+stats+'文件共<b>'+TopicCount+'</b>个,共<b><font color=red>'+Pcount+'</font></b>页</td><td valign=middle align=right>');
if (star>4)
{
document.write ('<a href="?&star=1">[1]</a> ...');
}
var endpage;
if (Pcount>star+3)
{
endpage=star+3;
}
else{
endpage=Pcount;
}
for (i=star-3;i<endpage+1 ;i++ )
{
if (i>0)
{
if (i>star || i<star)
{
document.write (' <a href="?star='+i+'">['+i+']</a>');
}
else{
document.write (' <font color=#996633>['+i+']</font>');
}
}
}
if (star+3<Pcount)
{
document.write ('... <a href="?star='+Pcount+'">['+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>');
}
function dvbbs_myfile_edit(F_Username,F_BoardID,F_ID,F_typename,myurl,F_Filename,F_AnnounceID,F_Rootid,F_bbsid,body,F_Flag){
document.write ('<BR><table cellpadding=3 cellspacing=1 align=center class=tableborder1>');
document.write ('<form action="?action=fsave" method=post >');
document.write ('<tr>');
document.write ('<th width="100%" height="26" colspan="2" align=left>编辑'+F_Username+'上传文件</th>');
document.write ('</tr>');
document.write ('<tr>');
document.write ('<td width="15%" height="26" class=tablebody2 align=right>编辑的文件:</td>');
document.write ('<td width="85%" height="26" class=tablebody1 align=left>');
document.write ('<a href="fileshow.asp?boardid='+F_BoardID+'&id='+F_ID+'" target="_blank" >'+F_typename+'</a>');
document.write ('</td>');
document.write ('</tr>');
if (myurl)
{
document.write ('<tr>');
document.write ('<td valign=middle align=right class=tablebody2 >文件帖子系数:</td>');
document.write ('<td width="100%" height="26" class=tablebody1>');
if ((Dvbbs.Master || Dvbbs.superboardmaster || Dvbbs.boardmaster) && Dvbbs.GroupSetting[48]==1)
{
document.write ('论坛ID:<input type=text name="F_BoardID" value="'+F_BoardID+'" size=8> ');
document.write ('帖子ID:<input type=text name="F_AnnounceID" value="'+F_AnnounceID+'"> <font color='+Dvbbs.Forum_Body[8]+'>(若文件与帖子内容未有改动,请不要修改相关系数。)</font>');
}else{
document.write ('<input type=hidden name="F_BoardID" value="'+F_BoardID+'">');
document.write ('<input type=hidden name="F_AnnounceID" value="'+F_AnnounceID+'">');
}
document.write ('<a href="dispbbs.asp?Boardid='+F_BoardID+'&ID='+F_Rootid+'&replyID='+F_bbsid+'&skin=1" target="_blank" title="浏览相关帖子">[<font color='+Dvbbs.Forum_Body[8]+'>查看相关讨论</font>]</a>');
document.write ('</td>');
document.write ('</tr>');
}
else{
document.write ('<input type=hidden name="F_BoardID" value="'+F_BoardID+'">');
document.write ('<tr>');
document.write ('<td width="15%" height="26" class=tablebody2 align=right>文件地址:</td>');
document.write ('<td width="85%" height="26" class=tablebody1 align=left><input type=text name="fileurl" size="80%" value="'+F_Filename+'">');
document.write ('</td>');
document.write ('</tr>');
}
document.write ('<tr>');
document.write ('<td width="15%" height="26" class=tablebody2 align=right>文件的说明:</td>');
document.write ('<td width="85%" height="26" class=tablebody1 align=left>');
document.write ('<textarea name="F_Readme" rows=6 cols=80% wrap=VIRTUAL>'+body+'</textarea>');
document.write ('<input type=hidden name="saveid" value="'+F_ID+'"> (不得超过125个汉字或250个字符)');
document.write ('</td>');
document.write ('</tr>');
if (myurl)
{
document.write ('<tr>');
document.write ('<td valign=middle align=right class=tablebody2 >文件允许删除:</td>');
document.write ('<td valign=middle class=tablebody1>');
document.write ('<input type=radio name=Fflag value=0');
if (F_Flag==0)
{
document.write (' checked');
}
document.write ('>是 ');
document.write ('<input type=radio name=Fflag value=2');
if (F_Flag==2)
{
document.write (' checked');
}
document.write ('>否');
document.write ('</td>');
document.write ('</tr>');
}else{
document.write ('<tr>');
document.write ('<td valign=middle align=right class=tablebody2 >文件允许删除:</td>');
document.write ('<td valign=middle class=tablebody1>');
document.write (' <input type=radio name=Fflag value=1');
if (F_Flag==1)
{
document.write (' checked');
}
document.write ('>是 ');
document.write (' <input type=radio name=Fflag value=2');
if (F_Flag==2)
{
document.write (' checked');
}
document.write ('>否');
document.write ('</td>');
document.write ('</tr>');
}
document.write ('<tr>');
document.write ('<td width="100%" height="26" colspan="2" class=tablebody1>');
document.write (' 说明:<li>若允许文件可删除,则当含有该文件的帖子被删除后,文件有可能亦被删除;');
document.write (' <li>文件说明不得超过125个汉字或250个字符.');
document.write ('</td>');
document.write ('</tr>');
document.write ('<tr>');
document.write ('<th width="100%" height="26" colspan="2">');
document.write ('<input type=Submit value="保存" name=Submit> ');
document.write ('</th>');
document.write ('</tr>');
document.write (' </form>');
document.write ('</table>');
}
function dvbbs_myfile_addnew(filetypelist){
document.write ('<BR><table cellpadding=3 cellspacing=1 align=center class=tableborder1>');
document.write ('<form action="?action=fsnew" method=post >');
document.write ('<tr>');
document.write ('<th width="100%" height="26" colspan="2" align=left>新增我个人文件</th>');
document.write ('</tr>');
document.write (' <tr>');
document.write ('<td width="15%" height="26" class=tablebody2 align=right>新增的文件:</td>');
document.write ('<td width="85%" height="26" class=tablebody1 align=left>');
document.write (' <input type=text name="fileurl" size="80%" value="http://"> (请填写完成的文件链接地址)');
document.write (' </td>');
document.write ('</tr>');
document.write ('<tr>');
document.write ('<td width="15%" height="26" class=tablebody2 align=right>文件的说明:</td>');
document.write ('<td width="85%" height="26" class=tablebody1 align=left>');
document.write (' <textarea name="F_Readme" rows=6 cols=80% wrap=VIRTUAL value=""></textarea> (不得超过125个汉字或250个字符)');
document.write ('</td>');
document.write ('</tr>');
document.write ('<tr>');
document.write (' <td valign=middle align=right class=tablebody2 >文件的类型:</td>');
document.write ('<td valign=middle class=tablebody1>');
document.write (' <select name="filetype" size=1>');
document.write ('<option value="">文件类型</option>');
document.write (filetypelist);
document.write ('</select>');
document.write ('</td>');
document.write ('</tr>');
document.write (' <td valign=middle align=right class=tablebody2 >文件允许删除:</td>');
document.write ('<td valign=middle class=tablebody1>');
document.write (' <input type=radio name=Fflag value=1 checked>是 ');
document.write (' <input type=radio name=Fflag value=2>否');
document.write ('</td>');
document.write ('</tr>');
document.write ('<tr>');
document.write ('<td width="100%" height="26" colspan="2" class=tablebody1>');
document.write (' 说明:<li>若允许文件可删除,当清理时会自动清除;');
document.write (' <li>文件说明不得超过125个汉字或250个字符;');
document.write (' <li>请用HTTP://或FTP://或HTTPS://开头的完整链接地址.');
document.write ('</td>');
document.write ('</tr>');
document.write ('<tr>');
document.write ('<th width="100%" height="26" colspan="2">');
document.write (' <input type=Submit value="保存" name=Submit> <INPUT TYPE="reset" value="清除">');
document.write ('</th>');
document.write ('</tr>');
document.write ('</form>');
document.write ('</table>');
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -