Viewing file: contacto.php (18.62 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<? $pagina_actual="inicio"; $categoria_actual="inicio"; require_once("panel/includes/config.php"); require_once("panel/includes/funciones.php"); require('PHPMailer-master/class.phpmailer.php');
////// GOOGLE RECAPTCHA ////// $google_recaptcha["clave"]="6LfFA44UAAAAAMPkdjvzpS7fZVpRdlSntLhz_Rl1"; $google_recaptcha["secret"]="6LfFA44UAAAAAIaQH7MbJTL4Ye0rr03BBRltEUCu"; ////// FIN GOOGLE RECAPTCHA ////// //VALIDACION RECAPTCHA if (isset($_POST["g-recaptcha-response"])){ if ($_POST["g-recaptcha-response"]!=""){ $url = 'https://www.google.com/recaptcha/api/siteverify'; $data = array('secret' => $google_recaptcha["secret"], 'response' => $_POST["g-recaptcha-response"]); $options = array( 'http' => array( 'header' => "Content-type: application/x-www-form-urlencoded\r\n", 'method' => 'POST', 'content' => http_build_query($data), ), ); $context = stream_context_create($options); $result = file_get_contents($url, false, $context);
$result=json_decode($result); if ($result->success!=""){//esta todo ok //FIN VALIDACION RECAPTCHA
if (isset($_POST["nombre"])){ $email_post=$_POST["email"]; $nombre=utf8_decode($_POST["nombre"]); $mensaje="Mensaje enviado desde la web "; foreach ($_POST as $clave => $valor){ $mensaje.=$clave.": ".$valor." "; } $email = new PHPMailer(); /* validacion */ /* $email->IsSMTP(); $email->Host = "mail.memoriacelular.com"; $email->Port = 465; $email->SMTPSecure = 'ssl'; $email->SMTPAuth = true; $email->Username = "info@memoriacelular.com"; $email->Password = "INF.915.in";//"NOV.10.Dgm";*/ /* Fin validacion */ $email->From = $email_post; $email->FromName = $nombre; $email->Subject = 'Mensaje enviado desde la web www.memoriacelular.com'; $email->Body = $mensaje; $email->AddAddress('info@memoriacelular.com'); //$email->AddAddress('sistemas@creadoresdesitios.com.ar'); /* if (isset($_FILES["archivo"]["tmp_name"])){ if ($_FILES["archivo"]["tmp_name"]!=""){ $file_to_attach = $_FILES["archivo"]["tmp_name"]; $email->AddAttachment( $file_to_attach , $_FILES["archivo"]["name"] ); } } */ $email->Send(); header('Location: contacto.php?envio=exito'); //LLAVES RECAPTCHA } } } //FIN LLAVES RECAPTCHA } if (isset($_GET["envio"])){ $envie_formulario=true; } ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="author" content=""> <title>Contacto</title> <meta content="Fomulario de consultas, télefonos y direcciones" name="description"> <meta content="" name="keywords"> <link rel="stylesheet" href="css/bootstrap.css" /> <link rel="stylesheet" href="css/custom.css" /> <link rel="stylesheet" href="css/common.css" /> <link rel="stylesheet" href="css/sitio.css" /> <link rel="stylesheet" href="css/animated.css" /> <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700|Raleway:300,400,500,600,700" rel="stylesheet"> <link rel="stylesheet" type="text/css" href="font-awesome-4.3.0/css/font-awesome.min.css"/> <link href="js/owl-carousel/owl.carousel.css" rel="stylesheet"> <!-- OTHER CAROUSEL --> <link rel="stylesheet" href="css/carusel-personal.css" /> <? require("includes/analytics.php");?> </head> <body>
<? $pagina_actual="contacto"; require('includes/header.php');?>
<div class="clearfix padd-variation"></div>
<section class="modulo modulo-cabeceras"> <div class="container"> <div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"> <p class="text-x">Contacto</p> <h4 class="texto">Contacto</h4> <h1>Fomulario de consultas, télefonos y direcciones!</h1> </div>
</div> </div> </section>
<section class="modulo modulo-contacto"> <div class="container padding-top padding-bottom"> <div class="row padding-top">
<div class="col-lg-offset-2 col-lg-8 col-md-offset-1 col-md-10 col-sm-12 col-xs-12 padding-bottom"> <? if ($envie_formulario) {?> <div class="row confirmacion padding-top"> <h2 class="text-success text-center">Su consulta fue enviada con éxito</h2> <p class="text-success text-center">Muchas gracias!</p> </div> <? }?> <!-- Contact Form --> <form id="contact-form" name="newUserForm" class="clearfix row" method="post" role="form"> <!-- Left Inputs -->
<div class="col-lg-12 left"> <div class="row"> <div class="col-sm-6 col-xs-12"> <div class="form-group"> <label>Nombre y apellido</label> <input type="text" name="nombre" class="form-control input-md radius-none" placeholder="" required/> </div> </div> <div class="col-sm-6 col-xs-12"> <div class="form-group"> <label>E-mail</label> <input type="text" name="email" class="form-control input-md radius-none" placeholder="" required/> </div> </div>
<div class="col-sm-6 col-xs-12"> <div class="form-group"> <label>Ciudad</label> <input type="text" name="ciudad" class="form-control input-md radius-none" placeholder="" required/> </div> </div> <div class="col-sm-6 col-xs-12"> <div class="form-group"> <label>Teléfono</label> <input type="text" name="telefono" class="form-control input-md radius-none" placeholder="" required/> </div> </div> </div><!-- /.row -->
<div class="form-group"> <label>Consulta</label> <textarea name="consulta" rows="6" class="form-control input-lg radius-none" placeholder=""></textarea> </div> <div class="form-group g-recaptcha" data-sitekey="<?=$google_recaptcha["clave"]?>"></div> </div> <div class="col-xs-12"> <div class="form-group"> <button type="submit" class="btn btn-default-two radius-none">ENVIAR CONSULTA</button> </div> </div>
</form><!-- End Form --> </div><!-- End col 8 --> </div><!-- End row --><!-- FIN ROW --> </div> </section>
<section class="modulo modulo-contacto-mapa"> <div class="container"> <div class="row">
<div class="col-lg-12 col-md-12 col-xs-12 padd-bot-top-20 text-center wow fadeIn" data-wow-delay=".1s"> <p class="font-20 negro">Para solicitar turnos deberán comunicarse telefónicamente con cada ciudad. </p> </div>
<div class="col-lg-5 col-md-6 col-sm-5 col-xs-12 hidden-xs padd-bot-top-20 wow fadeIn" data-wow-delay=".3s"> <img src="imgs/mapa-escuelas.jpg" class="img-responsive center-block"> </div>
<div class="col-lg-6 col-md-6 col-sm-7 col-xs-12 padd-bot-top-20 wow fadeIn" data-wow-delay=".6s"> <p class="font-20">Datos de contacto, teléfonos y direcciones de nuestros consultorios</p> <ul class="telefonos"> <li><p><strong>Cap. Fed.:</strong></p> <p>Calle Neuquen 526. 5to "C", Caballito</p> <p>(249) 15 4632930</p> <p><a class="negro bold-600 font-13" data-toggle="modal" data-target="#modal-capital" href=""><i class="fa fa-map-marker celeste"></i> Ver mapa</a></p> </li> <li><p><strong>Tandil:</strong></p> <p> Montevideo 915.</p> <p>(249) 15 4632930</p> <p><a class="negro bold-600 font-13" data-toggle="modal" data-target="#modal-tandil" href=""><i class="fa fa-map-marker celeste"></i> Ver mapa</a></p></li> <li> <p><strong>Mar del Plata:</strong> </p> <p> GARAY 2836</p> <p>(249) 15 4632930</p> <p><a class="negro bold-600 font-13" data-toggle="modal" data-target="#modal-mdq" href=""><i class="fa fa-map-marker celeste"></i> Ver mapa</a></p> </li> <? /*<li><p><strong>Córdoba:</strong> </p> <p>(341) 15 2163063 // </p> <p>(341) 15 5121000</p></li> <li><p><strong>Rosario:</strong> </p> <p>(341) 15 2163063 // </p> <p>(341) 15 5121000</p></li> <li><p><strong>Trelew:</strong> </p> <p>(02965) - 426786 </p> <p>(02965) - 15593207</p></li> <li><p><strong>Rawson:</strong> </p> <p>(0280) 154512632</p></li> <li><p><strong>Neuquén:</strong></p> <p>(0299) 4182792 </p> <p>(0299) 154666242</p></li> <li><p><strong>Olavarria:</strong> </p> <p>(2284) 15 585536</p> <p>(249) 15 4623984</p></li> <li><p><strong>Coronel Suarez:</strong> </p> <p>(2923) 15 643528 </p> <p>( 249) 15 4623984</p></li>*/?> </ul> </div> </div> </div> </section>
<div class="clearfix"></div>
<section class=""> <div class="row-fluid"> </div> <div class="clearfix"></div> </section><!-- FIN SECTION -->
<? require('includes/footer.php');?>
<div class="modal fade modal-acciones" id="modal-capital" tabindex="-1" role="dialog" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content modal-producto-carrito"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> <h4 class="modal-title" id="myModalLabel">Capital Federal</h4> </div> <div class="modal-body"> <div class="google_maps" id="mapa"></div> <div class="clearfix"></div> </div> </div> </div> </div>
<div class="modal fade modal-acciones" id="modal-tandil" tabindex="-1" role="dialog" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content modal-producto-carrito"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> <h4 class="modal-title" id="myModalLabel">Tandil</h4> </div> <div class="modal-body"> <div class="google_maps" id="mapa2"></div> <div class="clearfix"></div> </div> </div> </div> </div>
<div class="modal fade modal-acciones" id="modal-mdq" tabindex="-1" role="dialog" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content modal-producto-carrito"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> <h4 class="modal-title" id="myModalLabel">Mar del Plata</h4> </div> <div class="modal-body"> <div class="google_maps" id="mapa3"></div> <div class="clearfix"></div> </div> </div> </div> </div>
<script src="js/jquery.min.js"></script> <script src="js/bootstrap.js"></script> <!-- Plugin JavaScript --> <script src="js/scroll-effect.js"></script>
<!-- Parallax effect <script src="js/parallax.min.js"></script> -->
<!-- OWL CAROUSEL --> <script src="js/owl-carousel/owl.carousel.min.js"></script> <script src="js/owl-carousel/owl_slider.js"></script>
<!-- Animated Div --> <script type='text/javascript' src='js/wow.min.js'></script> <script type='text/javascript'> new WOW().init(); </script> <script> $(window).scroll(function() { if ($(document).scrollTop() > 130) { $('.navbar').addClass('shrink'); } else { $('.navbar').removeClass('shrink'); } }); </script>
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&key=AIzaSyBhAdKpRyhrUFN4QjfJLgdzPQ825zg105E"></script> <script type="text/javascript"> var map; var icono = 'imgs/marker-point.png'; var infoWindows=new Array(); function cerrarInfowindows() { return function() { for(var i = 0; i < infoWindows.length; i++) { infoWindows[i].infowindow.close(); } }; }; function infoCallback(infowindow, marker) { //cerrarInfowindows(); return function() { infowindow.open(map, marker); }; }; function initialize() { var mapOptions = { // How zoomed in you want the map to start at (always required) zoom: 13,
// The latitude and longitude to center the map (always required) center: new google.maps.LatLng(-34.5870215, -58.4034131), // New York
// Disables the default Google Maps UI components disableDefaultUI: true, scrollwheel: true, draggable: true,
// How you would like to style the map. // This is where you would paste any style found on Snazzy Maps. }; map = new google.maps.Map(document.getElementById('mapa'), mapOptions); var contentString = '<div id="iw-container">' + '<p class="margin-none"><strong>CAP. FED</strong></p>' + '<p class="margin-none">Peña 2852 PB A, Barrio Norte</p>' + '<p class="margin-none">(249) 15 4632930<p/>' + '</div>'; var infowindow = new google.maps.InfoWindow({ content: contentString, }); infoWindows.push(infowindow); var marker = new google.maps.Marker({ position: new google.maps.LatLng(-34.5870215, -58.4034131), map: map, title: 'marcador', icon:icono }); google.maps.event.addListener( marker, 'click', infoCallback(infowindow, marker) );
}
google.maps.event.addDomListener(window, 'load', initialize); </script>
<script type="text/javascript"> var map; var icono = 'imgs/marker-point.png'; var infoWindows=new Array(); function cerrarInfowindows() { return function() { for(var i = 0; i < infoWindows.length; i++) { infoWindows[i].infowindow.close(); } }; }; function infoCallback(infowindow, marker) { //cerrarInfowindows(); return function() { infowindow.open(map, marker); }; }; function initialize() { var mapOptions = { // How zoomed in you want the map to start at (always required) zoom: 13,
// The latitude and longitude to center the map (always required) center: new google.maps.LatLng(-37.317488, -59.136247), // New York
// Disables the default Google Maps UI components disableDefaultUI: true, scrollwheel: true, draggable: true,
// How you would like to style the map. // This is where you would paste any style found on Snazzy Maps. }; map = new google.maps.Map(document.getElementById('mapa2'), mapOptions); var contentString = '<div id="iw-container">' + '<p class="margin-none"><strong>Tandil</strong></p>' + '<p class="margin-none">Montevideo 915</p>' + '<p class="margin-none">(0249) 444 6678 | 15 4632930<p/>' + '</div>'; var infowindow = new google.maps.InfoWindow({ content: contentString, }); infoWindows.push(infowindow); var marker = new google.maps.Marker({ position: new google.maps.LatLng(-37.317488, -59.136247), map: map, title: 'marcador', icon:icono }); google.maps.event.addListener( marker, 'click', infoCallback(infowindow, marker) );
}
google.maps.event.addDomListener(window, 'load', initialize); </script>
<script type="text/javascript"> var map; var icono = 'imgs/marker-point.png'; var infoWindows=new Array(); function cerrarInfowindows() { return function() { for(var i = 0; i < infoWindows.length; i++) { infoWindows[i].infowindow.close(); } }; }; function infoCallback(infowindow, marker) { //cerrarInfowindows(); return function() { infowindow.open(map, marker); }; }; function initialize() { var mapOptions = { // How zoomed in you want the map to start at (always required) zoom: 13,
// The latitude and longitude to center the map (always required) center: new google.maps.LatLng(-38.007237, -57.556466), // New York
// Disables the default Google Maps UI components disableDefaultUI: true, scrollwheel: true, draggable: true,
// How you would like to style the map. // This is where you would paste any style found on Snazzy Maps. }; map = new google.maps.Map(document.getElementById('mapa3'), mapOptions); var contentString = '<div id="iw-container">' + '<p class="margin-none"><strong>Mar del Plata</strong></p>' + '<p class="margin-none">GARAY 2836</p>' + '<p class="margin-none">(249) 15 4632930<p/>' + '</div>'; var infowindow = new google.maps.InfoWindow({ content: contentString, }); infoWindows.push(infowindow); var marker = new google.maps.Marker({ position: new google.maps.LatLng(-38.007237, -57.556466), map: map, title: 'marcador', icon:icono }); google.maps.event.addListener( marker, 'click', infoCallback(infowindow, marker) );
}
google.maps.event.addDomListener(window, 'load', initialize); </script> <script src='https://www.google.com/recaptcha/api.js'></script> </body> </html>
|