-
Notifications
You must be signed in to change notification settings - Fork 2
/
professor.php
53 lines (51 loc) · 1.81 KB
/
professor.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
include "class/professor.php";
$id = $_GET['id'];
$professor = new Professor();
$professor->loadById($id);
?>
<!DOCTYPE html>
<html>
<head>
<?php include "header.php"; ?>
</head>
<body>
<?php $menuSelected = 3; include "menu.php" ?>
<div id="content">
<header class="huge-header">
<div class="professor-img" style="background-image: url(fotos-professores/<?= $professor->foto ?>);"></div>
<h1 class="professor-name"><?= $professor->nome ?></h1>
</header>
<div id="main-content" class="professor-main">
<div class="professor-info">
<div class="professor-info-title">Página Pessoal</div>
<div class="professor-info-content">
<a href="http://<?= $professor->site ?>">
<?= $professor->site ?>
</a>
</div>
</div>
<div class="professor-info">
<div class="professor-info-title">Área de Atuação</div>
<div class="professor-info-content"><?= $professor->area ?></div>
</div>
<?php foreach ($professor->courses as $course) { ?>
<div class="oferta">
<div class="oferta-title">Disciplina:</div>
<div class="oferta-content">
<a href="disciplina.php?id=<?= $course['codMat'] ?>">
<?= $course['nome'] ?>
</a>
</div><br>
<div class="oferta-title">Semestre:</div>
<div class="oferta-content">2015 / <?= $course['semestre'] ?></div><br>
<?php foreach ($course['locais'] as $local) { ?>
<div class="oferta-local"><?= $local['local'] ?></div>
<div class="oferta-horario"><?= $local['dia'] ?> - <?= $local['inicio'] ?> às <?= $local['fim'] ?></div>
<?php } ?>
</div>
<?php } ?>
</div>
</div>
</body>
</html>