{* Smarty *}

{literal}
<script type="text/javascript">
//<![CDATA[
$(function() {
  tableToGrid("#PoLicenceView", {
    caption:'Окончание лицензии',
    colModel: [
      {name: "policence_name", width:265, align:"left", sortable: false},
      {name: "policence_datee", width:150, align:"right", sortable: false}
    ],
    width:"auto",
    height:"auto"
  });
});
//]]>
</script>
{/literal}

{foreach $ArrPoLicence as $val}
  {if $val@first}
    {$VarTotal=0}
<table id="PoLicenceView">
  <thead>
    <tr>
      <th id="policence_name">Наименование</th>
      <th id="policence_datee">Дата окончания лицензии</th>
    </tr>
  </thead>
  <tbody>
  {/if}
    <tr>
      <td><a target="_blank" class="ui-state-default" href="/{$MS_SP->Sp_PathTop}/PoInformation.php?po_id={$val.po_id}">{$val.policence_name}</a></td>
      <td>{$val.policence_datee|date_format:"%d.%m.%Y"}</td>
    </tr>
  {if $val@last}
  </tbody>
</table>
  {/if}
{/foreach}