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

?>
<button class="btnSuccess  btnNovo abrir_modal" abrir-modal="#modaleditaranalise" id="btnNovo" onclick="atualizaSeletor('src/controller/AnaliseController.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('formDadosanalise')">Salvar </button>
<br><br>
<form action='src/controller/AnaliseController.php?mod=<?php echo $mod;?>' id="formDadosanalise">
	<div class='filtroForm' >
		<label>Código</label>
		<input type="text" readonly  <?php if ($mod == "alterar" or $analise->getCodigo() != ''){echo 'readonly="readonly" tabindex="-1" aria-disabled="true" ';} ?> class="form mask" name="codigo" placeholder="000000000000" data-mask="000000000000"    value="<?php echo $analise->getCodigo();?>" valueDefault="<?php echo $analise->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 $analise->getNome();?>" valueDefault="<?php echo $analise->getNome();?>"  />
	</div> 
	<div class='filtroForm' >
		<label>Descrição</label>
		<input type="text" class="form" name="descricao" placeholder="Descrição"     value="<?php echo $analise->getDescricao();?>" valueDefault="<?php echo $analise->getDescricao();?>"  />
	</div> 
	<div class='filtroForm' >
		<label><span class="form_obrigatorio">*</span>Query (Passar %para filtros% exemplo nome='%id_fiiltro%')</label>
		<input type="text" class="form" name="query" placeholder="Query (Passar %para filtros% exemplo nome='%id_fiiltro%')"    required value="<?php echo $analise->getQuery();?>" valueDefault="<?php echo $analise->getQuery();?>"  />
	</div> 
	<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"    value="<?php if ($analise->getData_inclusao() instanceof DateTime) {echo $analise->getData_inclusao()->format('d/m/Y H:i');}?>" valueDefault="<?php if ($analise->getData_inclusao() instanceof DateTime) {echo $analise->getData_inclusao()->format('d/m/Y H:i');}?>"  />
	</div> 
	<div class='filtroForm' >
		<label>Log</label>
		<input type="text" class="form" name="log" placeholder="Log"   readonly  value="<?php echo $analise->getLog();?>" valueDefault="<?php echo $analise->getLog();?>"  />
	</div> 
</form>
<script src="js/formulario.js"></script>