-
Notifications
You must be signed in to change notification settings - Fork 0
/
inserirCliente.php
36 lines (32 loc) · 1.2 KB
/
inserirCliente.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
require_once './header.php';
require_once './Cliente.php';
//Cria uma instancia de clientes
$Cliente = new Cliente();
if (isset($_GET['name'])){
$Cliente->setName($_GET['name']);
$mensagem = $Cliente->inserir();
header("location:indexCliente.php");
}
?>
<div class="container">
<h1>Inclusão de Clintes</h1>
<hr class="divider">
<div class="row">
<form method="get">
<div class="row">
<h4 class="text-center text-uppercase"><?php if (isset($mensagem)){echo $mensagem;} ?> </h4>
<div class="col-lg-4">
<label class="control-label">Nome</label>
<input class="form-control" name="name" />
</div>
</div>
<hr class="divider">
<div class="btn-group">
<button class="btn btn-success " type="submit" name="btnSubmit"><span class="glyphicon glyphicon-check"/> Salvar</button>
<a class="btn btn-primary" href="indexCliente.php"><span class="glyphicon glyphicon-chevron-left"/> Voltar</a>
</div>
</form>
</div>
</div>
<?php require_once './footer.php'; ?>