?> <h2 style="font-weight:bold; display:inline"> <?php // Pegamos informações da aula no BD if ($numAlunos != 0) { echo "{$nomeCidade} - " . $etapa . "ª etapa/" . date("Y"); echo "<br>"; echo "<p style='font-size:22px;texto-decoration:none'>\n Coordenador(a) : " . $coordenador->getNome() . "</p>"; echo "<p style='font-size:18px;texto-decoration:none'>\n Data e horario : " . date("d/m/Y h:i:s", $aula["data"]) . "</p>"; echo "<br>"; echo "<p style='font-size:20px;texto-decoration:none'>\n Professor(es) : \n <ol>\n <li style='font-size:18px;texto-decoration:none'>" . $professor->getNome() . "</li>"; if ($professorP) { echo "<li style='font-size:18px;texto-decoration:none'>" . $professorP->getNome() . "</li>"; } if ($professorS) { echo "<li style='font-size:18px;texto-decoration:none'>" . $professorS->getNome() . "</li>"; } echo "</ol>"; } else { if (!$existeAula) { "<p>Não é aulas futuras registradas para esta cidade</p>"; } } ?> </h2> <br><br><br> <?php echo $resultado; ?> </section>
$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>"; require_once "entidades/Administrador.php"; $prof = new Administrador(""); $prof->setIdAdmin($linha["idProfessor"]); $sucesso = $prof->recebeAdminId($host, "homeopatias", $usuario, $senhaBD, "professor"); $idProfessor = $sucesso ? $linha["idProfessor"] : -1; $nomeProfessor = $sucesso ? $prof->getNome() : "Indeterminado"; $tabela .= " <td class=\"professor\" data-id-professor=\""; $tabela .= htmlspecialchars($idProfessor); $tabela .= "\" data-id-primario =\"" . $linha["idProfAdicionalPrimario"] . "\" "; $tabela .= " data-id-secundario = \"" . $linha["idProfAdicionalSecundario"] . "\">"; $tabela .= htmlspecialchars($nomeProfessor) . "</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><a data-id=\""; $tabela .= $linha["idAula"]; $tabela .= "\" data-descricao=\"";
$tabela .= " <td class=\"ano\">"; $tabela .= htmlspecialchars($linha["ano"]) . "</td>"; $tabela .= " <td class=\"local\">"; $tabela .= htmlspecialchars($linha["local"]) . "</td>"; $tabela .= " <td class=\"limite\" data-limite=\""; $dataLimite = strtotime($linha["limiteInscricao"]); $tabela .= date("Y-m-d", $dataLimite) . "\">"; $tabela .= date("d/m/Y", $dataLimite) . "</td>"; $tabela .= " <td class=\"nome-coord\" data-id-coord=\""; $tabela .= $linha["idCoordenador"]; $tabela .= "\""; require_once "entidades/Administrador.php"; $coord = new Administrador(""); $coord->setIdAdmin($linha["idCoordenador"]); $coord->recebeAdminId("localhost", "homeopatias", $usuario, $senhaBD, "coordenador"); $tabela .= "data-nome-coord=\"" . htmlspecialchars($coord->getNome()); $tabela .= "\">"; $tabela .= htmlspecialchars($coord->getNome()) . "</td>"; /* $tabela .= " <td class=\"inscricao\">R$ "; $tabela .= number_format(htmlspecialchars($linha["precoInscricao"]), 2, ".", " ")."</td>"; $tabela .= " <td class=\"parcela\">R$ "; $tabela .= number_format(htmlspecialchars($linha["precoParcela"]), 2, ".", " ")."</td>"; $tabela .= " <td class=\"custo\">R$ "; $tabela .= number_format(htmlspecialchars($linha["custoCurso"]), 2, ".", " ")."</td>"; */ $tabela .= " <td><a href=\"selecao_turma_frequencias.php?idCidade="; $tabela .= $linha["idCidade"] . "\"><i class=\"fa fa-list\"></i></a>"; $tabela .= " <td><a data-id=\""; $tabela .= $linha['idCidade']; $tabela .= "\" data-empresa=\"" . $linha['nomeEmpresa'];