<?php 
$ventoExcluir = "disabled" ;
if ($_tabela_bd->getId() != "")
{
	$ventoExcluir = 'onclick="excluirTabela(\'src/controller/Tabelas_bd.php?mod=excluir&id='.$_tabela_bd->getId().'\')"'; 
}	

?>
<div style="border-bottom: solid 1px #cccccc;"><b>Tabela</b></div>
<br>
<button class="btnSuccess btnXs " id="btnNovo" onclick="javaScript:abrirFormulario('src/controller/Tabelas_bd.php?mod=novo')" >Novo</button>
<button class="btnDanger btnXs" id="btnExcluir" <?php echo $ventoExcluir;?> >Excluir </button>
<button class="btnDanger btnXs" id="btnCancelar" disabled>Cancelar </button>
<button class="btnSuccess btnXs btnSalvarTabela" id="btnSalvar" disabled onclick="salvarTabela('formDados');">Salvar </button>
<br><br>
<form action='src/controller/Tabelas_bd.php?mod=salvar' id="formDados">
	<?php if ($_tabela_bd->getId() != ""){?><input type="hidden" class="form" placeholder="" name="id" value="<?php echo $_tabela_bd->getId()?>" valueDefault="<?php echo $_tabela_bd->getId()?>" /><?php }?>
	<label>Tabela</label>
	<input type="text" class="form" placeholder="Nome" id="tabelabd" required name="tabela" value="<?php echo $_tabela_bd->getTabela()?>" valueDefault="<?php echo $_tabela_bd->getTabela()?>" />
	<label>Descrição</label>
	<input type="text" class="form" placeholder="Nome" required name="descricao" value="<?php echo $_tabela_bd->getDescricao()?>" valueDefault="<?php echo $_tabela_bd->getDescricao()?>" />
</form>	
<script src="../../js/form_tabelas_bd.js"></script>
<script src="../../js/formulario.js"></script>
