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

📄 search.htm

📁 程序安装简便容易
💻 HTM
字号:
<!--
<?php
if(!empty($_GET['do'])) {
	if($_GET['do']=='search') {
		$mainurl=$set['ifhtml']=='1' && file_exists(R_P.'index.html') ? 'index.html' : 'index.php';
print <<<EOT
-->
<div align="center">
  <center>
<table style="BORDER-RIGHT: #ececec 1px solid; BORDER-TOP: #ececec 1px solid; BORDER-LEFT: #ececec 1px solid; BORDER-BOTTOM: #ececec 1px solid" cellspacing=0 cellpadding=0 width=760 align=center border=0 bgcolor="#FFFFFF">
  <tbody>
  <tr>
    <td valign=top width=536 height=23>
      <table cellSpacing=2 cellPadding=3 width="100%" align=center bgcolor=#ececec border=0>
        <tbody>
        <tr>
          <td bgcolor=#ffffff height=20 valign="middle">
	    <table cellSpacing=0 cellPadding=0 width="100%" height="20" align=center border=0>
	      <tr>
	        <td height=20 align="left">您的位置:<a href="{$mainurl}">首页</a>&nbsp;&gt;&nbsp;{$guidee}&nbsp;&gt;</td><td height=20 align="right">[<a href="search.php?do=search$addurl&order=postdate">按发布时间排列</a>]&nbsp;[<a href="search.php?do=search$addurl&order=hits">按点击次数排列</a>]&nbsp;[<a href="search.php?do=search$addurl&order=cnum">按评论条数排列</a>]
                </td>
              </tr>
	    </table>             
	  </td>
	</tr>
	</tbody>
      </table>
<!--
EOT;
if(!empty($list_ad)) {
print <<<EOT
-->
      <table cellSpacing=0 cellPadding=0 width="100%" align=center bgcolor=#ececec border=0>
        <tbody>
        <tr>
          <td bgcolor=#ffffff valign="middle">
	    <table cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
	      <tr>
	        <td align="center">{$list_ad}
                </td>
              </tr>
	    </table>             
	  </td>
	</tr>
	</tbody>
      </table>
<!--
EOT;
}
print <<<EOT
-->
      <table cellSpacing=1 cellPadding=3 width="99%" align=center border=0>
        <tbody>
        <tr bgcolor=#ececec>
          <td width="63%" height=25>
            <div align=center><strong>标题</strong></div></td>
          <td width="7%" height=25>
            <div align=center><strong>作者</strong></div></td>
          <td width="15%" height=25>
            <div align=center><strong>浏览次数</strong></div></td>
          <td width="15%" height=25>
            <div align=center><strong>发布时间</strong></div></td></tr>
<!--
EOT;
if(!empty($catedb)) {
	foreach($catedb as $key=>$value) {
		if($add=='') {
			$href_b=($set['ifhtml']=='1' && file_exists("{$value['sid']}_{$value['aid']}.html")) ? "{$value['sid']}_{$value['aid']}.html" : "read.php?id={$value['aid']}{$add}";
		} else {
			$href_b=($set['ifhtml']=='1' && file_exists("{$value['aid']}.html")) ? "{$value['aid']}.html" : "read.php?id={$value['aid']}{$add}";
		}
		$date=getdate($value['postdate']);
		$subject=empty($value['title_color']) ? "{$value['subject']}" : "<font color=\"{$value['title_color']}\">{$value['subject']}</font>";
		$subject=empty($value['title_extra']) ? "$subject" : "<{$value['title_extra']}>$subject</{$value['title_extra']}>";
print <<<EOT
-->
        <tr onmouseover="style.backgroundColor='#F7F7F7'" onmouseout="style.backgroundColor='#ffffff'" bgcolor=#ffffff>
          <td height=25>
            <div align=left><a href="{$href_b}" target="_blank">{$subject}</a></div></td>
          <td height=25>
            <div align=center>{$value['author']}</div></td>
          <td height=25>
            <div align=center>{$value['hits']}</div></td>
          <td height=25>
            <div align=center>{$date['year']}/{$date['mon']}/{$date['mday']}</div></td></tr>
<!--
EOT;
	}
} else {
print <<<EOT
-->
        <tr onmouseover="style.backgroundColor='#F7F7F7'" onmouseout="style.backgroundColor='#ffffff'" bgcolor=#ffffff>
          <td height=25 colspan="4">
            <div align="center">
              <table border="0" cellpadding="0" cellspacing="0" width="500">
                <tr>
                  <td align=center><b>没有搜索到任何结果!</b></td>
                </tr>
              </table>
            </div>
          </td>
        </tr>
<!--
EOT;
}
print <<<EOT
-->
        <tr>
          <td colSpan=4>
            <div align=right>{$fenye}</div>
	  </td>
        </tr>
        </tbody>
      </table>
    </td>
    <td valign=top width=1 bgcolor=#ececec></td>
    <td valign=top width=239 bgcolor=#f5f5f5>
      <table cellSpacing=0 cellPadding=0 width="100%" border=0>
        <tbody>
        <tr>
          <td background="$imgpath/list_bg.gif" height=35>&nbsp;&nbsp;&nbsp;<strong><font color=#000000>{$title1}</font></strong></td>
	</tr>
        <tr>
          <td>
            <table cellSpacing=0 cellPadding=0 border=0>
              <tbody>
<!--
EOT;
if(!empty($topdb)) {
	foreach($topdb as $key=>$value) {
		$href_c=($set['ifhtml']=='1' && file_exists("{$value['sid']}_{$value['aid']}.html")) ? "{$value['sid']}_{$value['aid']}.html" : "read.php?id={$value['aid']}";
		$subject=substrs($value['subject'],$set['listrightlength']);
		$subject=empty($value['title_color']) ? "{$subject}" : "<font color=\"{$value['title_color']}\">{$subject}</font>";
		$subject=empty($value['title_extra']) ? "$subject" : "<{$value['title_extra']}>$subject</{$value['title_extra']}>";
print <<<EOT
-->
              <tr>
                <td height=20>·<a title={$value['subject']} href="{$href_c}" target="_blank">{$subject}</a></td>
	      </tr>
<!--
EOT;
	}
} else {
print <<<EOT
-->
              <tr>
                <td height=20 align=center><b>没有搜索到任何结果!</b></td>
	      </tr>
<!--
EOT;
}
print <<<EOT
-->
              </tbody>
            </table>
          </td>
        </tr>
        </tbody>
      </table>
      <table cellSpacing=0 cellPadding=0 width="100%" border=0>
        <tbody>
        <tr>
          <td background="$imgpath/list_bg.gif" height=35>&nbsp;&nbsp;&nbsp;<strong><font color=#000000>{$title2}</font></strong></td>
        </tr>
        <tr>
          <td>
            <table cellSpacing=0 cellPadding=0 border=0>
              <tbody>
<!--
EOT;
if(!empty($bottomdb)) {
	foreach($bottomdb as $key=>$value) {
		if($add_d=='') {
			$href_d=($set['ifhtml']=='1' && file_exists("{$value['sid']}_{$value['aid']}.html")) ? "{$value['sid']}_{$value['aid']}.html" : "read.php?id={$value['aid']}{$add_d}";
		} else {
			$href_d=($set['ifhtml']=='1' && file_exists("{$value['aid']}.html")) ? "{$value['aid']}.html" : "read.php?id={$value['aid']}{$add_d}";
		}
		$subject=substrs($value['subject'],$set['listrightlength']);
		$subject=empty($value['title_color']) ? "{$subject}" : "<font color=\"{$value['title_color']}\">{$subject}</font>";
		$subject=empty($value['title_extra']) ? "$subject" : "<{$value['title_extra']}>$subject</{$value['title_extra']}>";
print <<<EOT
-->
              <tr>
                <td height=20>·<a title={$value['subject']} href="{$href_d}" target="_blank">{$subject}</a></td>
              </tr>
<!--
EOT;
	}
} else {
print <<<EOT
-->
              <tr>
                <td height=20 align=center><b>没有搜索到任何结果!</b></td>
              </tr>
<!--
EOT;
}
print <<<EOT
-->
              </tbody>
            </table>
          </td>
        </tr>
        </tbody>
      </table>
    </td>
  </tr>
  </tbody>
</table>
  </center>
</div>
<!--
EOT;
	}
}
?>
-->

⌨️ 快捷键说明

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