<div class="box">
<font style="align:center"><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Your Selection</b></font>
<font style="text-align:center"><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(Clear All)</font></br></br>
<?php if($gemname<>''){ ?>
<a href="<?php echo $gememptyurl; ?>" style="text-decoration: none;">X &nbsp;&nbsp;<?php echo $gemname ;?></a> 
</br>
<?php } ?>
<?php if($metalname<>''){ ?>
<a href="<?php echo $metalemptyurl; ?>" style="text-decoration: none;">X &nbsp;&nbsp;<?php echo $metalname ;?></a> 
</br>
<?php } ?>
<?php if($shapename<>''){ ?>
<a href="<?php echo $shapeemptyurl; ?>" style="text-decoration: none;">X &nbsp;&nbsp;<?php echo $shapename ;?></a> 
</br>
<?php } ?>
<?php if($pricerange<>''){ ?>
<a href="<?php echo $priceemptyurl; ?>" style="text-decoration: none;">X &nbsp;&nbsp;<?php echo $pricerange ;?></a> 
</br>
<?php } ?>


</div>

<?php if( (int)$this->config->get('config_store_id')==0) {?>
<!--
<div class="box">
  <div class="box-heading"><?php echo 'Gemstones'; ?></div>
-->
Gemstones : 
<br/><br/>
    <div class="box-content">
    <div class="box-product">
      <?php foreach ($gemstones as $gemstone) { ?>
        <?php if ($gemstone['thumb']) { ?>
        <a href="<?php echo $gemstone['linkurl']; ?>"><img height=32 width=32 src="<?php echo $gemstone['thumb']; ?>"  /></a>
        <?php } ?>
      <?php } ?>
    </div>
  </div>
<!--
</div>
<div class="box">
  <div class="box-heading"><?php echo 'Metals'; ?></div>
-->
<br/>
Metals :
<br/><br/>
  <div class="box-content">
    <div class="box-product">
      <?php foreach ($metals as $metal) { ?>
        <?php if ($metal['thumb']) { ?>
        <a href="<?php echo $metal['href']; ?>"><img src="<?php echo $metal['thumb']; ?>"  /></a>
        <?php } ?>
      <?php } ?>
    </div>
  </div>
<!--
</div>
-->
<br/>
Shapes :
<br/><br/>
  <div class="box-content">
    <div class="box-product">
      <?php foreach ($shapes as $shape) { ?>
        <?php if ($shape['thumb']) { ?>
        <a href="<?php echo $shape['href']; ?>"><img src="<?php echo $shape['thumb']; ?>"  /></a>
        <?php } ?>
      <?php } ?>
    </div>
  </div>
<!--
</div>
-->


<br/>
Price Range
<br/><br/>
Min. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Max.
<br/>
<input type='text' maxlength="4" size="4" name='min' id='min' value="<?php  if($low_price!=0) echo $low_price;   ?>" style="width:50px"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type='text' maxlength="4" size="4" name='max' id='max' value="<?php  if($high_price!=10000000)echo $high_price;   ?>" style="width:50px"/></br>
&nbsp;&nbsp;&nbsp;&nbsp;<input type='submit' id='btnSearch' name='btnSearch' onclick="javascript:SubmitFrm()" value="Submit Range" />

<?php } ?>
<script type="text/javascript">
    function SubmitFrm(){
        var min = document.getElementById("min").value;
        var max = document.getElementById("max").value;
		window.location = "<?php echo $rangehref; ?>" + '&lp=' +min + '&hp=' + max ;
    }
</script>
