Skip to content

Instantly share code, notes, and snippets.

@patpohler
Created January 20, 2015 04:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patpohler/90eb13022c99887c25e7 to your computer and use it in GitHub Desktop.
Save patpohler/90eb13022c99887c25e7 to your computer and use it in GitHub Desktop.
rets_rabbit_search.html
{exp:rets_rabbit:search results_path="search/results"}
<p>Please search for MLS # or Address. Using both may not yield any results.</p>
<label for="rets:MLSNumber">Search by MLS number</label> <input type="text" id="rets:MLSNumber" class="mls" name="rets:MLSNumber"><br>
<label for="rets:City">City</label> <input type="text" id="rets:City" class="address" name="rets:City"><br>
<label for="rets:ListPrice">Price $</label>
<select name="rets:ListPrice">
<option value="" selected="selected">Any</option>
<option value="100000-">Less than $100,000</option>
<option value="100000-150000">$100,000 - $150,000</option>
<option value="150000-200000">$150,000 - $2000,000</option>
<option value="200000-250000">$200,000 - $250,000</option>
<option value="250000-300000">$250,000 - $300,000</option>
<option value="300000-350000">$300,000 - $350,000</option>
<option value="350000-400000">$350,000 - $400,000</option>
<option value="400000-450000">$400,000 - $450,000</option>
<option value="450000-500000">$450,000 - $500,000</option>
<option value="500000+">$500,000 +</option>
</select>
<label for="orderby">Order By</label>
<select id="orderby" name="orderby">
<option value="" {if orderby == ""}selected="selected"{/if}>No ordering</option>
<option value="Price" {if orderby == "Price"}selected="selected"{/if}>Price<option>
</select>
<label for="sort_order">Sort order</label>
<select id="sort_order" name="sort_order">
<option value="desc" {if sort_order == "desc"}selected="selected"{/if}>Descending</option>
<option value="asc" {if sort_order == "asc"}selected="selected"{/if}>Ascending</option>
</select>
{/exp:rets_rabbit:search}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment