1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
| <?
}
else
{
foreach ($this->produits as $key => $val)
{
if (empty($val['photo']))$photo = SPACE_PHOTO;
else $photo = $this->photo->make_photo_format($_SERVER['DOCUMENT_ROOT'].'/photos/'.$val['products_id'], $_SERVER['DOCUMENT_ROOT'].'/photos/'.$val['products_id'], $val['photo'], 100, 100, '/photos/'.$val['products_id'].'/');
$title = stripslashes($val['products_name']);
if (strlen($title) > 50) $title = substr($title, 0, 50);
if ($val['price'] == 0) $price = '';
else $price = number_format($val['price'], 2).'$';
if ($val['price_promotion'] == 0) $price = ' <span class="Price">'.$price.'</span>';
else $price = ' <span class="BlackPrice"><s>'.$price.'</s></span> <span class="Price">'.(number_format($val['price_promotion'], 2)).'$</span>';
$description = stripslashes($val['products_description']);
if (strlen($description) > 200) $description = substr($description, 0, 200).'...';
if ($val['parentcat_name'] != null) $categorie = $val['parentcat_name'].' : '.$val['cat_name'];
else $categorie = $val['cat_name'];
if (strlen($categorie) > 40) $categorie = substr($categorie, 0, 40);
?>
<tr>
<td>
<img src="/images/pixel_trans.gif" border="0" alt="" width="100%" height="10">
</td>
</tr>
<tr>
<td>
<table border="0" width="100%" cellspacing="0" cellpadding="0" class="productListing">
<tr class="productListing-even">
<td align="center" width="100" height="100" class="productListing-data"><? if ($photo != '') { ?><img src="<?=$photo?>"><? } ?></td>
<td class="productListing-data">
<table border="0" cellspacing="5" cellpadding="0" height="100" width="100%">
<tr height="10">
<td colspan="2" class="NameProd"><a href="/product/info/prod_id/<?=$val['products_id']?>"><b><?=$title?></b></a></td>
<td class="NameProd" align="right"><nobr><?=$price?></td>
</tr>
<tr valign="top" height="50">
<td colspan="3" class="Date">
<div align="justify">
<?=$description?>
</div>
</td>
</tr>
<tr height="10">
<td align="center" width="10%">
<div class="bt_90_20_gc" style="cursor:pointer" onclick="window.location='/product/info/prod_id/<?=$val['products_id']?>/backto/<?=urlencode(urlencode($_SERVER['REQUEST_URI']))?>'">
<a href="javascript:void(0)" class="bt_90_20_gc-link"><?=htmlentities($this->translate->_('BUTTON_MORE_INFO'))?></a>
</div>
</td>
<td align="center" class="productListing-data" width="80%">
<?=$categorie?>
</td>
<td align="center" width="10%">
<div class="bt_115_20_gc" style="cursor:pointer" onclick="window.location='/shoppingcart/add/prod_id/<?=$val['products_id']?>/backto/<?=urlencode(urlencode($_SERVER['REQUEST_URI']))?>'">
<a href="javascript:void(0)" class="bt_115_20_gc-link"><?=htmlentities($this->translate->_('BUTTON_ADD_TO_CART'))?></a>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<?
}
}
?>
<tr>
<td height="10px"></td>
</tr>
<tr>
<td align="center">
<?=$this->paginator ?>
</td>
</tr> |
Partager