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

📄 search.asp

📁 一个功能很全面的设计网站,可以作为工作室、个人主页、技术网站等
💻 ASP
字号:
<!--#include file="top.asp"-->
<%
const ChannelID=2
const ShowRunTime="Yes"
MaxPerPage=10
SkinID=0
PageTitle="搜索结果"
strFileName="Search.asp?Field=" & strField & "&Keyword=" & keyword & "&ClassID=" & ClassID
%>

<table width="760" height="499" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <!--DWLayoutTable-->
  <tr> 
    <td width="5" height="495">&nbsp;</td>
    <td width="750" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="f2f2f2"  class="twe">
        <!--DWLayoutTable-->
        <tr> 
          <td width="8" height="7"></td>
          <td width="733"></td>
          <td width="8"></td>
        </tr>
        <tr> 
          <td height="400"></td>
          <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
              <!--DWLayoutTable-->
              <tr> 
                <td width="220" valign="top" class="tdr"><table  width="100%" border="0" cellpadding="0" cellspacing="0">
                    <!--DWLayoutTable-->
                    <tr> 
                      <td width="221" height="105" valign="top"> 
                        <table width="220" height="106" border="0" cellpadding="0" cellspacing="0">
                          <tr> 
                            <td height="35" valign="bottom"> <div align="left"> 
                                <table width="98%" height="5" border="0" align="center" cellpadding="0" cellspacing="0">
                                  <tr> 
                                    <td height="3" Class="tdbg_left2"></td>
                                  </tr>
                                </table>
                                &nbsp;&nbsp;<img src="img/INDEX_r4_c333.gif" width="95" height="26"> 
                              </div></td>
                          </tr>
                          <tr> 
                            <td valign="middle"><table width="98%" border="0" align="center" >
                                <tr> 
                                  <td height="1" background="img/LINE1.gif"> </td>
                                </tr>
                                <tr> 
                                  <td height="10"></td>
                                </tr>
                                <tr> 
                                  <td valign="top"> 
                                    <% call ShowElite(5,20) %>
                                  </td>
                                </tr>
                              </table></td>
                          </tr>
                        </table>
                        <table width="98%" height="5" border="0" align="center" cellpadding="0" cellspacing="0">
                          <tr> 
                            <td height="8" Class="tdbg_left2"></td>
                          </tr>
                        </table>
                        <table width="220" height="105" border="0" cellpadding="0" cellspacing="0">
                          <tr> 
                            <td height="30" valign="bottom"> <div align="left"> 
                                <table width="98%" height="5" border="0" align="center" cellpadding="0" cellspacing="0">
                                  <tr> 
                                    <td height="3" Class="tdbg_left2"></td>
                                  </tr>
                                </table>
                                &nbsp;&nbsp;<img src="img/INDEX_r6_c22.gif" width="98" height="26"> 
                              </div></td>
                          </tr>
                          <tr> 
                            <td valign="middle"><table width="98%" border="0" align="center" >
                                <tr> 
                                  <td height="1" background="img/LINE1.gif"> </td>
                                </tr>
                                <tr> 
                                  <td height="10"></td>
                                </tr>
                                <tr> 
                                  <td valign="top"> 
                                    <% call Showhot(5,20) %>
                                  </td>
                                </tr>
                              </table></td>
                          </tr>
                        </table>
                        <table width="98%" height="5" border="0" align="center" cellpadding="0" cellspacing="0">
                          <tr> 
                            <td height="8" Class="tdbg_left2"></td>
                          </tr>
                        </table>
                        <table width="220" height="105" border="0" cellpadding="0" cellspacing="0">
                          <tr> 
                            <td height="33" valign="bottom"> <div align="left">&nbsp;<img src="img/INDEX_r8_c6.gif" width="61" height="27"></div></td>
                          </tr>
                          <tr> 
                            <td valign="middle"> <table width="98%" border="0" align="center" >
                                <tr> 
                                  <td height="1" background="img/LINE1.gif"> </td>
                                </tr>
                                <tr> 
                                  <td height="90" valign="middle"> <div align="center"> 
                                      <% call ShowSearchForm("Search.asp",2) %>
                                    </div></td>
                                </tr>
                              </table></td>
                          </tr>
                        </table>
                        <table width="98%" height="5" border="0" align="center" cellpadding="0" cellspacing="0">
                          <tr> 
                            <td height="8" Class="tdbg_left2"></td>
                          </tr>
                        </table>
                        <table width="100%" height="105" border="0" cellpadding="0" cellspacing="0">
                          <tr> 
                            <td height="33" valign="bottom"> <img src="img/INDEX_r11_c2333.gif" width="165" height="30"></td>
                          </tr>
                          <tr> 
                            <td valign="middle"> <table width="99%" border="0" align="center" >
                                <tr> 
                                  <td height="1" background="img/LINE1.gif"> </td>
                                </tr>
                                <tr> 
                                  <td height="80" valign="middle"> <div align="center"> 
                                      <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                                        <tr> 
                                          <td height="90" valign="bottom" Class="tdbg_left2"> 
                                            <div align="center"><img src="ad/adimg/175-65.jpg" width="175" height="80"></div></td>
                                        </tr>
                                      </table>
                                      <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                                        <tr> 
                                          <td height="8" Class="tdbg_left2"></td>
                                        </tr>
                                      </table>
                                      <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                                        <tr> 
                                          <td height="15" Class="tdbg_left2"> 
                                            <div align="center"> 
                                              <%
dim ad
set ad=server.createobject("mswc.adrotator")
%>
                                              <%=ad.getadvertisement("ad/ad.txt")%> 
                                            </div></td>
                                        </tr>
                                      </table>
                                      <table width="98%" height="5" border="0" align="center" cellpadding="0" cellspacing="0">
                                        <tr> 
                                          <td height="13" Class="tdbg_left2"></td>
                                        </tr>
                                      </table>
                                    </div></td>
                                </tr>
                              </table></td>
                          </tr>
                        </table>
                       
                      </td>
                    </tr>
                  </table></td>
                <td width="9">&nbsp;</td>
                <td width="504" valign="top" class="tdr" bgcolor="#FFFFFF"> <table width="98%" height="5" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr> 
                      <td height="6" Class="tdbg_left2"></td>
                    </tr>
                  </table>
                  <table width="488" border="0" align="center" cellpadding="0" cellspacing="0" class="tde">
                    <!--DWLayoutTable-->
                    <tr> 
                      <td width="484" height="25" valign="top"><table width="498%" border="0" cellpadding="0" cellspacing="0" class="1">
                          <!--DWLayoutTable-->
                          <tr> 
                            <td width="498" height="25" valign="bottom" bgcolor="#fafafa"> 
                              <table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
                                <tr> 
                                  <td width="4%" height="22"><img src="img/tp.gif" width="10" height="10">&nbsp;&nbsp;</td>
                                  <td width="96%"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                                      <tr> 
                                        <td width="87%" height="22"> &nbsp;&nbsp; 
                                          <%
		if keyword="" then
			response.write "所有文章"
		else
			select case strField
				case "Title"
					response.write "标题中含有 <font color=red>"&keyword&"</font> 的文章"
				case "Content"
					response.write "内容含有 <font color=red>"&keyword&"</font> 的文章"
				case "Author"
					response.write "作者姓名含有 <font color=red>"&keyword&"</font> 的文章"
				case else
					response.write "标题中含有 <font color=red>"&keyword&"</font> 的文章"
			end select
		end if
%> </td>
                                      </tr>
                                    </table></td>
                                </tr>
                              </table></td>
                          </tr>
                        </table></td>
                    </tr>
                    <tr> 
                      <td width="484" height="100" valign="top"> <table width="483" border="0" align="center" cellpadding="0" cellspacing="5">
                          <!--DWLayoutTable-->
                          <tr> 
                            <td width="473" height="100" valign="top" bgcolor="f9f9f9" ><table width="98%" height="4" border="0" align="center" cellpadding="0" cellspacing="0">
                                <tr> 
                                  <td height="8" Class="tdbg_left2"></td>
                                </tr>
                              </table>
                              <div align="left"> 
                                <%call ShowSearchResult()%>
                              </div></td>
                          </tr>
                        </table></td>
                    </tr>
                  </table>
                  <table width="98%" height="5" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr> 
                      <td height="6" Class="tdbg_left2"></td>
                    </tr>
                  </table>
                  <table width='488' border='0' align="center"cellpadding='2' cellspacing='0' class="tde">
                    <tr> 
                      <td height="20" bgcolor="f2f2f2"> <div align="center"> 
                          <%
		  if totalput>0 then
		  	call showpage(strFileName,totalput,MaxPerPage,false,true,"篇文章")
		  end if
		  %>
                        </div></td>
                    </tr>
                  </table>
                  <table width="98%" height="5" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr> 
                      <td height="6" Class="tdbg_left2"></td>
                    </tr>
                  </table>
                  <div align="center">
                    <% call ShowAD() %>
                  </div>
                  <table width="98%" height="5" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr> 
                      <td height="6" Class="tdbg_left2"></td>
                    </tr>
                  </table></td>
              </tr>
            </table></td>
          <td></td>
        </tr>
        <tr> 
          <td height="10"></td>
          <td></td>
          <td></td>
        </tr>
      </table></td>
    <td width="5">&nbsp;</td>
  </tr>
  <tr> 
    <td height="4"></td>
    <td></td>
    <td></td>
  </tr>
</table>
<!--#include file="end.asp"-->

⌨️ 快捷键说明

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