224 lines
12 KiB
HTML
224 lines
12 KiB
HTML
<!DOCTYPE html >
|
|
<html lang="en">
|
|
<head>
|
|
<title><%cat_full_name%>: Search</title>
|
|
<%include include_common_head.html%>
|
|
</head>
|
|
<body class="page-<%page_id%>">
|
|
<div class="container-b">
|
|
<%include include_header.html%>
|
|
|
|
<div class="main">
|
|
<%~set content_header_title = 'Search'%>
|
|
|
|
<%~init array breadcrumbs%><%init hash breadcrumbs.0%>
|
|
<%~set breadcrumbs.0.name = 'Search'%>
|
|
|
|
<div class="contentwrapper clearfix">
|
|
<div class="sidebar">
|
|
<%include include_sidebar.html%>
|
|
</div>
|
|
|
|
<%include include_breadcrumb.html%>
|
|
|
|
<div class="content"><%-- start content--%>
|
|
<%include include_content_header.html%>
|
|
|
|
<div class="clearfix">
|
|
<div class="col-6">
|
|
<h4>Search Forums</h4>
|
|
<form action="<%GForum::SEO::url()%>">
|
|
<%hidden_form%>
|
|
<input type="hidden" name="do" value="search_results" />
|
|
<div class="dtable form">
|
|
<div class="drow">
|
|
<div class="dcell name">Search</div>
|
|
<div class="dcell divider"></div>
|
|
<div class="dcell value">
|
|
<select id="search_forum" name="search_forum">
|
|
<option value="all"<%if not search_forum_type or search_forum_type eq all%> selected="selected"<%endif%>>All forums</option>
|
|
<%~set indent = ' '%>
|
|
<%~loop everything%>
|
|
<%~unless forum_id%><%-- A category --%>
|
|
<option value="cat_<%cat_id%>"<%if search_forum_type eq cat and search_forum_id = $cat_id%> selected="selected"<%endif%>>
|
|
<%indent x $cat_depth%><%cat_name%> (All forums)
|
|
</option>
|
|
<%~elsif forum_name%>
|
|
<option value="forum_<%forum_id%>"<%if search_forum_type eq forum and search_forum_id = $forum_id%> selected="selected"<%endif%>>
|
|
<%indent x $cat_depth%> <%forum_name%>
|
|
</option>
|
|
<%~endunless%>
|
|
<%~endloop%>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="drow">
|
|
<div class="dcell name">Search String</div>
|
|
<div class="dcell divider"></div>
|
|
<div class="dcell value">
|
|
<input type="text" id="search_string" name="search_string" <%if not num_results and search_string%> value="<%search_string%>"<%endif%> class="txt midtext" />
|
|
</div>
|
|
</div>
|
|
<div class="drow">
|
|
<div class="dcell name">Type of search*</div>
|
|
<div class="dcell divider"></div>
|
|
<div class="dcell value">
|
|
<select id="search_type" name="search_type">
|
|
<option value="AND"<%if search_type eq AND%> selected="selected"<%endif%>>All words</option>
|
|
<option value="OR"<%if search_type eq OR%> selected="selected"<%endif%>>Any words</option>
|
|
<option value="PHRASE"<%if search_type eq PHRASE%> selected="selected"<%endif%>>Whole Phrase</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="drow">
|
|
<div class="dcell name">Fields to search</div>
|
|
<div class="dcell divider"></div>
|
|
<div class="dcell value">
|
|
<select name="search_fields" size="1" class="button">
|
|
<option value="sb"<%if not search_fields or search_fields eq 'sb'%> selected<%endif%>>
|
|
Subject and Body
|
|
</option>
|
|
<option value="s"<%if search_fields eq 's'%> selected<%endif%>>
|
|
Subject
|
|
</option>
|
|
<option value="b"<%if search_fields eq 'b'%> selected<%endif%>>
|
|
Body
|
|
</option>
|
|
<option value="u"<%if search_fields eq 'u'%> selected<%endif%>>
|
|
Username
|
|
</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="drow">
|
|
<div class="dcell name">Show posts from the last</div>
|
|
<div class="dcell divider"></div>
|
|
<div class="dcell value">
|
|
<select name="search_time" size="1" class="button">
|
|
<option value=""<%ifnot search_time%> selected<%endif%>>Show all posts</option>
|
|
<%if show_last%>
|
|
<option value="last"<%if search_time eq last%> selected<%endif%>>Since last visit</option>
|
|
<%endif%>
|
|
<option value="8h"<%if search_time eq 8h%> selected<%endif%>>8 hours</option>
|
|
<option value="24h"<%if search_time eq 24h%> selected<%endif%>>24 hours</option>
|
|
<option value="3d"<%if search_time eq 3d%> selected<%endif%>>3 days</option>
|
|
<option value="1w"<%if search_time eq 1w%> selected<%endif%>>1 week</option>
|
|
<option value="2w"<%if search_time eq 2w%> selected<%endif%>>2 weeks</option>
|
|
<option value="3w"<%if search_time eq 3w%> selected<%endif%>>3 weeks</option>
|
|
<option value="1m"<%if search_time eq 1m%> selected<%endif%>>1 month</option>
|
|
<option value="3m"<%if search_time eq 3m%> selected<%endif%>>3 months</option>
|
|
<option value="6m"<%if search_time eq 6m%> selected<%endif%>>6 months</option>
|
|
<option value="1y"<%if search_time eq 1y%> selected<%endif%>>1 year</option>
|
|
<option value="2y"<%if search_time eq 2y%> selected<%endif%>>2 years</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="drow">
|
|
<div class="dcell name">Only show posts made by</div>
|
|
<div class="dcell divider"></div>
|
|
<div class="dcell value">
|
|
<input type="text" name="search_user_username"<%if search_user_username%> value="<%search_user_username%>"<%endif%> class="txt shotext" />
|
|
</div>
|
|
</div>
|
|
<div class="drow">
|
|
<div class="dcell name">Only show</div>
|
|
<div class="dcell divider"></div>
|
|
<div class="dcell value">
|
|
<select name="group" size="1" class="button">
|
|
<option value="no"<%if lc group eq 'no'%> selected<%endif%>>Posts</option>
|
|
<option value="yes"<%if not group or lc group eq 'yes'%> selected<%endif%>>Threads</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="drow">
|
|
<div class="dcell name">Sort posts by</div>
|
|
<div class="dcell divider"></div>
|
|
<div class="dcell value">
|
|
<select name="sb" size="1" class="button">
|
|
<option value="post_time"<%if not sb or sb eq 'post_time'%> selected<%endif%>>Post date</option>
|
|
<option value="score"<%if sb eq 'score'%> selected<%endif%>>Relevance</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="drow">
|
|
<div class="dcell name">Number of results per page</div>
|
|
<div class="dcell divider"></div>
|
|
<div class="dcell value">
|
|
<input type="text" name="mh" value="<%if mh%><%mh%><%elsif current_user_default_mh_search%><%current_user_default_mh_search%><%else%><%GForum::Config::tpl_get(default_mh_search)%><%default_mh_search%><%endif%>" class="txt smatext" />
|
|
</div>
|
|
</div>
|
|
<div class="drow actions">
|
|
<div class="dcell name"></div>
|
|
<div class="dcell divider"></div>
|
|
<div class="dcell value">
|
|
<input type="submit" value="Search" class="btn default" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
<div align="justify" style="padding-right: 15px;">*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.</div>
|
|
</div>
|
|
<div class="col-6">
|
|
<h4>Search SlowTwitch.com Knowledge Base</h4>
|
|
<form action="<%main_site_url%>/cgi-bin/articles/search.cgi" method="post" enctype="application/x-www-form-urlencoded">
|
|
<%hidden_form%>
|
|
<div class="dtable form">
|
|
<div class="drow">
|
|
<div class="dcell name">Search string</div>
|
|
<div class="dcell divider"></div>
|
|
<div class="dcell value">
|
|
<input type="text" id="query" name="query" class="txt midtext" />
|
|
</div>
|
|
</div>
|
|
<div class="drow">
|
|
<div class="dcell name">Type of search</div>
|
|
<div class="dcell divider"></div>
|
|
<div class="dcell value">
|
|
<select name="bool">
|
|
<option value="and" selected="selected">Results must contain all words</option>
|
|
<option value="or">Results can contain any of the words</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="drow">
|
|
<div class="dcell name">Only Show</div>
|
|
<div class="dcell divider"></div>
|
|
<div class="dcell value">
|
|
<select name="substring">
|
|
<option value="1">Find similar words</option>
|
|
<option value="0" selected="selected">Find exact words</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="drow">
|
|
<div class="dcell name">Link per page</div>
|
|
<div class="dcell divider"></div>
|
|
<div class="dcell value">
|
|
<select id="mh" name="mh">
|
|
<option>10</option>
|
|
<option selected="selected">25</option>
|
|
<option>50</option>
|
|
<option>100</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="drow actions">
|
|
<div class="dcell name"></div>
|
|
<div class="dcell divider"></div>
|
|
<div class="dcell value">
|
|
<input type="submit" value="Search" class="btn default" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
</div><%-- end content --%>
|
|
</div>
|
|
</div>
|
|
<%include include_footer.html%>
|
|
</div>
|
|
</body>
|
|
<%include include_global_js.html%>
|
|
</html>
|