Skip to content

Commit

Permalink
Aniversariantes V 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseilton Csota Bruce authored and Joseilton Csota Bruce committed Jul 4, 2019
1 parent 3990e88 commit 9087870
Show file tree
Hide file tree
Showing 8 changed files with 54 additions and 89 deletions.
3 changes: 0 additions & 3 deletions aniv/aniversario.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,7 @@
}else {
$fimPagina = 'Você pode ordenar por Rol, Nome e Congregação "click" no cabeçalho. Por padrão ele ordena pelo nome do membro.
';
echo "<style type='text/css'> <!--";
require_once ("aniv/style.css");
?>
</style>
<script type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
Expand Down
17 changes: 8 additions & 9 deletions aniv/batismo.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?PHP

$anterior=$_GET["proxima"]-1;
$proximo=$_GET["proxima"]+1;

if ($_GET["Submit"]=="Imprimir") {

session_start();
require_once ("../func_class/funcoes.php");
require_once ("../func_class/classes.php");
require_once ("../func_class/classes.php");

controle ("consulta");
echo "<style type='text/css'> <!--";
require_once ("style.css");
Expand All @@ -26,10 +26,9 @@ function MM_jumpMenu(targ,selObj,restore){ //v3.0
}
//-->
</script>

<?PHP
<?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" ) {
Expand All @@ -42,7 +41,7 @@ function MM_jumpMenu(targ,selObj,restore){ //v3.0
<caption>
Aniversariantes de Batismo em Águas

<?PHP
<?PHP
$aniv = new aniversario;

if ($_GET["proxima"]=="" || $_GET["proxima"]=="0"){
Expand All @@ -51,7 +50,7 @@ function MM_jumpMenu(targ,selObj,restore){ //v3.0
echo "do Dia: ".$aniv->data_consulta ();}

?>

</caption>

<colgroup>
Expand Down Expand Up @@ -91,4 +90,4 @@ function MM_jumpMenu(targ,selObj,restore){ //v3.0
</tbody>

</table>
Voc&ecirc; pode ordenar por Rol, Nome e Congrega&ccedil;&atilde;o &quot;click&quot; no cabe&ccedil;alho. Por padr&atilde;o ele ordena pelo nome do membro.
Voc&ecirc; pode ordenar por Rol, Nome e Congrega&ccedil;&atilde;o &quot;click&quot; no cabe&ccedil;alho. Por padr&atilde;o ele ordena pelo nome do membro.
36 changes: 12 additions & 24 deletions aniv/casamento.php
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
<?PHP

$anterior=$_GET["proxima"]-1;
$proximo=$_GET["proxima"]+1;

if ($_GET["Submit"]=="Imprimir") {

session_start();
require_once ("../func_class/funcoes.php");
require_once ("../func_class/classes.php");
require_once ("../func_class/classes.php");

controle ("consulta");
echo "<style type='text/css'> <!--";
require_once ("style.css");
echo "</style>";
?>
<link rel="stylesheet" type="text/css" href="../css/bootstrap.print.css" />
<link rel="icon" type="image/gif" href="../br_igreja.jpg">
<?php
}else {
echo "<style type='text/css'> <!--";
require_once ("aniv/style.css");
?>
</style>
<script type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
Expand All @@ -26,41 +24,34 @@ function MM_jumpMenu(targ,selObj,restore){ //v3.0
}
//-->
</script>

<?PHP
<?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&ccedil;&atilde;o: ".$congrega->razao();
}
?>


<table cellspacing="0" class='table' id="playlistTable" summary="Top 15 songs played. Top artitst include Coldplay, Yeah Yeah Yeahs, Snow Patrol, Deeper Water, Kings of Leon, Embrace, Oasis, Franz Ferdinand, Jet, The Bees, Blue States, Kaiser Chiefs and Athlete.">
<table class='table table-bordered table-striped' >
<caption>
Aniversariantes de Casamento
<?PHP
<?PHP
$aniv = new aniversario;

if ($_GET["proxima"]=="" || $_GET["proxima"]=="0"){
echo " de Hoje";
}else {
echo "do Dia: ".$aniv->data_consulta ();}

?>

</caption>

<colgroup>
<col id="PlaylistCol" />
<col id="Anos" />
<col id="Nome" />
<col id="Congrega" />
<col id="albumCol" />
</colgroup>

<thead>
<tr>
<th id="" scope="col">Ano(s)</th>
Expand All @@ -81,13 +72,10 @@ function MM_jumpMenu(targ,selObj,restore){ //v3.0
<th scope="col">Cargo</th>
</tr>
</thead>

<tbody>

<?PHP
$aniv->casamento();
?>
</tbody>

</table>
Voc&ecirc; pode ordenar por Rol, Nome e Congrega&ccedil;&atilde;o &quot;click&quot; no cabe&ccedil;alho. Por padr&atilde;o ele ordena pelo nome do membro.
Voc&ecirc; pode ordenar por Rol, Nome e Congrega&ccedil;&atilde;o &quot;click&quot; no cabe&ccedil;alho. Por padr&atilde;o ele ordena pelo nome do membro.
34 changes: 2 additions & 32 deletions aniv/mes.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,12 @@
// require_once '../views/modeloPrint.php';

controle ("consulta");
echo "<style type='text/css'> <!--";
require_once ("style.css");
echo "</style>";
?>
<!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="stylesheet" type="text/css" href="../css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="../css/bootstrap.print.css" />
<link rel="icon" type="image/gif" href="../br_igreja.jpg">

<?php
}else {
echo "<style type='text/css'> <!--";
require_once ("aniv/style.css");
?>
</style>

<script type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
Expand All @@ -41,12 +27,10 @@ function MM_jumpMenu(targ,selObj,restore){ //v3.0
}
//-->
</script>

<?PHP
require_once ("aniv/navega.php");
}
$ord = intval($_GET["ord"]);

// $ordDia = ($ord!=3) ? 3 : 4 ;
if ($ord==3) {
$ordDia = 4;
Expand All @@ -58,8 +42,6 @@ function MM_jumpMenu(targ,selObj,restore){ //v3.0
$iconDia = '';
$ordDia=3;
}


if ($ord==0) {
$ordNome = 5;
$iconNome = '<span class="glyphicon glyphicon-chevron-down text-danger" aria-hidden="true"></span>';
Expand All @@ -70,51 +52,39 @@ function MM_jumpMenu(targ,selObj,restore){ //v3.0
$iconNome = '';
$ordNome=0;
}
// echo $iconDia;
// $ordNome = ($ord!=0) ? '' : 5 ;

//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&ccedil;&atilde;o: ".$congrega->razao();
}
?>

<table class="table table-striped">
<table class="table table-striped table-bordered">
<caption>
Aniversariantes do M&ecirc;s <?PHP echo $cong_sele;?>
</caption>

<colgroup>
<col id="Dia" />
<col id="Nome" />
<col id="Data" />
<col id="albumCol" />
</colgroup>

<thead>
<tr>

<th scope="col"><a href="./?escolha=aniv/mes.php&menu=top_aniv&ord=<?=$ordDia?>" title="Ordenar por Data">Dia
<?=$iconDia?>
</a></th>

<th scope="col"><a href="./?escolha=aniv/mes.php&menu=top_aniv&ord=<?=$ordNome?>" title="Ordenar por nome">Nome
<?=$iconNome?>
</a></th>

<th scope="col"><a href="./?escolha=aniv/mes.php&menu=top_aniv&ord=<?=$ordDia?>" title="Ordenar por Dia">Dia
<?php echo $iconDia;?>
</a></th>

<th scope="col"><a href="./?escolha=aniv/mes.php&menu=top_aniv&ord=<?=$ordNome?>" title="Ordenar por nome">Nome
<?=$iconNome?>
</a></th>
</tr>
</thead>

<tbody>

<?PHP
$aniv= new aniversario;
$aniv->mes();
Expand Down
24 changes: 18 additions & 6 deletions aniv/navega.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
<a href="./?escolha=<?PHP echo $_GET["escolha"];?>&proxima=<?PHP
echo $anterior;?>&ord=<?PHP echo $_GET["ord"];?>&congregacao=<?PHP
echo $_GET["congregacao"];?>" type="button" class="btn btn-primary">
<span class="glyphicon glyphicon-backward" aria-hidden="true"> </span> Voltar um dia
<span class="glyphicon glyphicon-backward" aria-hidden="true"> </span> Voltar
</a>
<a href="./?escolha=<?PHP echo $_GET["escolha"];?>&proxima=<?PHP echo
$proximo;?>&ord=<?PHP echo $_GET["ord"];?>&congregacao=<?PHP echo $_GET["congregacao"];
?>" type="button" class="btn btn-primary">Avan&ccedil;ar um dia
?>" type="button" class="btn btn-primary">Avan&ccedil;ar
<span class="glyphicon glyphicon-forward" aria-hidden="true"> </span>
</a>
</div>
Expand All @@ -26,6 +26,22 @@
<option value="1">da Semana</option>
<option value="2">do M&ecirc;s</option>
</select>

<div class="btn-group">
<button type="button" class="btn btn-warning">Hoje</button>
<button type="button" class="btn btn-warning dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu">
<li><a href="#">hoje</a></li>
<li><a href="#">Semana</a></li>
<li><a href="#">M&ecirc;s</a></li>
<li role="separator" class="divider"></li>
<li><a href="#">Separated link</a></li>
</ul>
</div>

</div>
<div class="col-xs-4"><label>Igreja</label>
<select name="igreja" id="igreja" class="form-control" onchange="MM_jumpMenu('parent',this,0)" tabindex="<?PHP echo ++$ind; ?>" >
Expand All @@ -38,8 +54,4 @@
</select>
</div>
</div>
<div class="col-xs-1"><label>&nbsp;</label>
<input type="submit" class="btn btn-primary" value='Listar!' >
</div>
</div>
</form>
23 changes: 11 additions & 12 deletions aniv/semana.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
<?PHP

$anterior=$_GET["proxima"]-1;
$proximo=$_GET["proxima"]+1;

if ($_GET["Submit"]=="Imprimir") {

session_start();
require_once ("../func_class/funcoes.php");
require_once ("../func_class/classes.php");
require_once ("../func_class/classes.php");
controle ("consulta");
echo "<style type='text/css'> <!--";
require_once ("style.css");
echo "</style>";
?>
<link rel="stylesheet" type="text/css" href="../css/bootstrap.print.css" />
<link rel="icon" type="image/gif" href="../br_igreja.jpg">
<?php
}else {
echo "<style type='text/css'> <!--";
require_once ("aniv/style.css");
Expand All @@ -26,40 +27,38 @@ function MM_jumpMenu(targ,selObj,restore){ //v3.0
//-->
</script>

<?PHP
<?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&ccedil;&atilde;o: ".$congrega->razao();
}
?>
<table cellspacing="0" id="playlistTable" class='table' summary="Top 15 songs played. Top artitst include Coldplay, Yeah Yeah Yeahs, Snow Patrol, Deeper Water, Kings of Leon, Embrace, Oasis, Franz Ferdinand, Jet, The Bees, Blue States, Kaiser Chiefs and Athlete.">
<table class='table table-striped table-bordered'>
<caption>
Lista de Aniversariantes da Semana <?PHP echo $cong_sele;?>
</caption>

<colgroup>
<col id="PlaylistCol" />
<col id="Rol" />
<col id="Nome" />
<col id="Congrega" />
<col id="albumCol" />
</colgroup>

<thead>
<tr>
<th scope="col">
<?PHP if ($_GET["Submit"]!=="Imprimir") {?>
<a href="./?escolha=aniv/semana.php&menu=top_aniv&ord=3&proxima=<?PHP echo $_GET["proxima"];?>&congregacao=<?PHP echo $_GET["congregacao"];?>" title="Ordenar por Data">Dia
<a href="./?escolha=aniv/semana.php&menu=top_aniv&ord=3&proxima=<?PHP echo $_GET["proxima"];?>&congregacao=<?PHP echo $_GET["congregacao"];?>" title="Ordenar por Data">Dia
<?PHP if ($_GET["ord"]=="3") {?>
<img src="img/s_desc.png" width="11" height="9" border="0" />
<?PHP } ?>
</a>
<?PHP
}else { echo "<strong>Dia</strong>"; }
?>
?>

</th>
<th scope="col">
Expand Down
4 changes: 2 additions & 2 deletions css/bootstrap.print.css
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,9 @@ th {
a:visited {
text-decoration: underline;
}
a[href]:after {
/* a[href]:after {
content: " (" attr(href) ")";
}
} */
abbr[title]:after {
content: " (" attr(title) ")";
}
Expand Down
2 changes: 1 addition & 1 deletion func_class/classes.php
Original file line number Diff line number Diff line change
Expand Up @@ -1024,7 +1024,7 @@ function casamento() {
}

function batismo() {
echo "Data da consulta atual {$prox_dia}/{$this->mes}/{$this->ano}";
// echo "Data da consulta atual {$prox_dia}/{$this->mes}/{$this->ano}";
$this->sql_d_dia = mysql_query ($this->query." DATE_FORMAT(e.batismo_em_aguas,'%d/%m')='{$this->dia_consulta}' ".$this->query_fim) or die (mysql_error());
while($this->dados = mysql_fetch_array($this->sql_d_dia))
{
Expand Down

0 comments on commit 9087870

Please sign in to comment.