<link rel="stylesheet" type="text/css" href="catalog/template/default/css/account_address.css">
<div class="heading"><?php echo $heading_title; ?></div>
<?php if ($message) { ?> 
<div class="message"><?php echo $message; ?></div>
<?php } ?>
<?php if ($error) { ?>
<div class="warning"><?php echo $error; ?></div>
<?php } ?>
<div id="address">
  <div class="b"><?php echo $text_address_book; ?> </div>
  <?php foreach ($addresses as $result) { ?>
  <div class="c">
    <table width="100%">
      <tr>
        <td width="70%"><?php echo $result['address']; ?></td>
        <td><input type="button" value="<?php echo $button_edit; ?>" onClick="location='<?php echo $result['update']; ?>'" /></td>
        <td><input type="button" value="<?php echo $button_delete; ?>" onClick="location='<?php echo $result['delete']; ?>'"  /></td>
      </tr>
    </table>
  </div>
  <?php } ?>
  <div class="buttons">
    <table>
      <tr>
        <td align="left"><input type="button" value="<?php echo $button_back; ?>" onClick="location='<?php echo $back; ?>'" /></td>
        <td align="right"><input type="submit" value="<?php echo $button_new_address; ?>" onClick="location='<?php echo $insert; ?>'" /></td>
      </tr>
    </table>
  </div>
</div>
