Execute($q2); $k=1; while(!$r2->EOF){ $rw2 = $r2->fields; $_SESSION['modifiche'] = $_SESSION[idp]; $_SESSION['modificheList']['direct'][$rw2['tipo'].$rw2['id_tipo']] = 1; if($rw2['tipo'] == "s"){ $rp1 = $conn->Execute("SELECT idr FROM CMZ_sottorubriche WHERE idsr=".$rw2['id_tipo']); $padre1 = $rp1->fields; $_SESSION['modificheList']['father']["r".$padre1['idr']] = 1; } if($rw2['tipo'] == "a"){ $rp2 = $conn->Execute("SELECT idr,CMZ_sottorubriche.idsr FROM CMZ_sottorubriche,CMZ_articoli WHERE CMZ_articoli.idsr=CMZ_sottorubriche.idsr AND CMZ_sottorubriche.idsr=".$rw2['id_tipo']); $padre2 = $rp2->fields; $_SESSION['modificheList']['father']["s".$padre2['idsr']] = 1; $_SESSION['modificheList']['father']["r".$padre2['idr']] = 1; } else $_SESSION['modificheList']['super'][$rw2['tipo'].$rw2['id_tipo']] = 1; $k++; $r2->MoveNext(); } } echo " "; echo "\n"; echo "\n
"; echo "\n

"; if(!$_SESSION['modifiche']){ echo "\n"; echo "\n  ".$cmzLabel['36'].""; echo "\n"; } else echo "".$cmzLabel['174'].""; echo "\n

"; echo "\n
"; if(!$_SESSION['modifiche'])echo "\n

".$cmzLabel['175']."

"; echo "\n
"; echo "\n"; echo "\n
"; echo "\n"; if($_SESSION[modifiche]){ $modValue = 1; if($idr)$modValue = isModdable("r", $idr); if($idsr)$modValue = isModdable("s", $idsr); if($ida)$modValue = isModdable("a", $ida); if($modValue==2 || $modValue==0){ $_SESSION[idp]=0; $_SESSION[modifiche]=0; } } ?>