<table width="700"><tr height="10"><td></td><td></td></tr><tr><td width="10"><td align="left">
<link rel="stylesheet" type="text/css" href="catalog/template/default/css/account_download.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="download">

  <?php foreach ($downloads as $download) { ?>

  <div class="a">

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

    <div class="c"><b><?php echo $text_size; ?></b> <?php echo $download['size']; ?></div>

  </div>

  <div class="d">

    <table>

      <tr>

        <td width="40%"><?php echo $text_name; ?> <?php echo $download['name']; ?></td>

        <td width="50%"><?php echo $text_remaining; ?> <?php echo $download['remaining']; ?></td>

        <td rowspan="2"><a href="<?php echo $download['href']; ?>"><img src="catalog/template/default/image/download.png" class="png" /></a></td>

      </tr>

      <tr>

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

        <td></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>
</td></tr></table>

