<link rel="stylesheet" type="text/css" href="catalog/template/default/css/account_history.css">

<div class="heading"><?php echo $heading_title; ?></div> 

<div class="results">

  <div class="left"><?php echo $text_results; ?></div>

  <div class="right">

    <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data">

      <?php echo $entry_page; ?>

      <select name="page" onchange="this.form.submit();">

        <?php foreach ($pages as $pages) { ?>

        <?php if ($pages['value'] == $page) { ?>

        <option value="<?php echo $pages['value']; ?>" SELECTED><?php echo $pages['text']; ?></option>

        <?php } else { ?>

        <option value="<?php echo $pages['value']; ?>"><?php echo $pages['text']; ?></option>

        <?php } ?>

        <?php } ?>

      </select>

    </form>

  </div>

</div>

<div id="history">

  <?php foreach ($orders as $order) { ?>

  <div class="a">

    <div class="b"><b><?php echo $text_order; ?></b> <?php echo $order['reference']; ?></div>

    <div class="c"><b><?php echo $text_status; ?></b> <?php echo $order['status']; ?></div>

  </div>

  <div class="d">

    <table>

      <tr>

        <td><?php echo $text_date_added; ?> <?php echo $order['date_added']; ?></td>

        <td><?php echo $text_customer; ?> <?php echo $order['name']; ?></td>

        <td rowspan="2"><input type="button" value="<?php echo $button_view; ?>" onclick="location='<?php echo $order['href']; ?>'" /></td>

      </tr>

      <tr>

        <td><?php echo $text_products; ?> <?php echo $order['products']; ?></td>

        <td><?php echo $text_total; ?> <?php echo $order['total']; ?></td>

      </tr>

    </table>

  </div>

  <?php } ?>

</div>

<div class="results">

  <div class="left"><?php echo $text_results; ?></div>

</div>

<div class="buttons">

  <table>

    <tr>

      <td align="right"><input type="button" value="<?php echo $button_continue; ?>" onclick="location='<?php echo $continue; ?>'" /></td>

    </tr>

  </table>

</div>

