<?php
include 'header.php';
include 'erpc_adquirentes_toolbar.php';
include_once 'connect.php';
require_once 'inc/usuario.php';

checkLogin('login.php');

// capturando o usuário e unidade logado
$usuario_list = getLoggedUser();
$id_unidade = $usuario_list['unidade'];



?>

<!-- Nav tabs -->
<ul class="nav nav-tabs" role="tablist">
  <li role="presentation" class="active"><a href="#form1" aria-controls="form1" role="tab" data-toggle="tab"><h3>Cadastro de Adquirente</h3></a></li>
</ul>


<!-- Tab panes -->
<div class="tab-content">
  <div role="tabpanel" class="tab-pane fade in active" id="form1">
<form id=validate_custom method=POST action="erpc_adquirentes_ws.php">
  <div class=block>
    <div class=header>
    </div>
    <div class="content controls">
      
      <div class="form-row">
        <div class="col-md-2"><label>Adquirente</label></div>
        <div class="col-md-4">
        <input type=text required name="ds_adquirente" id="ds_adquirente" maxlength="50"/>
        </div>
      </div>
	  
	  <div class=form-row>
        <div class=col-md-2><label>Taxa de Débito</label></div>
        <div class=col-md-4><input type="number" step=".01" id="vl_pr_taxa_debito" name="vl_pr_taxa_debito" required value="<?php if(isset($vl_pr_taxa_debito)){ echo $vl_pr_taxa_debito;} ?>" class="form-control" /> </div>
      </div>  
	  
	  <div class=form-row>
        <div class=col-md-2><label>Taxa de Crédito à Vista</label></div>
        <div class=col-md-4><input type="number" step=".01" id="vl_pr_taxa_credito_a_vista" name="vl_pr_taxa_credito_a_vista" required value="<?php if(isset($vl_pr_taxa_credito)){ echo $vl_pr_taxa_credito;} ?>" class="form-control" /> </div>
      </div>
      
      <div class=form-row>
        <div class=col-md-2><label>Taxa de Crédito Parcelado</label></div>
        <div class=col-md-4><input type="number" step=".01" id="vl_pr_taxa_credito_parcelado" name="vl_pr_taxa_credito_parcelado" required value="<?php if(isset($vl_pr_taxa_credito)){ echo $vl_pr_taxa_credito;} ?>" class="form-control" /> </div>
      </div>  
	  
    </div>
    <div class=footer>
      <div class="side pull-right">
        <div class=btn-group> 
		<button class="btn btn-default" type="button" onClick="window.history.go(-1)" value="Voltar">Voltar</button>
        <button class="btn btn-success" type="submit" value="adicionar" onClick="$('#validate_custom').validationEngine('hide');" name="adicionar">Adicionar</button>
			  
		</div>
      </div>
    </div>
  </div>
</form>

  </div>
  
</div>

<?php
include 'footer.php';
?>


