Hello, i am new in this forum so excuse me for my bag english.
I have a problem, i have a sales site and when i try to acces it it shows me the error:
Parse error: parse error in D:\wamp\www\cmag\application\views\front\components\show_products.php on line 119
Please help me.
Here is the code in show_products.php
<?php if(!empty($products)): $nr=sizeof($products); ?>
<? $this->load->helper('text'); ?>
<?php $cols = 3; $cols_space = 4; ?>
<table cellspacing="0" cellpadding="0" class="tab_body">
<?php for($i=0;$i<$nr;$i+=$cols): ?>
<tr>
<?php for($j = 0; $j < $cols; $j++): ?>
<?php if(isset($products[$i + $j])): $product=$products[$i + $j]; $classes=@$product['classes']; ?>
<td class="td_1"><h2><a href="<?=$this->config->item('base_url').$this->config->item('product_'.$product['product_id'].'_'.$this->default_language_url)?>"><?=character_limiter($product['product_name'],70);?></a></h2></td>
<?php if($j < $cols - 1): ?><td style="font-size:0px;" width="<?=$cols_space?>"> </td><?php endif; ?>
<? else: ?>
<td class="td_1" style="border:none;background:none;"></td>
<?php if($j < $cols - 1): ?><td style="font-size:0px;" width="<?=$cols_space?>"> </td><?php endif; ?>
<? endif; ?>
<? endfor; ?>
</tr>
<tr>
<?php for($j = 0; $j < $cols; $j++): ?>
<?php if(isset($products[$i + $j])): $product=$products[$i + $j]; $classes=@$product['classes']; ?>
<td class="td_2_top" style="font-size:0px;">
</td>
<?php if($j < $cols - 1): ?><td style="font-size:0px;" width="<?=$cols_space?>"> </td><?php endif; ?>
<? else: ?>
<td class="td_2" style="border:none;background:none;padding:0px;"></td>
<?php if($j < $cols - 1): ?><td style="font-size:0px;" width="<?=$cols_space?>"> </td><?php endif; ?>
<? endif; ?>
<? endfor; ?>
</tr>
<tr>
<?php for($j = 0; $j < $cols; $j++): ?>
<?php if(isset($products[$i + $j])): $product=$products[$i + $j]; $classes=@$product['classes']; ?>
<td class="td_2">
<? if(isset($product['img']) && $product['img']!=''): ?>
<div class="top_image"> </div><div class="bg_image"><a href="<?=$this->config->item('base_url').$this->config->item('product_'.$product['product_id'].'_'.$this->default_language_url)?>"><img src="<?=$product['img']?>" height="90" width="110" alt="" border="0" /></a></div><div class="bottom_image"> </div>
<? elseif(isset($product['thumb'])): ?>
<a href="<?=$this->config->item('base_url').$this->config->item('product_'.$product['product_id'].'_'.$this->default_language_url)?>"><img src="<?=$product['thumb']?>" alt="" border="0" /></a>
<? else: ?>
<a href="<?=$this->config->item('base_url').$this->config->item('product_'.$product['product_id'].'_'.$this->default_language_url)?>"><img src="<?=$this->config->item('image_url')?>images/img/img_11.jpg" alt="" border="0" /></a>
<? endif;?>
</td>
<?php if($j < $cols - 1): ?><td style="font-size:0px;" width="<?=$cols_space?>"> </td><?php endif; ?>
<? else: ?>
<td class="td_2" style="border:none;background:none;"></td>
<?php if($j < $cols - 1): ?><td style="font-size:0px;" width="<?=$cols_space?>"> </td><?php endif; ?>
<? endif; ?>
<? endfor; ?>
</tr>
<tr>
<?php for($j = 0; $j < $cols; $j++): ?>
<?php if(isset($products[$i + $j])): $product=$products[$i + $j]; $classes=@$product['classes']; ?>
<td class="td_2_bottom" style="font-size:0px;">
</td>
<?php if($j < $cols - 1): ?><td style="font-size:0px;" width="<?=$cols_space?>"> </td><?php endif; ?>
<? else: ?>
<td class="td_2" style="border:none;background:none;padding:0px;"></td>
<?php if($j < $cols - 1): ?><td style="font-size:0px;" width="<?=$cols_space?>"> </td><?php endif; ?>
<? endif; ?>
<? endfor; ?>
</tr>
<tr>
<?php for($j = 0; $j < $cols; $j++): ?>
<?php if(isset($products[$i + $j])): $product=$products[$i + $j]; $classes=@$product['classes']; ?>
<td style="background:#FFE7F4;width:151px;padding:10px 15px 0px 15px;">
<center>
<?php
$arr = $this->body->get_product_versions($product['product_id']);
if($arr['nr_versions'] == 1)
{
echo $arr['nr_versions'].' Tip Cantitate';
}
else
{
echo $arr['nr_versions'].' Tipuri Cantitate';
}
echo '<div style="font-weight:800;">'.$arr['min_price'].' - '.$arr['max_price'].'</div>';
?>
</center>
</td>
<?php if($j < $cols - 1): ?><td style="font-size:0px;" width="<?=$cols_space?>"> </td><?php endif; ?>
<? else: ?>
<td class="td_2" style="border:none;background:none;padding:0px;"></td>
<?php if($j < $cols - 1): ?><td style="font-size:0px;" width="<?=$cols_space?>"> </td><?php endif; ?>
<? endif; ?>
<? endfor; ?>
</tr>
<tr>
<?php for($j = 0; $j < $cols; $j++): ?>
<?php if(isset($products[$i + $j])): $product=$products[$i + $j]; $classes=@$product['classes']; ?>
<td class="td_3">
<center>
<table cellpadding="0" cellspacing="0">
<tr>
<td>
<div class="clear"> </div>
<div class="left_button"> </div>
<a style="font-size:12px;padding:2px 0px 4px 0px;width:112px;height:27px;" class="bg_button" href="<?=$this->config->item('base_url').$this->config->item('product_'.$product['product_id'].'_'.$this->default_language_url)?>">Detalii<br /><span style="font-size:11px;font-weight:100;">(preturi si cantitati)</span></a>
<div class="right_button"> </div>
<div class="clear"> </div>
</td>
</tr>
</table>
</center>
</td>
<?php if($j < $cols - 1): ?><td style="font-size:0px;" width="<?=$cols_space?>"> </td><?php endif; ?>
<? else: ?>
<td class="td_3" style="border:none;background:none;"></td>
<?php if($j < $cols - 1): ?><td style="font-size:0px;" width="<?=$cols_space?>"> </td><?php endif; ?>
<? endif; ?>
<? endfor; ?>
</tr>
<tr><td colspan="<?=2 * $cols - 1?>" style="height:6px;font-size:0px;"> </td></tr>
<? endfor; ?>
</table>
<? endfor; ?>
Thank you.