📄 dsqcn_forum_list.js
字号:
function forum_list_istop_top()
{
var temp1="";
temp1+="<table cellspacing=1 cellpadding=1 class=table>";
temp1+="<tr align=center>";
temp1+="<td width=25 class=td>图</td>";
temp1+="<td width=25 class=td>例</td>";
temp1+="<td width=* class=td>总固顶及本版固顶的主题</td>";
temp1+="<td width=25 class=td> </td>";
temp1+="<td width=120 class=td>发布时间及发布人</td>";
temp1+="</tr>";
document.write(temp1);
}
function forum_list_body_istop(l_id,l_forum_id,l_username,l_topic,l_tcolor,l_tbb,l_icon,l_tim,l_istop,l_isvote)
{
var temp1="";
var l_istop_var="istop";
var new_win="new_win";
var folder_istop=base_forum_istop(l_istop,l_isvote);
var topic_head=" "
var topic_color="";
if (l_tcolor!="") { topic_color="><font color='"+l_tcolor+"'"; }
var topic_bb="";
if (l_tbb==1 || l_tbb=="1") { topic_bb="<b>"; }
if (topic_is_new(l_tim)=="new") new_win="new";
temp1+="<tr align=center height=25 class=bg_td>";
temp1+="<td>"+folder_istop+"</td>";
temp1+="<td><img src='"+web_dir+"images/icon/"+l_icon+".gif' border=0></td>";
temp1+="<td align=left>"+topic_head+topic_bb+"<a href='forum_view.asp?forum_id="+l_forum_id+"&view_id="+l_id+"' "+topic_color+" alt='主题:"+code_html(l_topic,1,0)+"<br>时间:"+l_tim+"'>"+code_html(l_topic,1,0)+"</a></td>";
temp1+="<td class=bg_tds><a href='forum_view.asp?forum_id="+l_forum_id+"&view_id="+l_id+"' target=_blank><img src='"+web_dir_skin+"small/"+new_win+".gif' alt='打开新窗口浏览此贴' border=0></a></td>";
//temp1+="<td align=left> <font class=tims>"+l_tim.substring(5,16)+"</font> "+format_user_name(l_username,1,'')+"</td>";
temp1+="<td align=right> <font class=tims>"+l_tim.substring(0,16)+" <br>by</font> "+format_user_name(l_username,0,'')+" </td>";
temp1+="</tr>";
document.write(temp1);
}
function forum_list_istop_end()
{
var temp1="</table>"+ukong;
document.write(temp1);
}
function forum_list_top(l_nummer)
{
var temp1="";
temp1+="<table cellspacing=1 cellpadding=1 class=table>";
temp1+="<tr align=center>";
temp1+="<td width=25 class=td></td>";
temp1+="<td width=25 class=td></td>";
temp1+="<td width=* class=td>主题(每页 "+l_nummer+" 贴 点击 <img src='"+web_dir_skin+"small/fk_plus.gif' align=absMiddle border=0> 可展开贴子列表)</td>";
temp1+="<td width=80 class=td>发布人</td>";
temp1+="<td width=45 class=td>回复</td>";
temp1+="<td width=45 class=td>浏览</td>";
temp1+="<td width=25 class=td> </td>";
temp1+="<td width=120 class=td>最后回复信息</td>";
temp1+="</tr>";
if (action=="manage") {temp1+="<form name=del_frm action='forum_isaction.asp' method=get onsubmit=\"javascript:frm_submitonce(this);\">";}
document.write(temp1);
}
function forum_list_body(l_istop_var,l_id,l_forum_id,l_username,l_topic,l_tcolor,l_tbb,l_icon,l_tim,l_counter,l_re_username,l_re_counter,l_re_tim,l_istop,l_islock,l_isgood,l_isvote,l_vote_num)
{
var temp1="";
var folder_is=base_forum_is(l_re_counter,l_istop,l_islock,l_isgood,l_isvote,l_vote_num);
var new_win="new_win";
var icon_type="<img src='"+web_dir+"images/icon/"+l_icon+".gif' border=0>";
var topic_head="<img src='"+web_dir_skin+"small/fk_minus.gif' border=0 align=absMiddle id=followImg"+l_istop_var+l_id+">"
var topic_color="";
if (l_tcolor!="") { topic_color="><font color='"+l_tcolor+"'"; }
var topic_bb="";
if (l_tbb==1 || l_tbb=="1") { topic_bb="<b>"; }
if (action=="manage" && forumid==l_forum_id) icon_type="<input type=checkbox name=sel_id value='"+l_id+"' class=bg_tds>";
if (topic_is_new(l_tim)=="new") new_win="new";
if (l_re_counter>0) topic_head="<img loaded=no src='"+web_dir_skin+"small/fk_plus.gif' border=0 align=absMiddle id=followImg"+l_istop_var+l_id+" style=\"cursor:hand;\" onclick=\"load_tree("+l_forum_id+","+l_id+",'"+l_istop_var+"')\" alt='展开贴子列表'>"
temp1+="<tr align=center height=25 class=bg_td>";
temp1+="<td class=bg_tds>"+folder_is+"</td>";
temp1+="<td class=bg_tds>"+icon_type+"</td>";
temp1+="<td align=left>"+topic_head+topic_bb+"<a href='forum_view.asp?forum_id="+l_forum_id+"&view_id="+l_id+"'"+topic_color+" alt='主题:"+code_html(l_topic,1,0)+"<br>时间:"+l_tim+"'>"+code_html(l_topic,1,25)+"</a>"+list_pagecute('forum_view.asp?forum_id='+l_forum_id+'&view_id='+l_id,(l_re_counter+1),page_num)+"</td>";
temp1+="<td>"+format_user_name(l_username,0,'')+"<br><font class=tims>"+l_tim.substring(0,10)+"</font></td>";
if (l_isvote==1)
{
temp1+="<td class=bg_tds colspan=2>共 <font class=red>"+l_vote_num+"</font> 票</td>";
}
else
{
temp1+="<td class=bg_tds>"+l_re_counter+"</td>";
temp1+="<td class=bg_tds>"+l_counter+"</td>";
}
temp1+="<td><a href='forum_view.asp?forum_id="+l_forum_id+"&view_id="+l_id+"' target=_blank><img src='"+web_dir_skin+"small/"+new_win+".gif' alt='打开新窗口浏览此贴' border=0></a></td>";
temp1+="<td align=right> <font class=tims>"+l_re_tim.substring(0,16)+" <br>by</font> "+format_user_name(l_re_username,0,'')+" </td>";
temp1+="</tr>";
temp1+="<tr class=bg_td style=\"display:none\" id=follow"+l_istop_var+l_id+" height=30><td colspan=2> </td><td colspan=6 id=followTd"+l_istop_var+l_id+"><div class=div_alt onclick=\"load_tree("+l_forum_id+","+l_id+",'"+l_istop_var+"')\">正在读取关于本主题的跟贴,请稍侯……</div></td></tr>";
document.write(temp1);
}
function list_pagecute(viewurl,replynum,pagecutenum)
{
var pagecutepage=0;
var pagecutei=0;
var temp1="";
var pagecutecolor="red2"
pagecutepage=replynum/pagecutenum;
pagecutepage=Math.round(pagecutepage);
if ((pagecutepage*pagecutenum)<replynum) pagecutepage+=1;
if (pagecutepage>1)
{
for (pagecutei=2;pagecutei<4;pagecutei++)
{
if (pagecutei>pagecutepage) break;
temp1+="<a href='"+viewurl+"&page="+pagecutei+"'><font class="+pagecutecolor+" alt='第 "+pagecutei+" 页'>["+pagecutei+"]</font></a>";
}
if (pagecutepage>3)
{
if (pagecutepage==4)
{ temp1+="<a href='"+viewurl+"&page=4'><font class="+pagecutecolor+" alt='第 4 页'>[4]</font></a>"; }
else
{ temp1+="<font class="+pagecutecolor+">… </font><a href='"+viewurl+"&page="+pagecutepage+"'><font class="+pagecutecolor+" alt='第 "+pagecutepage+" 页'>["+pagecutepage+"]</font></a>"; }
}
temp1=" <img src='"+web_dir_skin+"forum/page_head.gif' align=absMiddle alt='快速分页' border=0> "+temp1;
}
return temp1;
}
function forum_list_end()
{
var temp1="";
if (action=="manage")
{
temp1+="<input type=hidden name=forum_id value='"+forumid+"'>";
temp1+="<tr class=bg_td><td colspan=8 height=30 align=center>";
temp1+=" <table border=0>";
temp1+=" <tr>";
temp1+=" <td>版面管理:</td>";
temp1+=" <td><input class=bg_td type=checkbox name=sel_all onClick=\"javascript:select_all(this.form);\"> 选中所有</td>";
temp1+=" <td><input class=bg_td type=radio name=action value='revert' checked>还原</td>";
temp1+=" <td><input class=bg_td type=radio name=action value='restore'>修复</td>";
temp1+=" <td><input class=bg_td type=radio name=action value='rap'>奖惩</td>";
temp1+=" <td><input class=bg_td type=radio name=action value='move'>转移</td>";
temp1+=" <td><input class=bg_td type=radio name=action value='istop'>固顶</td>";
temp1+=" <td><input class=bg_td type=radio name=action value='istops'>总固顶</td>";
temp1+=" <td><input class=bg_td type=radio name=action value='isgood'>精华</td>";
temp1+=" <td><input class=bg_td type=radio name=action value='islock'>锁定</td>";
temp1+=" <td><input class=bg_td type=radio name=action value='delete'>删除</td>";
//temp1+=" <td><input class=bg_td type=radio name=action value='del_re'>删除回贴</td>";
temp1+=" <td width=2></td>";
temp1+=" <td><input type=submit value='执行操作' onclick=\"return sel_click(this.form);\"></td>";
temp1+=" </tr>";
temp1+=" </table>";
temp1+="</td></tr>";
temp1+="</form>";
}
temp1+="</table>"+ukong;
document.write(temp1);
}
function forum_list_pagecute(p_nummer,p_rssum,p_viewpage,p_thepages,p_pageurl)
{
var temp1="";
temp1+="<table cellspacing=1 cellpadding=1 class=table>";
temp1+="<tr>";
temp1+="<td class=bg_tds height=25>";
temp1+=" 主题:<font class=red>"+forumtopicnum+"</font> ";
temp1+="页次:<font class=red>"+p_viewpage+"</font>/<font class=red>"+p_thepages+"</font> ";
temp1+=" 分页:"+format_pagecute(p_viewpage,p_thepages,p_pageurl,8);
temp1+="</td>";
temp1+="</table>"+ukong;
document.write(temp1);
}
function topic_is_new(t_time)
{
var isnew="";
var tmptoday=now_time;
tmptoday=tmptoday.replace(/-/ig,"/");
var todays=new Date(tmptoday);
tmptoday=t_time;
tmptoday=tmptoday.replace(/-/ig,"/");
var nows=new Date(tmptoday);
if ((todays.getTime()-nows.getTime())<86400000) isnew="new";
return isnew;
}
function load_tree(f_id,v_id,istop_var)
{
var targetImg=eval("document.all.followImg"+istop_var+v_id);
var targetDiv=eval("document.all.follow"+istop_var+v_id);
if (targetImg.src.indexOf("nofollow")!=-1) {return false;}
if ("object"==typeof(targetImg))
{
if (targetDiv.style.display!='block')
{
targetDiv.style.display="block";
targetImg.src=web_dir_skin+"small/fk_minus.gif";
if (targetImg.loaded=="no") { document.frames["hiddenframe"].location.replace("forum_loadtree.asp?forum_id="+f_id+"&view_id="+v_id+"&istop_var="+istop_var); }
}
else
{
targetDiv.style.display="none";
targetImg.src=web_dir_skin+"small/fk_plus.gif";
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -