SearchControl.ascx
上传用户:huiyue
上传日期:2022-04-08
资源大小:1429k
文件大小:3k
源码类别:

搜索引擎

开发平台:

ASP/ASPX

  1. <%@ Control Language="c#" AutoEventWireup="true" Inherits="Searcharoo.WebApplication.SearchControlBase" %>
  2. <%@ Import Namespace="Searcharoo.Common" %>
  3. <script runat="server">
  4. </script>
  5. <%--
  6. Panel that is visible when the search page is first visited
  7. --%>
  8. <asp:Panel id="pnlHomeSearch" runat="server">
  9. <form method="get" action="Search.aspx" style="margin:0px;padding:0px;">
  10. <center>
  11. <p class="heading"><font color=darkgray>Search</font><font color=red>a</font><font color=blue>r</font><font color=green>o</font><font color=orange>o</font> <font color=darkgray><sup>7</sup></font></p>
  12. <table align="center" cellspacing="0" cellpadding="4" frame="box" bordercolor="#dcdcdc" bgcolor="lightyellow" rules="none" style="BORDER-COLLAPSE: collapse">
  13.     <tr>
  14.         <td>
  15.         <p class="intro">Search for ...<br><font color=red><%=_ErrorMessage%></font>
  16.             <input name="<%=Preferences.QuerystringParameterName%>" id="<%=Preferences.QuerystringParameterName%>1" size="40" value="<%=Word%>" /> 
  17.         </p>
  18.         </td>
  19.     </tr>
  20.     <tr>
  21. <td align="center"><input type="submit" value="Searcharoo!" class="button" /></td>
  22. </tr>
  23.     <tr>
  24. <td><a href="http://www.searcharoo.net/">Searcharoo.Net</a> - <a href="http://www.conceptdevelopment.net/">ConceptDevelopment.Net</a></td>
  25. </tr>
  26.     <tr>
  27. <td><p class="copyright">&copy; 2004-2009 ConceptDevelopment.Net - Searching <%=WordCount%> words</p></td>
  28. </tr>
  29. </table></center></form>
  30. </asp:Panel>
  31. <%--
  32. Panel that is visible when search results are being shown
  33. --%>
  34. <asp:Panel id="pnlResultsSearch" runat="server">
  35. <form method="get" id="bottom" action="Search.aspx" style="margin:0px;padding:0px;">
  36.         <center>
  37.         <p class="heading" id="pHeading" runat="server"><font color=darkgray>Search</font><font color=red>a</font><font color=blue>r</font><font color=green>o</font><font color=orange>o</font> <font color=darkgray><sup>7</sup></font></p>
  38.         <table cellspacing=0 cellpadding=4 frame=box bordercolor=#dcdcdc rules=none style="BORDER-COLLAPSE: collapse" width="100%" bgcolor="#E1FFFF">
  39.             <tr>
  40.                 <td>
  41.                 <p>Search for :
  42.                     <input type="text" name="<%=Preferences.QuerystringParameterName%>" id="<%=Preferences.QuerystringParameterName%>2" width="400" value="<%=Word%>" />
  43.                     <input type="submit" value="Searcharoo!" class="button" />
  44.                 </p>
  45.                 </td>
  46.             </tr>
  47. <tr id="rowSummary" visible="true" runat="server"><td><p class="copyright">Searching <%=WordCount%> words</p></td></tr>
  48.             <tr id="rowFooter1" visible="false" runat="server"><td><a href="http://www.searcharoo.net/">Searcharoo.Net</a> - <a href="http://www.conceptdevelopment.net/">ConceptDevelopment.Net</a></td></tr>
  49.             <tr id="rowFooter2" visible="false" runat="server"><td><p class="copyright">&copy; 2004 -2009<a href="http://www.conceptdevelopment.net/">ConceptDevelopment.Net</a> - Searching <%=WordCount%> words</p></td></tr>
  50.         </table>
  51.         </center>
  52.     </form>
  53. </asp:Panel>