0) { $tot_cookie = 0; $tot1 = 1; if (isset($_COOKIE['prod_naticonlacam'])) { $out_ultimi_visti = $_COOKIE['prod_naticonlacam']; $tot_cookie = $_COOKIE['prod_naticonlacam']["conto"]; $tot1 = $tot_cookie + 1; // print_r($out_ultimi_visti); } setcookie("prod_naticonlacam[conto]", $tot1, time() + (3600 * 24 * 5)); setcookie("prod_naticonlacam[" . $tot_cookie . "]", $codice, time() + (3600 * 24 * 5)); /*
  • Torna indietro |
  • Pagina iniziale
  • Uomo
  • Scarpe
  • Sneakers
  • > AIR FORCE 1 '07 - Sneakers basse - bianco
  • */ $q = 'select * from ' . tbl_tp_ann2 . ' where id="' . mysql_result($risann, 0, 'id_tipo_ann2') . '" limit 1'; $ris = mysql_query($q); /* echo " "; */ if (mysql_num_rows($ris) <= 0) { $q1 = 'select * from ' . tbl_tp_ann . ' where id="' . mysql_result($risann, 0, 'id_tipo_ann') . '" limit 1'; $ris1 = mysql_query($q1); if (mysql_num_rows($ris1) > 0) { $q = 'select * from ' . tbl_tp_ann2 . ' where id="' . mysql_result($ris1, 0, 'id_cateweb') . '" limit 1'; $ris = mysql_query($q); } } if (mysql_num_rows($ris) > 0) { $pagina_adesso = '/' . mysql_result($ris, 0, 'page') . '/'; $listing = 1; $nome_cate = pulisci_accenti(mysql_result($ris, 0, 'tipo_ann' . $lang)); $page_cate = mysql_result($ris, 0, 'page'); $nome_prod = mysql_result($risann, 0, 'titolo_ann'); if (mysql_result($risann, 0, 'titolo_ann' . $lang) != '') { $nome_prod = mysql_result($risann, 0, 'titolo_ann' . $lang); } $title_page = ucfirst(pulisci_accenti($nome_prod)); $titolo_ann = ucfirst(pulisci_accenti($nome_prod)); if (mysql_result($risann, 0, "id_padre2") == 1) { $title_page = $testo["CamiciaUomo"] . ': ' . $title_page; $titolo_ann = $testo["CamiciaUomo"] . ': ' . $titolo_ann; } elseif (mysql_result($risann, 0, "id_padre2") == 2) { $title_page = $testo["Maglia"] . ': ' . $title_page; $titolo_ann = $testo["Maglia"] . ': ' . $titolo_ann; } elseif (mysql_result($risann, 0, "id_padre2") == 3) { $title_page = $testo["Pantalone"] . ': ' . $title_page; $titolo_ann = $testo["Pantalone"] . ': ' . $titolo_ann; } elseif (mysql_result($risann, 0, "id_padre2") == 4) { $title_page = $testo["Profumo"] . ': ' . $title_page; $titolo_ann = $testo["Profumo"] . ': ' . $titolo_ann; } elseif (mysql_result($risann, 0, "id_padre2") == 18) { $title_page = $testo["CalzaUomo"] . ': ' . $title_page; $titolo_ann = $testo["CalzaUomo"] . ': ' . $titolo_ann; } elseif (mysql_result($risann, 0, "id_padre2") == 18) { $title_page = $testo["Cravatta"] . ': ' . $title_page; $titolo_ann = $testo["Cravatta"] . ': ' . $titolo_ann; } $id_cate = mysql_result($ris, 0, 'id'); $id_tipo_ann = mysql_result($ris, 0, 'id'); $padre = mysql_result($ris, 0, 'id_padre'); $tit2 = pulisci_accenti(ucfirst(mysql_result($ris, 0, 'tipo_ann' . $lang))); $id_padre = mysql_result($ris, 0, 'id_padre'); $id_macro = mysql_result($ris, 0, 'id_macro'); $where_addq = ' and id_tipo_ann2="' . $id_cate . '"'; $q = 'select * from ' . tbl_tp_ann2 . ' where id="' . $id_padre . '" limit 1'; $ris1 = mysql_query($q); if (mysql_num_rows($ris1) > 0) { $nome_padre = pulisci_accenti(mysql_result($ris1, 0, 'tipo_ann' . $lang)); $page_padre = mysql_result($ris1, 0, 'page'); } /* echo " "; */ if ($id_cate != $id_macro and $id_macro > 0) { // SOTTO-CATEGORIA $q = 'select * from ' . tbl_tp_ann2 . ' where id="' . $id_macro . '" limit 1'; $ris1 = mysql_query($q); if (mysql_num_rows($ris1) > 0) { $nome_macro = pulisci_accenti(mysql_result($ris1, 0, 'tipo_ann' . $lang)); $page_macro = mysql_result($ris1, 0, 'page'); } $percorso = ' ' . $nome_padre . ' » ' . $nome_macro . ' » ' . $nome_cate . ' '; // echo "AAAA "; $percorso2 = ' ' . $nome_padre . ' ' . $nome_macro . ' ' . $nome_cate . ' '; $percorso2_box = ' ' . $nome_padre . ' ' . $nome_macro . ' ' . $nome_cate . ' '; } else { $percorso = ' ' . $nome_padre . ' » ' . $nome_cate . ' '; $percorso2 = ' ' . $nome_padre . ' ' . $nome_cate . ' '; $percorso2_box = ' ' . $nome_padre . ' ' . $nome_cate . ' '; } // $tit2.=' da '.$nome_padre; /* $percorso=' '.$nome_padre.' » '.$nome_macro.'» '.$nome_cate.' '; */ $tit = ucfirst($nome_prod); //.' ('.$id_cate.'/'.$id_padre.'/'.$id_macro.')'; $marca = ''; if (mysql_result($risann, 0, 'id_marca') > 0) { $nome_marca = strtoupper(get_campo(tbl_marche, 'tipo_ann', 'id', mysql_result($risann, 0, 'id_marca'))); $title_page .= ' ' . $nome_marca; $marca = '' . $testo["Marca"] . ': ' . $nome_marca . ''; $marca_face = '' . $nome_marca . ','; } $ico = ' 
    '; $ico_off = ''; $opzione_quantita = ''; $taglia = ''; $misure = ''; $lista_taglie = ''; $ok_cart = false; if (!$taglia_unica) { $opzioni_modelli = '

    ' . $testo["Mess33"] . '

    '; if (is_compra(mysql_result($risann, 0, 'id'))) { $lista_taglie = out_taglie_colori(mysql_result($risann, 0, 'id')); $id_opt = 10; if ($lista_taglie != '') { $opzioni_modelli = '

    ' . $testo["Mess34"] . '

    * ' . $testo["Mess35"] . ':

    '; $opzione_quantita = ' '; $ok_cart = true; } } } else { // taglia unica $ok_cart = true; $opzione_quantita = ' '; } $aggiungi_cart = ''; if ($ok_cart) { $aggiungi_cart = '   '; } $j = 1; $gallery_mini = ''; $gallery_slide = ''; // vedo se ho foto aggiuntive $sql = 'select * from ' . tbl_foto . ' where id_ann= "' . mysql_result($risann, 0, 'id') . '" order by id limit 6'; $ris = mysql_query($sql); if (mysql_num_rows($ris) > 0) { while ($row = mysql_fetch_array($ris)) { $img = get_name_img_mini_web($row['id_foto'], 1); $img_max = get_name_img_max_web($row['id_foto'], 1); $image_max = 'https://www.naticonlacamicia.org/_img/_max/' . $img_max['name'] . '?time=' . time(); $image_mini = 'https://www.naticonlacamicia.org/_img/_mmini/' . $img['name'] . '?time=' . time(); $gallery_mini .= ' ' . stripslashes($titolo_ann) . ' '; $gallery_slide .= ' ' . stripslashes($titolo_ann) . ' '; $i++; } } $img = get_name_img_mini_web(mysql_result($risann, 0, 'id_foto'), mysql_result($risann, 0, 'id')); $image_mini = 'https://www.naticonlacamicia.org/_img/_mmini/' . $img['name'] . '?time=' . time(); $img_max = get_name_img_max_web(mysql_result($risann, 0, 'id_foto'), mysql_result($risann, 0, 'id')); $image_max = 'https://www.naticonlacamicia.org/_img/_max/' . $img_max['name'] . '?time=' . time(); $prima_immagine = '' . stripslashes($titolo_ann) . ''; $prima_immagine_boxed = '
    ' . stripslashes($titolo_ann) . '
    '; // if($gallery_mini!=''){ $gallery_mini = '
    ' . stripslashes($titolo_ann) . ' ' . $gallery_mini . '
    '; $gallery_slide = '' . stripslashes($titolo_ann) . ' ' . $gallery_slide; // } $prezzo = '' . prezzo_euro(mysql_result($risann, 0, 'prezzo')) . ''; $prezzo_face = prezzo_euro(mysql_result($risann, 0, 'prezzo')); $td_novita = ''; if (mysql_result($risann, 0, 'novita') == 1) { $td_novita = 'Neues Produkt'; } $td_sconto = ''; if (mysql_result($risann, 0, 'sconto') > 0) { $prezzo = '' . prezzo_euro(mysql_result($risann, 0, 'prezzo2')) . ' ' . prezzo_euro(mysql_result($risann, 0, 'prezzo')) . ''; /* Sconto '.mysql_result($risann,0,'sconto').'% */ $td_sconto = '-' . mysql_result($risann, 0, 'sconto') . '%'; } elseif (mysql_result($risann, 0, 'prezzo_barrato') > 0) { $prezzo = '' . prezzo_euro(mysql_result($risann, 0, 'prezzo_barrato')) . ' ' . prezzo_euro(mysql_result($risann, 0, 'prezzo')) . ''; } $spese_spe = ''; if ($marca_face != '') $keyword .= $marca_face; $titolo_prod = pulisci_accenti($nome_prod); $keyword = $titolo_prod . ', ' . mysql_result($risann, 0, "codice") . ','; if (mysql_result($risann, 0, "id_padre2") == 1) { $titolo_prod = $testo["CamiciaUomo"] . ': ' . $titolo_prod; $keyword = $testo["CamiciaUomo"] . ', ' . $keyword; } elseif (mysql_result($risann, 0, "id_padre2") == 2) { $titolo_prod = $testo["Maglia"] . ': ' . $titolo_prod; $keyword = $testo["Maglia"] . ', ' . $keyword; } elseif (mysql_result($risann, 0, "id_padre2") == 3) { $titolo_prod = $testo["Pantalone"] . ': ' . $titolo_prod; $keyword = $testo["Pantalone"] . ', ' . $keyword; } elseif (mysql_result($risann, 0, "id_padre2") == 4) { $titolo_prod = $testo["Profumo"] . ': ' . $titolo_prod; $keyword = $testo["Profumo"] . ', ' . $keyword; } elseif (mysql_result($risann, 0, "id_padre2") == 18) { $titolo_prod = $testo["CalzaUomo"] . ': ' . $titolo_prod; $keyword = $testo["CalzaUomo"] . ',' . $keyword; } elseif (mysql_result($risann, 0, "id_padre2") == 18) { $titolo_prod = $testo["Cravatta"] . ': ' . $titolo_prod; $keyword = $testo["Cravatta"] . ', ' . $keyword; } $meta_face = ' '; $page_to = '/' . $_GET['pagename'] . '.html'; $taschino = ''; if (mysql_result($risann, 0, "taschino") != '') { $taschino = '    ' . $testo["Taschino"] . ': ' . mysql_result($risann, 0, "taschino") . ' '; } if (mysql_result($risann, 0, "vestibilita") != '') { $taschino .= '    ' . $testo["Vestibilita"] . ': ' . mysql_result($risann, 0, "vestibilita") . ' '; } if ($taschino != '') { $taschino .= '

    '; } $out_boxed = '

    ' . $titolo_prod . '

    ' . $td_sconto . $td_novita . ' ' . $prima_immagine_boxed . '
    ' . $gallery_mini . '

    ' . $marca . '

    ' . $prezzo . '
    Cod. ' . mysql_result($risann, 0, 'codice') . ' ' . $taschino . '
    ' . $percorso2_box . '

    ' . nl2br(pulisci_accenti(mysql_result($risann, 0, 'testo_ann'))) . '

    '; $tempo_consegna = $testo["Mess38"]; $tempo_consegna_evi = ''; if ($id_padre == 33) { $tempo_consegna = $testo["Mess38Bis"]; $tempo_consegna_evi = '

    ' . $tempo_consegna . '

    '; } $_listId4dem = 121; // nl 4dem $out = '

    ' . $titolo_ann . '

    ' . $td_sconto . $td_novita . ' ' . $prima_immagine . '
    ' . $gallery_mini . '

    ' . $marca . '

    ' . $prezzo . '
    Cod. ' . mysql_result($risann, 0, 'codice') . ' ' . $taschino . '
    ' . $percorso2 . '
    ' . $tempo_consegna_evi . ' ' . $opzioni_modelli . '
    ' . $opzione_quantita . ' ' . $aggiungi_cart . '

    ' . $testo["Mess37"] . '

    ' . $tempo_consegna . '

    ' . $testo["Mess39"] . '

    ' . $testo["Mess40"] . '

    ' . $testo["Mess41"] . '


    '; $descrizione_ann = mysql_result($risann, 0, 'testo_ann'); if (mysql_result($risann, 0, 'testo_ann' . $lang) != '') { $descrizione_ann = mysql_result($risann, 0, 'testo_ann' . $lang); } $out .= '

    ' . nl2br(pulisci_accenti($descrizione_ann)) . '

    '; $suggeriti = ''; $qq_sugg = 'select * from ' . tbl_ann . ' where attivo=1 and ann_hp2=1 order by rand() limit 3'; $rr_sugg = mysql_query($qq_sugg); if (mysql_num_rows($rr_sugg) > 0) { // Suggeriti da '.$azienda.' $tab_sugg = '' . $testo["Evidenza"] . ''; $suggeriti = '
    '; $i = 1; while ($row = mysql_fetch_array($rr_sugg)) { $prezzo = prezzo_euro($row['prezzo']); $linkto = '/' . pulisci_url($row['titolo_ann']) . '-' . $row['id']; $pageto = $linkto . '.html'; $img = get_name_img_mini_web($row['id_foto'], $row['ext']); $image = 'https://www.naticonlacamicia.org/_img/_mmini/' . $img['name']; $nome_prod = $row['titolo_ann']; if ($row['titolo_ann' . $lang] != '') { $nome_prod = $row['titolo_ann' . $lang]; } if (strlen($nome_prod) > 30) $nome_prod = substr($nome_prod, 0, 30) . '...'; $addc = ''; if ($i == 3) $addc = ' class="last"'; $td_sconto = ''; $prezzo = '' . prezzo_euro($row['prezzo']) . ''; if ($row['sconto'] > 0) { /* -'.$result['sconto'].'%
    */ $prezzo = '' . prezzo_euro($row['prezzo2']) . ' ' . prezzo_euro($row['prezzo']) . ''; // $td_sconto='-'.$result['sconto'].'%'; $td_sconto = '-' . $row['sconto'] . '%'; } elseif ($row['prezzo_barrato'] > 0) { $prezzo = '' . prezzo_euro($row['prezzo_barrato']) . ' ' . prezzo_euro($row['prezzo']) . ''; } $suggeriti .= '
    ' . $td_sconto . ' ' . addslashes($nome_prod) . '
    ' . $prezzo . '
    ' . $testo["VediDettaglio"] . '
    '; $i++; } $suggeriti .= '
    '; $div_sugg = '
    ' . $suggeriti . '
    '; } $consigliati = ''; if ($correlati) { $qq_sugg = 'select ' . tbl_ann . '.* from ' . tbl_ann . ',gest_ann_rela where ' . tbl_ann . '.attivo=1 and ' . tbl_ann . '.id=gest_ann_rela.id_ann2 and gest_ann_rela.id_ann1="' . $codice . '" order by rand() limit 3'; // echo $qq_sugg; $rr_sugg = mysql_query($qq_sugg); if (mysql_num_rows($rr_sugg) > 0) { $act = ''; if ($tab_sugg == '') $act = ' class="selected"'; $tab_cons = '' . $testo["ArticoliAbbinati"] . ''; $consigliati = '
    '; while ($row = mysql_fetch_array($rr_sugg)) { $prezzo = prezzo_euro($row['prezzo']); $linkto = '/' . pulisci_url($row['titolo_ann']) . '-' . $row['id']; $pageto = $linkto . '.html'; $img = get_name_img_mini_web($row['id_foto'], $row['ext']); $image = 'https://www.naticonlacamicia.org/_img/_mmini/' . $img['name']; $nome_prod = $row['titolo_ann']; if ($row['titolo_ann' . $lang] != '') { $nome_prod = $row['titolo_ann' . $lang]; } if (strlen($nome_prod) > 30) $nome_prod = substr($nome_prod, 0, 30) . '...'; $td_sconto = ''; $prezzo = '' . prezzo_euro($row['prezzo']) . ''; if ($row['sconto'] > 0) { /* -'.$result['sconto'].'%
    */ $prezzo = '' . prezzo_euro($row['prezzo2']) . ' ' . prezzo_euro($row['prezzo']) . ''; // $td_sconto='-'.$result['sconto'].'%'; $td_sconto = '-' . $row['sconto'] . '%'; } elseif ($row['prezzo_barrato'] > 0) { $prezzo = '' . prezzo_euro($row['prezzo_barrato']) . ' ' . prezzo_euro($row['prezzo']) . ''; } $consigliati .= '
    ' . $td_sconto . ' ' . addslashes($nome_prod) . '
    ' . $prezzo . '
    ' . $testo["VediDettaglio"] . '
    '; } $consigliati .= '
    '; $act = ''; if ($tab_sugg == '') $act = ' active'; $div_cons = '
    ' . $consigliati . '
    '; } } $act = ''; if ($tab_sugg == '' and $tab_cons == '') $act = ' class="selected"'; if ($tot_cookie > 0) { $lista_cookie = ''; // $lista_cookie.='tot '.$tot_cookie; for ($r = 0; $r < $tot_cookie; $r++) { if ($_COOKIE['prod_naticonlacam'][$r] != '' and $_COOKIE['prod_naticonlacam'][$r] != $codice) $lista_cookie .= ' id="' . $_COOKIE['prod_naticonlacam'][$r] . '" or'; // $lista_cookie.=' r '.$r; } // echo $lista_cookie; if ($lista_cookie != '') $lista_cookie = substr($lista_cookie, 0, strlen($lista_cookie) - 2); $lista_last = ''; if ($lista_cookie != '') { $qq_sugg = 'select * from ' . tbl_ann . ' where attivo=1 and (' . $lista_cookie . ') order by rand() limit 3'; // echo $qq_sugg; $rr_sugg = mysql_query($qq_sugg); if (mysql_num_rows($rr_sugg) > 0) { $tab_last = '' . $testo["UltimiVisti"] . ''; $lista_last = '
    '; while ($row = mysql_fetch_array($rr_sugg)) { $prezzo = prezzo_euro($row['prezzo']); $linkto = '/' . pulisci_url($row['titolo_ann']) . '-' . $row['id']; $pageto = $linkto . '.html'; $img = get_name_img_mini_web($row['id_foto'], $row['ext']); $image = 'https://www.naticonlacamicia.org/_img/_mmini/' . $img['name']; $nome_prod = $row['titolo_ann']; if ($row['titolo_ann' . $lang] != '') { $nome_prod = $row['titolo_ann' . $lang]; } if (strlen($nome_prod) > 30) $nome_prod = substr($nome_prod, 0, 30) . '...'; $td_sconto = ''; $prezzo = '' . prezzo_euro($row['prezzo']) . ''; if ($row['sconto'] > 0) { /* -'.$result['sconto'].'%
    */ $prezzo = '' . prezzo_euro($row['prezzo2']) . ' ' . prezzo_euro($row['prezzo']) . ''; // $td_sconto='-'.$result['sconto'].'%'; $td_sconto = '-' . $row['sconto'] . '%'; } elseif ($row['prezzo_barrato'] > 0) { $prezzo = '' . prezzo_euro($row['prezzo_barrato']) . ' ' . prezzo_euro($row['prezzo']) . ''; } $lista_last .= '
    ' . $td_sconto . ' ' . addslashes($nome_prod) . '
    ' . $prezzo . '
    ' . $testo["VediDettaglio"] . '
    '; } $lista_last .= '
    '; $act = ''; if ($tab_sugg == '' and $tab_cons == '') $act = ' active'; $div_last = '
    ' . $lista_last . '
    '; } } } if ($tab_sugg != '' or $tab_cons != '' or $tab_last != '') { $out .= '
    ' . $tab_sugg . ' ' . $tab_cons . ' ' . $tab_last . '
    ' . $div_sugg . ' ' . $div_cons . ' ' . $div_last . '
    '; } $out .= ' '; } else { // categoria non trovata--> } } } ?> <?php echo $title_page; ?>
    '; */ if ($iscate) { //echo $q; ?>