\n"); else print("
\n"); } } return true; break; case "Gallery": //Lettura elenco foto $Sql="SELECT A.* FROM ".$GLOBALS["TbGallery"]." AS A INNER JOIN ".$GLOBALS["TbCrossGallery"]." AS B ON A.Cod=B.CodGallery WHERE B.CodProdotto=".$GLOBALS["RowProd"]["Cod"]." ORDER BY A.Ord"; $Result=mysql_query($Sql); while ($Row=mysql_fetch_array($Result)) { $FileZoom="zoom_".substr($Row["File"],0,strrpos($Row["File"],".")).".JPG"; $FileThumb="thumb_".$Row["File"]; print("

\n"); } return true; break; case "LinkCatPadre": print($GLOBALS["SiteRoot"]."prodotti/".$_GET["CodLiv1"].(isset($_GET["CodLiv2"])?"/".$_GET["CodLiv2"]:"")); return true; break; case "LinkPreventivo": if (isset($_GET["CodLiv2"])) print($GLOBALS["SiteRoot"]."preventivi/".$_GET["CodLiv1"]."/".$_GET["CodLiv2"]."/".$_GET["CodProdotto"]); else print($GLOBALS["SiteRoot"]."preventivi/".$_GET["CodLiv1"]."/".$_GET["CodProdotto"]); return true; break; case "LinkLiv1": print(strtoupper(ReadField($GLOBALS["TbLiv1"],"Voce","UrlVoce='".$_GET["CodLiv1"]."'"))); return true; break; case "LinkLiv2": if (isset($_GET["CodLiv2"])) print(" - ".strtoupper(ReadField($GLOBALS["TbLiv2"],"Voce","UrlVoce='".$_GET["CodLiv2"]."'")).""." - ".strtoupper($GLOBALS["RowProd"]["Titolo"]).""); else print(" - ".strtoupper($GLOBALS["RowProd"]["Titolo"]).""); return true; break; } } ?> \n"); ?>