17 changed files with 393 additions and 132 deletions
@ -0,0 +1,40 @@ |
|||
|
|||
<form id="contact-form" method="post" action="<?php echo $BASE_URL;?>/blocks/contactFormSubmit.php"> |
|||
<div class="row py-4"> |
|||
<div class="col-10 col-sm-6 mx-auto"> |
|||
<span class="font-12">Destinatario</span> |
|||
<select class="input" name="dest"> |
|||
<option value="info@ordinefarmacistisalerno.it">Informazioni</option> |
|||
<option value="presidenza@ordinefarmacistisalerno.it">Presidenza</option> |
|||
<option value="vicepresidenza@ordinefarmacistisalerno.it">Vice Presidenza</option> |
|||
<option value="segreteria@ordinefarmacistisalerno.it">Segreteria</option> |
|||
<option value="tesoreria@ordinefarmacistisalerno.it">Tesoreria</option> |
|||
<option value="consiglio@ordinefarmacistisalerno.it">Consiglio</option> |
|||
</select> |
|||
</div> |
|||
<div class="col-sm-4 d-none d-sm-block"></div> |
|||
<div class="col-10 mx-auto"> |
|||
<span class="font-12">Nome mittente</span> |
|||
<input type="text" name="name"> |
|||
</div> |
|||
<div class="col-10 mx-auto"> |
|||
<span class="font-12">Email mittente</span> |
|||
<input type="text" name="email"> |
|||
</div> |
|||
<div class="col-10 mx-auto"> |
|||
<span class="font-12">Oggetto</span> |
|||
<input type="text" name="subject"> |
|||
</div> |
|||
<div class="col-10 mx-auto"> |
|||
<span class="font-12">Messaggio</span> |
|||
<textarea cols="40" rows="6" name="message"></textarea> |
|||
</div> |
|||
<div class="col-10 mx-auto"> |
|||
<div class="g-recaptcha" data-sitekey="6Le7kkUUAAAAAK-lsvoefiaBsH1TycWnHipCC8VF"></div> |
|||
</div> |
|||
<div class="col-10 mx-auto text-right"> |
|||
<button type="submit">Invia messaggio</button> |
|||
</div> |
|||
</div> |
|||
</form> |
|||
|
@ -0,0 +1,72 @@ |
|||
|
|||
<?php |
|||
session_start(); |
|||
|
|||
@include '../cgi-bin/conn.conn'; |
|||
@include '../cgi-bin/functions.inc'; |
|||
@include '../cgi-bin/params.inc'; |
|||
|
|||
$GLOBALS['getQ'][0]="home"; |
|||
$GLOBALS['isHome'] = true; |
|||
$GLOBALS['conn']; |
|||
|
|||
$conn=@mysqli_connect($DATAhst,$DATAusr,$DATApwd,$DATAdtb)or die("CONNECTION ERROR"); |
|||
mysqli_set_charset($conn, "utf8"); |
|||
|
|||
?> |
|||
<!DOCTYPE html> |
|||
<html> |
|||
<head> |
|||
<title>Ordine dei Farmacisti della Provincia di Salerno</title> |
|||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
|||
<base href="<?php echo $BASE_URL;?>/"> |
|||
<link href="<?php echo $BASE_URL;?>/css/styles.css" rel="stylesheet" type="text/css"/> |
|||
<link href='http://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'> |
|||
</head> |
|||
<body> |
|||
<div class="row no-gutters py-4"> |
|||
|
|||
<?php |
|||
|
|||
if(sizeof($_GET)>0 && $_GET['g-recaptcha-response']){ |
|||
|
|||
$SM_email = $_GET['aaa']; |
|||
$SM_email2 = 0; |
|||
$SM_email_CC = 0; |
|||
$SM_subject = $_GET['subject']; |
|||
$SM_message = "Nome del mittente:". $_GET['name']."<br>"; |
|||
$SM_message .= "Email del mittente:". $_GET['email']."<br><br>"; |
|||
$SM_message .= $_GET['message']; |
|||
$SM_showalert = 0; |
|||
$SM_append = 0; |
|||
|
|||
sendMail($SM_email,$SM_email2,$SM_email_CC,$SM_subject,$SM_message,$SM_showalert,$SM_append); |
|||
|
|||
?> |
|||
|
|||
|
|||
<div class="col-10 text-center mx-auto"> |
|||
<p><i class="fa fa-check-circle font-alert p-4"></i></p> |
|||
E-mail inviata correttamente a <?= $_GET['dest'];?> |
|||
</div> |
|||
|
|||
|
|||
<?php |
|||
|
|||
}else{ |
|||
|
|||
if(sizeof($_GET)>0 && |
|||
(!$_GET['g-recaptcha-response'] || |
|||
strlen($_GET['name']) < 5 || |
|||
strlen($_GET['email']) < 5 || |
|||
strlen($_GET['message']) < 5)){ |
|||
echo "<div class=\"col-10 mx-auto text-red text-center\"> |
|||
<p><i class=\"fa fa-exclamation-triangle font-alert p-4\"></i></p> |
|||
ATTENZIONE: Ricorda ti compilare tutti i campi ed effettuare il controllo si sicurezza.</div>"; |
|||
} |
|||
} |
|||
?> |
|||
|
|||
</div> |
|||
</body> |
|||
</html> |
@ -0,0 +1,34 @@ |
|||
<div class="row"> |
|||
<div class="col-12"> |
|||
<div class="section-title">Contatti</div> |
|||
</div> |
|||
|
|||
<div class="col-12 contacts"> |
|||
<i class="fa fa-map-marker"></i> <b>Sede:</b> Via Settimio Mobilio, 17 - SALERNO<br> |
|||
<i class="fa fa-phone"></i> <b>Telefono:</b> 089.405080 - 089.795900<br> |
|||
<i class="fa fa-fax"></i> <b>Fax:</b> 089.798628<br> |
|||
<i class="fa fa-envelope"></i> <b>E-Mail:</b> info@ordinefarmacistisalerno.it<br> |
|||
<i class="fa fa-envelope"></i> <b>E-Mail certificata:</b> ordinefarmacistisa@pec.fofi.it <br> |
|||
</div> |
|||
|
|||
|
|||
<div class="col-12"> |
|||
<div class="section-title">Richiedi informazioni</div> |
|||
</div> |
|||
<div class="col-12"> |
|||
<?php |
|||
@include 'blocks/contactForm.php'; |
|||
?> |
|||
</div> |
|||
|
|||
|
|||
<div class="col-12"> |
|||
<div class="section-title">Come raggiungerci</div> |
|||
</div> |
|||
<div class="col-12"> |
|||
<div id="map" class="px-0"> |
|||
<iframe width="100%" height="500" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.it/maps?f=q&source=s_q&hl=it&geocode=&q=ordine+farmacisti+salerno&sll=41.442726,12.392578&sspn=17.04957,43.286133&ie=UTF8&hq=ordine+farmacisti&hnear=Salerno+SA&ll=40.685389,14.781933&spn=0.004012,0.014656&z=14&iwloc=A&cid=4099829483191197382&output=embed"></iframe> |
|||
</div> |
|||
</div> |
|||
|
|||
</div> |
After Width: | Height: | Size: 236 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
After Width: | Height: | Size: 236 KiB |
Loading…
Reference in new issue