{* $Id: categories.tpl 1895 2006-06-07 11:28:24Z zeke $ *} {** featured products section **}
{capture name="mainbox"} {if $target == "index_page"} {$lang.text_index_page_featured_products}

{/if}

{include file="common_templates/subheader.tpl" title=$lang.defined_featured_products} {if $featured_products}

{/if} {include file="products_pages/products_list_update.tpl" products=$featured_products form_name="featured_products_form"}

{if $featured_products} {** Form submit section **}
{include file="buttons/update.tpl" but_onclick="javascript:document.featured_products_form.submit()"}     {include file="buttons/delete_selected.tpl" but_onclick="javascript: fn_delete_selected('featured_products_form','delete_featured', true);"}
{** /Form submit section **}


{/if}
{include file="common_templates/subheader.tpl" title=$lang.add_products_to_section} {capture name="section"} {include file="products_pages/products_search_form.tpl" target=$target mode=$mode category_id=$smarty.get.category_id|escape:'HTML' search_products="Y" page_part="featured_products"} {/capture} {include file="common_templates/section.tpl" section_title=$lang.search_for_products section_content=$smarty.capture.section} {if $smarty.get.search_products == 'Y'} {if $products}
{/if} {include file="products_pages/products_list.tpl" products=$products form_name="add_featured_products" checkbox_id="add_featured_product_checkbox" pagination_suffix="#add_featured_products"} {if $products} {** Form submit section **}

{include file="buttons/add_products.tpl" but_onclick="javascript: if (fn_check_selected('add_featured_products','add_featured_product_checkbox')) document.add_featured_products.submit();"} {** /Form submit section **}

{/if} {/if} {/capture} {include file="common_templates/mainbox.tpl" title=$lang.featured_products content=$smarty.capture.mainbox} {** /featured products section **}