<div id="main_borders">
  <div id="main_title">
    <h2><strong>
      <?=$title?>
      </strong></h2>
  </div>
  <div id="main_inner_borders" style="background-color:#F1EEDF">
    <? if ($this-> session-> flashdata('message')): ?>
    <div class='warning'>
      <?=$this-> session-> flashdata('message');?>
    </div>
    <? endif; ?>
    <? if ($products) { ?>
    <? foreach($products as $result=>$prd): ?>
    <div class="subcolumns">
      <div class="c25l">
        <center>
          <? if (($prd['image'] !='') || ($prd['image'] !=NULL)|| ($prd['image'] !=null)) { ?>
          <a  title=""  href="<?=base_url().'images/prds/thumb/'.$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">
            <h3>
              <?=$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 ($prd['description']) { ?>
        <p>
          <? echo strip_tags(word_limiter($prd['description'], 40), '<p><br>')?>
        </p>
        <? } ?>
<?php /*?>        <? if ($prd['characteristics']) { ?>
        <p><strong>
          <?=$this->lang->line('characteristics_txt')?>
          </strong><? echo word_limiter(strip_tags($prd['characteristics'], '<p><a><ul><li>'), 30)?></p>
        <? } ?>
<?php */?>        <p align="right">
   <? $url_title = $this->MFuncs->stringURLSafe($prd['name']); ?>
          <img src="<?=base_url()?>images/new/plus_icon.png" align="absmiddle" />&nbsp;<?=anchor('product/'.$prd['p_id'].'/'.$url_title, $this->lang->line('btn_view'), array('alt' =>$prd['name'],'title' =>$prd['name'] ));?>
        </p>
      </div>
    </div>
    <hr />
    <? endforeach ?>
    <? } else { ?>
    <br />
    <h5>
      <?="No results"?>
    </h5>
    <? } ?>
  </div>
</div>