123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- <?php
- require 'functions.php';
- $cursos = listarCursos();
- $alunos = listarAlunos($_GET['curso']);
- $exercicios = listarExercicios($_GET['curso']);
- ?>
- <!doctype html>
- <html lang="en">
- <head>
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
- <title>ivprog_log_analysis</title>
- <link href="css/bootstrap.min.css" rel="stylesheet" />
- <link href="css/style.css" rel="stylesheet" />
- </head>
- <body>
- <nav class="navbar navbar-expand-md navbar-dark fixed-top" style="background-color: #03396c;">
- <b><a class="navbar-brand" href="./">ivprog_log_analysis - Ambiente de análise dos logs do iVProgH</a></b>
- <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault" aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation">
- <span class="navbar-toggler-icon"></span>
- </button>
- <div class="collapse navbar-collapse" id="navbarsExampleDefault">
- <ul class="navbar-nav mr-auto">
- <li class="nav-item active">
- <a class="nav-link" href="./" title=""></a>
- </li>
- </ul>
- </div>
- </nav>
- <main role="main">
- <div class="jumbotron ivprogh-desc">
- <div class="container">
- <?= instrucoes() ?>
- </div>
- </div>
- <div class="container ivprog-container" style="padding: 3em; margin-top: 3em;">
- <form action="process.php" method="get" novalidate>
- <div class="form-group row">
- <label for="inputname" class="col-sm-2 col-form-label">Curso:</label>
- <div class="col-sm-10">
- <select class="form-control" id="inputname" name="curso">
- <?php
- for ($i = 0; $i < count($cursos); $i++) {
- echo "<option" . ($cursos[$i] == $_GET['curso']?" selected":"") . ">" . $cursos[$i] . "</option>";
- }
- ?>
- </select>
- </div>
- </div>
- <div class="form-group row">
- <label for="inputaluno" class="col-sm-2 col-form-label">Aluno:</label>
- <div class="col-sm-10">
- <select class="form-control" id="inputaluno" name="aluno">
- <option>Todos</option>
- <?php
- for ($i = 0; $i < count($alunos); $i++) {
- echo "<option value='$alunos[$i]'>" . str_replace('_', ' ', $alunos[$i]) . "</option>";
- }
- ?>
- </select>
- </div>
- </div>
- <div class="form-group row">
- <label for="inputexercicio" class="col-sm-2 col-form-label">Exercício:</label>
- <div class="col-sm-10">
- <select class="form-control" id="inputexercicio" name="exercicio">
- <option value="Todos">Todos</option>
- <?php
- for ($i = 0; $i < count($exercicios); $i++) {
- echo "<option value='".$exercicios[$i][1]."'>" . str_replace('_', ' ', $exercicios[$i][0]) . "</option>";
- }
- ?>
- </select>
- </div>
- </div>
- <div class="form-group row">
- <div class="offset-sm-2 col-sm-10">
- <button type="button" class="btn btn-secondary" onclick="window.history.back();">Voltar</button>
- <button type="submit" class="btn btn-primary">Continuar</button>
- <span class="reported" style="color: green; font-size: 120%;"></span>
- <span class="error" style="color: red; font-size: 120%;"></span>
- </div>
- </div>
- </form>
- </div>
- <div>
-
- </div>
- </main>
- <footer class="container text-center">
- <a href="http://www.ime.usp.br/line">iVProgH</a> |
- <a href="http://www.ime.usp.br/line">LInE</a> |
- <a href="http://www.matematica.br">iMática</a>
- </footer>
- <script src="./js/jquery.min.js"></script>
- <script src="./js/bootstrap.bundle.min.js"></script>
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/octicons/3.5.0/octicons.min.css">
- </body>
- </html>
|