<?php require_once('../../Connections/fitnesscenter.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
mysql_select_db($database_fitnesscenter, $fitnesscenter);
$query_Recordset1 = "SELECT nome, cognome, attivita FROM prova_gratis";
$Recordset1 = mysql_query($query_Recordset1, $fitnesscenter) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);mysql_select_db($database_fitnesscenter, $fitnesscenter);
$query_Recordset1 = "SELECT nome, cognome, attivita FROM prova_gratis ORDER BY id DESC";
$Recordset1 = mysql_query($query_Recordset1, $fitnesscenter) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento senza titolo</title>
<script type="text/javascript" language="JavaScript1.2" src="../menu/stmenu.js"></script>
<script type="text/javascript" language="JavaScript1.2" src="../stmenu.js"></script>
<script src="../../SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
<script src="../../SpryAssets/SpryValidationSelect.js" type="text/javascript"></script>
<script language="javascript">
<!--
function Stampa() {
//Nasconde le celle indesiderate
intestazione.style.display = "None";
sinistro.style.display = "None";
destro.style.display = "None";
//Imposta la parte da stampare a tutto schermo
stampa.style.width = "100%";
//Lancia la funzione di stampa
window.print();
//Ripristina la parte da stampare alle dimensioni originali
stampa.style.width = "450px";
//Ripristina l'impostazione iniziale delle celle indesiderate
intestazione.style.display = "";
sinistro.style.display = "";
destro.style.display = "";
}
//-->
</script>
<link href="../css/master_fitnesscenter.css" rel="stylesheet" type="text/css" />
<link href="../../SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
<link href="../../SpryAssets/SpryValidationSelect.css" rel="stylesheet" type="text/css" />
<style type="text/css">
body {
background-image: url();
background-color: #000;
}
</style>
</head>
<body>
<div class="container">
<div id="class_header">
<div id="class_menu_top">
<script type="text/javascript" language="JavaScript1.2">
<!--
stm_bm(["menu349a",700,"","blank.gif",0,"","",0,0,0,0,50,1,0,0,"","",0,0,1,1,"default","hand",""],this);
stm_bp("p0",[0,4,0,0,0,3,0,0,100,"progid:DXImageTransform.Microsoft.Pixelate(MaxSquare=15,enabled=0,Duration=1.00)",-2,"",-2,10,0,0,"#7F7F7F","#000000","",3,0,0,"#000000"]);
stm_ai("p0i0",[0,"Chi Siamo","","",-1,-1,0,"chisiamo.php","_self","","","","",0,0,0,"","",0,0,0,1,1,"#FFFFFF",1,"#FFFFFF",1,"","",3,3,1,2,"#89C401","#FFFFFF","#FFCC00","#FFCC00","bold 9pt Arial","bold 9pt Arial",0,0],60,0);
stm_aix("p0i1","p0i0",[0,"Dove Siamo","","",-1,-1,0,"#","_self","","","","",0,0,0,"","",0,0,0,0,1,"#FFFFFF",1,"#FFFFFF",1,"","",3,3,1,2,"#89c401","#FFFFFF","#FFFFFF"],80,0);
stm_aix("p0i2","p0i1",[0,"Contatti","","",-1,-1,0,"#","_self","","","","",0,0,0,"","",0,0,0,2],50,0);
stm_ep();
stm_em();
//-->
</script>
</div>
</div>
<div id="class_menu">
<script type="text/javascript" language="JavaScript1.2">
<!--
stm_bm(["menu1c53",700,"","../menu/blank.gif",0,"","",1,0,250,0,1000,1,0,0,"","100%",0,0,1,2,"default","hand",""],this);
stm_bp("p0",[0,4,0,0,0,0,0,0,100,"",-2,"",-2,50,0,0,"#999999","transparent","../menu/line1.gif",3,0,0,"#000000"]);
stm_ai("p0i0",[0,"Home","","",-1,-1,0,"#","_self","","","","",0,0,0,"","",0,0,0,1,1,"#E6EFF9",1,"#E6EFF9",1,"","../menu/line.gif",3,3,0,0,"#E6EFF9","#000000","#FFFFFF","#78bc1c","9pt Verdana","9pt Verdana",0,0],100,38);
stm_ai("p0i1",[6,2,"transparent","../menu/line2.gif",2,43,0]);
stm_aix("p0i2","p0i0",[0,"Aerobica","","",-1,-1,0,"artimarziali.php"],100,38);
stm_bp("p1",[1,4,-55,-6,0,0,0,0,100,"progid:DXImageTransform.Microsoft.RandomDissolve(,enabled=0,Duration=0.30)",12,"",-2,80,0,0,"#999999","#F7F7F7","",3,0,0,"#CCCCCC","",6,1,0,"transparent","",3,"",1,6,0,"transparent","",3,"../menu/line3.gif",12,200,0,"transparent","../menu/line3.gif",3,"",1,6,0,"transparent","",3,"","","",""]);
stm_aix("p1i0","p0i0",[2,"","../menu/arrow1.gif","arrow1.gif",200,25,0,"#","_self","","","","",0,0,0,"","",0,0,0,1,1,"#E6EFF9",1,"#E6EFF9",1,"",""]);
stm_aix("p1i1","p0i0",[0,"Tonificazione","","",-1,-1,0,"#","_self","","","","",0,0,0,"","",0,0,0,0,1,"#E6EFF9",1,"#edf9e1",1,"","",3,3,0,0,"#E6EFF9","#000000","#505050","#89c401","8pt Verdana","bold 8pt Verdana"],0,20);
stm_aix("p1i2","p0i1",[6,1,"#C1C5C9","",-1,-1]);
stm_aix("p1i3","p1i1",[0,"Gim Music","","",-1,-1,0,"#","_self","","","","",0,0,0,"","",0,0,0,0,1,"#E6EFF9",1,"#FFFFFF",0],0,20);
stm_aix("p1i4","p1i2",[6,1,"#E2E2E2"]);
stm_aix("p1i5","p1i3",[0,"Gim Step"],0,20);
stm_aix("p1i6","p1i4",[]);
stm_aix("p1i7","p1i3",[0,"Interval Training","","",-1,-1,0,""],0,20);
stm_aix("p1i8","p1i4",[]);
stm_aix("p1i9","p1i7",[0,"Total Work Out"],0,20);
stm_aix("p1i10","p1i4",[]);
stm_aix("p1i11","p1i7",[0,"Body Sculpt"],0,20);
stm_aix("p1i12","p1i4",[]);
stm_aix("p1i13","p1i7",[0,"Total Body"],0,20);
stm_aix("p1i14","p1i4",[]);
stm_aix("p1i15","p1i7",[0,"Step Geografico"],0,20);
stm_aix("p1i16","p1i4",[]);
stm_aix("p1i17","p1i7",[0,"Corpo Libero"],0,20);
stm_aix("p1i18","p1i4",[]);
stm_aix("p1i19","p1i7",[0,"G.A.G."],0,20);
stm_aix("p1i20","p1i4",[]);
stm_aix("p1i21","p1i7",[0,"Cardio Combat"],0,20);
stm_aix("p1i22","p1i4",[]);
stm_ep();
stm_aix("p0i3","p0i1",[6,1]);
stm_aix("p0i4","p0i2",[0,"Arti Marziali"],100,38);
stm_bpx("p2","p1",[]);
stm_aix("p2i0","p1i0",[]);
stm_aix("p2i1","p1i1",[0,"Karate"],0,20);
stm_aix("p2i2","p1i2",[]);
stm_aix("p2i3","p1i3",[0,"Kung-Fu"],0,20);
stm_aix("p2i4","p1i4",[]);
stm_aix("p2i5","p1i3",[0,"Difesa Personale"],0,20);
stm_aix("p2i6","p1i4",[]);
stm_ep();
stm_aix("p0i5","p0i3",[]);
stm_aix("p0i6","p0i0",[0,"Balli","","",-1,-1,0,"balli.php"],100,38);
stm_bpx("p3","p1",[]);
stm_aix("p3i0","p1i0",[]);
stm_aix("p3i1","p1i1",[0,"Danza moderna"],0,20);
stm_aix("p3i2","p1i2",[]);
stm_aix("p3i3","p0i0",[0,"Salsa","","",-1,-1,0,"#","_self","","","","",0,0,0,"","",0,0,0,0,1,"#E6EFF9",1,"#FFFFFF",0,"","",3,3,0,0,"#E6EFF9","#000000","#505050","#89c401","8pt Verdana","8pt Verdana"],0,20);
stm_aix("p3i4","p1i4",[]);
stm_aix("p3i5","p3i3",[0,"Hip Hop"],0,20);
stm_aix("p3i6","p1i4",[]);
stm_aix("p3i7","p3i3",[0,"Balli Caraibici"],0,20);
stm_aix("p3i8","p1i4",[]);
stm_ep();
stm_aix("p0i7","p0i3",[]);
stm_aix("p0i8","p0i0",[0,"Body Mind","","",-1,-1,0,"bodymind.php"],100,38);
stm_bpx("p4","p1",[]);
stm_aix("p4i0","p1i0",[]);
stm_aix("p4i1","p1i1",[1,"Gym Soft","","",-1,-1,0,"#","_self","","","","",0,0,0,"","",0,0,0,0,1,"#CCCCCC"],0,20);
stm_aix("p4i2","p1i2",[]);
stm_aix("p4i3","p3i3",[1,"Yoga - Metodo De Rose","","",-1,-1,0,"#","_self","","","","",0,0,0,"","",0,0,0,0,1,"#CCCCCC"],0,20);
stm_aix("p4i4","p1i4",[]);
stm_aix("p4i5","p4i3",[1,"Ginnastica Posturale"],0,20);
stm_aix("p4i6","p1i4",[]);
stm_aix("p4i7","p4i3",[1,"Soft Pilates"],0,20);
stm_aix("p4i8","p1i4",[]);
stm_aix("p4i9","p4i3",[1,"Tone Pilates"],0,20);
stm_aix("p4i10","p1i4",[]);
stm_aix("p4i11","p4i1",[1,"Pilates"],0,20);
stm_aix("p4i12","p1i4",[]);
stm_ep();
stm_aix("p0i9","p0i3",[]);
stm_aix("p0i10","p0i0",[0,"Cardio Fitness","","",-1,-1,0,"cardiofitness.php"],100,38);
stm_bpx("p5","p1",[]);
stm_aix("p5i0","p1i0",[]);
stm_aix("p5i1","p1i1",[0,"Gym Soft"],0,20);
stm_aix("p5i2","p1i2",[]);
stm_aix("p5i3","p3i3",[0,"Yoga - Metodo De Rose"],0,20);
stm_aix("p5i4","p1i4",[]);
stm_aix("p5i5","p3i3",[0,"Ginnastica Posturale"],0,20);
stm_aix("p5i6","p1i4",[]);
stm_aix("p5i7","p3i3",[0,"Soft Pilates"],0,20);
stm_aix("p5i8","p1i4",[]);
stm_aix("p5i9","p3i3",[0,"Tone Pilates"],0,20);
stm_aix("p5i10","p1i4",[]);
stm_ep();
stm_aix("p0i11","p0i3",[]);
stm_aix("p0i12","p0i0",[0,"Login"],100,38);
stm_bpx("p6","p1",[]);
stm_aix("p6i0","p1i0",[]);
stm_aix("p6i1","p1i1",[0,"","","",-1,-1,0,"#","_self","","","","",0,0,0,"","",0,0,0,1,1,"#E6EFF9",1,"#edf9e1",1,"","",3,3,0,0,"#E6EFF9","#000000","#505050","#505050","bold 8pt Verdana"],0,20);
stm_aix("p6i2","p1i2",[]);
stm_aix("p6i3","p3i3",[1," <div id=\"topnav\" class=\"topnav\"> Non hai un account? <a href=\"registrazione.php\" class=\"signin\"><span>Registrati</span></a> </div>\r\n <p></p>\r\n <p></p>\r\n \r\n <form method=\"post\" id=\"signin\" action=\"https://twitter.com/sessions\">\r\n <label for=\"username\">User</label>\r\n <input id=\"username\" name=\"username\" value=\"\" title=\"username\" tabindex=\"4\" type=\"text\">\r\n </p>\r\n <p>\r\n <label for=\"password\">Pass</label>\r\n <input id=\"password\" name=\"password\" value=\"\" title=\"password\" tabindex=\"5\" type=\"password\">\r\n </p>\r\n <p class=\"remember\">\r\n <input id=\"signin_submit\" value=\"Entra\" tabindex=\"6\" type=\"submit\">\r\n <input id=\"remember\" name=\"remember_me\" value=\"1\" tabindex=\"7\" type=\"checkbox\">\r\n <label for=\"remember\">Remember me</label>\r\n </p>\r\n <p class=\"forgot\"> </p>\r\n <p class=\"forgot-username\"> </p>\r\n </form>\r\n \r\n</div>","","",-1,-1,0,"#","_self","","","","",0,0,0,"","",0,0,0,1,1,"#E6EFF9",1,"#FFFFFF",0,"","",3,3,0,0,"#E6EFF9","#000000","#505050","#505050"],0,20);
stm_aix("p6i4","p1i4",[]);
stm_aix("p6i5","p1i4",[]);
stm_ep();
stm_ep();
stm_em();
//-->
</script>
</div>
<div id="class_contenuti">
<table align="center" width="750" border="0">
<tr>
<td colspan="3" id="intestazione"></td>
</tr>
<tr>
<td valign="top" width="150" id="sinistro"> </td>
<td valign="top" width="450" id="stampa">
<h3>Valido per una prova omaggio</h3>
Benvenuto <srong><?php echo $row_Recordset1['nome']; ?> <?php echo $row_Recordset1['cognome']; ?></strong> hai scelto un ingresso omaggio per l'attività "<strong><?php echo $row_Recordset1['attivita']; ?></strong>"
Stampa questo tagliando e presentalo all'ingresso della palestra scelta.
Grazie la Direzione.</td>
<td valign="top" width="150" id="destro"> </td>
</tr>
<tr>
<td valign="top" id="sinistro2"> </td>
<td valign="top" id="stampa2"><a href="javascript:Stampa()">Stampa</a></td>
<td valign="top" id="destro2"> </td>
</tr>
</table>
<?php
// L'INDIRIZZO DEL DESTINATARIO DELLA MAIL
$to = "info@mdstudioweb.com";
// IL SOGGETTO DELLA MAIL
$subject = "Richiesta prova gratuita";
// COSTRUZIONE DEL CORPO DEL MESSAGGIO
$body = "Contenuto del modulo:\n\n";
@$body .= "Dati personali ;<br>nome: " . trim(stripslashes($_POST["nome"])) . "\n";
@$body .= "cognome: " . trim(stripslashes($_POST["cognome"])) . "\n";
@$body .= "Telefono: " . trim(stripslashes($_POST["telefono"])) . "\n";
@$body .= "E-Mail: " . trim(stripslashes($_POST["email"])) . "\n";
@$body .= "Attività: " . trim(stripslashes($_POST["attivita"])) . "\n";
// INTESTAZIONI SUPPLEMENTARI
$headers = "From: info@mdstudioweb.com>";
// INVIO DELLA MAIL
if(@mail($to, $subject, $body, $headers)) { // SE L'INOLTRO E' ANDATO A BUON FINE...
echo "La mail è stata inoltrata con successo.";
} else {// ALTRIMENTI...
echo "Si sono verificati dei problemi nell'invio della mail.";
}
?>
</div>
<div id="class_nav_dx">
<div id="class_box">
<div id="class_box1">
</div>
<div id="class_box">
<div id="class_box1">
<h3>Eventi</h3>
</div>
<br />
<br />
<br />
<br />
</div>
<div id="class_box">
<div id="class_box1">
<h3>News</h3>
</div>
<br />
<br />
<br />
<br />
</div>
<div id="class_box">
<div id="class_box1">
<h3>Corsi per Adulti</h3>
</div>
<br />
<br />
<br />
<br />
</div>
<div id="class_box">
<div id="class_box1">
<h3>Promozioni del mese</h3>
</div>
<br />
<br />
<br />
<br />
</div>
<div id="class_box">
<div id="class_box1">
<h3>Promozioni del mese</h3>
</div>
<br />
<br />
<br />
<br />
</div>
</div>
</div>
<div id="class_footer"></div>
</div>
</div>
<script type="text/javascript">
var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1");
var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2");
var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3");
var sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4");
var spryselect1 = new Spry.Widget.ValidationSelect("spryselect1");
</script>
</body>
</html>
<?php
mysql_free_result($Recordset1);
?>