Execute($q); $ar['t'][]=""; $ar['v'][]=""; while(!$r->EOF){ $rw = $r->fields; $ar['t'][]=$rw[id_mag]; $ar['v'][]=$rw[nome]; $r->MoveNext(); } return $ar; } if($action=="allIns"){ $rOrd = $conn->Execute("SELECT max(ordine) as mxo FROM CMZ_allegati WHERE ida=".$ida); $maxOrd = $rOrd->fields; $q="INSERT INTO CMZ_allegati(id_mag,ida,ordine) VALUES(".$_GET['idmag'].",".$ida.",".($maxOrd['mxo']+1).")"; $conn->Execute($q); } if($action == "allLink"){ $rOrd = $conn->Execute("SELECT max(ordine) as mxo FROM CMZ_allegati WHERE ida=".$ida); $maxOrd = $rOrd->fields; $q="INSERT INTO CMZ_allegati (ida,id_mag,link,ordine) VALUES ($ida,0,'".$_GET['link']."',".($maxOrd['mxo']+1).")"; $conn->Execute($q); } if($action=="allDel"){ $q = "DELETE FROM CMZ_allegati WHERE id_all=".$_GET['all']; $conn->Execute($q); } //recupero i valori dell'articolo makeGlobalsFromQuery("SELECT * FROM CMZ_articoli WHERE ida=".$GLOBALS[ida],"art"); $myUrl = split("\?",$_SERVER[HTTP_REFERER]); $imgdir = CMZ_PATH."pail/".$idCustUser; echo "\n"; echo "\n

 ".$GLOBALS[art][titolo]."

"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n
".$cmzLabel['44']."".$cmzLabel['45']."".$cmzLabel['46']."".$cmzLabel['47']."".$cmzLabel['48']."
"; echo "\n
"; echo "\n"; echo "\n"; if(!$GLOBALS[art][usaDate])$dis = 1; echo "\n"; echo "\n"; echo "\n"; echo "\n
".$cmzLabel['71'].":"; echo cmzCheckBox(Array("usaDate","CMZ_articoli",$GLOBALS[art][ida],"",$GLOBALS[art][usaDate],"","","ableDisDate();")); echo "\n
".$cmzLabel['72'].":"; echo cmzDate(Array("dataInizio","CMZ_articoli",$GLOBALS[art][ida],"",$GLOBALS[art][dataInizio],"","","",$dis)); echo "\n
".$cmzLabel['73'].":"; echo cmzDate(Array("dataFine","CMZ_articoli",$GLOBALS[art][ida],"",$GLOBALS[art][dataFine],"","","",$dis)); echo "\n
".$cmzLabel['74'].":"; echo cmzDate(Array("dataCentro","CMZ_articoli",$GLOBALS[art][ida],"",$GLOBALS[art][dataCentro],"","","",$dis)); echo "\n
"; echo "\n
"; echo "\n
"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; if(!$_SESSION[modifiche]){ echo "\n"; echo "

".$cmzLabel['150']." \"\"

".$cmzLabel['151'].":

 
"; echo ""; } echo "\n"; echo "\n"; echo "\n
".$cmzLabel['108'].":"; echo "\n"; echo "\n
".$cmzLabel['49'].":"; echo cmzCheckBox(Array("visibile","CMZ_articoli",$GLOBALS[art][ida],"",$GLOBALS[art][visibile],"","","ableDis();")); echo "\n
".$cmzLabel['50'].":"; echo cmzCheckBox(Array("homenews_pos","CMZ_articoli",$GLOBALS[art][ida],"",$GLOBALS[art][homenews_pos],"","","")); echo "\n   ".$cmzLabel['51'].":".cmzCheckBox(Array("homenews_foto","CMZ_articoli",$GLOBALS[art][ida],"",$GLOBALS[art][homenews_foto])); echo "\n
".$cmzLabel['52'].":"; echo cmzCheckBox(Array("google_search","CMZ_articoli",$GLOBALS[art][ida],"",$GLOBALS[art][google_search],"","","")); echo "\n
".$cmzLabel['53']." (".$idr."):".topo($idr,"idr","nome","CMZ_rubriche")."
".$cmzLabel['54'].":"; echo cmzText(Array("sovratitolo".$lingua,"CMZ_articoli",$GLOBALS[art][ida],"",$GLOBALS[art]['sovratitolo'.$lingua])); echo "\n
".$cmzLabel['55'].":"; echo cmzText(Array("titolo".$lingua,"CMZ_articoli",$GLOBALS[art][ida],"",$GLOBALS[art]['titolo'.$lingua],0)); echo "\n
".$cmzLabel['56'].":"; echo cmzText(Array("sottotitolo".$lingua,"CMZ_articoli",$GLOBALS[art][ida],"",$GLOBALS[art]['sottotitolo'.$lingua])); echo "\n
".$cmzLabel['57'].":"; echo cmzText(Array("tags","CMZ_articoli",$GLOBALS[art][ida],"",$GLOBALS[art]['tags'])); echo "\n
".$cmzLabel['58'].": \"\"
".$cmzLabel['60'].":"; echo cmzText(Array("password","CMZ_articoli",$GLOBALS[art][ida],"",$GLOBALS[art][password])); echo "\n
".$cmzLabel['61'].":"; echo strftime("%A %d %B %Y",$GLOBALS[art][data]); echo "\n
"; echo "\n
"; echo "\n
"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n
"; echo cmzRadio(Array("tipo","CMZ_articoli",$GLOBALS[art][ida],"","1",$GLOBALS[art][tipo])); echo $cmzLabel['62'].":"; echo cmzCheckBox(Array("htmlcode","CMZ_articoli",$GLOBALS[art][ida],"",$GLOBALS[art][htmlcode]))." ".$cmzLabel['63']; echo "\n
"; echo cmzRadio(Array("tipo","CMZ_articoli",$GLOBALS[art][ida],"","2",$GLOBALS[art][tipo],"","alert('Attenzione, non si risponde della correttezza del file');")); echo "da file htm:"; $ah = htmArray($idCustUser); $v1 = $ah['t']; $v2 = $ah['v']; echo cmzSelect(Array("htm","CMZ_articoli",$GLOBALS[art][ida],"","","",$v1,$v2)); echo cmzCheckBox(Array("directhtm","CMZ_articoli",$GLOBALS[art][ida],"",$GLOBALS[art][directhtm]))." ".$cmzLabel['65']; echo "\n
"; echo cmzRadio(Array("tipo","CMZ_articoli",$GLOBALS[art][ida],"","3",$GLOBALS[art][tipo],"","$('directlink').click();$('directlink').checked=0")); echo "\n ".$cmzLabel['66'].":"; echo cmzText(Array("link","CMZ_articoli",$GLOBALS[art][ida],"",$GLOBALS[art][link])); echo cmzCheckBox(Array("directlink","CMZ_articoli",$GLOBALS[art][ida],"",$GLOBALS[art][directlink])); echo cmzCheckBox(Array("iframelink","CMZ_articoli",$GLOBALS[art][ida],"",$GLOBALS[art][iframelink]))." ".$cmzLabel['152']; echo "\n
"; echo "\n
"; echo "\n
"; echo "\n"; echo "\n"; echo "\n
"; echo cmzTextArea(Array("testoit".$lingua,"CMZ_articoli",$GLOBALS[art][ida],"",$GLOBALS[art]['testoit'.$lingua],1)); echo "\n
"; echo "\n
"; echo "\n
"; echo "\n"; echo "\n"; echo "\n
"; echo "\n"; echo "\n

".$cmzLabel['67']." [+]

"; $q = "SELECT * FROM CMZ_allegati INNER JOIN CMZ_magazzino ON CMZ_allegati.id_mag=CMZ_magazzino.id_mag WHERE ida=".$GLOBALS[art][ida]." ORDER BY ordine desc"; $r = $conn->Execute($q); while(!$r->EOF){ $row = $r->fields; $cntx++; if(strtolower(substr($row[nome],-3))=="jpg" || strtolower(substr($row[nome],-3))=="gif" || strtolower(substr($row[nome],-3))=="png" || strtolower(substr($row[nome],-3))=="tif"){ echo "\n
"; echo "\n"; echo "\n
\"".$row[nome]."\" ".$row[nome]." ".$row[size]." byte ".date("d/m/Y, H:i:s",$row[time])." Didascalia
".cmzText(Array("didascalia","CMZ_allegati",""," where id_all=".$row['id_all'],$row['didascalia'],"",$cntx))."
"; $ina.="\n IMG - a".$row[id_all].": "; } else $allegatiNonFoto[]=$row; $r->MoveNext(); } echo "\n"; echo "\n

".$cmzLabel['68']." [+]

"; for($k=0;$k"; echo "\n"; echo "\n
\"\" ".$allegatiNonFoto[$k][nome]." ".$allegatiNonFoto[$k][size]." byte ".date("d/m/Y, H:i:s",$allegatiNonFoto[$k][time])." ".$cmzLabel['153']."
".cmzText(Array("didascalia","CMZ_allegati",""," WHERE id_all=".$allegatiNonFoto[$k]['id_all'],$allegatiNonFoto[$k]['didascalia'],"",$cntx))."
"; $ina.="\n NON - a".$allegatiNonFoto[$k][id_all].": "; } echo "\n"; echo "\n

".$cmzLabel['69']." [+]

"; $q = "SELECT * FROM CMZ_allegati WHERE ida=".$ida." AND id_mag=0 ORDER BY ordine DESC"; $r = $conn->Execute($q); while(!$r->EOF){ $row = $r->fields; $cntx++; echo "\n
"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n
test Link
"; echo cmzText(Array("link","allegati",""," where id_all=".$row['id_all'],$row['link'],"",$cntx)); echo "\n
".$cmzLabel['153']."
"; echo cmzText(Array("didascalia","CMZ_allegati",""," WHERE id_all=".$row['id_all'],$row['didascalia'],"",$cntx)); echo "\n
"; echo "\n
"; $ina.="\n LNK - a".$row[id_all].": "; $r->MoveNext(); } echo "\n
"; echo "\n
"; echo "\n"; $debug=0; if($debug)$fd="block"; else $fd="none"; echo "
".$ina."
"; ?>