📄 dvquery001.js
字号:
Dvbbs.tablename=new Array();
Dvbbs.tabletype=new Array();
function DvQuery()
{
document.write ('<form action=queryresult.asp method=post>');
document.write ('<table cellpadding=5 cellspacing=1 align=center class=tableborder1>');
document.write ('<tr>');
document.write ('<th valign=middle colspan=2 >请输入要搜索的关键字</th></tr>');
document.write ('<tr>');
document.write ('<td class=tablebody1 colspan=2 align=center valign=middle>');
document.write ('(同时查询多个条件使用\'<font color="'+Dvbbs.Forum_Body[8]+'">or</font>'分隔关键字,查询同时满足某条件使用'');
document.write ('<font color="'+Dvbbs.Forum_Body[8]+'">and</font>\'分隔关键字)');
document.write ('<br><br><input type=text size=40 name=keyword>');
document.write ('</td></tr>');
document.write ('<tr><td class=tablebody2 valign=middle colspan=2 align=center>');
document.write ('<b>搜索选项</b>');
document.write ('</td></tr>');
document.write ('<tr>');
document.write ('<td class=tablebody1 align=right valign=middle>');
document.write ('<b>作者搜索</b> <input name=sType type=radio value=1>');
document.write ('</td>');
document.write ('<td class=tablebody1 align=left valign=middle>');
document.write ('<select name=nSearch>');
document.write ('<option value=1>搜索主题作者');
document.write ('<option value=2>搜索回复作者');
document.write ('<option value=3>两者都搜索');
document.write ('</select>');
document.write ('</td></tr>');
document.write ('<tr>');
document.write ('<td class=tablebody1 align=right valign=middle>');
document.write ('<b>关键字搜索</b> <input name=sType type=radio value=2 checked></td>');
document.write ('<td class=tablebody1 align=left valign=middle>');
document.write ('<select name=pSearch>');
document.write ('<option value=1>在主题中搜索关键字');
document.write ('<!--<option value=2>在贴子内容中搜索关键字');
document.write ('<option value=3>两者都搜索-->');
document.write ('</select>');
document.write ('</td></tr>');
document.write ('<tr>');
document.write ('<td class=tablebody1 align=right valign=middle><b>日期范围及数据表选择</b></td>');
document.write ('<td class=tablebody1 align=left valign=middle>');
document.write ('<select name=SearchDate class=smallsel>');
document.write ('<option value=ALL>所有日期');
document.write ('<option value=1>昨天以来');
document.write ('<option selected value=5>5天以来');
document.write ('<option value=10>10天以来');
document.write ('<option value=30>30天以来</option>');
document.write ('</select>');
document.write ('<select name=Stable size=1><option value="">请选择相应数据表</option>');
for(i=0;i<Dvbbs.tablename.length;i++)
{
document.write ('<option value="'+Dvbbs.tablename[i]+'"');
if (Dvbbs.tablename[i]==Dvbbs.NowUseBBS)
{
document.write (' selected ');
}
document.write ('>'+Dvbbs.tabletype[i]+'</option>');
}
document.write ('</select>');
document.write ('</td></tr>');
document.write ('<tr><td class=tablebody2 valign=middle colspan=2 align=center>');
document.write ('<b>请选择要搜索的论坛</b>');
document.write ('</td></tr>');
document.write ('<tr><td class=tablebody1 colspan=2 valign=middle align=center>');
document.write ('<b>搜索论坛: ');
document.write ('<select name=boardid size=1>');
document.write ('<option value=0>所有论坛</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>');
document.write ('</b></td></tr><tr><td class=tablebody2 valign=middle colspan=2 align=center>');
document.write ('<input type=submit value=开始搜索>');
document.write ('</td></form></tr></table>');
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -