{* Smarty *}

{literal}
<script type="text/javascript">
//<![CDATA[
  $(function() {
    $('.PoInformationView').flexigrid({title: "ПО", width: 420, height:'auto', nowrap:false});
    $('.PoLicenseInformationView').flexigrid({title: "Лицензии ПО", width: 420, height:'auto', nowrap:false});
  });
//]]>
</script>
{/literal}

<table class="PoInformationView">
  <tr>
    <td><label>Наименование:&nbsp;</label></td>
    <td>{if isset($ArrPo.po_name)}{$ArrPo.po_name}{/if}</td>
  </tr>
  <tr>
    <td><label>Примечание:&nbsp;</label></td>
    <td>{if isset($ArrPo.po_note)}{$ArrPo.po_note}{/if}</td>
  </tr>
</table>
<br />
{foreach $ArrPoLicence as $val}
  {if $val@first}
  <table class="PoLicenseInformationView">
  {/if}
    <tr>
      <td rowspan="6" style="font-weight: bold;">{$val@iteration}.</td>
      <td><label>Наименование:&nbsp;</label></td>
      <td>{if isset($val.policence_name)}{$val.policence_name}{/if}</td>
    </tr>
    <tr>
      <td><label>Продавец:&nbsp;</label></td>
      <td>{if isset($val.organiz_name)}{$val.organiz_name}{/if}</td>
    </tr>
      <td><label>Количество лицензий:&nbsp;</label></td>
      <td>{if isset($val.policence_number)}{$val.policence_number}{/if}</td>
    </tr>
    <tr>
      <td><label>Примечание:&nbsp;</label></td>
      <td>{if isset($val.policence_note)}{$val.policence_note}{/if}</td>
    </tr>
    <tr>
      <td><label>Дата с:&nbsp;</label></td>
      <td>{if isset($val.policence_dateb)}{$val.policence_dateb|date_format:"%d.%m.%Y"}{/if}</td>
    </tr>
    <tr>
      <td><label>Дата по:&nbsp;</label></td>
      <td>{if isset($val.policence_datee)}{$val.policence_datee|date_format:"%d.%m.%Y"}{/if}</td>
    </tr>
  {if $val@last}
  </table>
  {/if}
{/foreach}