Skip to content

Commit

Permalink
Varias Atualizações/correção cad usuário
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseilton Costa Bruce authored and Joseilton Costa Bruce committed Sep 13, 2019
1 parent 2c0897c commit 980fe9a
Show file tree
Hide file tree
Showing 12 changed files with 147 additions and 92 deletions.
28 changes: 28 additions & 0 deletions forms/sec/formAutorizBatismo.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<fieldset>
<legend>Autoriza&ccedil;&atilde;o de Menores ao Batismo</legend>
<div class="row">
<div class="col-xs-12">
<label>Nome da crian&ccedil;a:</label>
<input type="text" name="name" class="form-control" placeholder="Nome" tabindex="<?PHP echo ++$ind; ?>" >
</div>
<div class="col-xs-2">
<label>Congrega&ccedil;&atilde;o:</label>
<?PHP
$congr = new List_sele ("igreja","razao","rolIgreja");
echo $congr->List_Selec (++$ind,'',' class="form-control" ');
?>
</div>
<div class="col-xs-8">
<label>Nome do Respons&aacute;vel, do Pai ou da M&atilde;e:</label>
<input type="text" name="pais" class="form-control" placeholder="Nome" tabindex="<?PHP echo ++$ind; ?>" >
</div>
<div class="col-xs-2">
<label>Data:</label>
<input type="date" name="date" class="form-control" placeholder=".col-xs-3" value="<?php echo date('Y-m-d');?>">
</div>
<div class="col-xs-10">
<label>Secretário da Congregão:</label>
<input type="text" name="secCong" class="form-control" placeholder="Secretário da congregação">
</div>
</div>
</fieldset>
31 changes: 5 additions & 26 deletions forms/usuario.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@
echo $setor->List_Setor(++$ind,'class="form-control"',$_SESSION['setor']);
?>
</div>
<div class="col-xs-4">
<label>Perfil:</label>
<input name="perfil" type="text" required="required" class="form-control"
id="perfil" tabindex="<?PHP echo ++$ind; ?>" />
</div>
<div class="col-xs-4">
<label>N&iacute;vel de acesso</label>
<select name='nivel' class='form-control' tabindex='<?PHP echo ++$ind; ?>'>
Expand All @@ -49,31 +54,5 @@ class="btn btn-primary" name="Submit" value="Cadastrar..."
<input name="escolha" type="hidden" value="tab_auxiliar/cad_usuario.php" />
</div>
</div>
<table class="table">
<tbody>
<tr>
<td colspan="2">
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
<td>
</td>
</tr>
</tbody>
</table>
</form>
</fieldset>
23 changes: 23 additions & 0 deletions func_class/funcoes.php
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,29 @@ function id_corrente ($val_link) {
}
}

function item_info ($val_link) {
/* Define se este bot�o ou limk � o corrente e o define para tal com mudan�a
* da cor de fundo. Isto deve ser definido no script de CSS
*/
if ((strstr($_GET["escolha"], $val_link) || strstr($_POST["escolha"],$val_link))) {
//echo "id='current'";
return 'list-group-item-info';
}else {
return '';
}
}

function item_ativo ($val_link,$variavel) {
/* Define se este bot�o ou limk � o corrente e o define para tal com mudan�a
* da cor de fundo. Isto deve ser definido no script de CSS
*/
if ($variavel==$val_link) {
return 'list-group-item-info';
}else {
return '';
}
}

function id_left ($val_link) {
/* Define se este bot�o ou limk � o corrente e o define para tal com mudan�a
* da cor de fundo. Isto deve ser definido no script de CSS
Expand Down
Binary file modified img/AssDeusEnvelope.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/logoADParaiba.xcf
Binary file not shown.
Binary file modified img/logoCarta.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
108 changes: 59 additions & 49 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
date_default_timezone_set('America/Recife');
setlocale( LC_ALL, 'pt_BR.ISO-8859-1', 'pt_BR', 'Portuguese_Brazil');
setlocale(LC_TIME, 'pt_BR', 'pt_BR.utf-8', 'pt_BR.utf-8', 'portuguese');

function __autoload ($classe) {
$pos = strpos($classe, '_');
if ($pos === false) {
Expand Down Expand Up @@ -74,7 +74,7 @@ function __autoload ($classe) {
<link rel="stylesheet" type="text/css" media="screen, projection" href="tabs.css" />
<link rel="stylesheet" type="text/css" media="screen, projection" href="css/calendario.css" />
<link type="text/css" rel="stylesheet" media="all" href="chat/css/chat.css" />
<link rel="stylesheet" type="text/css" media="screen, projection" href="style.css" />
<link rel="stylesheet" type="text/css" media="screen, projection" href="style.css" />
<link rel="stylesheet" type="text/css" href="css/autocomplete.css">

<link href="css/easy-autocomplete.min.css" rel="stylesheet" type="text/css">
Expand Down Expand Up @@ -108,54 +108,64 @@ function __autoload ($classe) {
<span class="list-group-item active">
<h4 class="list-group-item-heading">Administra&ccedil;&atilde;o</h4>
</span>
<ul id="categories">
<li <?PHP id_left ("dados_pessoais");?> ><a href="./?escolha=adm/dados_pessoais.php">
<span class="glyphicon glyphicon-user text-info" ></span>&nbsp;Membros</a>
</li>
<li <?PHP id_left ("cadastro_membro");?> ><a href="./?escolha=adm/cadastro_membro.php&uf=PB">
<span class="glyphicon glyphicon-download-alt text-info" ></span>&nbsp;Novo Cadastro</a>
</li>
<li <?PHP echo li_ativo($secGET, '1'); ?>><a href="./?escolha=controller/secretaria.php&sec=1&uf=PB">
<span class="glyphicon glyphicon-hand-right text-info" >
</span>&nbsp;Novos&nbsp;Convertidos</a>
</li>
<li <?PHP id_left ("igreja/");?>><a href="./?escolha=igreja/list_membro.php&menu=top_igreja">
<span class="glyphicon glyphicon-fire text-info">
</span>&nbsp;Igrejas</a>
</li>
<li <?PHP echo li_ativo($secGET, '2');?>>
<a href="./?escolha=controller/secretaria.php&sec=2&mes=<?PHP echo date('m');?>">
<span class="glyphicon glyphicon-calendar text-info" ></span>&nbsp;Agenda</a>
</li>
<li <?PHP id_left ("tab_auxiliar/");?>>
<a href="./?escolha=tab_auxiliar/cadastro_bairro.php"><span class="glyphicon glyphicon-picture text-info" >
</span>&nbsp;Cadastrar Bairro</a>
</li>
<li <?PHP id_left ("relatorio/");?>>
<a href="./?escolha=relatorio/formularios.php&menu=top_formulario">
<span class="glyphicon glyphicon-list-alt text-info" >
</span>&nbsp;Ficha, Recibo e Certid&otilde;es</a>
</li>
<li <?PHP id_left ("aniv/");?>>
<a href="./?escolha=aniv/aniversario.php&menu=top_aniv">


<div class="list-group">
<a type="button" href="./?escolha=adm/dados_pessoais.php"
class="list-group-item <?PHP echo item_info ("dados_pessoais");?>">
<span class="glyphicon glyphicon-user text-info" ></span>&nbsp;Membros
</a>

<a type="button" href="./?escolha=adm/cadastro_membro.php&uf=PB"
class="list-group-item <?PHP echo item_info ("cadastro_membro");?>">
<span class="glyphicon glyphicon-download-alt text-info" ></span>&nbsp;Novo Cadastro
</a>
<a type="button" href="./?escolha=controller/secretaria.php&sec=1&uf=PB"
class="list-group-item <?PHP echo item_ativo ($secGET, '1');?>">
<span class="glyphicon glyphicon-hand-right text-info" >
</span>&nbsp;Novos&nbsp;Convertidos
</a>
<a type="button" href="./?escolha=igreja/list_membro.php&menu=top_igreja"
class="list-group-item <?PHP echo item_info ("igreja/");?>">
<span class="glyphicon glyphicon-fire text-info"></span>&nbsp;Igrejas
</a>
<a type="button" href="./?escolha=controller/secretaria.php&sec=2&mes=<?PHP echo date('m');?>"
class="list-group-item <?PHP echo item_ativo ($secGET, '2');?>">
<span class="glyphicon glyphicon-calendar text-info" ></span>&nbsp;Agenda
</a>
<a type="button" href="./?escolha=tab_auxiliar/cadastro_bairro.php"
class="list-group-item <?PHP echo item_info ("tab_auxiliar/");?>">
<span class="glyphicon glyphicon-picture text-info" >
</span>&nbsp;Cadastrar Bairro
</a>
<a type="button" href="./?escolha=relatorio/formularios.php&menu=top_formulario"
class="list-group-item <?PHP echo item_info ("relatorio/");?>">
<span class="glyphicon glyphicon-list-alt text-info" >
</span>&nbsp;Ficha, Recibo e Certid&otilde;es
</a>
<a type="button" href="./?escolha=aniv/aniversario.php&menu=top_aniv"
class="list-group-item <?PHP echo item_info ("aniv/");?>">
<span class="glyphicon glyphicon-gift text-info" ></span>
&nbsp;Aniversariantes</a>
</li>
<li <?PHP id_left ("caledario.php");?>><a href="./?escolha=calendario/caledario.php"
title="Calend&aacute;rio da Sede e Congrega&ccedil;&otilde;es">
<span class="glyphicon glyphicon-tree-deciduous text-info" ></span>
&nbsp;Santa&nbsp;Ceia</a>
</li>
<?php
if ($_SESSION['nivel']>'10') {
$selItem = ($_GET['rec']=='25' || $_GET['rec']=='26') ? 'class="selected"': '' ;
?>
<li <?PHP echo $selItem;?>><a href="./?escolha=tesouraria/receita.php&menu=top_tesouraria&rec=25"
><span class="glyphicon glyphicon-save-file text-info" ></span>&nbsp;Backup</a>
</li>
<?php
}
?></ul></ul>
&nbsp;Aniversariantes
</a>
<a type="button" href="./?escolha=calendario/caledario.php"
class="list-group-item <?PHP echo item_info ("caledario.php");?>">
<span class="glyphicon glyphicon-tree-deciduous text-info" ></span>
&nbsp;Santa&nbsp;Ceia
</a>
<?php
if ($_SESSION['nivel']>'10') {
$selItem = ($_GET['rec']=='25' || $_GET['rec']=='26') ? 'list-group-item-info': '' ;
?>
<a type="button" href="./?escolha=tesouraria/receita.php&menu=top_tesouraria&rec=25"
class="list-group-item <?PHP echo item_info ("");?>">
<span class="glyphicon glyphicon-save-file text-info" ></span>&nbsp;Backup
</a>
<?php
}
?>
</div>
</ul>
<?PHP
require_once ("autentica.php");
?>
Expand Down
2 changes: 1 addition & 1 deletion models/cad_usuario.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
if ($_SESSION["setor"]==$_POST["setor"] || $_SESSION["setor"]=='99') {
$hist = $_SESSION['valid_user'].": ".$_SESSION['nome'];
$value = '"","'.$_POST["nome"].'","'.$_POST["cpf"].'","'.$_POST["nivel"].'",';
$value .='"'.$_POST["setor"].'","'.$_POST["cargo"].'","'.md5($_POST["senha"]).'",';
$value .='"'.$_POST["setor"].'","'.$_POST["perfil"].'","'.$_POST["cargo"].'","'.md5($_POST["senha"]).'",';
$value .='"1","'.$hist.'",NOW()';
$dados = new insert ($value,"usuario");
$dados->inserir();
Expand Down
7 changes: 6 additions & 1 deletion relatorio/carta_print.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,12 @@ function __autoload ($classe) {
<div id="pastor"><?PHP echo strtoupper(toUpper($igreja->pastor()));?><br />
<?php echo $cargosPR->descricao();?>
</div>
<div id="secretario"><?PHP echo strtoupper($secretario);?><br />
<div id="secretario">
<?PHP
$cargoSec = ($secretario!='') ? cargo ($sec1->rol())['1'].' ' : '' ;
echo $cargoSec.strtoupper($secretario);
?>
<br />
<?php echo $_POST["secretario"].$cargo;?> </div>
<br>

Expand Down
4 changes: 2 additions & 2 deletions relatorio/cert_apresent.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function MM_jumpMenu(targ,selObj,restore){ //v3.0
</div></div>
<table width="419" border="0">
<tr>
<td><label>Congrega��o dos Pais:</label>
<td><label>Congrega&ccedil;&atilde;o dos Pais:</label>
<?PHP
$congr = new List_sele ("igreja","razao","id_cong");
echo $congr->List_Selec ($ind++,'','class="form-control"');
Expand Down Expand Up @@ -119,7 +119,7 @@ function MM_jumpMenu(targ,selObj,restore){ //v3.0
<label>Data da Apresenta&ccedil;&atilde;o:</label>
<input name="dt_apresent" type="text" id="data" class="form-control" tabindex="<?PHP echo $ind++;?>"/>
</td>
<td><label>Nmero da Certido:</label>
<td><label>N&uacute;mero da Certid&atilde;o:</label>
<input name="num_cert" type="text" class="form-control" id="num_cert" tabindex="<?PHP echo $ind++;?>" />
</td>
</tr>
Expand Down
13 changes: 3 additions & 10 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,6 @@ div.info1 {
font-size:130%;
}

div.info1 a, div.info1 a:link, div.info1 a:visited { color:#999; }

div.info1 { color: #665; }

div .leftpanel {
Expand All @@ -142,8 +140,6 @@ div .leftpanel {
float:left;
}

a, a:visited, a:link { color:#000000; text-decoration:underline; }

div .rightpanel {
width:23%;
float:right;
Expand Down Expand Up @@ -217,10 +213,6 @@ div.rightpanel .inquiry, div.leftpanel .inquiry {
text-align:justify;
}

.inquiry a, .inquiry a:link, .inquiry a:visited, .inquiry a:hover, .mainpanel a {
text-decoration:none;
}

fieldset {
margin: 1em 0;
padding: 4px;
Expand All @@ -238,9 +230,10 @@ legend {
#lst_cad p{
padding:2px 1px; margin: 0;
font: 12px Arial;
background-color:#89DFF4; color:#000066;
background-color:#89DFF4;
color:#000066;
}

a, a:visited, a:link { color:#000000; text-decoration:none; }
.box {
width: 100%;
background: url(img/bottom-left.gif) no-repeat left bottom;
Expand Down
23 changes: 20 additions & 3 deletions top_formulario.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,29 @@
<div>
<a <?PHP $b=id_corrente ("ficha_limpa");?> href="relatorio/formcadastro.php" target="_blank">
<button type="button" class="btn btn-info btn-sm <?php echo $b;?>">Ficha Membro</button></a>
<a <?PHP $b=id_corrente ("apresent");?> href="./?escolha=relatorio/cert_apresent.php&menu=top_formulario">
<button type="button" class="btn btn-info btn-sm <?php echo $b;?>">Apresenta&ccedil;&atilde;o</button></a>

<div class="btn-group" role="group">
<button type="button" class="btn btn-info btn-sm dropdown-toggle
<?PHP
echo id_corrente ("apresent");
echo id_corrente ("formAutorizBatismo");
?>"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Crian&ccedil;as<span class="caret"></span></button>
<ul class="dropdown-menu">
<li class="<?PHP echo id_corrente ("apresent");?>" ><a href="./?escolha=relatorio/cert_apresent.php&menu=top_formulario">
Certid&atilde;o de Apresenta&ccedil;&atilde;o</a></li>
<li class="<?PHP echo id_corrente ("formAutorizBatismo");?>" >
<a href="./?escolha=forms/sec/formAutorizBatismo.php&menu=top_formulario">
Autoriza&ccedil;&atilde;o de Batismo</a></li>
</ul>
</div>

<a <?PHP $b=id_corrente ("recibos");?> href="./?escolha=relatorio/recibos.php&menu=top_formulario&tipo=1">
<button type="button" class="btn btn-info btn-sm <?php echo $b;?>">Recibos</button></a>
<a <?PHP $b=id_corrente ("batismo");?> href="./?escolha=relatorio/batismo.php&menu=top_formulario">
<button type="button" class="btn btn-info btn-sm <?php echo $b;?>">Batismo</button></a>
<button type="button" class="btn btn-info btn-sm <?php echo $b;?>"
data-toggle="tooltip" data-placement="top" title="Emiss&atilde;o de Certificado de Batismo">Batismo</button></a>
<a <?PHP $b=id_corrente ("consagracao");?> href="./?escolha=relatorio/consagracao.php&menu=top_formulario">
<button type="button" class="btn btn-info btn-sm <?php echo $b;?>">Consagra&ccedil;&atilde;o</button></a>
</div>

0 comments on commit 980fe9a

Please sign in to comment.