Skip to content

Commit

Permalink
Merge github.com:axel584/ikurso
Browse files Browse the repository at this point in the history
  • Loading branch information
emmrichard committed Apr 24, 2017
2 parents a7829f4 + df09ccf commit de41c7e
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions korektado.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

//$query = "select kodo,demando,komando,count(*) as combien,max(dato) from respondoj join lecioneroj on lecioneroj.id=respondoj.lecionero_id join lecionoj on lecioneroj.leciono_id=lecionoj.id where numero=".$leciono." and kurso='".$kurso."' group by komando,kodo, demando order by kodo,max(dato) desc";
$query = "select kodo,demando,count(*) as combien,max(dato) from respondoj join lecioneroj on lecioneroj.id=respondoj.lecionero_id join lecionoj on lecioneroj.leciono_id=lecionoj.id where numero=".$leciono." and kurso='".$kurso."' group by kodo, demando order by kodo,max(dato) desc";
echo $query;
$result = $bdd->query($query);
$nbReponse = 0;
$kodoj = array();
Expand Down Expand Up @@ -75,7 +74,18 @@
echo "<div class='collapsible-header'><a href='korektado.php?kurso=CG&numleciono=".$row["numero"]."'>".$row["titolo"]."</a></div>\n";
}
?>

<div class="collapsible-header active"><i class="material-icons">toc</i>Gerda Malaperis</div>

<?php

$query = "SELECT numero,kurso,titolo FROM `lecionoj` WHERE kurso='GR' order by numero";
$result = $bdd->query($query);
while ($row=$result->fetch()) {
$nbReponse = $nbReponse + 1;
echo "<div class='collapsible-header'><a href='korektado.php?kurso=GR&numleciono=".$row["numero"]."'>".$row["titolo"]."</a></div>\n";
}
?>

</li>
</ul>

Expand Down

0 comments on commit de41c7e

Please sign in to comment.