{* $Id: products.tpl 1794 2006-05-16 13:02:47Z zeke $ *}
 {$lang.add_new_product}

{capture name="mainbox"} {if $smarty.get.category_id == ''} {capture name="section"} {include file="products_pages/products_search_form.tpl" search_mode="do_search_products" search_type="extended" target="products"} {/capture} {include file="common_templates/section.tpl" section_title=$lang.search_for_products section_content=$smarty.capture.section} {/if}
{include file="common_templates/pagination.tpl"} {if $smarty.get.category_id} {/if} {if $products} {foreach from=$products item=product} {if $smarty.get.category_id} {/if} {/foreach} {else} {/if}
{$lang.position_short}{$lang.code} {$lang.products} {$lang.price} ({$currencies.$primary_currency.symbol}) {$lang.list_price} ({$currencies.$primary_currency.symbol}) {$lang.amount} {$lang.avail}
{$product.product}  {$lang.delete} 
{if $product.tracking == 'O'} {include file="buttons/button.tpl" but_text=$lang.edit but_onclick="$index_script?$target_name=product_options&$mode_name=inventory&product_id=`$product.product_id`" but_style="text"} {else} {/if}

{$lang.text_no_products_found}

{include file="common_templates/pagination.tpl"}

{if 'manage_catalog'|fn_check_privileges:true} {if $products}
{include file="buttons/update.tpl" but_onclick="javascript:document.manage_products_form.submit()" but_type="input"}     {include file="buttons/delete_selected.tpl" but_onclick="javascript: fn_delete_selected('manage_products_form','do_m_delete');" but_arrow="on"}     {include file="buttons/button.tpl" but_text=$lang.clone_selected but_onclick="javascript: document.manage_products_form.$mode_name.value='m_clone'; document.manage_products_form.submit();" but_arrow="on"}
{/if}

{include file="buttons/add_new.tpl" but_href="$index_script?$target_name=products&$mode_name=add"} {if $products}

{$lang.text_select_fields2edit_note}

{include file="products_pages/products_select_fields.tpl"} {include file="buttons/modify_selected.tpl" but_onclick="javascript: fn_delete_selected('manage_products_form','do_store_selection',true);" but_arrow="on"} {/if} {/if}

{/capture} {include file="common_templates/mainbox.tpl" title=$lang.products content=$smarty.capture.mainbox}