<?php include 'concha.php';
?>



<?


  
$e = $_GET['e'];

  include 'concha.php';


mysql_connect ("$host", "$usuario", "$contra");


mysql_select_db ("$basedatos");


$sql = "SELECT * FROM menu WHERE ID = '$e'";


$consulta = mysql_query ($sql);


while ($row = mysql_fetch_array($consulta))


{


$texto= $row["link"];


$url = $row["url"];



$titulo = $row["titulo"];





 }


mysql_free_result($consulta);

?>

<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

<?php include 'concha.php';?>
<title><?php echo $nombresitio ?> - <?php echo $titulo ?></title>

 
<!-- Mobile viewport -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">

<link rel="shortcut icon" href="images/favicon.ico"  type="image/x-icon">

<!-- CSS-->
<!-- Google web fonts. You can get your own bundle at http://www.google.com/fonts. Don't forget to update the CSS accordingly!-->
<link href='http://fonts.googleapis.com/css?family=Droid+Serif|Ubuntu' rel='stylesheet' type='text/css'>

<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="js/flexslider/flexslider.css">
<link rel="stylesheet" href="css/basic-style.css">

<!-- end CSS-->
    
<!-- JS-->
<script src="js/libs/modernizr-2.6.2.min.js"></script>
<!-- end JS-->


<!-- columns demo style. DELETE IT! -->
<style type="text/css">
<!--

#columnsdemo .grid_1,
#columnsdemo .grid_2,
#columnsdemo .grid_3,
#columnsdemo .grid_4,
#columnsdemo .grid_5,
#columnsdemo .grid_6,
#columnsdemo .grid_7,
#columnsdemo .grid_8,
#columnsdemo .grid_9,
#columnsdemo .grid_10,
#columnsdemo .grid_11,
#columnsdemo .grid_12 {
border: solid 1px #999;
color:#999;
text-align: center;
margin-top:20px;
padding:20px 15px;
}
.Estilo2 {	font-family: "Trebuchet MS";
	font-size: 18px;
	color:#000066;
}
.Estilo43 {font-family: "Trebuchet MS"; font-size: 13px; color: #373737; }
.Estilo44 {	font-size: 14px;

	font-family: Verdana, Arial, Helvetica, sans-serif;
}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head>

<body id="home">
  
<!-- header area -->
    <header class="wrapper clearfix">
		       
        <div id="banner">        
        	<div id="logo"><a href="index.php"><img src="<?php echo $logo_C ?>" alt="logo"></a></div> 
      </div>
        
        
    <?php  include 'menu.php';?>
</header>
    <!-- end header -->
 
 
      
      
    <!-- columns demo, delete it!-->
    <section id="columnsdemo" style="margin-bottom:60px; width:100%" class="clearfix">

 
        
        
 
        
      <div class="grid_12">
      
      
      <table width="681" border="0" align="center" class="Estilo44">
        <tr>
          <td width="675"><p class="Estilo41">Contáctenos</p>
            <?php
  require_once('recaptchalib.php');
  $privatekey = "6LdAWMESAAAAAIVOdG89OaiCOOGfxUjRW9EiTqMo";
  $resp = recaptcha_check_answer ($privatekey,
                                $_SERVER["REMOTE_ADDR"],
                                $_POST["recaptcha_challenge_field"],
                                $_POST["recaptcha_response_field"]);

  if (!$resp->is_valid) {
    // What happens when the CAPTCHA was entered incorrectly
    die ("EL CAPTCHA (CODIGO) INGRESO NO ES CORRECTO. VUELVA E INTENTE NUEVAMENTE<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
" .
         "(reCAPTCHA said: " . $resp->error . ")");
  } else {
    // Your code here to handle a successful verification
  }
  ?>
            <table width="681" border="0" align="center" class="Estilo44">
              <tr>
                <td width="675"><?php 

$nombre = $_POST['nombre'];

$telefono = $_POST['telefono'];

$email = $_POST['email'];

$consulta = $_POST['consulta'];

?>
                    <?

$recipiente = "$emailsitio";

$asunto = "Consulta desde sitio web: $nombresitio";

$msg = "

La siguiente consulta fue realizada en el sitio web: $nombresitio



-----------------------------------------------------

Nombre: $nombre



Telefono: $telefono



e-mail: $email



Consulta: $consulta

-----------------------------------------------------

";

mail("$emailsitio", "$asunto", "$msg", "FROM: $email");







?>
                    <link href="class.css" rel="stylesheet" type="text/css" />
                  <div align="center" class="Estilo41"><br />
                    La consulta fue enviada <strong>correctamente
                    </p>
                    </strong><br />
                  ¡Muchas gracias!</div>
                <p align="center" class="Estilo41"><a href="<?php echo $dom ?>/movil">Volver</a> </p></td>
              </tr>
            </table>
            <p align="center">&nbsp;</p>  
          </td>
        </tr>
      </table>
      </div>
  
     
</section>
    <!-- end columns demo -->  
    
      
  </div><!-- #end div #main .wrapper -->


<!-- footer area -->    
<footer>
	<div id="colophon" class="wrapper clearfix">
<?php echo     	$nombresitio ?>
    </div>
    

    
</footer><!-- #end footer area --> 


<!-- jQuery -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/libs/jquery-1.9.0.min.js">\x3C/script>')</script>

<script defer src="js/flexslider/jquery.flexslider-min.js"></script>

<!-- fire ups - read this file!  -->   
<script src="js/main.js"></script>

</body>
</html>