<link rel="stylesheet" type="text/css" href="catalog/template/default/css/review.css">
<?php if (!$price) { ?>
<div class="heading"><?php echo $heading_title; ?></div>
<?php } else { ?> 
<div class="heading">
  <div class="left"><?php echo $heading_title; ?></div>
  <div class="right"><?php echo $price; ?></div>
</div>
<?php } ?>
<div class="results">
  <div class="left"><?php echo $text_results; ?></div>
  <div class="right"><?php echo $entry_page; ?>
    <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data">
      <select 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="review">
  <?php foreach ($reviews as $review) { ?>
  <div class="a">
    <div class="b"><a href="<?php echo $review['href']; ?>" ><?php echo $review['name']; ?></a> <?php echo $text_review_by; ?> <?php echo $review['author']; ?></div>
    <div class="c"><b><?php echo $text_date_added; ?></b> <?php echo $review['date_added']; ?></div>
    <table>
      <tr>
        <td rowspan="2"><a href="<?php echo $review['href']; ?>"><img src="<?php echo $review['thumb']; ?>" alt="<?php echo $review['name']; ?>" class="d" /></a></td>
        <td><?php echo $review['text']; ?></td>
      </tr>
      <tr>
        <td><b><?php echo $text_rating; ?></b> <img src="catalog/template/default/image/stars_<?php echo $review['rating'] . '.png'; ?>" alt="<?php echo $review['out_of']; ?>" class="png" /><br />
          (<?php echo $review['out_of']; ?>)</td>
      </tr>
    </table>
  </div>
  <?php } ?>
</div>
<div class="results">
  <div class="left"><?php echo $text_results; ?></div>
</div>
