"; //rubriche $r = $m->setQuery("r", "idu=".$idx); while(!$r->EOF){ $rw = $r->fields; $m->setMenu("r",$rw); if($m->isVisible()){ echo "\n

".$m->getLnkName()."

"; //sottorubriche $r2 = $m->setQuery("s", "CMZ_sottorubriche.idr=".$rw['lnkIdx']); while(!$r2->EOF){ $rw2 = $r2->fields; $m->setMenu("s",$rw2); if($m->isVisible()){ echo "\n

".$m->getLnkName()."

"; //articoli $r3 = $m->setQuery("a", "CMZ_articoli.idsr=".$rw2['lnkIdx']); while(!$r3->EOF){ $rw3 = $r3->fields; $m->setMenu("a",$rw3); if($m->isVisible())echo "\n

".$m->getLnkName()."

"; $r3->MoveNext(); }//while art }//vis sRub $r2->MoveNext(); }//while sRub }//vis rub $r->MoveNext(); }//while rub echo "\n"; }//funzione function stampaContenuti($type,$id){ global $conn; $m = new menuItem(); echo "\n
"; echo "\n"; echo "\n^ ".$cmzLabel['176'].""; switch($type){ case"s": $r = $m->setQuery("s", "idsr=".$id); $rw = $r->fields; // print_r($rw);echo "
"; $m->setMenu("s",$rw); // echo "---- ".$m->password."+++++"; if($_SESSION['idPersona']||!$m->password || ($m->password && wai_perm_read($GLOBALS['idx'],$id,'s',$_POST['pass']))) { if($m->isVisible()) { echo "\n
".$m->nome."
"; echo "\n

".cleanString($m->text,1)."

"; echo "\n^ ".$cmzLabel['176'].""; } } else passReq(); break; case"a": $artImages=fotoArticolo($id); $r = $m->setQuery("a", "ida=".$id); $rw = $r->fields; $m->setMenu("a",$rw); if($_SESSION['idPersona']||!$m->password || ($m->password && wai_perm_read($GLOBALS['idx'],$id,'a',$_POST['pass']))) { if($m->isVisible()){ if($m->sovratitolo)echo "\n
".$m->sovratitolo."
"; echo "\n
".$rw['titolo'.$lan]."
"; if($m->sottotitolo)echo "\n
".$m->sottotitolo."
"; echo "\n

"; if($artImages[0]['nome'])echo "\n\"\"
".$artImages[0]['didascalia']; echo cleanString($m->text,1); for($x=1;$x";print_r($artImages);echo ""; echo "\n
\"\"
".$artImages[$x]['didascalia']; } $q1 = "select CMZ_allegati.*, nome, size from CMZ_allegati, CMZ_magazzino where CMZ_magazzino.id_mag=CMZ_allegati.id_mag AND nome not like '%jpg' AND ida=".$id." order by ordine DESC"; $r1 = $conn->Execute($q1); while(!$r1->EOF){ $rw1 = $r1->fields; if($rw1[didascalia])$testoAll=$rw1[didascalia];else $testoAll=$rw1[nome]; echo "\n
$testoAll - [$rw1[size] bytes]"; $r1->MoveNext(); } echo "

"; echo "\n^ ".$cmzLabel['176'].""; } } else passReq(); break; } echo "\n
"; } echo "\n"; echo "\n"; echo "\n"; //titolo echo "\n

".$_SERVER[SERVER_NAME]."

"; echo "\n

".$cmzLabel['177']."

"; echo "\n

<< ".$cmzLabel['178']."

"; //editoriale echo "\n

"; if($GLOBALS['fotocopertina'])echo "\"\"/
"; echo cleanString($GLOBALS['editoriale'],1); echo "

"; //menu stampaMenu($GLOBALS[idx]); echo "\n
"; //contenuti stampaContenuti($_GET[type],$_GET[id]); echo "\n"; echo "\n"; exit(); ?>