<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Entre em contato com o San Karlo Hotel</title>
<?php include 'incCabecalho.php';?>
</head>
<?php
require_once './Control/ControlArea.php';
$controlArea = new ControlArea();
$areaContato = $controlArea->pegarUmArea(8);
?>

<body>

<?php include 'incTopHeader.php'; ?>
<?php 
$menuContato=True;
include 'incTop.php'; 
?>    

<!-- Parallax Effect -->
<script type="text/javascript">$(document).ready(function(){$('#parallax-pagetitle').parallax("50%", -0.55);});</script>

<section class="parallax-effect">
  <div id="parallax-pagetitle" style="background-image: url(./images/parallax/1900x911.gif);">
    <div class="color-overlay"> 
      <!-- Page title -->
      <div class="container">
        <div class="row">
          <div class="col-sm-3"></div>  
          <div class="col-sm-9">
            <ol class="breadcrumb">
              <li><a href="index">Home</a></li>
              <li class="active">Fale conosco</li>
            </ol>
            <h1>Contato</h1>
          </div>
        </div>
      </div>
    </div>
  </div>
</section>
<div class="container">
  <div class="row"> 
    
    <!-- Contact details -->
    <section class="contact-details">
      <div class="col-md-5">
        <h2 class="lined-heading  mt50"><span>Endereço</span></h2>
        <!-- Panel -->
        <div class="panel panel-default text-center">
          <div class="panel-heading">
            <div class="panel-title"><i class="fa fa-star"></i> <strong>San Karlo Hotel</strong> <i class="fa fa-star"></i></div>
          </div>
          <div class="panel-body">
              <address>
            <strong><?php echo $contato->getRua() ?></strong>, 
        <?php echo $contato->getBairro() ?><br>
        <?php echo $contato->getCidade() ?>, <?php echo $contato->getUf() ?><br>
        CEP: <?php echo $contato->getCep() ?> <br/>
        <abbr title="Telefone">Tel:</abbr> <a href="contato"><?php echo $contato->getTelefone() ?></a><br>
        <abbr title="Email">E:</abbr> <a href="#"><?php echo $contato->getEmail() ?></a><br>
        <abbr title="Website">W:</abbr> <a href="#">www.sankarlohotel.com.br</a><br>
        <a href="localizacao">Ampliar mapa</a><br>
        </address>
          </div>
        </div>
        <!-- GMap -->
		<div class="mt30">
          <div id="map">
            <p>Carregando mapa...</p>
          </div>
		</div>
      </div>
    </section>
    
    <!-- Contact form -->
    <section id="contact-form" class="mt50">
      <div class="col-md-7">
        <h2 class="lined-heading"><span>Enviar Mensagem</span></h2>
        <?php echo $areaContato->gTexto();?>
        <form class="clearfix mt50" role="form" method="post" action="php/contact.php" name="contactform" id="contactform">
          <!-- Error message -->
		  <div id="message"></div>
          <div class="row">
            <div class="col-md-6">
              <div class="form-group">
                <label for="name" accesskey="U"><span class="required">*</span> Seu Nome</label>
                <input name="name" type="text" id="name" class="form-control" value=""/>
              </div>
            </div>
            <div class="col-md-6">
              <div class="form-group">
                <label for="email" accesskey="E"><span class="required">*</span> E-mail</label>
                <input name="email" type="text" id="email" value="" class="form-control"/>
              </div>
            </div>
          </div>
          <div class="row">
            <div class="col-md-6">
              <div class="form-group">
               <label for="subject" accesskey="S">Setor</label>
            <select name="subject" id="subject" class="form-control">
                <?php
                $controlContato = new ControlContato();
                $contatoSetor = $controlContato->pegarTodosContatodepartamentoHabilitado();
                while ($contatoSetor->fetch())                
                {
                    echo '<option value="' . $contatoSetor->getEmail() .'">' . $contatoSetor->gNome() .'</option>';
                }
                ?>
            </select>
              </div>
            </div>
            <div class="col-md-6">
              <div class="form-group">
                <label for="phone" accesskey="p"><span class="required">*</span> Telefone</label>
                <input name="phone" type="text" id="phone" value="" class="form-control"/>
              </div>
            </div>
          </div>                  
          <div class="form-group">
            <label for="comments" accesskey="C"><span class="required">*</span> Sua mensagem</label>
            <textarea name="comments" rows="9" id="comments" class="form-control"></textarea>
          </div>
          <div class="form-group">
            <label><span class="required">*</span> Filtro anti-spam: &nbsp;&nbsp;&nbsp;1 + 1 =</label>		  
            <input name="verify" type="text" id="verify" value="" class="form-control" placeholder="Entre com resultado" />
          </div>
          <button type="submit" class="btn  btn-lg btn-primary" id="cmdEnviar">Enviar Mensagem</button>
        </form>
      </div>
    </section>
  </div>
</div>

<!-- Call To Action -->
<section id="call-to-action" class="mt100">
  <div class="container">
    <div class="row">
      <div class="col-md-10 col-sm-10 col-xs-12">
        <h2>Faça sua reserva on-line, através do botão ao lado, ou no topo da página.</h2>
      </div>
      <div class="col-md-2 col-sm-2 col-xs-12">
          <a href="reservaOnline" class="btn btn-default btn-lg pull-right">Reserva On-line</a>
      </div>
    </div>
  </div>
</section>    
    
    
<?php include 'incFooter.php'; ?>

</body>
</html>