index.php 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <?php
  2. require 'functions.php';
  3. $cursos = listarCursos();
  4. $encontrou = count($cursos) > 2;
  5. ?>
  6. <!doctype html>
  7. <html lang="en">
  8. <head>
  9. <meta charset="utf-8" />
  10. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
  11. <title>ivprog_log_analysis</title>
  12. <link href="css/bootstrap.min.css" rel="stylesheet" />
  13. <link href="css/style.css" rel="stylesheet" />
  14. </head>
  15. <body>
  16. <nav class="navbar navbar-expand-md navbar-dark fixed-top" style="background-color: #03396c;">
  17. <b><a class="navbar-brand" href="./">ivprog_log_analysis - Ambiente de análise dos logs do iVProgH</a></b>
  18. <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault" aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation">
  19. <span class="navbar-toggler-icon"></span>
  20. </button>
  21. <div class="collapse navbar-collapse" id="navbarsExampleDefault">
  22. <ul class="navbar-nav mr-auto">
  23. <li class="nav-item active">
  24. <a class="nav-link" href="./" title=""></a>
  25. </li>
  26. </ul>
  27. </div>
  28. </nav>
  29. <main role="main">
  30. <div class="jumbotron ivprogh-desc">
  31. <div class="container">
  32. <?= instrucoes() ?>
  33. </div>
  34. </div>
  35. <div class="container ivprog-container" style="padding: 3em; margin-top: 3em;">
  36. <form action="process.php" method="get" novalidate>
  37. <div class="form-group row">
  38. <label for="inputname" class="col-sm-2 col-form-label">Curso:</label>
  39. <div class="col-sm-10">
  40. <select class="form-control" id="inputname" name="curso" <?= ($encontrou?"":"disabled") ?> >
  41. <?php
  42. if ($encontrou) {
  43. for ($i = 0; $i < count($cursos); $i++) {
  44. echo "<option>" . $cursos[$i] . "</option>";
  45. }
  46. } else {
  47. echo "<option> Nenhum curso foi encontrado </option>";
  48. }
  49. ?>
  50. </select>
  51. </div>
  52. </div>
  53. <div class="form-group row">
  54. <div class="offset-sm-2 col-sm-10">
  55. <button type="button" class="btn btn-secondary" disabled="">Voltar</button>
  56. <button type="submit" class="btn btn-primary" <?= ($encontrou?"":"disabled") ?>>Continuar</button>
  57. <span class="reported" style="color: green; font-size: 120%;"></span>
  58. <span class="error" style="color: red; font-size: 120%;"></span>
  59. </div>
  60. </div>
  61. </form>
  62. </div>
  63. <div>
  64. </div>
  65. </main>
  66. <footer class="container text-center">
  67. <a href="http://www.ime.usp.br/line">iVProgH</a> |
  68. <a href="http://www.ime.usp.br/line">LInE</a> |
  69. <a href="http://www.matematica.br">iM&aacute;tica</a>
  70. </footer>
  71. <script src="./js/jquery.min.js"></script>
  72. <script src="./js/bootstrap.bundle.min.js"></script>
  73. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/octicons/3.5.0/octicons.min.css">
  74. </body>
  75. </html>