"; //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']); echo ""; }//vis rub $r->MoveNext(); }//while rub echo "\n"; }//funzione function stampaContenuti($type,$id){ global $conn; global $cmzLabel; $m = new menuItem(); echo "\n
"; echo "\n"; echo "\n^ ".$cmzLabel['320'].""; 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['320'].""; } } else { passReq(); } break; case"a": $artImages=fotoArticolo($id); $r = $m->setQuery("a", "ida=".$id); $rw = $r->fields; $m->setMenu("a",$rw); // echo $_SESSION['idPersona']." ".$m->password." ".wai_perm_read($GLOBALS['idx'],$id,'orientami',$_POST['accediPassword'],$_POST['accediUsername']); if($_SESSION['idPersona']||!$m->password || ($m->password && wai_perm_read($GLOBALS['idx'],$id,'orientami',$_POST['accediPassword'],$_POST['accediUsername']))) { 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['320'].""; } } else passReq(); break; } echo "\n
"; } global $conn; echo "\n"; ?> "; echo "\n"; //titolo echo "\n

".$_SERVER[SERVER_NAME]."

"; //echo "\n

".$cmzLabel['102']."

"; //echo "\n

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

"; if(!$_GET['id']) { //editoriale echo "\n

"; if($GLOBALS['fotocopertina'])echo "\"\"/
"; /* ricsvo l'editoriale */ $q="SELECT editoriale".$_SESSION['lan']." as editoriale FROM CMZ_servizi WHERE ids=".$GLOBALS[idx]; $r=$conn->Execute($q); $rw=$r->fields; echo cleanString($rw['editoriale'],1); echo "

"; } //menu echo "\n
"; echo "\n

".$cmzLabel['320']."

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