Page MenuHomeIn-Portal Phabricator

products_search_results.tpl
No OneTemporary

File Metadata

Created
Sat, Jan 31, 9:49 PM

products_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" style="margin: 2px;"/><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"><inp2:m_Phrase label="lu_comm_SearchResults"/> (<inp2:p_TotalRecords list_name="search_results" />)</td>
</tr>
<tr>
<td class="block-data">
<span style="text-align: center">
<form name="subsearch_form" id="subsearch_form" method="POST" action="<inp2:m_link template="in-commerce/store/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="<inp2:m_Phrase label="lu_comm_SearchInResults" no_editing="1"/>" />
</form>
</span>
<br/>
<inp2:m_if check="m_ModuleEnabled" module="In-Edit">
<inp2:m_include template="in-edit/blocks/search_short_results"/>
</inp2:m_if>
<inp2:m_if check="p_TotalRecords" list_name="search_results">
<br />
<table>
<tr>
<td style="width: 300px">
<inp2:m_include template="in-commerce/blocks/products/products_sorting" list_name="search_results" />
</td>
<td style="text-align: center;">
<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><inp2:m_Phrase label="lu_comm_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" /><br/>
<a href="<inp2:ProductLink template="__default__"/>"><inp2:Image render_as="product_image" thumbnail="1" DefaultImage="in-commerce/img/no_picture_list.gif" 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>
<inp2:m_if check="Available">
<a href="<inp2:AddToCartLink template="in-commerce/checkout/shop_cart" product_template="__default__"/>"><img src="in-commerce/img/buy2.gif" alt="" width="15" height="17" border="0" style="vertical-align:middle" /></a>
</inp2:m_if>
<br />
<inp2:m_if check="Field" name="MSRP"><strong><inp2:m_Phrase label="lu_comm_MSRP"/>:</strong> <span class="price-msrp"><inp2:Field name="MSRP" currency="selected"/></span> <br /> </inp2:m_if>
<strong><inp2:m_Phrase label="lu_comm_OurPrice"/>:</strong> <span class="price1"><inp2:Field name="Price" currency="selected"/></span> <br />
<strong><inp2:m_Phrase label="lu_comm_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_else />
<inp2:m_DefineElement name="product_keywords_too_short">
<table class="warning">
<tr>
<td valign="top" align="left" class="block-data">
<img src="img/message.gif" alt="" width="19" height="19" />
<span class="warning-text"><inp2:m_Phrase label="lu_Warning"/></span><br />
<inp2:m_Phrase label="lu_comm_KeywordsTooShort"/>!!!
</td>
</tr>
</table>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="product_no_found">
<table class="warning">
<tr>
<td valign="top" align="left" class="block-data">
<img src="img/message.gif" alt="" width="19" height="19" />
<span class="warning-text"><inp2:m_Phrase label="lu_Warning"/></span><br />
<inp2:m_Phrase label="lu_comm_NoProductsFound"/>!
</td>
</tr>
</table>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="adv_search_error">
<table class="warning">
<tr>
<td valign="top" align="left" class="block-data">
<img src="img/message.gif" alt="" width="19" height="19" />
<span class="warning-text"><inp2:m_Phrase label="lu_Warning"/></span><br />
<inp2:m_Phrase label="lu_comm_NoCriteriaEntered"/>
</td>
</tr>
</table>
</inp2:m_DefineElement>
<tr>
<td>
<inp2:p_ErrorMessage keywords_too_short_render_as="product_keywords_too_short" adv_search_error_render_as="adv_search_error" no_found_render_as="product_no_found" /><br />
<inp2:m_Phrase label="lu_comm_TryRecomendedProductd"/>.
<br /><br />
<inp2:m_include template="in-commerce/blocks/products/products_picks" />
</td>
</tr>
</inp2:m_if>
</td>
</tr>
</table>

Event Timeline