{include file="products/products_js.html"} {if $action eq 'edit'}

{$LABEL.title_prods_edit}

{assign var=cur_tab value=$TABS->GetActive($module)} {literal} {/literal}
{include file="products/product_edit.html"}
{include file="products/product_params/product_params.html"}
{if $CONFIG.modules.recommended_products.avail eq 'Y'} {include file="products/recommended_products/recommended_products.html"} {else} {$LABEL.lbl_module_blocked} {/if}
{include file="products/product_pictures/product_pictures.html"}
{if $CONFIG.modules.related_products.avail eq 'Y'} {include file="products/related_products/related_products.html"} {else} {$LABEL.lbl_module_blocked} {/if}
{if $product.egood ne 'Y'}
{if $CONFIG.modules.prod_options.avail eq 'Y'} {include file="products/product_options/product_options.html"} {else} {$LABEL.lbl_module_blocked} {/if}
{if $CONFIG.modules.prod_options.avail eq 'Y'} {include file="products/product_variants/product_variants.html"} {else} {$LABEL.lbl_module_blocked} {/if}
{/if}
{include file="products/product_attachments/attachments.html"}
{elseif $action eq 'add' or $action eq 'add_egood'} {include file="products/product_add.html"} {elseif $action eq 'show_sform'} {include file="products/search_form.html"} {elseif $action eq 'srch_results'} {include file="products/search_results.html"} {elseif $action eq 'show_all'} {include file="products/show_all.html"} {elseif $action eq 'show_recycled'} {include file="products/show_recycled.html"} {else} {include file="products/products_list.html"} {/if}