<div class="jshop">
<?php if ($this->header){?>
<h1 class="listproduct<?php print $this->prefix;?>"><?php print $this->header?></h1>
<?php }?>
<?php if ($this->display_list_products){ ?>
<div class="jshop_list_product">
<?php include(dirname(__FILE__)."/form_filters.php")?>
<?php if (count($this->rows)){ ?>
<table class = "jshop" style = "margin-top:20px">
<?php foreach ($this->rows as $k=>$product){?>
<?php if ($k%$this->count_product_to_row==0) print "<tr>"?>
<td width = "<?php print 100/$this->count_product_to_row?>%" class = "jshop_categ">
<table class = "product">
<tr>
<td class="image">
<div style="padding: 2px;">
<?php if ($product->label_id && getNameImageLabel($product->label_id)){?>
<div class="product_label">
<img src="<?php print $this->config->image_labels_live_path."/".getNameImageLabel($product->label_id); ?>" alt="<?php print getNameImageLabel($product->label_id, 2)?>" />
</div>
<?php }?>
<a href="<?php print $product->product_link?>">
<img class = "jshop_img" src = "<?php print $this->image_product_path?>/<?php if ($product->product_thumb_image) print $product->product_thumb_image; else print $this->noimage?>" alt="<?php print htmlspecialchars($product->name);?>" />
</a>
</div>
<?php if ($this->allow_review){?>
<table class="review_mark"><tr><td>
<?php print showMarkStar($product->average_*****g);?>
</td></tr></table>
<div class="count_commentar">
<?php print sprintf(_JSHOP_X_COMENTAR, $product->reviews_count);?>
</div>
<?php }?>
</td>
<td>
<div class="name">
<a href="<?php print $product->product_link?>"><?php print $product->name?></a>
<?php if ($this->config->product_list_show_product_code){?><span class="jshop_code_prod">(<?php print _JSHOP_EAN?>: <?php print $product->product_ean;?>)</span><?php }?>
</div>
<div class="description">
<?php print $product->short_description?>
</div>
<?php if ($product->manufacturer->name){?>
<div class="manufacturer_name"><?php print _JSHOP_MANUFACTURER;?>: <?php print $product->manufacturer->name?></div>
<?php }?>
<?php if ($product->product_quantity <=0 && !$this->config->hide_text_product_not_available){?>
<div class = "not_available"><?php print _JSHOP_PRODUCT_NOT_AVAILABLE;?></div>
<?php }?>
<?php if ($product->product_old_price > 0){?>
<div class="old_price"><?php if ($this->config->product_list_show_price_description) print _JSHOP_OLD_PRICE.": ";?><?php print formatprice($product->product_old_price)?></div>
<?php }?>
<?php if ($product->product_price > 0 || !$this->config->user_as_catalog){?>
<div class = "jshop_price">
<?php if ($this->config->product_list_show_price_description) print _JSHOP_PRICE.": ";?>
<?php if ($product->show_price_from) print _JSHOP_FROM." ";?>
<?php print formatprice($product->product_price);?>
</div>
<?php }?>
<?php if ($this->config->show_tax_in_product && $product->tax > 0){?>
<span class="taxinfo"><?php print productTaxInfo($product->tax);?></span>
<?php }?>
<?php if ($this->config->show_plus_shipping_in_product){?>
<span class="plusshippinginfo"><?php print sprintf(_JSHOP_PLUS_SHIPPING, $this->shippinginfo);?></span>
<?php }?>
<?php if ($product->basic_price_info['price_show']){?>
<div class="base_price"><?php print _JSHOP_BASIC_PRICE?>: <?php print formatprice($product->basic_price_info['basic_price'])?> / <?php print $product->basic_price_info['name'];?></div>
<?php }?>
<?php if ($this->config->product_list_show_weight && $product->product_weight > 0){?>
<div class="productweight"><?php print _JSHOP_WEIGHT?>: <?php print formatweight($product->product_weight)?> <?php print _JSHOP_WEIGHT_UNIT?></div>
<?php }?>
<?php if ($product->delivery_time != ''){?>
<div class="deliverytime"><?php print _JSHOP_DELIVERY_TIME?>: <?php print $product->delivery_time?></div>
<?php }?>
<?php if (is_array($product->extra_field)){?>
<div class="extra_fields">
<?php foreach($product->extra_field as $extra_field){?>
<div><?php print $extra_field['name']; ?>: <?php print $extra_field['value']; ?></div>
<?php }?>
</div>
<?php }?>
<?php if ($product->vendor){?>
<div class="vendorinfo"><?php print _JSHOP_VENDOR;?>: <a href="<?php print $product->vendor->products;?>"><?php print $product->vendor->shop_name?></a></div>
<?php }?>
<div class="buttons">
<?php if ($product->buy_link){?>
<a href="<?php print $product->buy_link?>"><?php print _JSHOP_BUY?></a>
<?php }?>
<a href="<?php print $product->product_link?>"><?php print _JSHOP_DETAIL?></a>
</div>
</td>
</tr>
</table>
</td>
<?php if ($k%$this->count_product_to_row==$this->count_product_to_row-1){?>
</tr>
<tr>
<td colspan = "<?php print $this->count_product_to_row?>">
<hr />
</td>
</tr>
<?php } ?>
<?php } ?>
<?php if ($k%$this->count_product_to_row!=$this->count_product_to_row-1) print "</tr>"?>
</table>
<?php }?>
<table align="center" >
<tr>
<td style = "text-align:center">
<div class="pagination"><?php print $this->navigation_products?></div>
</td>
</tr>
</table>
</div>
<?php } ?>
</div>