⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 search.htm

📁 很好的一套PHP树形论坛程序
💻 HTM
字号:
<!--<?php print <<<EOT
-->

<!--
EOT;
if(!$step){print <<<EOT
-->
$db_searchinfo
<form action='search.php?' method=post onSubmit="this.submit.disabled=true;">
<input type="hidden" name="step" value="2">
<table width='$tablewidth' cellspacing=1 cellpadding=5 align=center $i_table>
<tr><td class='head' colspan=2>搜索目标</td></tr>
<tr><td class='f_one' width='50%'>关键词:
<br><input type=text name='keyword' size=30>
<br><input type=radio name='method' value='OR' checked>部分匹配
<input type=radio name='method' value='AND'>完全匹配(2个字节以上,多关键词用 | 分开)</td>
<td class='f_one'>按用户名搜索:<br>
<input type=text name="pwuser" size=15><br>用户名中可使用通配符 *,如 可用 admi* 匹配 admin
</td></tr>
<tr><td class='head' colspan=2>搜索帖子范围</td></tr>
<tr><td class='f_one' colspan=2><br>
<input type=radio name='sch_area' value='0' checked>主题标题
<input type=radio name='sch_area' value='1' $disable>主题标题与主题内容
<input type=radio name='sch_area' value='2' $disable>回复标题与回复内容
<input type=checkbox name=digest value=1>精华帖标志<br><br>
</td>
</td></tr>
<tr><td class='head' colspan=2>相关搜索选项</td></tr>
<tr><td class='f_one'>
<input type=radio name='s_type' value='all' checked>所有分类<br>
<input type=radio name='s_type' value='forum'>社区分类
<select name='f_fid' onclick="this.form.s_type[1].checked=true">$forumcache
<!--
EOT;
if($forumadd){
print <<<EOT
-->
<option value=''>>> 隐藏版块</option>
$forumadd
<!--
EOT;
}print <<<EOT
-->
</select>
<!--
EOT;
if(trim($cmscache)){print <<<EOT
-->
<br><br>
<input type=radio name='s_type' value='cms'>文章分类
<select name='c_fid' onclick="this.form.s_type[2].checked=true">$cmscache</select>
<!--
EOT;
}print <<<EOT
-->
</td>
<td class='f_one' valign='top'>发表主题时间:<br>
<select name=sch_time>
<OPTION value='all'>所有主题</OPTION>
<OPTION value='86400'>1天内的主题</OPTION>
<OPTION value='172800'>2天内的主题</OPTION>
<OPTION value='604800'>1星期内的主题</OPTION>
<OPTION value='2592000'>1个月内的主题</OPTION>
<OPTION value='5184000'>2个月内的主题</OPTION>
<OPTION value='7776000'>3个月内的主题</OPTION>
<OPTION value='15552000'>6个月内的主题</OPTION>
<OPTION value='31536000'>1年内的主题</OPTION>
</select>
</td></tr>
<tr><td class='f_one'>结果排序:<br>
<select name=orderway>
<OPTION value='lastpost'>最后回复时间</OPTION>
<OPTION value='replies'>回复</OPTION>
<OPTION value='hits'>人气</OPTION>
</select>
<input type=radio name='asc' value='ASC' checked>升序
<input type=radio name='asc' value='DESC' checked>降序
</td>
<td class='f_one'>
</td></tr>
</table>
<center><br><input class="button" type='submit' name="submit" value='提 交'>
<input class="button" type='reset' value='重 置'></center></form>
<!--
EOT;
}else{print <<<EOT
-->
<table cellspacing=2 cellpadding=0 width='$tablewidth' align=center>
<tr><td align=left>$pages</td></tr></table>
<!--
EOT;
if($admincheck){print <<<EOT
-->
<form action="mawhole.php" method="post">
<input type="hidden" name="fid" value="$seekfid">
<!--
EOT;
}print <<<EOT
-->
<table width='$tablewidth' cellspacing=1 cellpadding=3 align=center $i_table>
<tr align=center height=25><td width=5% class='head'><b>状态</b></td> 
<td width=* class='head'><b>标题</b></td>
<td width=15% class='head'><b>论坛</b></td>
<td width=13% class='head'><b>作者</b></td>
<td width=5% class='head'><b>回复</b></td>
<td width=5% class='head'><b>人气</b></td>
<td width=20% class='head'><b>最后发表</b></td>
</tr>
<!--
EOT;
foreach($schdb as $sch){print <<<EOT
-->
<tr align=center class='f_one'><td>$sch[status]</td> 
<td width=* align=left>
<!--
EOT;
if($admincheck){
print <<<EOT
-->
<input type='checkbox' name="tidarray[]" value="$sch[tid]">
<!--
EOT;
}if($sch['topped']){
print <<<EOT
-->
<img src='$imgpath/$stylepath/file/headtopic_$sch[topped].gif' alt='置顶帖标志'> 
<!--
EOT;
}
print <<<EOT
-->
 &nbsp;
<a href='read.php?tid=$sch[tid]&keyword=$rawkeyword' target=_blank>$sch[subject]</a>
<!--
EOT;
if($sch[digest]){
print <<<EOT
-->
<img src='$imgpath/$stylepath/file/digest_$sch[digest].gif' alt='精华帖标志'>
<!--
EOT;
}
print <<<EOT
-->
</td>
<td>
<a href='index.php?fid=$sch[fid]'>$sch[forumname]</a></td>
<td class=smalltxt><a href='profile.php?action=show&uid=$sch[authorid]'>$sch[author]</a><br>$sch[postdate]</td>
<td>$sch[replies]</td>
<td>$sch[hits]</td>
<td>
<table class='f_one'>
<tr><td align=center class=smalltxt>
<a href='read.php?tid=$sch[tid]&page=e#a' target=_blank>
$sch[lastpost]</a>
<br>by: $sch[lastposter]
</td>
</tr></table></td>
</tr>
<!--
EOT;
}print <<<EOT
-->
</table>
<!--
EOT;
if($admincheck){print <<<EOT
-->
<table cellpadding=1 cellspacing=1 align=center width='$tablewidth'>
<tr align=center><td>
管理选项:
<input name=action type=radio value='headtopic'>置顶
<input name=action type=radio value='digest'>精华
<input name=action type=radio value='lock'>锁定
<input name=action type=radio value='edit'>加亮
<input name=action type=radio value='pushtopic'>提前
<input name=action type=radio value='type'>主题分类
<input name=action type=radio value='move'>移动
<input name=action type=radio value='copy'>复制
<input name=action type=radio value='del' checked>删除
<br><br>
<input class="button" type='button' name='chkall' value='全 选' onclick='CheckAll(this.form)'>
<input class="button" type='reset' name='Reset' value='重 置'>
<input class="button" type='submit' name='hello' value='提 交'>
</td></tr></table></form>
<!--
EOT;
}print <<<EOT
-->
<br>
<table cellspacing=2 cellpadding=0 width='$tablewidth' align=center>
<tr><td align=left>{$pages} 共搜索到了{$total}条信息[ {$db_perpage} 条/页]</td></tr></table>
<script language=JavaScript>
function CheckAll(form){
	for (var i=0;i<form.elements.length-12;i++){
		var e = form.elements[i];
		e.checked == true ? e.checked = false : e.checked = true;
	}
}
</script>
<!--
EOT;
}
?>-->

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -