git-svn-id: https://192.168.0.254/svn/Proyectos.GrupoArdeco_Web/trunk@20 f3e42445-bc5e-4746-be46-0918cadaadb9

This commit is contained in:
David Arranz 2009-07-06 15:01:37 +00:00
parent 8bea734a20
commit 4c27d2419e
7 changed files with 235 additions and 6 deletions

View File

@ -2,11 +2,36 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="Decoraci&oacute;n de interiores y proyectos integrales de reforma de locales comerciales, oficinas y viviendas"/>
<meta name="keywords" content="decoracion,proyectos,hogar,oficinas,hoteles,restaurantes,salas,decoracion interiores,decoracion interiorismo,decoracion oficinas,decoradores,dise&ntilde;o interior,dise&ntilde;o interiores,iluminacion interior,mobiliario auxiliar,mobiliario dise&ntilde;o,mobiliario hosteleria,mobiliario hoteles,mobiliario oficina,mobiliario oficina dise&ntilde;o,mobiliario restaurantes,mobiliario y decoracion,muebles oficina"/>
<title>Contacto - Grupo Ardeco - Decoración de interiores</title>
<link rel="stylesheet" type="text/css" href="reset.css"/>
<link rel="stylesheet" type="text/css" href="estilos.css"/>
<link rel="stylesheet" type="text/css" href="menu.css"/>
<link rel="stylesheet" type="text/css" href="forms.css"/>
<script language="JavaScript" type="text/javascript">
<!--
function checkform(form)
{
if (form.nombre.value == "") {
alert("No ha introducido un nombre.");
return false ;
}
else if (form.email.value == "") {
alert("No ha introducido una dirección de e-mail.");
return false ;
}
else if (form.consulta.value == "") {
alert("No ha el texto de su consulta.");
return false ;
}
else
return true ;
}
//-->
</script>
</head>
<body>
<div id="cabecera_layout">
@ -39,18 +64,17 @@
<div id="cuerpo">
<div id="contacto_izquierda">
<h3>Formulario de contacto</h3>
<form name="form1" class="cmxform">
<form name="form1" class="cmxform" method="post" action="send.php" onsubmit="return checkform(this);">
<fieldset>
<legend></legend>
<ol>
<li><label for="nombre">Su nombre: </label> <input id="nombre" style="width: 360px;"/></li>
<li><label for="email">Su email: </label> <input id="email" style="width: 360px;"/></li>
<li><label for="consulta">Su consulta: </label> <textarea cols="43" rows="7" id="consulta"></textarea></li>
<li><label for="submit"></label><input type="submit" name="Submit" value="Enviar"></li>
<li><label for="nombre">Su nombre: </label> <input id="nombre" name="nombre" style="width: 360px;"/></li>
<li><label for="email">Su email: </label> <input id="email" name="email" style="width: 360px;"/></li>
<li><label for="consulta">Su consulta: </label> <textarea cols="43" rows="7" id="consulta" name="consulta" onkeyup="val=this.value; if (val.length > 800) { alert('Lo siento, has sobrepasado el limite de 800 caracteres'); this.value = val.substring(0,800); } this.form.count.value=800-parseInt(this.value.length); "></textarea></li>
<li><label for="submit"></label><input type="submit" name="Submit" value="Enviar" title="Pulsa una vez para enviar el mensaje, y espera a la pantalla de confirmacion"></li>
</ol>
</fieldset>
</form>
</div>
<div id="contacto_derecha">
<h3>Datos de contacto</h3>
@ -74,5 +98,14 @@
</p>
</div >
</div>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-297093-14");
pageTracker._trackPageview();
} catch(err) {}</script>
</body>
</html>

81
src/contacto_ok.html Normal file
View File

@ -0,0 +1,81 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="Decoraci&oacute;n de interiores y proyectos integrales de reforma de locales comerciales, oficinas y viviendas"/>
<meta name="keywords" content="decoracion,proyectos,hogar,oficinas,hoteles,restaurantes,salas,decoracion interiores,decoracion interiorismo,decoracion oficinas,decoradores,dise&ntilde;o interior,dise&ntilde;o interiores,iluminacion interior,mobiliario auxiliar,mobiliario dise&ntilde;o,mobiliario hosteleria,mobiliario hoteles,mobiliario oficina,mobiliario oficina dise&ntilde;o,mobiliario restaurantes,mobiliario y decoracion,muebles oficina"/>
<meta name="robots" content="noindex, nofollow">
<title>Contacto - Grupo Ardeco - Decoración de interiores</title>
<link rel="stylesheet" type="text/css" href="reset.css"/>
<link rel="stylesheet" type="text/css" href="estilos.css"/>
<link rel="stylesheet" type="text/css" href="menu.css"/>
<link rel="stylesheet" type="text/css" href="forms.css"/>
</head>
<body>
<div id="cabecera_layout">
<div id="cabecera">
<div id="logotipo">
<h1>Grupo Ardeco</h1>
<h2>Decoración de interiores</h2>
</div>
<div id="menu">
<ul>
<li><a href="index.html">Inicio</a></li>
<li><a href="proyectos.html">Proyectos realizados</a></li>
<li class="current">Contacto</li>
</ul>
</div>
</div>
<div id="banner">
<div id="foto" class="slideshow">
<img src="fotos/inicio/hotel-vincci-via-66-habitacion.jpg" alt="Hotel Vincci Vía 66 en Madrid." style="width: 600px; height: 300px;" />
</div>
<div id="seleccion">
<h3>Contacto</h3>
</div>
</div>
</div>
<div id="cuerpo_layout">
<div id="cuerpo">
<div id="contacto_izquierda">
<h3>Gracias por su mensaje</h3>
<p>Su mensaje ha sido enviado.</p>
</div>
<div id="contacto_derecha">
<h3>Datos de contacto</h3>
<p>
<strong>C/ Paseo de la Chopera, 2<br/>
28100 - Alcobendas - Madrid</strong><br/><br/>
Teléfono: <strong>91 658 23 00</strong><br/>
Móvil: <strong>628 91 08 41</strong><br/>
Fax: <strong>91 658 23 00</strong><br/>
E-Mail: <strong>info@grupoardeco.com</strong></p><br/>
<p>Persona de contacto:<br/><strong>Fernando López</strong> (Director Comercial)</p>
</div>
<div class="clear">&nbsp;</div>
</div>
<div class="clear"></div>
</div>
<div id="pie_layout">
<div id="pie">
<p><a href="">Aviso legal</a> | <a href="" title="">Política de privacidad</a>
<!--<br/>Diseñado por <a href="http://www.rodax-software.com" title="Rodax Software S.L.">Rodax Software S.L.</a> - 2009-->
</p>
</div >
</div>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-297093-14");
pageTracker._trackPageview();
} catch(err) {}</script>
</body>
</html>

View File

@ -2,6 +2,9 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="Decoraci&oacute;n de interiores y proyectos integrales de reforma de locales comerciales, oficinas y viviendas"/>
<meta name="keywords" content="decoracion,proyectos,hogar,oficinas,hoteles,restaurantes,salas,decoracion interiores,decoracion interiorismo,decoracion oficinas,decoradores,dise&ntilde;o interior,dise&ntilde;o interiores,iluminacion interior,mobiliario auxiliar,mobiliario dise&ntilde;o,mobiliario hosteleria,mobiliario hoteles,mobiliario oficina,mobiliario oficina dise&ntilde;o,mobiliario restaurantes,mobiliario y decoracion,muebles oficina"/>
<title>Grupo Ardeco - Decoraci&oacute;n de interiores</title>
<link rel="stylesheet" type="text/css" href="reset.css"/>
<link rel="stylesheet" type="text/css" href="estilos.css"/>
@ -121,5 +124,14 @@ maquinaria adecuada para la perfecta ejecuci&oacute;n de su obra.</p>
</p>
</div >
</div>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-297093-14");
pageTracker._trackPageview();
} catch(err) {}</script>
</body>
</html>

View File

@ -2,6 +2,9 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="Decoraci&oacute;n de interiores y proyectos integrales de reforma de locales comerciales, oficinas y viviendas"/>
<meta name="keywords" content="decoracion,proyectos,hogar,oficinas,hoteles,restaurantes,salas,decoracion interiores,decoracion interiorismo,decoracion oficinas,decoradores,dise&ntilde;o interior,dise&ntilde;o interiores,iluminacion interior,mobiliario auxiliar,mobiliario dise&ntilde;o,mobiliario hosteleria,mobiliario hoteles,mobiliario oficina,mobiliario oficina dise&ntilde;o,mobiliario restaurantes,mobiliario y decoracion,muebles oficina"/>
<title>Proyectos realizados - Grupo Ardeco - Decoraci&oacute;n de interiores</title>
<link rel="stylesheet" type="text/css" href="reset.css"/>
<link rel="stylesheet" type="text/css" href="estilos.css"/>
@ -197,5 +200,14 @@
</p>
</div >
</div>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-297093-14");
pageTracker._trackPageview();
} catch(err) {}</script>
</body>
</html>

3
src/robots.txt Normal file
View File

@ -0,0 +1,3 @@
User-Agent: *
Allow: /

63
src/send.php Normal file
View File

@ -0,0 +1,63 @@
<?php
$error = false;
$nombre = $_POST['nombre'];
$email = $_POST['email'];
$texto = $_POST['consulta'];
/*if (empty($name)) $error = true;
if (empty($email)) $error = true;
if (empty($texto)) $error = true;*/
if ($error == false) {
if(isset($email)) {
if (preg_match('/^[-!#$%&\'*+\\.\/0-9=?A-Z^_`{|}~]+@([-0-9A-Z]+\.)+([0-9A-Z]){2,4}$/i',trim($email))) {
} else {
$error = true;
}
$ok = TRUE;
$ok = eregi( "^[_.0-9a-z-]+@([0-9a-z][0-9a-z-]+.)+[a-z]{2,3}$", $email, $check);
$ok = getmxrr(substr(strstr($check[0], '@'), 1), $dummy);
if($ok === false) {
$host = substr($email, strpos($email, '@') + 1);
if(gethostbyname($host) != $host) {
$ok = true;
}
if ($ok != true) {
$error = true;
}
}
}
}
if ($error == false) {
$para = 'info@grupoardeco.com';
$header = 'From: ' . $email . " \r\n";
$header .= 'To: ' . $para . " \r\n";
$header .= "X-Mailer: PHP/" . phpversion() . " \r\n";
$header .= "Mime-Version: 1.0 \r\n";
$header .= "Content-Type: text/plain";
$msg = "------------------------------- \n";
$msg.= " Comentarios \n";
$msg.= "------------------------------- \n";
$msg.= "NOMBRE: ".$nombre."\n";
$msg.= "EMAIL: ".$email."\n";
$msg.= "FECHA: ".date("D, d M Y")."\n";
$msg.= "HORA: ".date("h:i:s a ")."\n";
$msg.= "IP: ".$REMOTE_ADDR."\n";
$msg.= "------------------------------- \n\n";
$msg.= $texto."\n\n";
$msg.= "------------------------------- \n";
$asunto = 'Mensaje desde página web www.grupoardeco.com';
mail($para, $asunto, utf8_decode($msg), $header);
// Redirect
header("Location: contacto_ok.html");
}
else {
header("Location: contacto.html");
}
?>

25
src/sitemap.xml Normal file
View File

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<!-- created with Free Online Sitemap Generator www.xml-sitemaps.com -->
<url>
<loc>http://www.grupoardeco.com/</loc>
<lastmod>2009-06-25T16:17:22+00:00</lastmod>
</url>
<url>
<loc>http://www.grupoardeco.com/proyectos.html</loc>
<lastmod>2009-06-25T16:11:43+00:00</lastmod>
</url>
<url>
<loc>http://www.grupoardeco.com/contacto.html</loc>
<lastmod>2009-06-25T16:11:42+00:00</lastmod>
</url>
<url>
<loc>http://www.grupoardeco.com/index.html</loc>
<lastmod>2009-06-25T16:17:22+00:00</lastmod>
</url>
</urlset>