<div id="main_borders">
<div id="main_title">
 <h2><strong><?=$title?></strong></h2>
 </div>
  <? if ($products) { ?>
    <? if ($category_id=="7") {?>
 <div id="main_inner_borders">
 <? } else { ?>
<div id="main_inner_borders" style="background-color:#F1EEDF">
 <? } ?>
    <? 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><?=$prd['price']?>&nbsp;&euro;&nbsp;<?=$prd['price_txt']?>
   </div>
   </div>
   </div>
   <? if ($product_details['description']) { ?>
	<p><?=$product_details['description']?></p>
    <? } ?>
   <? if ($product_details['characteristics']) { ?>
	<p><strong><?=$this->lang->line('characteristics_txt')?></strong><? echo word_limiter($product_details['characteristics'], 60)?></p>
    <? } ?>
   <? $url_title = $this->MFuncs->stringURLSafe($product_details['name']); ?>
                 <p align="right">
                    <?=anchor('product/'.$prd['p_id'].'/'.$url_title, "+&nbsp;".$this->lang->line('btn_view'), array('alt' =>$prd['name'],'title' =>$prd['name'] ));?>
             <? if ($prd['available']=='Yes') { ?>
        <? if ($prd['price']!=0) { ?>
                    <br />
                    <?=anchor('add_to_cart/'.$prd['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 { ?>
 <div id="main_inner_borders" style="background-color:#F1EEDF">
  <br />
  <h5>
    <?=$this->lang->line('no_results')?>
  </h5>
  <? } ?>
</div>
</div>
