<html>
<head>
    <link rel="stylesheet" href="css/bootstrap.min.css">

</head>
<body>
<?php 
require 'funcoes.php';
if (!isset($_GET["modelo"])) {
    echo "oi";
} else {
}
echo $_GET['modelo'];
getSequenceView($_GET['modelo']);
        }

    </style>
</head>
<body>





<?php 
require 'funcoes.php';
$modelo = $_GET['modelo'];
$topico = $_GET['selecao'];
$json = getResourcesTopico($topico);
$listaSequence = getSequenceView($modelo);
$topico_atual = "";
foreach ($listaSequence as $atual) {
    if ($atual["@Ontology#id"] == $topico) {
        $topico_atual = $atual;
    }
}
?>


<div class="container">

    <h1> Gestor de Recursos Educacionais</h1>

    <h2>Sequence View - <?php 
echo $topico_atual["@Ontology#label"];