* To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
require_once '../modelo/utilidades/Conexion.php';
require_once '../modelo/utilidades/EnvioCorreos.php';
require_once '../PHPMailer/PHPMailerAutoload.php';
require_once '../facades/FacadeCorreos.php';
require_once '../modelo/dto/CorreosDTO.php';
require_once '../facades/FacadeUsuarios.php';
require_once '../modelo/dao/UsuarioDAO.php';
require_once '../modelo/dto/UsuarioDTO.php';
require_once '../facades/FacadeContactenos.php';
require_once '../modelo/dao/ContactenosDAO.php';
require_once '../modelo/dto/ContactenosDTO.php';
$facadeUsuario = new FacadeUsuarios();
$facadeContactenos = new FacadeContactenos();
if (isset($_POST['contactarme'])) {
    $nombres = $_POST['nombre'];
    $apellidos = $_POST['apellidos'];
    $empresa = $_POST['empresa'];
    $telefono = $_POST['indicativo'] . $_POST['telefono'];
    $email = $_POST['email'];
    $idPais = $_POST['pais'];
    $telefono = $_POST['telefono'];
    $modo = $_POST['modo'];
    $razon = $_POST['motivo'];
    $numeros = $facadeContactenos->cantidadSolicitudes();
    $numero = $numeros['numero'];
    //envio de correo
    $correoDTO = new CorreosDTO();
    $correoDTO->setRemitente("*****@*****.**");
<?php

$idPais = $_POST['paisSelected'];
$accion = $_POST['accion'];
require_once '../facades/FacadeContactenos.php';
require_once '../modelo/dao/ContactenosDAO.php';
require_once '../modelo/utilidades/Conexion.php';
$fContactenos = new FacadeContactenos();
$result = $fContactenos->consultarIndicativo($idPais);
if ($accion == "listarIndicativo") {
    foreach ($result as $fila) {
        $html = '<option value="' . $fila['indicativo'] . '">+' . $fila['indicativo'] . '</option>';
    }
}
print $html;
           <li><a href="contactecnos">Contáctenos</a></li>
       </ul>
   </nav>
   <ul class="social animated slideInRight">
    <li><a class="fb" href="https://www.facebook.com/productivitymanager"></a></li>
    <li><a class="twitter" href="https://twitter.com/Productivity_Mg"></a></li>
    <li><a class="gplus" href="mailto:productivitymanagersoftware@gmail.com"></a></li>
</ul>
</div>
</header>
<div id="panelIzq2" class="animated zoomIn">
    <?php 
require_once './facades/FacadeContactenos.php';
require_once './modelo/dao/ContactenosDAO.php';
require_once './modelo/utilidades/Conexion.php';
$facadeContactenos = new FacadeContactenos();
?>
    <div class="caption">		
     <h2 class="h330">Contáctese con nosotros:</h2><br>	
     <p class="obligatorios" style="margin-left:20%;"> Los campos marcados con asterisco ( </p><p class="obligatoriosD"> ) son obligatorios.</p><br><br>
     <form class="formRegistro" id="formContact" method="post" action="controlador/ControladorContactenos.php"> 				    	
        <label class="tag" for="txtName"><span id="lab_valName" class="h331">Nombre </span></label>
        <input class="input" name="nombre" type="text" maxlength="64" id="txtName" class="field1" autofocus required pattern= "[A-Za-z]{3,20}">
        <span id="valName" style="color:Red;visibility:hidden;"></span>
        <br>
        <label class="tag" for="txtSurname"><span id="lab_valSurname" class="h331">Apellidos </span></label>
        <input class="input" name="apellidos" type="text" maxlength="64" id="txtSurname" class="field1" required pattern= "[A-Za-z]{3,20}">
        <span id="valSurname" style="color:Red;visibility:hidden;"></span>
        <br>
        <label class="tag" for="txtCompany"><span id="lab_valCompany" class="h331">Empresa </span></label>
        <input class="input" name="empresa" type="text" maxlength="64" id="txtCompany" class="field1" required pattern= "[A-Za-z]{3,40}">