".$_SERVER["SERVER_NAME"]." )"; $utente_email="info@internetsol.it"; $UtenteEmail=mysql_result($RS,0,"utente_email"); mail($UtenteEmail,"Forum ".$_SERVER["SERVER_NAME"],$aTraduzioni[$IdLingua]["forum"]["emailrispodomanda"]." https://".$_SERVER["SERVER_NAME"]."/forum/domande/".$HTTP_POST_VARS["Id"]."-forum.html","From: ".$aTraduzioni[$IdLingua]["emailgestore"]); }else{ die($aTraduzioni[$IdLingua]["forum"]["msgnonautorizzato"]); } }else{ $utente=mysql_result($RS,0,"utente"); $utente_email=$HTTP_POST_VARS["email"]; mail($aTraduzioni[$IdLingua]["emailgestore"],"Discusione Forum","E' stata inserita una risposta sul forum: https://".$_SERVER["SERVER_NAME"]."/forum/domande/".$HTTP_POST_VARS["Id"]."-forum.html ","From: ".$aTraduzioni[$IdLingua]["emailgestore"]); mail("luca@soloprodottiitaliani.it","Discusione Forum","E' stata inserita una risposta sul forum: https://".$_SERVER["SERVER_NAME"]."/forum/domande/".$HTTP_POST_VARS["Id"]."-forum.html ","From: ".$aTraduzioni[$IdLingua]["emailgestore"]); if($IdLingua>1){ // per copia altre lingue ad aldo mail("info@soloprodottiitaliani.it","Discusione Forum","E' stata inserita una risposta sul forum: https://".$_SERVER["SERVER_NAME"]."/forum/domande/".$HTTP_POST_VARS["Id"]."-forum.html ","From: ".$aTraduzioni[$IdLingua]["emailgestore"]); } } mysql_query("INSERT INTO faq_risposte (id_faq,testo,utente,utente_email) values ('".$HTTP_POST_VARS["Id"]."','".$HTTP_POST_VARS["risposta"]."','".addslashes($utente)."','".$utente_email."')"); Header("Location: domande/".$HTTP_POST_VARS["Id"]."-forum.html"); exit(); } */ $pagina=basename($_SERVER["REQUEST_URI"]); $divisore=explode("-", $pagina); $Id=$divisore[0];// ti restituisce il numero che hai prima del - $RSDM=mysql_query("SELECT * FROM faq WHERE id=".$Id.""); $IdFaq=mysql_result($RSDM,0,"id"); $domanda=mysql_result($RSDM,0,"domanda"); $tag_title=mysql_result($RSDM,0,"tag_title"); $tag_description=mysql_result($RSDM,0,"tag_description"); $h1=mysql_result($RSDM,0,"h1"); if($IdLingua==1){ if($h1==""){ $h1="Domande e risposte su cibo, vino e cultura enogastronomica italiana"; } } $testo_dopo_domanda=stripslashes(mysql_result($RSDM,0,"testo_dopo_domanda")); if($tag_title==""){ $tag_title=substr($domanda,0,95); } if($tag_description==""){ $tag_description="Risposta alla domanda: ".$tag_title; } $Path="../"; ?> <?echo $tag_title;?>

0){ $NomeArgomento="".stripslashes(mysql_result($RSCT,0,"nome")).""; }else{ $NomeArgomento="Argomento generico"; } break; case "pro_prodotti": $_top_tabellareRS=mysql_query(" SELECT * FROM pro_prodotti, pro_prodotti_traduzioni, pro_marchi, pro_marchi_traduzioni,pro_categorie, pro_categorie_traduzioni WHERE pro_prodotti.id_categoria=pro_categorie.id AND pro_prodotti.id=pro_prodotti_traduzioni.id_prodotti AND pro_prodotti_traduzioni.id_lingua='".$IdLingua."' AND pro_prodotti.id='".mysql_result($RSDM,$i,"id_collegamento")."' AND pro_marchi.id=pro_marchi_traduzioni.id_marchio AND pro_marchi_traduzioni.id_lingua='".$IdLingua."' AND pro_marchi.id=pro_prodotti.id_marchio AND pro_categorie.id=pro_categorie_traduzioni.id_categoria AND pro_categorie_traduzioni.id_lingua='".$IdLingua."' "); $NomeArgomento='
 FORUM
'; for($_top_tabellarei=0;$_top_tabellarei'; $NomeArgomento.=''; } $_top_tabellareRS2=mysql_query(" SELECT pro_catalogo.*, pro_catalogo_traduzioni.descrizione FROM pro_catalogo, pro_catalogo_traduzioni WHERE pro_catalogo.id_prodotti ='".$_top_tabellareId."' AND pro_catalogo.id = pro_catalogo_traduzioni.id_catalogo AND pro_catalogo_traduzioni.id_lingua ='".$IdLingua."' ORDER BY pro_catalogo.prezzo ASC "); if(!$OscuraCarrello){ if(mysql_num_rows($_top_tabellareRS2)){ $_top_tabellareaRef=array(); $_top_tabellarePrima=false; for($_top_tabellareh=0;$_top_tabellareh"; $_top_tabellaresospeso[$_top_tabellareIdPro]["sospeso"]=mysql_result($_top_tabellareRS2,$_top_tabellareh,"sospeso"); if($_top_tabellaresospeso[$_top_tabellareIdPro]["sospeso"]==0){ // verifico se check qta $_top_tabellareRSQTA=mysql_query(" SELECT pro_catalogo.quantita FROM pro_catalogo WHERE pro_catalogo.bCheckGiagenza=1 AND pro_catalogo.id='".$_top_tabellareIdPro."' "); $_top_tabellareRSOR=mysql_query(" SELECT sum(qta) AS qtaOr FROM ordini, ordini_prodotti, pro_catalogo WHERE pro_catalogo.bCheckGiagenza=1 AND pro_catalogo.id='".$_top_tabellareIdPro."' AND pro_catalogo.codice=ordini_prodotti.codiceprodotto AND ordini_prodotti.id_ordine=ordini.id AND ordini.stato NOT IN ('Evaso/Fatturato') GROUP BY ordini_prodotti.codiceprodotto "); if(mysql_num_rows($_top_tabellareRSQTA)){ $_top_tabellareQtaMax=mysql_result($_top_tabellareRSQTA,0,"quantita")-mysql_result($_top_tabellareRSOR,0,"qtaOr"); }else{ $_top_tabellareQtaMax=999999999; } if($_top_tabellareQtaMax>0){ // }else{ $_top_tabellaresospeso[$_top_tabellareIdPro]["sospeso"]=1; } } $_top_tabellaresospeso[$_top_tabellareIdPro]["aNotPubb"]=explode(",",mysql_result($_top_tabellareRS2,$_top_tabellareh,"aNotPubb")); } foreach($_top_tabellareaRef as $_top_tabellareIdPro=>$_top_tabellareaCampi){ if(!in_array($IdLingua, $_top_tabellaresospeso[$_top_tabellareIdPro]["aNotPubb"])){ if ($_top_tabellaresospeso[$_top_tabellareIdPro]["sospeso"]==0){ if($_top_tabellarebgcolor=="#EAEAEA"){ $_top_tabellarebgcolor="#FFFFFF"; }else{ $_top_tabellarebgcolor="#EAEAEA"; } $NomeArgomento.=''; $NomeArgomento.=""; $NomeArgomento.=""; } } } } } } $NomeArgomento.="
'.stripslashes(mysql_result($_top_tabellareRS,$_top_tabellarei,"pro_marchi_traduzioni.nome")).'
'.mysql_result($_top_tabellareRS,$_top_tabellarei,"pro_prodotti_traduzioni.nome").'
'.$_top_tabellareaCampi["descrizione"].'".$_top_tabellareaCampi["prezzo"]."
"; break; default: $NomeArgomento="".$aTraduzioni[$IdLingua]["forum"]["argomentogenerico"].""; break; } if($bgcolor=="#EAEAEA"){ $bgcolor="#FFFFFF"; }else{ $bgcolor="#EAEAEA"; } ?> ".$Parola." ",$domanda); } echo nl2br($domanda)."
"; ?>


".$Parola." ",$risposta); } echo nl2br($risposta); ?>