";
$content = $product->getAllProductImages($ref);
if($product->existsImages($ref) == TRUE){
echo "
";
echo "";
echo "- ";
$i =0;
$num_img = count($content['id']);
while($i < $num_img ){
echo "
- ".resizeImage('images-produtos/'.$content["image"][$i],50,50,'')." "; $i++; } echo "
";
//INICIO PARA DETALHES PRODUTOS
echo "
";
echo "";
$num_com = $product->countComments($ref);
//INICIO TABS
echo "".$product_details["title"]."
";
echo "";
echo "
";
echo " ";
echo "";
//CONTAINER---> IMAGE
$product_image = $product->getDefaultImage($ref);
echo "
";
echo "
";
echo "".resizeImage('images-produtos/'.$product_image.'',150,150,'')." |
";
echo "
";
//FIM DE DETALHES DO PRODUTO
echo "";
echo "
";
echo " ";
echo "";
echo $L["REF"].": ";
echo "".$product_data["ref"]."";
echo "";
echo "
";
echo "";
//CONTAINER----->STOCK
echo $L["AVAILABILITY"].": ";
echo "".$L["AVAILABILITY_OPTIONS"][$product_data["availability"]]."";
echo "
";
//RETAIL PRICES
if ($user->type == '2') {
$price = $product_data["retail_price"];
$promo_price = $product_data["promo_price"];
}
else {
//RESELLER PRICE
$price = $product_data["reseller_price"];
$promo_price = "0.00";
}
echo "";
echo "";
if ($promo_price != "0.00") {
echo "
";
echo "
";
echo "";
echo " ".formatPrice($promo_price)." ";
echo " |
";
echo " ".formatPrice($price)." ";
echo " |
- ";
echo "
- ".$L["DETAILS_DESCRIPTION"] ." "; echo "
- ".$L["DETAILS_FILES"] ." "; echo "
- ".$L["DETAILS_OPINION"] ." (".$num_com.") "; echo "
";
//CONTEUDO PARA TABS
echo "
";
echo "";
} else {
echo "";
echo "";
echo "
";
echo "".$product_details["description"]."
";
echo "";
$exist_file = $product->existFile($ref);
if($exist_file) {
echo "
";
echo "".$L["FILE_DETAILS"]."
";
echo "";
$content = $product->getFileProduto($ref);
$i=0;
while($i'.$product->getLanguageFile($content["produto_file"][$i], $_SESSION['LANGUAGE']).'
'; $i++; } echo"
";
} else echo "'; $i++; } echo"
".$L["NO_FILE_DETAILS"]."
";
echo "";
if($num_com > 0) {
$content = $product->getCommentsProduct($ref);
$j=0;
while ($j< count($content['id'])) {
echo "
";
echo "";
echo "
";
}
} else {
echo "";
echo "
";
echo "";
echo"";
echo "
";
echo"";
if($content['perms'][$j] == 1) echo $content['nome'][$j];
else echo $L["ANONYMOUS"];
echo "
";
echo "";
echo "".$content['date'][$j]."
";
echo "".$content['comment'][$j]."
";
echo "";
$j++;
echo "";
echo "
";
}
echo "".$L["NO_COMMENTS"]."
";
echo "";
echo "";
echo ' ';
echo "
";
echo "";
//CONTEUDO PARA PRODUTO DESCONHECIDO
echo "";
echo "
";
echo "";
}
echo "".$L["ALERT_NO_PRODUCT"]."
";
echo "
".$L["COMMENTS_PRINTABLE"]."
"; if($num_com > 0) { $content = $product->getCommentsProduct($ref); $j=0; while ($j< count($content['id'])) { echo "