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

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

{$STATUSMSG}

<table class="stdtable" cellspacing="0">

  <tr>
    <td class="header"> {$product.prod_code|wash} - {$product.prod_name|wash} </td>
    <td class="headeraction">
      {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> ]
      {else}
      &nbsp;
      {/if}
    </td>
  </tr>

  <tr>
    <td class="label">{t}Product code{/t}: </td>
    <td class="data"> {$product.prod_code|wash} </td>
  </tr>
  <tr>
    <td class="label">{t}Product name{/t}: </td>
    <td class="data"> {$product.prod_name|wash} </td>
  </tr>
  <tr>
    <td class="label">{t}Price{/t}: </td>
    <td class="data"> {$product.prod_price|wash} </td>
  </tr>
  <tr>
    <td class="label">{t}Daily consumption{/t}: </td>
    <td class="data"> {$product.prod_consumption|wash} </td>
  </tr>
 <tr>
    <td class="label">{t}Stock{/t}: </td>
    <td class="data"> {$product.prod_stock|wash} </td>
  </tr>
  <tr>
    <td class="label">{t}Category{/t}: </td>
    <td class="data"> {$product.prcat_title|wash|default:"&nbsp;"} </td>
  </tr>

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


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