<!-- BEGIN {$smarty.template} -->

{include file="delete_product.tpl.js"}

{$STATUSMSG}

<table class="detail" cellspacing="0">
  <caption><em>{$product.prod_code|wash} - {$product.prod_name|wash}</em>
    {if ($perm_products)}
    [ <a class="ptr" onclick="confirm_delete_product({$product.prod_id}, '{$product.prod_code|phpaga_popup_sanitizestr} - {$product.prod_name|phpaga_popup_sanitizestr}');">{t}Delete{/t}</a>
    | <a href="edit_product.php?id={$product.prod_id}">{t}Edit{/t}</a> ]
    {/if}
  </caption>
  <tr>
    <th>{t}Product code{/t}: </th>
    <td> {$product.prod_code|wash} </td>
  </tr>
  <tr>
    <th>{t}Product name{/t}: </th>
    <td> {$product.prod_name|wash} </td>
  </tr>
  <tr>
    <th>{t}Price{/t}: </th>
    <td> {$config.MONETARY_SYMBOL|wash}{$product.prod_price|wash} </td>
  </tr>
  <tr>
    <th>{t}Daily consumption{/t}: </th>
    <td> {$product.prod_consumption|wash} </td>
  </tr>
 <tr>
    <th>{t}Stock{/t}: </th>
    <td> {$product.prod_stock|wash} </td>
  </tr>
  <tr>
    <th>{t}Category{/t}: </th>
    <td> {$product.prcat_title|wash|default:"&nbsp;"} </td>
  </tr>

  <tr>
    <th class="recinfo">{t}Created{/t}: </th>
    <td class="recinfo"> {$product.prod_created|date_format:$smarty.const.PHPAGA_DATETIMEFORMAT_LONG|default:"&nbsp;"} </td>
  </tr>
  <tr>
    <th class="recinfo">{t}Last modified{/t}: </th>
    <td class="recinfo"> {$product.prod_lastmod|date_format:$smarty.const.PHPAGA_DATETIMEFORMAT_LONG|default:"&nbsp;"} </td>
  </tr>
</table>


<!-- END {$smarty.template} -->
