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
/
_noticiasDesativadas.php
91 lines (89 loc) · 4.29 KB
/
_noticiasDesativadas.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
<?php
require_once('ie.php');
require_once('config/loadConfig.php');
$objFL = new FuncionarioLogin();
$objFL->checaLogin('administrar-noticia');
$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 - Notícias"; ?></title>
<script src="/js/jquery-1.9.1.min.js"></script>
<script src="/js/jquery.lazyload.js"></script>
<script src="/js/scripts/_noticiasDesativadas.js"></script>
</head>
<body>
<div id="all">
<header>
<?php require_once('header.php'); ?>
</header>
<article id="article">
<div class="enquadramento1000px">
<h1>Notícias - Área do <?php print $tipo; ?></h1>
<article class="boxList">
<h1>Notícias Desativadas</h1>
<?php
$objNoticias = new Noticia();
if ($objNoticias->qtdDesativoRegistros() <= 0) {
print '<p>Nenhum registro encontrado.</p>';
} else {
?>
<table>
<thead>
<tr>
<th class="codigo">Imagem</th>
<th class="alLeft">Título</th>
<th class="opcoes2">Opções</th>
</tr>
</thead>
<tfoot>
<tr>
<td class="codigo">Imagem</td>
<td class="alLeft">Título</td>
<td class="opcoes2">Opções</td>
</tr>
</tfoot>
<tbody>
<?php
$count = 1;
if ($objNoticias->qtdDesativoRegistros() > 0)
foreach ($objNoticias->listarDesativoTudo() as $obj) {
$count++;
$classPar = (($count % 2) == 0)?' class="par"': '';
print "
<tr$classPar>
<td class=\"alCenter\">
<img class=\"lazy\" src=\"/imagens/layout/estrutura/gif/lazyload-bg.gif\" data-original=\"/$obj->dirImagem" . "150x150/$obj->imagem\">
</td>
<td class=\"alLeft\">$obj->titulo</td>
<td class=\"alCenter\">
<a title=\"Excluir\" data-codigo=\"$obj->codigo\">Excluir</a>
<a title=\"Ativar\" data-codigo=\"$obj->codigo\">Ativar</a>
</td>
</tr>
";
}
?>
</tbody>
</table>
<?php } ?>
</article>
<a class="btnVoltar" href="/<?php print $tipoUrl; ?>/noticias/">Voltar</a>
</div>
</article>
<div class="clear"></div>
</div>
<footer>
<?php require_once('footer.php'); ?>
</footer>
</body>
</html>