getProduct($ref, $_SESSION["LANGUAGE"], DEFAULT_LANGUAGE); if($product->existsProduct($ref))$pageTitle = buildPageTitle($product_details["title"]); else $pageTitle = buildPageTitle("Error"); include ('./lib/header.php'); $_SESSION["CHECKOUT_TRUE"] = FALSE; ?> "; if($product->existsProduct($ref)) { $session = session_id(); $product->insertLogProduct($ref,$session); $product_data = $product->getProductData($ref); echo ""; echo ""; echo "
"; echo "
"; //INICIO PARA DETALHES PRODUTOS echo "
".$product_details["title"]."
"; echo "
"; echo "
"; //CONTAINER---> IMAGE $product_image = $product->getDefaultImage($ref); echo "
".resizeImage('images-produtos/'.$product_image.'',150,150,'')."
"; echo "
"; echo "
"; echo "
"; //GOOGLE PLUS echo "
"; //FACEBOOK echo "
"; //TWEETER echo ""; 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 "
"; echo "
"; echo "
"; //CONTEUDO PARA BUTTONS! echo "
"; loadAddCartPopUp(); echo ""; echo ''; echo "
"; echo "
"; //FIM DE DETALHES DO PRODUTO echo "
"; echo "
"; $num_com = $product->countComments($ref); //INICIO TABS echo ""; echo "
"; echo "
"; //CONTEUDO PARA TABS echo "
"; echo "
".$product_details["description"]."
"; echo "
"; echo "
"; $exist_file = $product->existFile($ref); if($exist_file) { 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 "
".$L["NO_FILE_DETAILS"]."
"; echo "
"; echo "
"; if($num_com > 0) { $content = $product->getCommentsProduct($ref); $j=0; while ($j< count($content['id'])) { echo "
"; echo "
"; echo "
"; echo"
"; for($i=1;$i<=5;$i++){ 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 "
"; } } else { echo "
"; echo "
".$L["NO_COMMENTS"]."
"; echo "
"; echo "
"; } echo "
"; echo '
'; echo "
"; echo "
"; echo "
"; echo "
"; } else { echo "
"; echo "
"; //CONTEUDO PARA PRODUTO DESCONHECIDO echo "
"; echo "
".$L["ALERT_NO_PRODUCT"]."
"; echo "
"; echo "
"; } echo ""; include('./lib/side_menu.php'); include ('./lib/footer.php'); ob_flush(); echo "
"; echo "

".$product_details["title"]."

"; echo "
"; echo "
"; $product_image = $product->getDefaultImage($ref); echo "
"; echo resizeImage('./images-produtos/'.$product_image.'',150,150,''); echo "
"; echo "
"; echo "
"; echo $L["REF"].": "; echo "".$product_data["ref"]."
"; echo $L["DETAILS_DELIVERY"]; echo "".$L["AVAILABILITY_OPTIONS"][$product_data["availability"]].""; echo ""; if ($promo_price != "0.00") { echo ""; } echo ""; echo "
"; echo "
".formatPrice($promo_price)."
"; echo "
"; echo "
".formatPrice($price)."
"; echo "
"; echo "
"; echo "
"; echo "
"; echo "

".$L["DESCRIPTION_PRINTABLE"]."


".$product_details["description"]; echo "
"; echo "
"; echo "

".$L["FILES_PRINTABLE"]."


"; if($exist_file) { echo "
"; $content = $product->getFileProduto($ref); $i=0; while($i'.getNameDB("produto_file", "produto_file", $content["produto_file"][$i], $_SESSION['LANGUAGE']).'
'; $i++; } echo"
"; } else echo $L["NO_FILES_PRINTABLE"]; echo "
"; echo "
"; echo "

".$L["COMMENTS_PRINTABLE"]."


"; if($num_com > 0) { $content = $product->getCommentsProduct($ref); $j=0; while ($j< count($content['id'])) { echo "
"; echo "
"; echo "
"; echo"
"; for($i=1;$i<=5;$i++) { 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 "
"; } } else echo $L["NO_COMMENTS_PRINTABLE"]; echo "
"; echo "
"; ?>