-
Notifications
You must be signed in to change notification settings - Fork 1
/
docenti.php
37 lines (33 loc) · 1.42 KB
/
docenti.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
$cod = "prf";
$titolo = "Docenti Classe";
include './components/header.php';
$docenti = $argo->docenti();
?>
<main>
<div class="container">
<div class="row">
<div class="col s12 m8">
<div class="section">
<ul class="collection card">
<?php for ($x = 0; $x < count($docenti); $x++) { ?>
<li class="collection-item avatar">
<i class="material-icons circle <?php if (strpos($docenti[$x]['docente']['nome'], 'Coordinatore') !== false) {
echo 'red';
} ?>">face</i>
<span class="title"><b><?= $docenti[$x]['docente']['nome'] ?> <?= $docenti[$x]['docente']['cognome'] ?></b></span>
<?php
$materie = explode(',', rimuovi_parentesi($docenti[$x]['materie']));
for ($i = 0; $i < count($materie); $i++) {
echo "<p>$materie[$i]</p>";
}
?>
</li>
<?php } ?>
</ul>
</div>
</div>
</div>
</div>
</main>
<?php include './components/footer.php'; ?>