<?php
session_start();

$idSangria = $_GET['id'];

require_once 'script_php/class/SisNotasSQL.php';
$dadosRecorrenciaLocal = new SisNotasSQL;
$recorrencias = $dadosRecorrenciaLocal->BuscarRecorrencia();
?>

<!DOCTYPE html>
<html>
<head>

<?php include_once 'head.html' ?>

<title></title>
</head>

<body>

<?php include_once 'header.php'; ?>

<h2>Escolha uma recorrência</h2>

<form action="script_php/class/recorrenciaCriar.php" method='post'>

<input type="hidden" name='idSangria' value="<?= $idSangria;?>" >

<select name="idRecorrencia" id="" class="form-select ">

<?php
foreach ($recorrencias as $dados)
{
    
?>
<option value="<?= $dados['ID']?>" > <?php echo $dados['HISTORICO']; ?> </option>

<?php } ?>

</select>

<button type="submit" class="btn btn-outline-primary">Enviar</button>


</form>

<?php include_once 'footer.php' ?>