📄 dvallpaper.js
字号:
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;
}
}
function dvbbs_allpaper_1(){
if (Dvbbs.GroupSetting[27]==1)
{
document.write ('<div align=center>请点击人气切换到管理状态</div>');
}
document.write ('<form action=allpaper.asp?action=delpaper method=post name=paper>');
document.write ('<input type=hidden name=boardid value="'+Dvbbs.BoardID+'">');
document.write ('<table class=tableborder1 cellspacing="1" cellpadding="3" align="center">');
document.write ('<tr align=center>');
document.write ('<th width="15%" height=25>用户</th>');
document.write ('<th width="50%">标题</th>');
document.write ('<th width="20%">发布时间</th>');
document.write ('<th width="15%" id=tabletitlelink>');
if (Dvbbs.GroupSetting[27]==1)
{
document.write ('<a href="allpaper.asp?action=batch&boardid='+Dvbbs.BoardID+'">');
}
document.write ('人气</a></th>');
document.write ('</tr>');
}
function dvbbs_allpaper_emp(){
document.write ('<tr> <td class=tablebody1 colspan=4 height=25>本版还没有小字报</td></tr>');
}
function dvbbs_allpaper_loop(s_username,s_id,s_title,s_addtime,s_hits,action){
document.write ('<tr>');
document.write ('<td class=tablebody1 align=center height=24>');
document.write ('<a href=dispuser.asp?name='+s_username+' target=_blank>'+s_username+'</a>');
document.write ('</td>');
document.write ('<td class=tablebody1>');
document.write ('<a href=javascript:openScript(\'viewpaper.asp?id='+s_id+'&boardid='+Dvbbs.BoardID+'\',500,400)>'+s_title+'</a>');
document.write ('</td>');
document.write ('<td class=tablebody1>'+s_addtime+'</td>');
document.write ('<td align=center class=tablebody1>');
if (action=='batch')
{
document.write ('<input type=checkbox name=sid value='+s_id+'>');
}else{
document.write (s_hits);
}
document.write ('</td></tr>');
}
function dvbbs_allpaper_admin(action){
if (action=='batch')
{
document.write ('<tr><td class=tablebody2 colspan=4 align=right>请选择要删除的小字报,<input type=checkbox name=chkall value=on onclick="CheckAll(this.form)">全选 <input type=submit name=Submit value=执行 onclick="{if(confirm(\'您确定执行的操作吗?\')){this.document.paper.submit();return true;}return false;}"></td></tr>');
}
}
function dvbbs_allpaper_2(currentpage,Pcount,totalrec){
document.write ('</table>');
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;
if (currentpage>4)
{
document.write ('<a href="?page=1&boardid=Dvbbs.BoardID">[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+'">['+i+']</a>')
}
}
}
if (currentpage+3 < Pcount)
{
document.write ('... <a href="?page='+Pcount+'&boardid='+Dvbbs.BoardID+'">['+Pcount+']</a>');
}
document.write ('</font></td></tr>');
document.write ('</table></form>');
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -