This repository has been archived by the owner on Feb 14, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_disciplinasPos.php
92 lines (90 loc) · 4.44 KB
/
_disciplinasPos.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?php
require_once('ie.php');
require_once('config/loadConfig.php');
$objFL = new FuncionarioLogin();
$objFL->checaLogin('disciplina');
$tipo = $objFL->retornaFuncionarioSessao()->tipo;
$tipoUrl = $objFL->retornaFuncionarioSessao()->tipoUrl;
?>
<!DOCTYPE HTML>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<link rel="shortcut icon" href="/imagens/layout/estrutura/png/favicon.png" type="image/ico">
<link rel="apple-touch-icon-precomposed" sizes="57x57" href="/imagens/layout/estrutura/png/favicon-57.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="/imagens/layout/estrutura/png/favicon-72.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="/imagens/layout/estrutura/png/favicon-114.png">
<link rel="stylesheet" type="text/css" href="/css/estrutura.css">
<link rel="stylesheet" type="text/css" href="/css/_forms.css">
<title><?php print "$objI->nomeFantasia - Disciplinas"; ?></title>
<script src="/js/jquery-1.9.1.min.js"></script>
<script src="/js/scripts/_disciplinasPos.js"></script>
</head>
<body>
<div id="all">
<header>
<?php require_once('header.php'); ?>
</header>
<article id="article">
<div class="enquadramento1000px">
<h1>Disciplinas - Área do <?php print $tipo; ?></h1>
<article class="boxList">
<h1>Disciplinas de Cursos de Pós-graduação</h1>
<a href="/<?php print $tipoUrl; ?>/disciplinas/pos-graduacao/novo/cadastro.html">Cadastrar Nova Disciplina</a>
<?php
$objDisciplinas = new DisciplinaPos();
if ($objDisciplinas->qtdRegistros() <= 0) {
print '<p>Nenhum registro encontrado.</p>';
} else {
?>
<table>
<thead>
<tr>
<th class="codigo">Código</th>
<th class="alLeft">Nome</th>
<th class="alCenter">Carga Horária</th>
<th class="opcoes">Opções</th>
</tr>
</thead>
<tfoot>
<tr>
<td class="codigo">Código</td>
<td class="alLeft">Nome</td>
<td class="alCenter">Carga Horária</td>
<td class="opcoes">Opções</td>
</tr>
</tfoot>
<tbody>
<?php
$count = 1;
if ($objDisciplinas->qtdRegistros() > 0)
foreach ($objDisciplinas->listarTudo() as $obj) {
$count++;
$classPar = (($count % 2) == 0)?' class="par"': '';
print "
<tr$classPar>
<td class=\"alCenter\">$obj->codigo</td>
<td class=\"alLeft\">$obj->nome</td>
<td class=\"alCenter\">$obj->cargaHoraria</td>
<td class=\"alCenter\">
<a title=\"Excluir\" data-codigo=\"$obj->codigo\">Excluir</a>
<a href=\"/$tipoUrl/disciplinas/pos-graduacao/$obj->codigo/cadastro.html\" title=\"Editar\">Editar</a>
</td>
</tr>
";
}
?>
</tbody>
</table>
<?php } ?>
</article>
<a class="btnVoltar" href="/<?php print $tipoUrl; ?>/disciplinas/">Voltar</a>
</div>
</article>
<div class="clear"></div>
</div>
<footer>
<?php require_once('footer.php'); ?>
</footer>
</body>
</html>