{* products and categories view *}

{* categories *} {* products *}
{$smarty.const.ADMIN_CATEGORY_TITLE} {$smarty.const.ADMIN_PRODUCT_TITLE}
{section name=i loop=$categories} {/section}
   {if $category.categoryID == 1} {$smarty.const.ADMIN_CATEGORY_ROOT} {else} {$smarty.const.ADMIN_CATEGORY_ROOT} {/if}  
{section name=j loop=$categories[i].level max=$categories[i].level}     {/section} {if !$categories[i].ExpandedCategory} {if $categories[i].ExistSubCategories} {else} {/if} {else} {if $categories[i].ExistSubCategories} {else} {/if} {/if}   {if $category.categoryID == $categories[i].categoryID} {$categories[i].name} {else} {$categories[i].name} {/if} {if !$categories[i].ExpandedCategory} ({$categories[i].products_count_admin}) {else} ({$categories[i].products_count_category}) {/if}
{if $product_report} {if $category.name ne ""}
{$category.name}: {/if}

{if $navigator} {/if} {section name=i loop=$product_report} {/section}
{$navigator}
{$smarty.const.ADMIN_PRODUCT_NAME}
{$smarty.const.ADMIN_PRODUCT_RATING}
{$smarty.const.ADMIN_PRODUCT_VOTES}
{$smarty.const.ADMIN_PRODUCT_SOLD}
{$smarty.const.ADMIN_VIEW_COUNT}
{$smarty.const.IN_STOCK}
{$smarty.const.ADMIN_SORT_ORDER}
{$product_report[i].name} {$product_report[i].customers_rating} {$product_report[i].customer_votes} {$product_report[i].items_sold} {$product_report[i].viewed_times} {$product_report[i].in_stock} {$product_report[i].sort_order}
{else}
{if $category.name} {$category.name}:

{/if} {$smarty.const.STRING_EMPTY_CATEGORY} {/if}