<?php include("include/config.inc.php");

if(isset($_GET['lastPage'])){
$lastPage = $_GET['lastPage'];
$tipo = $_GET['tipo'];
$descricao = $_GET['descricao'];
}
else{
    $lastPage = "index.php";
    $tipo = "";
    $descricao = "";
}

?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>ERRO</title>
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <link rel="stylesheet" href="css/extras.css">
</head>
<body>
<?php include("include/header.inc.php") ?>


<?php   
    $myAudioFile = "som/erro.wav";
    echo '<audio autoplay="true" style="display:none;">
             <source src="'.$myAudioFile.'" type="audio/wav">
          </audio>';
    
    
    ?>
    <div class="text-center">
            <h3>ERRO - <?php echo $tipo;?></h3>
            <p>Descrição do erro: </p>
</div>
<div class="col-11 mx-auto" style="text-align: justify;">
            <p class=""><?php echo $descricao;?></p>
            </div>
            <form action="<?php echo $lastPage;?>">
            <div class="d-flex flex-column justify-content-center align-items-center">    
    <input class="btn btn-danger col-9 t-xxl" type="submit" value="Voltar" />
</div>
</form>
       



<?php include("include/footer.inc.php") ?>
</body>
</html>