{* Smarty *}

{literal}
<script type="text/javascript">
//<![CDATA[
$(function() {  
  $(".flexigrid").flexigrid({height:'auto', nowrap:false});
});
//]]>
</script>
{/literal}

{foreach $Arr as $val}
  {if $val@first}

<div style="padding-bottom: 10px;">Результат DNS запроса {$smarty.post.dns_name}:</div>
<table class="flexigrid" width="390">
  <thead>
    <tr>
      <th width="20">№</th>
      <th width="100">Name</th>
      <th width="60">Type</th>
      <th width="50">Class</th>
      <th width="40">Ttl</th>
<!--      <th width="50">Rdata</th>-->
      <th width="80">Address</th>
    </tr>
  </thead>
  <tbody>
  {/if}
    <tr>
      <td>{$val@iteration}</td>
      <td>{$val->name}</td>
      <td>{$val->type}</td>
      <td>{$val->class}</td>
      <td>{$val->ttl}</td>
<!--      <td>{$val->rdata|from_charset:"windows-1251":"utf-8"}</td>-->
      <td>{$val->address}</td>
    </tr>
  {if $val@last}
  <tbody>
</table>
  {/if}
{/foreach}