forked from hiltonbruce/Igreja
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaniversario.php
executable file
·115 lines (111 loc) · 3.67 KB
/
aniversario.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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<?PHP
$anterior=$_GET["proxima"]-1;
$proximo=$_GET["proxima"]+1;
if ($_GET["Submit"]=="Imprimir") {
session_start();
require "../help/impressao.php";//Include de func�es, classes e conex�es com o BD
controle ("consulta");
$igreja = new DBRecord ( 'igreja', '1', 'rol' );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title><?php echo $titTabela;?></title>
<link rel="icon" type="image/gif" href="../br_igreja.jpg">
<!-- <link rel="stylesheet" type="text/css" href="../tesouraria/style.css" /> -->
<!-- <link rel="stylesheet" type="text/css" href="../css/print.css" /> -->
<link rel="stylesheet" type="text/css" href="../css/bootstrap.css" />
</head>
<body>
<div id="header">
<p>
<?PHP
//print_r($igreja);
echo "Templo SEDE: {$igreja->rua()}, Nº {$igreja->numero()} <br /> $origem - {$igreja->uf()} - CNPJ: {$igreja->cnpj()}<br />
CEP: {$igreja->cep()} - Fone: {$igreja->fone()} - Fax: {$igreja->fax()}";?>
<br />Copyright © <a rel="nofollow" href="http://<?PHP echo "{$igreja->site()}";?>/" title="Copyright information">Site </a>
<br />Email: <a href="mailto: <?PHP echo "{$igreja->email()}";?>">Secretaria Executiva </a>
</p>
</div>
<?php
$fimPagina = ' <div id="footer">
Copyright © 2016 Designed by <a rel="nofollow" href="mailto: [email protected]">Joseilton Costa Bruce </a>
</div>
</body>
</html>';
}else {
$fimPagina = 'Você pode ordenar por Rol, Nome e Congregação "click" no cabeçalho. Por padrão ele ordena pelo nome do membro.
';
?>
<script type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
<?PHP
require_once ("aniv/navega.php");
}
//Código para exibir de qual congregação é a lista de aniversariantes
$congrega = new DBRecord ("igreja","{$_GET["congregacao"]}","rol");
if ($_GET["congregacao"]>"0" ) {
$cong_sele = " - Congregação: ".$congrega->razao();
} else {
$cong_sele = " - Todas as congregações";
}
?>
<table class='table table-striped table-hover' summary="Idade, Rol, Nome, Congregação e Cargo">
<caption>
Lista de Aniversariantes
<?PHP
$aniv = new aniversario;
if ($_GET["proxima"]=="" || $_GET["proxima"]=="0"){
echo " de hoje";
}else {
echo "do dia: ".$aniv->data_consulta ();
}
echo $cong_sele;
?>
</caption>
<colgroup>
<col id="PlaylistCol" />
<col id="Rol" />
<col id="Nome" />
<col id="Congrega" />
<col id="Setor" />
<col id="albumCol" />
</colgroup>
<thead>
<tr>
<th id="" scope="col">Idade</th>
<th scope="col"><a href="./?escolha=aniv/aniversario.php&menu=top_aniv&ord=1" title="Ordenar por ROL">Rol
<?PHP if ($_GET["ord"]=="1") {?>
<img src="img/s_desc.png" width="11" height="9" border="0" />
<?PHP } ?>
</a></th>
<th scope="col"><a href="./?escolha=aniv/aniversario.php&menu=top_aniv" title="Ordenar por nome">Nome<?PHP if ($_GET["ord"]=="") {?>
<img src="img/s_desc.png" width="11" height="9" border="0" />
<?PHP } ?>
</a></th>
<th scope="col"><a href="./?escolha=aniv/aniversario.php&menu=top_aniv&ord=2" title="Ordenar por Congregação">Congregação
<?PHP if ($_GET["ord"]=="2") {?>
<img src="img/s_desc.png" width="11" height="9" border="0" />
<?PHP } ?>
</a></th>
<th scope="col">Setor</th>
<th scope="col">Cargo</th>
</tr>
</thead>
<tbody>
<?PHP
$aniv->nome_dia();
?>
</tbody>
</table>
<?php
echo $fimPagina ;
?>