diff --git a/blocks/contactForm.php b/blocks/contactForm.php new file mode 100644 index 0000000..3d03afc --- /dev/null +++ b/blocks/contactForm.php @@ -0,0 +1,40 @@ + +
+
+
+ Destinatario + +
+
+
+ Nome mittente + +
+
+ Email mittente + +
+
+ Oggetto + +
+
+ Messaggio + +
+
+
+
+
+ +
+
+
+ diff --git a/blocks/contactFormSubmit.php b/blocks/contactFormSubmit.php new file mode 100755 index 0000000..0090e37 --- /dev/null +++ b/blocks/contactFormSubmit.php @@ -0,0 +1,72 @@ + + + + + + Ordine dei Farmacisti della Provincia di Salerno + + + + + + +
+ +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']."
"; + $SM_message .= "Email del mittente:". $_GET['email']."

"; + $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); + +?> + + +
+

+ E-mail inviata correttamente a +
+ + +0 && + (!$_GET['g-recaptcha-response'] || + strlen($_GET['name']) < 5 || + strlen($_GET['email']) < 5 || + strlen($_GET['message']) < 5)){ + echo "
+

+ ATTENZIONE: Ricorda ti compilare tutti i campi ed effettuare il controllo si sicurezza.
"; + } + } +?> + +
+ + diff --git a/cgi-bin/functions.inc b/cgi-bin/functions.inc index 310e8d5..8c36f05 100755 --- a/cgi-bin/functions.inc +++ b/cgi-bin/functions.inc @@ -1,22 +1,5 @@ 1000){$size = ($size/1000)."Mb";}else{$size = $size."Kb";} - date("d/m/Y", filemtime($file['path']."/".$file['filename'])) - */ echo "
".$file['title']."
".$file['size']."
@@ -106,4 +81,107 @@ function item_file($file){ + + + +function sendMail($SM_email,$SM_email2,$SM_email_CC,$SM_subject,$SM_message,$SM_showalert,$SM_append){ + +$host=$GLOBALS['BASE_URL'].""; +$send_date=conv_date(date("Y-m-d")); + +$top=<<
+ + + + +"; +$bottom.="
+Ordine dei Farmacisti di Salerno

$SM_subject$send_date
+ttop; + +$bottom="

". +"Questa e-mail contiene informazioni di proprietà e di natura confidenziale. Se non siete il destinatario corretto di questo messaggio, vi ricordiamo che ogni diffusione, distribuzione o copia di questo messaggio è severamente proibita. Se avete ricevuto questo messaggio per errore, siete pregati di cancellarlo immediatamente. Quanto precede ai fini del rispetto del D.L. n. 196/03 sulla tutela dei dati personali.
-
". +"This e-mail (and any attachments) is strictly confidential and for use only by intendend recipients. If you are not an intended recipients, we point you that any diffusion, distribution or copy of this message is severely forbidden. If you have received t his message by mistake please destroy it immediately (under the observance of D.L. n. 196/03 which protects personal data).". +"
Rispetta l'ambiente. Non stampare questa mail se non è necessaria."; + +$bottom.="
"; + +$headers = "From: \"Ordine dei Farmacisti di Salerno\" \n"; +$headers .= "MIME-Version: 1.0\n"; + +$msg=""; + + if($SM_append){ + + $append_name = basename($SM_append); + $append_type = mime_content_type($SM_append); + + $data = chunk_split(base64_encode(file_get_contents($SM_append))); + + $semi_rand = md5(time()); + $mime_boundary = "==Multipart_Boundary_x{$semi_rand}x"; + + $headers .= "Content-Type: multipart/mixed;\n"; + $headers .= " boundary=\"{$mime_boundary}\"\n"; + $headers .= "X-Mailer: PHP " . phpversion(); + + $msg .= "This is a multi-part message in MIME format.\n\n"; + $msg .= "--{$mime_boundary}\n"; + $msg .= "Content-Type: text/html; charset=\"iso-8859-1\"\n"; + $msg .= "Content-Transfer-Encoding: 7bit\n\n"; + $msg .= $top.$SM_message.$bottom."\n\n"; + $msg .= "--{$mime_boundary}\n"; + $msg .= "Content-Type: {$append_type}; name=\"{$append_name}\"\n"; + $msg .= "Content-Transfer-Encoding: base64\n"; + $msg .= "Content-Disposition: attachment; filename=\"{$append_name}\"\n\n"; + $msg .= $data."\n\n"; + + $msg .= "--{$mime_boundary}--\n"; + + }else{ + $headers .= "Content-Type: text/html; charset=\"iso-8859-1\"\n"; + $msg = $top.$SM_message.$bottom."\n\n"; + } + + + if(@mail(trim($SM_email),$SM_subject,$msg, $headers)){ + + if(@$SM_email2){ + if($SM_email_CC){ + $headers = "Bcc: $SM_email_CC \n".$headers; + } + @mail(trim($SM_email2),$SM_subject,$msg, $headers)or die("errore invio mail"); + } + + if($SM_showalert){ + echo "

E-mail inviata correttamente


"; + } + + }else{ + + if($SM_showalert){ + echo "


ERRORE:


". + "Si è verificato un errore nell'invio della mail.
". + "Si prega contattare l'amministratore del sistema.
"; + } + } + + /* + $of=fopen("../mailoutput.html","w"); + fwrite($of, "Email:".$SM_email."\n
Email:".$SM_email2."\n
Email CC:".$SM_email_CC."\n
Subject:".$SM_subject."\n

CONTENT:\n".$msg); + fclose($of); + */ + +} + + + + + + + ?> diff --git a/contatti.php b/contatti.php new file mode 100644 index 0000000..949fd87 --- /dev/null +++ b/contatti.php @@ -0,0 +1,34 @@ +
+
+
Contatti
+
+ +
+ Sede: Via Settimio Mobilio, 17 - SALERNO
+ Telefono: 089.405080 - 089.795900
+ Fax: 089.798628
+ E-Mail: info@ordinefarmacistisalerno.it
+ E-Mail certificata: ordinefarmacistisa@pec.fofi.it
+
+ + +
+
Richiedi informazioni
+
+
+ +
+ + +
+
Come raggiungerci
+
+
+
+ +
+
+ +
diff --git a/css/styles.css b/css/styles.css index 20abe12..b37cd50 100644 --- a/css/styles.css +++ b/css/styles.css @@ -104,7 +104,7 @@ /* line 68, variables.scss */ .font-alert { - font-size: 8rem; + font-size: 8rem !important; opacity: .5; } @@ -14184,7 +14184,13 @@ a.text-dark:hover, a.text-dark:focus { color: black; } -/* line 143, colorbox.scss */ +/* line 142, colorbox.scss */ +#cboxClose { + background: white; + border-radius: 0 0 0 10px; +} + +/* line 147, colorbox.scss */ .cboxIE #cboxTopLeft, .cboxIE #cboxTopCenter, .cboxIE #cboxTopRight, @@ -14389,38 +14395,51 @@ a:hover { } /* line 3, forms.scss */ -input, select, button { +input, +select, +button, +textarea { border-radius: 3px; margin: 5px 0; -webkit-appearance: none; outline: none !important; } -/* line 7, forms.scss */ -input::-ms-clear, select::-ms-clear, button::-ms-clear { +/* line 10, forms.scss */ +input::-ms-clear, +select::-ms-clear, +button::-ms-clear, +textarea::-ms-clear { display: none; } -/* line 10, forms.scss */ -input:focus, select:focus, button:focus { +/* line 13, forms.scss */ +input:focus, +select:focus, +button:focus, +textarea:focus { outline: none; } -/* line 11, forms.scss */ -input::-moz-focus-inner, select::-moz-focus-inner, button::-moz-focus-inner { +/* line 14, forms.scss */ +input::-moz-focus-inner, +select::-moz-focus-inner, +button::-moz-focus-inner, +textarea::-moz-focus-inner { border: 0; } -/* line 16, forms.scss */ +/* line 19, forms.scss */ input[type=text], input[type=password], -select { +select, +textarea { border: 1px solid #aaa; color: #aaa; - padding: 5px 20px; + padding: 5px 10px; width: 100%; text-align: left; box-sizing: border-box; } -/* line 27, forms.scss */ +/* line 31, forms.scss */ input[type=button], input[type=submit], button { @@ -14434,7 +14453,14 @@ button { border: none; transition: .5s; } -/* line 41, forms.scss */ +/* line 45, forms.scss */ +input[type=button]:disabled, +input[type=submit]:disabled, +button:disabled { + color: white; + background-color: #aaa; +} +/* line 50, forms.scss */ input[type=button]:hover, input[type=submit]:hover, button:hover { @@ -14442,7 +14468,7 @@ button:hover { background-color: #aaa; } -/* line 49, forms.scss */ +/* line 58, forms.scss */ select { appearance: none; -moz-appearance: none; @@ -14454,12 +14480,12 @@ select { background-repeat: no-repeat; } -/* line 61, forms.scss */ +/* line 70, forms.scss */ input[type="radio"], input[type="checkbox"] { display: none; } -/* line 65, forms.scss */ +/* line 74, forms.scss */ input[type="radio"] + label::before, input[type="checkbox"] + label::before { content: ""; @@ -14474,7 +14500,7 @@ input[type="checkbox"] + label::before { font-size: 1rem; line-height: 10px; } -/* line 80, forms.scss */ +/* line 89, forms.scss */ input[type="radio"]:checked + label::before, input[type="checkbox"]:checked + label::before { font-family: 'FontAwesome'; diff --git a/farmacie.php b/farmacie.php index 7d79115..7bfb839 100644 --- a/farmacie.php +++ b/farmacie.php @@ -1,7 +1,3 @@ - -
diff --git a/images/logo.png b/images/logo.png new file mode 100644 index 0000000..8ae30c7 Binary files /dev/null and b/images/logo.png differ diff --git a/index.php b/index.php index 450e89a..683a855 100755 --- a/index.php +++ b/index.php @@ -9,26 +9,26 @@ $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"); - + if(@$_GET['q']){ $GLOBALS['getQ']=explode("/",$_GET['q']); } - + if($getQ[0]!="home"){ $isHome = false; } - - + + $description = " "; - + if($_POST['usr'] && $_POST['pwd']){ $q=mysqli_query($conn, "SELECT * FROM board WHERE usr='".$_POST['usr']."' AND pwd='".md5($_POST['pwd'])."'"); if(mysqli_num_rows($q)){ $_SESSION['AUTH']=mysqli_fetch_array($q); } } - + if($getQ[0]=="logout"){ unset($_SESSION['AUTH']); session_destroy(); @@ -41,7 +41,7 @@ mysqli_query($conn,"UPDATE board SET pwd='".md5($r['pwd'])."' WHERE id='".$r['id']."'"); } }*/ - + ?> @@ -49,9 +49,9 @@ - + <?php echo conv_url($r['title']);?> | Ordine dei Farmacisti della Provincia di Salerno - + @@ -79,19 +79,21 @@
- + + + diff --git a/js/scripts.js b/js/scripts.js index e1eec16..85e99de 100644 --- a/js/scripts.js +++ b/js/scripts.js @@ -1,32 +1,35 @@ $(document).ready(function(){ - - $('.cboxElement').colorbox({height: '80%',transition: 'elastic'}); - - + + $('.cboxElement').colorbox({height: '80%',transition: 'elastic', close: ''}); + $('#contact-form').on('submit', function(event) { + $.colorbox({width:"60%", height:"60%",transition: 'elastic', close: '', iframe: true, href:$(this).attr('action')+"?" + $(this).serialize()}); + event.preventDefault(); + }); + var isHome = $('body').hasClass('is-home'); - + if($(window).width() < 1024 && $(window).width() >= 768){ $('#menuRight .banner').clone().appendTo('#menuLeft'); $('#menuRight').empty(); - } - + } + if($(window).width() < 1024){ if(!isHome){ $('html, body').animate({scrollTop: $('#MainContainer').offset().top - 74}); } } - + if($(window).width() >= 768){ $('#menuLeft .dropdown:first-child').addClass('active'); } - - - + + + $('.hamburger').on('click', function(){ $(this).toggleClass('is-active'); - + if($(this).hasClass('is-active')){ $('.topmenu').fadeIn(); $('html, body').css({overflow: 'hidden'}); @@ -35,12 +38,12 @@ $(document).ready(function(){ $('html, body').css({overflow: 'auto'}); } }); - - + + $('.dropdown .title').on('click', function(){ - + $(this).parent().toggleClass('active'); - + if($(this).parent().hasClass('active') && !$(this).parent().hasClass('static')){ $('html, body').animate({ scrollTop: $(this).parent().offset().top @@ -48,6 +51,7 @@ $(document).ready(function(){ } }); - - -}); + + + +}); diff --git a/parafarmacie.php b/parafarmacie.php index 2979f64..a2d5caf 100644 --- a/parafarmacie.php +++ b/parafarmacie.php @@ -1,7 +1,3 @@ - -
diff --git a/scss/.sass-cache/bdcb2ec4843708bc0e130897363854e74056ec3e/colorbox.scssc b/scss/.sass-cache/bdcb2ec4843708bc0e130897363854e74056ec3e/colorbox.scssc index 168367a..fb1281b 100644 Binary files a/scss/.sass-cache/bdcb2ec4843708bc0e130897363854e74056ec3e/colorbox.scssc and b/scss/.sass-cache/bdcb2ec4843708bc0e130897363854e74056ec3e/colorbox.scssc differ diff --git a/scss/.sass-cache/bdcb2ec4843708bc0e130897363854e74056ec3e/forms.scssc b/scss/.sass-cache/bdcb2ec4843708bc0e130897363854e74056ec3e/forms.scssc index 5bbca39..8bd9f67 100644 Binary files a/scss/.sass-cache/bdcb2ec4843708bc0e130897363854e74056ec3e/forms.scssc and b/scss/.sass-cache/bdcb2ec4843708bc0e130897363854e74056ec3e/forms.scssc differ diff --git a/scss/.sass-cache/bdcb2ec4843708bc0e130897363854e74056ec3e/variables.scssc b/scss/.sass-cache/bdcb2ec4843708bc0e130897363854e74056ec3e/variables.scssc index ace7258..1f90e10 100644 Binary files a/scss/.sass-cache/bdcb2ec4843708bc0e130897363854e74056ec3e/variables.scssc and b/scss/.sass-cache/bdcb2ec4843708bc0e130897363854e74056ec3e/variables.scssc differ diff --git a/scss/colorbox.scss b/scss/colorbox.scss index 30e66a3..a96daf5 100644 --- a/scss/colorbox.scss +++ b/scss/colorbox.scss @@ -1,12 +1,12 @@ -#colorbox, -#cboxOverlay, +#colorbox, +#cboxOverlay, #cboxWrapper{ - position:absolute; - top:0; - left:0; - z-index:9999; - overflow:hidden; + position:absolute; + top:0; + left:0; + z-index:9999; + overflow:hidden; -webkit-transform: translate3d(0,0,0); } @@ -16,7 +16,7 @@ #cboxOverlay{ position:fixed; - width:100%; + width:100%; height:100%; background: rgba(0,0,0,0.9); } @@ -31,7 +31,7 @@ } #cboxLoadedContent{ - overflow:auto; + overflow:auto; -webkit-overflow-scrolling: touch; } @@ -42,26 +42,26 @@ #cboxLoadingOverlay, #cboxLoadingGraphic{ position:absolute; - top:0; - left:0; - width:100%; + top:0; + left:0; + width:100%; height:100%; } -#cboxPrevious, -#cboxNext, -#cboxClose, +#cboxPrevious, +#cboxNext, +#cboxClose, #cboxSlideshow{ cursor:pointer; } .cboxPhoto{float:left; margin:auto; border:0; display:block; max-width:none; -ms-interpolation-mode:bicubic;border-radius: 5px;} .cboxIframe{background:#fff; width:100%; height:100%; display:block; border:0; padding:0; margin:0;} -#colorbox, -#cboxContent, +#colorbox, +#cboxContent, #cboxLoadedContent{ - box-sizing:content-box; - -moz-box-sizing:content-box; + box-sizing:content-box; + -moz-box-sizing:content-box; -webkit-box-sizing:content-box; } @@ -70,9 +70,9 @@ } #cboxContent{ - background:#fff; - overflow:hidden; - border: 10px solid white; + background:#fff; + overflow:hidden; + border: 10px solid white; border-radius: 15px; padding: 5px; } @@ -82,18 +82,18 @@ } #cboxTitle{ - position:absolute; - top:4px; - left:0; - text-align:center; - width:100%; + position:absolute; + top:4px; + left:0; + text-align:center; + width:100%; color:#949494; } #cboxCurrent{ - position:absolute; - top:4px; - left:58px; + position:absolute; + top:4px; + left:58px; color:#949494; } @@ -105,16 +105,16 @@ background:url(../images/colorbox/loading.gif) no-repeat center center; } -#cboxPrevious, -#cboxNext, -#cboxSlideshow, +#cboxPrevious, +#cboxNext, +#cboxSlideshow, #cboxClose { - border:0; - padding:0; + border:0; + padding:0; margin:0; - overflow:visible; - width:auto; - background:none; + overflow:visible; + width:auto; + background:none; &:active{ outline:0; } @@ -125,20 +125,24 @@ #cboxPrevious{} #cboxNext{} #cboxClose{ - position:absolute; - top: 0; - right:0; + position:absolute; + top: 0; + right:0; width: 25px; - + &:before{ content: '\f057'; font-family: 'FontAwesome'; font-size: 20px; color: black; } - + } +#cboxClose{ + background: white; + border-radius: 0 0 0 10px; +} .cboxIE #cboxTopLeft, .cboxIE #cboxTopCenter, diff --git a/scss/forms.scss b/scss/forms.scss index 385a59f..3ec5055 100644 --- a/scss/forms.scss +++ b/scss/forms.scss @@ -1,6 +1,9 @@ -input,select,button{ +input, +select, +button, +textarea{ border-radius: 3px; margin: 5px 0; -webkit-appearance: none; @@ -15,10 +18,11 @@ input,select,button{ input[type=text], input[type=password], -select{ +select, +textarea{ border: 1px solid $grey; color: $grey; - padding: 5px 20px; + padding: 5px 10px; width: 100%; text-align: left; box-sizing: border-box; @@ -38,6 +42,11 @@ button{ border: none; transition: .5s; + &:disabled{ + color: white; + background-color: $grey; + } + &:hover{ color: white; background-color: $grey; diff --git a/scss/variables.scss b/scss/variables.scss index 0fe93f8..6f212bf 100644 --- a/scss/variables.scss +++ b/scss/variables.scss @@ -55,7 +55,7 @@ $font-22: 1.375rem; /* 22px */ $font-24: 1.5rem; /* 24px */ $font-28: 1.75rem; /* 28px */ $font-30: 1.875rem; /* 30px */ -$font-34: 2.125rem; /* 34px */ +$font-34: 2.125rem; /* 34px */ $font-40: 2.5rem; /* 40px */ $font-45: 2.812rem; /* 45px */ $font-48: 3rem; /* 48px */ @@ -66,12 +66,12 @@ $font-alert: 8rem; /* ?px */ .font-#{$size} {font-size: #{$size/16}rem !important;} } .font-alert{ - font-size: 8rem; + font-size: $font-alert !important; opacity: .5; } $alpha: rgba(255,255,255,0.6); -$green: #4e984a;//#67a562; +$green: #4e984a;//#67a562; $light-green: #71986e;//#2e981e;//#58984e; $red: #aa0000; $grey: #aaa; diff --git a/tmp/LogoOrdineScritta.png b/tmp/LogoOrdineScritta.png new file mode 100644 index 0000000..8ae30c7 Binary files /dev/null and b/tmp/LogoOrdineScritta.png differ