<div id="main_borders">
 <div id="main_inner_borders">
 <h2><strong><?=$title?></strong></h2>
  <? if ($products) { ?>
<? if ($by_price=="No") { ?>
<p style="float:right; padding-right:5px;"><? if (($sorted=='No') || ($sorted=='desc')){ ?><?=anchor('product_price/'.$type.'/'.$int_cat_id.'/asc', $this->lang->line('sort_by_price_asc'));?> <? } else { ?><?=anchor('product_price/'.$type.'/'.$int_cat_id.'/desc', $this->lang->line('sort_by_price_desc'));?> <? } ?></p>
<? } ?>
    <? foreach($products as $result=>$prd): ?>

    <? $product_details = $this->MFuncs->getProductDetails($prd['id']); ?>
   <div class="subcolumns">
   <div class="c25l">
    <center>
                  <? if (($prd['image'] !='') || ($prd['image'] !=NULL)|| ($prd['image'] !=null)) { ?>
            <a  title=""  href="<?=base_url().'images/prds/'.$prd['image']?>" rel="shadowbox[];options={counterType:'skip',continuous:true,animSequence:'sync'}"> <img class="left" src="<?=base_url().'images/prds/thumb/'.$prd['image']?>" style="max-width:120px; max-height:200px;" /> </a>
            <? }
		  else { ?>
            <img class="left" src="<?=base_url()?>images/no_image.jpg" style="width:120px; max-height:200px;"/>
            <? } ?>
    </center>
    </div>
   <div class="c75l">
       <div class="subcolumns">
   <div class="c50l">
    <? $prd_name = $this->MFuncs->RemoveTones($product_details['name']); ?>
  <h3 style="text-transform:uppercase;"><?=$prd_name?></h3>
  </div>
   <div class="c50r">
   <div align="right">
   <strong><?=$this->lang->line('price_txt')?></strong><? if (($prd['offers']=='Yes') && ($prd['offer_price']!=0)) { ?>
			<strike><?=$prd['price']?></strike>&nbsp;&nbsp;<?=$prd['offer_price']?>
			<? } else { ?>
			<?=$prd['price']?>
			<? } ?>
			&nbsp;&euro;&nbsp;<?=$prd['price_txt']?>
   </div>
   </div>
   </div>
   <? if ($product_details['description']) { ?>
	<p><? echo strip_tags(word_limiter($product_details['description'], 40), '<p><br>')?></p>
    <? } ?>
<?php /*?>   <? if ($product_details['characteristics']) { ?>
	<p><strong><?=$this->lang->line('characteristics_txt')?></strong><? echo strip_tags(word_limiter($product_details['characteristics'], 14), '<p><br>')?></p>
    <? } ?>
<?php */?>    
<? $url_title = $this->MFuncs->stringURLSafe($product_details['name']); ?>
                 <p align="right">
                    <?=anchor('product/'.$product_details['p_id'].'/'.$url_title, "+&nbsp;".$this->lang->line('btn_view'), array('alt' =>$product_details['name'],'title' =>$product_details['name'] ));?>
             <? if ($prd['available']=='Yes') { ?>
        <? if ($prd['price']!=0) { ?>
                    <br />
                    <?=anchor('add_to_cart/'.$product_details['p_id'], '<img src="http://www.wines2u.gr/images/new/kala8i_agorwn_laxani.png" align="absmiddle" />'.$this->lang->line('links_add_cart'))?>
                    <? } ?>
                  <? } ?>
                  </p>
    </div>
    </div>
    <hr / color="#E1D39C">
    <br />
    <? endforeach ?>
  <center>
    <?php echo $this->pagination->create_links(); ?>
  </center>
  <? } else { ?>
  <br />
  <h5>
    <?=$this->lang->line('no_results')?>
  </h5>
  <? } ?>
</div>
</div>
