<?php
include 'header.php';
include 'erpc_armazens_locais_toolbar.php'; 
include 'connect.php';

$id = base64_decode($_GET['id']);
?>

<!-- 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">Dados Cadastrais</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_armazens_locais_ws.php">
<input type="hidden" value="<?php echo $id; ?>" name="id" id="id">

  <div class=block>
    <div class=header>
      <h2>Excluir Armazém</h2>
    </div>

    <div class="content controls">
	<?php
		$consulta = "select * from erpc_local_estoque where id = '$id' and st_ativo =1";

		$resultado = mysqli_query($conexao, $consulta) or die ($erro = mysqli_error($conexao));
		if (mysqli_num_rows($resultado)>0) {
		while ($registro = mysqli_fetch_assoc($resultado)){

			$ds_local = $registro['ds_local'];

			}
		}
	?>
	<div class=form-row>
    <div class=col-md-3>Descrição:</div>
    <div class=col-md-6><input type=text name="ds_local" value="<? echo $ds_local?>" class="form-control"  disabled /> </div>
  </div>

    </div>
    <div class=footer>
      <div class="side pull-right">
        <div class=btn-group>

            <button class="btn btn-warning" type="submit" value="excluir" onClick="$('#validate_custom').validationEngine('hide');" name="btn-remove" id="btn-remove">Confirma a exclusão?</button>
            <button class="btn btn-default" type="button" onClick="window.history.go(-1)" value="Voltar">Voltar</button>

		</div>
      </div>
    </div>
  </div>
</form>

  </div>

</div>

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