<table class="attribute">
  <?php foreach ($attribute_groups as $attribute_group) { ?>
      <thead>
            <tr>
                 <td colspan="2"><?php echo $attribute_group['name']; ?></td>
            </tr>
      </thead>
      <tbody>
		<?php foreach ($attribute_group['attribute'] as $attribute) { ?>
            <tr>
                  <td><?php echo $attribute['name']; ?></td>
                  <td><?php echo $attribute['text']; ?></td>
            </tr>
        <?php } ?>
 	 </tbody>
  <?php } ?>
</table>
<div class="clear"></div>