          <? if ($this-> session-> flashdata('message')): ?>
    <div class='note'>
      <?=$this-> session-> flashdata('message');?>
    </div>

    <? endif; ?>
<? if ($ofproducts) { ?>
<div class="subcolumns" id="home_products">
  <? foreach($ofproducts as $result=>$prd): ?>
            <? $url_title = $this->MFuncs->stringURLSafe($prd['name']); ?>
      <div style="height:395px; margin-left:2.5px; margin-right:2px; float:left; width:198px; margin-bottom:10px;">
  <div id="main_borders" style="height:383px">
    <div id="main_inner_borders" style="height: 370px;">
    <div style="width:176px; border:thin solid #e3e3e3; height:210px; margin-bottom:5px; padding-top:5px;">
    <center>
			<? if (($prd['image'] !='') || ($prd['image'] !=NULL)|| ($prd['image'] !=null)) { ?>
                  <?=anchor('product/'.$prd['p_id'].'/'.$url_title, '<img src="'.base_url().'images/prds/thumb/'.$prd['image'].'" style="max-height:200px; max-width:170px;" style="padding-right:5px;" />');?>
                  <? }
		  else { ?>
          <img src="<?=base_url()?>images/no_image.jpg" style="max-height:200px;"/>
          <? } ?>   
    </center>
    </div>
    <? $prd_name = $this->MFuncs->RemoveTones($prd['name']); ?>
<h2 style="font-size:14px; height:55px; overflow:hidden; text-transform:uppercase; text-align:center; font-weight:bold;"><? echo strip_tags($prd_name, '')?></h2>
                <?php /*?> <p align="right">
                    <?=anchor('product/'.$prd['p_id'].'/'.$url_title, "+&nbsp;".$this->lang->line('btn_view'), array('alt' =>$prd['name'],'title' =>$prd['name'] ));?><?php */?>
                    <? if ($prd['available']=='Yes') { ?>
        	<? if ($prd['price']!=0) { ?><br />
            <center>
			<? if (($prd['offers']=='Yes') && ($prd['offer_price']!=0)) { ?>
			<h2 style="font-size:18px; font-weight:bold;">&nbsp;&euro;&nbsp;<strike><?=number_format($prd['price'], 2, ',', '')?></strike>&nbsp;&nbsp;<?=number_format($prd['offer_price'], 2, ',', '')?></h2>
			<? } else { ?>
			<h2 style="font-size:18px; font-weight:bold;">&nbsp;&euro;&nbsp;<?=number_format($prd['price'], 2, ',', '')?></h2>
			<? } ?>
            <div class="buttons" style="margin:0 20px 0 20px;">
 			<?=anchor('add_to_cart/'.$prd['p_id'], $this->lang->line('links_add_cart'),array('id'=>'continue','class'=>'positive', 'float'=>'none'))?>
			</div>
            </center>
            <? //=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'))?>
             <? } ?>
             <? } ?>
                  <?php /*?></p><?php */?>
      </div>
    </div>
  </div>
  <? endforeach ?>
</div>
        <div class="clear">&nbsp;</div>
<? } ?>
