include("inc/header.php"); ?>
include("inc/header_articoli.php"); ?>
include ("/admin/phpdatasource.inc");
include ("/admin/phpfunctions.inc");
?>
if (!strlen($step)) $step = 1;
?>
if ($step =="2")
{
$query = "SELECT * FROM products WHERE id=$pid AND deleted=0";
$result = mysql_query($query,$db);
if($myrow = mysql_Fetch_array($result))
{
mysql_assign($query,$myrow,"this_");
$esaurito = false;
$found=1;
}
else
{
$found=0;
}
mysql_free_result($result);
if (!$found)
{
echo $prodottoinesistente;
}
else
{
if(!$catid)
{
$query="SELECT catid FROM catlink WHERE prodid=$pid";
$result=mysql_query($query,$db);
if ($myrow=mysql_fetch_array($result))
{
$catid=$myrow['catid'];
}
else
{
$catid=-1;
}
mysql_free_result($result);
}
$volprice= formatPrice($volprice,2);
$price=formatPrice($this_sell,2);
if ($this_discount && $this_discount > 0)
{
$specialprice=formatPrice($this_discount,2);
}
$body .= "RICHIESTA INFORMAZIONI ARTICOLO $this_name\n";
$body .="DESCRIZIONE: $this_shortdesc\n";
$body .="PREZZO: $price ";
if ($specialprice) $body .=" PREZZO SCONTATO: $specialprice ";
$body .="\n\n";
$body .="MESSAGGIO: $messaggio\n";
$body .="NOME: $nome\n";
$body .="COGNOME: $cognome\n";
$body .="EMAIL: $mail\n";
$body .="AZIENDA: $azienda\n";
$body .="TEL: $tel\n";
$body .="CITTA': $citta\n";
$body .="PROVINCIA: $provincia\n\n";
$headers .= "From: $nome $cognome <$mail>\r\n";
$risultato = checkmail($mail);
if ($risultato) {
mail("info@piemmearredamenti.it", "Piemme Arredamenti - Richiesta Informazioni Articolo $this_name","$body","$headers");
mail("debug@laborama.it","Piemme Arredamenti - Richiesta Informazioni Articolo $this_name","$body","$headers");
$eccoci = "
Grazie per averci contattato.
La tua richiesta θ appena stata inoltrata, ti risponderemo prima possibile.
";
} else {
$eccoci = "Attenzione, L'email che hai appena inserito θ inesistente, pertanto non sarΰ pervenuta la tua richiesta.
";
} ?>
Richiesta informazioni Articolo print"$this_name"; ?>
echo $eccoci ?>
}
} // end step 2
if ($step == "1")
{
$query = "SELECT * FROM products WHERE id=$pid AND deleted=0";
$result = mysql_query($query,$db);
if($myrow = mysql_Fetch_array($result))
{
mysql_assign($query,$myrow,"this_");
$found=1;
}
?>
Richiesta informazioni Articolo print"$this_name"; ?>
}
?>
include("inc/footer_catalogo.php"); ?>
include("inc/footer.php"); ?>