$possuiProximaPagina = false; $contador = 0; $tabela = ""; while ($linha = $query->fetch()) { if ($contador != $itemsPorPagina) { // listamos os dados de cada aula $tabela .= "<tr>"; $tabela .= " <td class=\"id\">"; $tabela .= htmlspecialchars($linha["idAula"]) . "</td>"; require_once "entidades/Cidade.php"; $cidade = new Cidade(); $cidade->setIdCidade($linha["chaveCidade"]); $cidade->recebeCidadeId($host, "homeopatias", $usuario, $senhaBD); $tabela .= " <td class=\"cidade\" data-id-cidade=\""; $tabela .= $linha["chaveCidade"] . "\">"; $tabela .= htmlspecialchars($cidade->getNome()) . "</td>"; $tabela .= " <td class=\"etapa\">"; $tabela .= htmlspecialchars($linha["etapa"]) . "</td>"; $tabela .= " <td class=\"data\" data-data-html=\""; $tabela .= str_replace("-", "/", $linha["data"]) . "\">"; $tabela .= date("d/m/Y H:i", strtotime($linha["data"])) . "</td>"; $tabela .= " <td class=\"nota\">"; if (!isset($linha["nota"]) || $linha["nota"] === "") { $tabela .= "N/A"; } else { $tabela .= number_format(htmlspecialchars($linha["nota"]), 2) . "%"; } $tabela .= "</td>"; $tabela .= " <td class=\"numAval\">"; $tabela .= htmlspecialchars($linha["numAval"]); $tabela .= "</td>";
echo "\"rotinas/matricula/remover_matricula.php?id=" . $idMatricula . "&aluno=" . $idAluno . "\""; ?> > Cancelar matrícula </a> </p> </div> <div class="row"> <p style="display:inline" class="col-sm-3"> <b>Cidade:</b> <?php require_once "entidades/Cidade.php"; $cidade = new Cidade(); $cidade->setIdCidade($idCidade); $cidade->recebeCidadeId($host, "homeopatias", $usuario, $senhaBD); echo $cidade->getNome() . "/" . $cidade->getUF(); ?> </p> <p style="display:inline" class="col-sm-3"> <b>Etapa:</b> <?php echo $etapa; ?> </p> </div> <?php } else { ?> <br>