<?php if (isset($_POST)) { include "classes/ClienteQuartos.php"; include "dao/ClienteQuartosDAO.php"; $idclientequartos = $_POST["idclientequartos"]; $idcliente = $_POST["idcliente"]; $descricao = $_POST["descricao"]; $valor_hora = $_POST["valor_hora"]; $clientequartos = new ClienteQuartos("", $idcliente, $descricao, $valor_hora); // echo $clientequartos; $acoes = new ClienteQuartosDAO(); $acoes->inserir($clientequartos); echo "<script type='text/javascript'>\n\t\t\talert('Cliente adicionado com sucesso');\t\n\t\t\t\t\tdocument.location='cadQuarto.html';\n\t\t\t</script>"; }
</div> <!-- /.col-lg-12 --> </div> <!-- /.row --> <div class="row"> <div class="col-lg-12"> <div class="panel panel-default"> <div class="panel-heading"> Clientes </div> <!-- /.panel-heading --> <div class="panel-body"> <div class="dataTable_wrapper"> <?php include "dao/ClienteQuartosDAO.php"; $acoes = new ClienteQuartosDAO(); $acoes->visualizar(); ?> </div> <!-- /.table-responsive --> </div> <!-- /.panel-body --> </div> <!-- /.panel --> </div> <!-- /.col-lg-12 --> </div> <!-- /.row --> </div> <!-- /#page-wrapper -->