<li class="pull-right"><a href="log.php">Login</a></li> </ul> </div><!-- /.navbar-collapse --> </div><!-- /.container-fluid --> </nav> <div class="table-responsive" align="center"> <h2 style="margin-left:10px;">Espaço do Administrador - Solicitações</h2> </div> <!-- jQuery (necessary for Bootstrap's JavaScript plugins) --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <!-- Include all compiled plugins (below), or include individual files as needed --> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> </body> </html> <?php $Bdsoli = new Bancosoli(); $Solis = new Soli(); ?> <div class="table-responsive" align="center"> <table class="table" style="width:90%"> <thead> <tr> <th>#</th> <th>Nome:</th> <th>Telefone:</th> <th>Endereço:</th> <th>Email:</th> <th>Descrição:</th> <th>Ações:</th> </tr>
<?php require_once '../banco_de_dados/bancosolicitacao.php'; require_once '../banco_de_dados/bancocliente.php'; require_once '../classes/cliente.php'; $bd = new Bancosoli(); $bc = new BancoCliente(); $cl = new Cliente(); if (isset($_POST['salvar'])) { $nome = $_POST['nome']; $telefone = $_POST['telefone']; $cpf = $_POST['cpf']; $email = $_POST['email']; $endereco = $_POST['endereco']; $cl->setNomeCliente($nome); $cl->setTelefoneCliente($telefone); $cl->setCpfCliente($cpf); $cl->setEmailCliente($email); $cl->setEnderecoCliente($endereco); $bc->inserircliente($cl); echo "<script type='text/javascript' language='javascript'> \n alert ('Cliente cadastrado com sucesso!!');\n window.location.href='../telas/telacliente.php';\n </script>"; } if (isset($_GET["id"])) { $id = $_GET["id"]; $linha = $bd->buscar1($id); $id = $linha["id"]; $nome = $linha["nome"]; $telefone = $linha["telefone"]; $endereco = $linha["endereco"]; $email = $linha["email"]; $descri = $linha["descri"];
<?php require_once '../banco_de_dados/bancosolicitacao.php'; $bd = new Bancosoli(); $id = $_GET["id"]; $bd->delete($id);
require_once '../classes/solicitacao.php'; require_once '../banco_de_dados/bancosolicitacao.php'; ?> <html land="pt-BR"> <head> <meta charset="UTF-8"> <title>Nome da empresa</title> <link rel="stylesheet" href="../css/bootstrap.css"/> <link rel="stylesheet" href="../css/bootstrap-theme.css"/> <script src="../js/bootstrap.js"></script> </head> <body> <?php $Bdsoli = new Bancosoli(); $Solis = new Soli(); if (isset($_POST['cadastrar'])) { $nome = $_POST['nome']; $telefone = $_POST['telefone']; $endereco = $_POST['endereco']; $email = $_POST['email']; $descricao = $_POST['descricao']; $Solis->setNome($nome); $Solis->setTelefone($telefone); $Solis->setEndereco($endereco); $Solis->setEmail($email); $Solis->setDescri($descricao); if ($Bdsoli->insert($Solis)) { echo "inserido com sucesso!"; }