Last active
November 20, 2017 02:25
-
-
Save ruancarvalho/a9c7a556fde35a6bb578a7ba1c97abd8 to your computer and use it in GitHub Desktop.
Exemplo de página de cadastro com Bootstrap e PHP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once('functions.php'); | |
add(); | |
?> | |
<?php include(HEADER_TEMPLATE); ?> | |
<h2>Novo Cliente</h2> | |
<form action="add.php" method="post"> | |
<!-- area de campos do form --> | |
<hr /> | |
<div class="row"> | |
<div class="form-group col-md-7"> | |
<label for="name">Nome / Razão Social</label> | |
<input type="text" class="form-control" name="customer['name']"> | |
</div> | |
<div class="form-group col-md-3"> | |
<label for="campo2">CNPJ / CPF</label> | |
<input type="text" class="form-control" name="customer['cpf_cnpj']"> | |
</div> | |
<div class="form-group col-md-2"> | |
<label for="campo3">Data de Nascimento</label> | |
<input type="text" class="form-control" name="customer['birthdate']"> | |
</div> | |
</div> | |
<div class="row"> | |
<div class="form-group col-md-5"> | |
<label for="campo1">Endereço</label> | |
<input type="text" class="form-control" name="customer['address']"> | |
</div> | |
<div class="form-group col-md-3"> | |
<label for="campo2">Bairro</label> | |
<input type="text" class="form-control" name="customer['hood']"> | |
</div> | |
<div class="form-group col-md-2"> | |
<label for="campo3">CEP</label> | |
<input type="text" class="form-control" name="customer['zip_code']"> | |
</div> | |
<div class="form-group col-md-2"> | |
<label for="campo3">Data de Cadastro</label> | |
<input type="text" class="form-control" name="customer['created']" disabled> | |
</div> | |
</div> | |
<div class="row"> | |
<div class="form-group col-md-3"> | |
<label for="campo1">Município</label> | |
<input type="text" class="form-control" name="customer['city']"> | |
</div> | |
<div class="form-group col-md-2"> | |
<label for="campo2">Telefone</label> | |
<input type="text" class="form-control" name="customer['phone']"> | |
</div> | |
<div class="form-group col-md-2"> | |
<label for="campo3">Celular</label> | |
<input type="text" class="form-control" name="customer['mobile']"> | |
</div> | |
<div class="form-group col-md-1"> | |
<label for="campo3">UF</label> | |
<input type="text" class="form-control" name="customer['state']"> | |
</div> | |
<div class="form-group col-md-2"> | |
<label for="campo3">Inscrição Estadual</label> | |
<input type="text" class="form-control" name="customer['ie']"> | |
</div> | |
<div class="form-group col-md-2"> | |
<label for="campo3">UF</label> | |
<input type="text" class="form-control"> | |
</div> | |
</div> | |
<div id="actions" class="row"> | |
<div class="col-md-12"> | |
<button type="submit" class="btn btn-primary">Salvar</button> | |
<a href="index.php" class="btn btn-default">Cancelar</a> | |
</div> | |
</div> | |
</form> | |
<?php include(FOOTER_TEMPLATE); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
O meu tem aparecido a mensagem: Fatal error: Uncaught Error: Call to undefined function add() in C:\xampp\htdocs\lester\customers\add.php:3 Stack trace: #0 {main} thrown in C:\xampp\htdocs\lester\customers\add.php on line 3