discourse-legacysite-perl/site/forum/search_results.html
2024-06-17 22:24:05 +10:00

93 lines
4.1 KiB
HTML

<!DOCTYPE html >
<%~set search_widget = 1%>
<%~set poll_widget = 1%>
<html lang="en">
<head>
<title><%cat_full_name%>: Search results</title>
<%include include_common_head.html%>
</head>
<body class="page-<%page_id%>">
<div class="container-b">
<%include include_header.html%>
<div class="main">
<div class="contentwrapper clearfix">
<div class="sidebar">
<%include include_sidebar.html%>
</div>
<%~set content_header_title = "Search Results"%>
<%~init array breadcrumbs%><%init hash breadcrumbs.0%>
<%~set breadcrumbs.0.name = $content_header_title%>
<%include include_breadcrumb.html%>
<div class="content"><%-- start content--%>
<%include include_content_header.html%>
<p>Your search <%if search_words or limited_by_user%>for <%endif%><%if search_words%><b><%search_words%></b> <%if limited_by_user%> in<%endif%><%endif%><%if limited_by_user%> posts made by <b><%limited_by_user%></b><%endif%> returned <%num_results%> results</p>
<p><font size="1">[N.B. The search function breaks on numbers. So searching, for example, for "P5X" gives the same results as searching for "P"+"5"+"X." If you want to search for the phrase that contains a numeral like, "P5X," you need to select "Whole Phrase" from the "Type of Search" drop-down.]</font></p>
<hr class="line" />
<form action="<%main_site_url%>/cgi-bin/articles/search.cgi" method="post" enctype="application/x-www-form-urlencoded">
<%hidden_form%>
<div class="searchbox clearfix">
<div class="col-4">
Search the entire Slowtwitch.com knowledge base for:<br />
<input type="text" name="query" class="txt midtext" value="<%search_words || ''%>" />
</div>
<div class="col-4 clearfix">
<div class="option">
<div class="clearfix"><input id="type_and" name="bool" type="radio"value="and" checked="checked" /> <label for="type_and">Results must contain all words</label></div>
<div class="clearfix"><input id="type_or" name="bool" type="radio" value="or" /> <label for="type_or">Results can contain any of the words</label></div>
</div>
<div class="option">
<div class="clearfix"><input id="similar_words" name="substring" type="radio"value="1" /> <label for="similar_words">Find similar words</label></div>
<div class="clearfix"><input id="exact_words" name="substring"type="radio" value="0" checked="checked" /> <label for="exact_words">Find exact words</label></div>
</div>
<div class="option">
Link per page<br />
<select id="mh" name="mh">
<option>10</option>
<option selected="selected">25</option>
<option>50</option>
<option>100</option>
</select>
</div>
</div>
<div class="col-4">
<input type="submit" name="search" value="Search" class="btn" />
</div>
</div>
</form>
<%~set post_list = $results%>
<%~set post_list_table_class = 'search-list'%>
<%~if search_string ne ''%>
<%~set post_list_query_string = 'search_string='%>
<%~set post_list_query_string .= escape_url unescape_html $search_string%>
<%~endif%>
<%~set post_list_show_replies = 1%>
<%~include include_post_list.html%>
<%~if num_results > $mh%>
<div class="toolbar clearfix">
<hr class="line" />
<%~set pagination_options.params = "do=$this_do;$search_query;sb=$sb;mh=$mh"%>
<%~set pagination_options.page_items = $num_results%>
<%include include_paging.html%>
</div>
<%~endif%>
</div><%-- end content --%>
</div><%-- end contentwrapper --%>
</div><%-- end main --%>
<%include include_footer.html%>
</div>
</body>
<%~include include_global_js.html%>
</html>