Advertisement
valneyf

add.php

Feb 22nd, 2017
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.76 KB | None | 0 0
  1. <?php
  2.   require_once('functions.php');
  3.   add();
  4. ?>
  5.  
  6. <?php include(HEADER_TEMPLATE); ?>
  7.  
  8. <h2>Novo Cliente</h2>
  9.  
  10. <form action="add.php" method="post">
  11.   <!-- area de campos do form -->
  12.   <hr />
  13.   <div class="row">
  14.     <div class="form-group col-md-7">
  15.       <label for="name">Nome / Razão Social</label>
  16.       <input type="text" class="form-control" name="customer['name']" >
  17.     </div>
  18.  
  19.     <div class="form-group col-md-3">
  20.       <label for="campo2">CNPJ / CPF</label>
  21.       <input type="text" class="form-control" name="customer['cpf_cnpj']">
  22.     </div>
  23.  
  24.     <div class="form-group col-md-2">
  25.       <label for="campo3">Data de Nascimento</label>
  26.       <input type="text" class="form-control" name="customer['birthdate']">
  27.     </div>
  28.   </div>
  29.  
  30.   <div class="row">
  31.     <div class="form-group col-md-5">
  32.       <label for="campo1">Endereço</label>
  33.       <input type="text" class="form-control" name="customer['address']">
  34.     </div>
  35.  
  36.     <div class="form-group col-md-3">
  37.       <label for="campo2">Bairro</label>
  38.       <input type="text" class="form-control" name="customer['hood']">
  39.     </div>
  40.    
  41.     <div class="form-group col-md-2">
  42.       <label for="campo3">CEP</label>
  43.       <input type="text" class="form-control" name="customer['zip_code']">
  44.     </div>
  45.    
  46.     <div class="form-group col-md-2">
  47.       <label for="campo3">Data de Cadastro</label>
  48.       <input type="text" class="form-control" name="customer['created']" disabled>
  49.     </div>
  50.   </div>
  51.  
  52.   <div class="row">
  53.     <div class="form-group col-md-3">
  54.       <label for="campo1">Município</label>
  55.       <input type="text" class="form-control" name="customer['city']">
  56.     </div>
  57.    
  58.     <div class="form-group col-md-2">
  59.       <label for="campo2">Telefone</label>
  60.       <input type="text" class="form-control" name="customer['phone']">
  61.     </div>
  62.    
  63.     <div class="form-group col-md-2">
  64.       <label for="campo3">Celular</label>
  65.       <input type="text" class="form-control" name="customer['mobile']">
  66.     </div>
  67.    
  68.     <div class="form-group col-md-1">
  69.       <label for="campo3">UF</label>
  70.       <input type="text" class="form-control" name="customer['state']">
  71.     </div>
  72.    
  73.     <div class="form-group col-md-2">
  74.       <label for="campo3">Inscrição Estadual</label>
  75.       <input type="text" class="form-control" name="customer['ie']">
  76.     </div>
  77.    
  78.     <div class="form-group col-md-2">
  79.       <label for="campo3">UF</label>
  80.       <input type="text" class="form-control">
  81.     </div>
  82.   </div>
  83.  
  84.   <div id="actions" class="row">
  85.     <div class="col-md-12">
  86.       <button type="submit" class="btn btn-primary">Salvar</button>
  87.       <a href="index.php" class="btn btn-default">Cancelar</a>
  88.     </div>
  89.   </div>
  90. </form>
  91.  
  92. <?php include(FOOTER_TEMPLATE); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement