<div id="statusRequisicao" ></div>
<div style='border-bottom: solid 1px #cccccc; width: 100%;'><b>Layout importação</b></div><br><?php
$ventoExcluir = "disabled";
$mod = "salvar";
if (isset($_GET['alterar']))
{
	$ventoExcluir = 'onclick="excluirDados(\'src/controller/Bi_layout_importacaoController.php?mod=excluir&codigo='.$bi_layout_importacao->getCodigo().'\')"'; 
  $mod = "alterar";
}

?>
<button class="btnSuccess  btnNovo abrir_modal" abrir-modal="#modaleditarbi_layout_importacao" id="btnNovo" onclick="atualizaSeletor('src/controller/Bi_layout_importacaoController.php?carragar_formulario_seletor=<?php echo $_GET['carragar_formulario_seletor'];?>&mod=form<?php if (isset($campo_buscar)) {echo str_replace("'","\'",$campo_buscar);}?>','#<?php echo $_GET['carragar_formulario_seletor'];?>')" >Novo</button>
<button class="btnDanger  btnExcluir" id="btnExcluir" <?php echo $ventoExcluir;?> >Excluir </button>
<button class="btnDanger  btnCancelar" id="btnCancelar" disabled>Cancelar </button>
<button class="btnSuccess  btnSalvar" id="btnSalvar" disabled onclick="salvarDados('formDadosbi_layout_importacao')">Salvar </button>
<br><br>
<form action='src/controller/Bi_layout_importacaoController.php?mod=<?php echo $mod;?>' id="formDadosbi_layout_importacao">
	<div class='filtroForm' >
		<label>Código</label>
		<input type="text" readonly  <?php if ($mod == "alterar" or $bi_layout_importacao->getCodigo() != ''){echo 'readonly="readonly" tabindex="-1" aria-disabled="true" ';} ?> class="form mask" name="codigo" placeholder="000000000000" data-mask="000000000000"    value="<?php echo $bi_layout_importacao->getCodigo();?>" valueDefault="<?php echo $bi_layout_importacao->getCodigo();?>"  />
	</div> 
	<div class='filtroForm' >
		<label><span class="form_obrigatorio">*</span>Nome</label>
		<input type="text" class="form" name="nome" placeholder="Nome"    required value="<?php echo $bi_layout_importacao->getNome();?>" valueDefault="<?php echo $bi_layout_importacao->getNome();?>"  />
	</div> 
	<div class='filtroForm' >
		<label>Descrição</label>
		<input type="text" class="form" name="descricao" placeholder="Descrição"     value="<?php echo $bi_layout_importacao->getDescricao();?>" valueDefault="<?php echo $bi_layout_importacao->getDescricao();?>"  />
	</div> 
	<br> 
	<div class='filtroForm' >
		<label>Data inclusão</label>
		<input type="text" readonly class="form mask" name="data_inclusao" placeholder="00/00/0000 00:00" data-mask="00/00/0000 00:00"  readonly  value="<?php if ($bi_layout_importacao->getData_inclusao() instanceof DateTime) {echo $bi_layout_importacao->getData_inclusao()->format('d/m/Y H:i');}?>" valueDefault="<?php if ($bi_layout_importacao->getData_inclusao() instanceof DateTime) {echo $bi_layout_importacao->getData_inclusao()->format('d/m/Y H:i');}?>"  />
	</div> 
	<div class='filtroForm' >
		<label>Usuário incluí</label>
		<select  class="form" name="usuario_incluiu" placeholder="Usuário incluí"   readonly  value='<?php echo  $bi_layout_importacao->getUsuario_incluiu()->getCodigo();?>' valueDefault='<?php echo  $bi_layout_importacao->getUsuario_incluiu()->getCodigo();?>'  >
			<option value=""></option>
			<?php foreach ($listaUsuario_incluiu  as $umRegistroUsuario){ ?>
					<option value='<?php echo  $umRegistroUsuario->getCodigo(); ?>'><?php echo $umRegistroUsuario->getUsuario(); ?></option>
			<?php } ?>
 		</select>

	</div> 
	<div class='filtroForm' >
		<label><span class="form_obrigatorio">*</span>Linha inicia cabecalho</label>
		<input type="text" class="form mask" name="linha_inicia_cabecalho" placeholder="000000000000000000000000" data-mask="000000000000000000000000"   required value="<?php echo $bi_layout_importacao->getLinha_inicia_cabecalho();?>" valueDefault="<?php echo $bi_layout_importacao->getLinha_inicia_cabecalho();?>"  />
	</div> 
	<div class='filtroForm' >
		<label>Coluna fim</label>
		<input type="text" class="form mask" name="coluna_testa_fim" placeholder="000000000000000000000000" data-mask="000000000000000000000000"    value="<?php echo $bi_layout_importacao->getColuna_testa_fim();?>" valueDefault="<?php echo $bi_layout_importacao->getColuna_testa_fim();?>"  />
	</div> 
	<div class='filtroForm' >
		<label>Texto finaliza</label>
		<input type="text" class="form" name="texto_teste_fim" placeholder="Texto finaliza"     value="<?php echo $bi_layout_importacao->getTexto_teste_fim();?>" valueDefault="<?php echo $bi_layout_importacao->getTexto_teste_fim();?>"  />
	</div> 
</form>
<script src="js/formulario.js"></script>