Page MenuHomeIn-Portal Phabricator

search_results.tpl
No OneTemporary

File Metadata

Created
Thu, Oct 29, 6:44 AM

search_results.tpl

<inp2:m_DefineElement name="product_image">
<img src="<inp2:m_param name="img_path" />" title="<inp2:m_param name="alt" />" alt="<inp2:m_param name="alt" />" <inp2:m_param name="img_size" /> border="0" /><br/>
</inp2:m_DefineElement>
<inp2:p_InitList list_name="search_results" types="search" parent_cat_id="any" recursive="true" per_page="default" />
<table border="0" cellspacing="0" cellpadding="0" class="block-no-border">
<tr>
<td class="block-header">Search Results (<inp2:p_TotalRecords list_name="search_results" />)</td>
</tr>
<tr>
<td class="block-data">
<inp2:m_if check="p_TotalRecords" list_name="search_results">
<span style="text-align: center">
<form name="subsearch_form" id="subsearch_form" method="POST" action="<inp2:m_link template="search_results" />">
<input type="text" name="keywords" id="keywords" style="width: 300px" value="<inp2:p_SearchKeywords />" />&nbsp;
<input type="hidden" name="search_type" value="subsearch" />
<input class="button" type="submit" value="Search in Results" />
</form>
</span>
<table class="block-no-border">
<tr>
<td style="width: 50%;" class="block-data-grid-header">
<inp2:m_include template="in-commerce/blocks/products/products_sorting" list_name="search_results" />
</td>
<td style="text-align: center;" class="block-data-grid-header">
<inp2:m_include template="in-commerce/blocks/products/products_pagination" list_name="search_results" />
</td>
</tr>
</table>
<br />
<table>
<inp2:m_DefineElement name="product_row_start">
<tr>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="product_search_relevance_normal">
<small>Relevance:</small><br/>
<table class="relevance-bar" width="70" height="5" align="right">
<tr>
<td width="<inp2:m_param name="percent_on" />%" bgcolor="<inp2:m_param name="on_color" />"><img src="img/s.gif"></td>
<td width="<inp2:m_param name="percent_off" />%" bgcolor="<inp2:m_param name="off_color" />"><img src="img/s.gif"></td>
</tr>
</table>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="product_search_relevance_full">
<small>Relevance:</small><br/>
<table class="relevance-bar" width="70" height="5" align="right">
<tr>
<td width="100%" bgcolor="<inp2:m_param name="on_color" />"><img src="img/s.gif"></td>
</tr>
</table>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="product_search_highlight_opening"><span style="background: yellow"></inp2:m_DefineElement>
<inp2:m_DefineElement name="product_search_highlight_closing"></span></inp2:m_DefineElement>
<inp2:m_DefineElement name="product_elem">
<td width="16%" align="center" valign="top" class="block-data">
<inp2:RelevanceIndicator on_color="Red" off_color="White" relevance_normal_render_as="product_search_relevance_normal" relevance_full_render_as="product_search_relevance_full" />
<a href="<inp2:ProductLink template="__default__"/>"><inp2:Image render_as="product_image" thumbnail="1" default_image="in-commerce/img/no_product.jpg" MaxWidth="120" MaxHeight="120" DefaultWidth="120" /></a>
</td>
<td width="84%" class="block-data"> <a href="<inp2:ProductLink template="__default__"/>" class="link-product2"><strong><inp2:SearchResultField field="Name" highlight_opening_render_as="product_search_highlight_opening" highlight_closing_render_as="product_search_highlight_closing" /></strong></a> <a href="<inp2:AddToCartLink template="in-commerce/shop_cart/shop_cart" product_template="__default__"/>"><img src="img/buy.gif" alt="Buy Now" width="56" height="20" border="0" vspace="4" /></a><br />
<inp2:m_if check="Field" name="MSRP"><strong>MSRP:</strong> <span class="price-msrp"><inp2:Field name="MSRP" currency="selected"/></span> <br /> </inp2:m_if>
<strong>Our Price:</strong> <span class="price1"><inp2:Field name="Price" currency="selected"/></span> <br />
<strong>Description:</strong> <inp2:SearchResultField field="DescriptionExcerpt" highlight_opening_render_as="product_search_highlight_opening" highlight_closing_render_as="product_search_highlight_closing" />
</td>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="product_row_end">
</tr>
<inp2:m_if check="NotLastItem">
<tr>
<td colspan="2" style="background: #CCCCCC; height: 1px; padding: 0px"><img src="img/s.gif" alt="" width="1" height="1" /></td>
</tr>
</inp2:m_if>
</inp2:m_DefineElement>
<inp2:p_ListProducts list_name="search_results" columns="1" direction="V" render_as="product_elem" row_start_render_as="product_row_start" row_end_render_as="product_row_end" empty_cell_render_as="product_empty_cell" />
</table>
</inp2:m_if>
</td>
</tr>
</table>

Event Timeline