Skip to content

Commit

Permalink
Link printer relatório receita igrejas
Browse files Browse the repository at this point in the history
  • Loading branch information
hiltonbruce committed Mar 23, 2017
1 parent 367eadb commit a202207
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 15 deletions.
1 change: 1 addition & 0 deletions alt_senha.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
// o usuário não tentou efetuar o login ainda ou saiu
// fornece um formulário para efetuar o login
?>

<fieldset>
<legend>Atualize Senha Agora!</legend>
<form id="form1" name="form1" method="post" action="">
Expand Down
3 changes: 3 additions & 0 deletions help/tes/receitaImprimir.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<?php
if ($_SESSION["setor"]!='2' && $_SESSION["setor"]!='99' ) {
exit;//Não exibe em setor sem autorização
}
//Opções de impressões para o script /tesouraria/receita.php
switch ($rec) {
case '13':
Expand Down
2 changes: 1 addition & 1 deletion help/tes/saldoIgrejas.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
if (empty($_GET['ano'])) {
$ano = date ('Y ');
}else {
$ano = (int)$_GET['ano'];
$ano = intval($_GET['ano']);
}

//Loops para o corpo da tabela
Expand Down
14 changes: 7 additions & 7 deletions models/atualconta.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ function __construct($codigo='',$ultimolanc='',$creditar='') {
*$creditar -> acesso da Cta a ser creditada
*/
$cod = explode(".",$codigo);
$this->cod1 = $cod[0];
$this->cod2 = $cod[0].'.'.$cod[1];
$this->cod3 = $cod[0].'.'.$cod[1].'.'.$cod[2];
$this->cod4 = $cod[0].'.'.$cod[1].'.'.$cod[2].'.'.$cod[3];
$this->cod5 = $cod[0].'.'.$cod[1].'.'.$cod[2].'.'.$cod[3].'.'.$cod[4];
$this->ultimolanc = $ultimolanc;//id deste lançamento
$this->creditar = $creditar;
$this->cod1 = $cod[0];
$this->cod2 = $cod[0].'.'.$cod[1];
$this->cod3 = $cod[0].'.'.$cod[1].'.'.$cod[2];
$this->cod4 = $cod[0].'.'.$cod[1].'.'.$cod[2].'.'.$cod[3];
$this->cod5 = $cod[0].'.'.$cod[1].'.'.$cod[2].'.'.$cod[3].'.'.$cod[4];
$this->ultimolanc = $ultimolanc;//id deste lançamento
$this->creditar = $creditar;
}

function atualizar($valor,$dc,$igreja,$data) {
Expand Down
9 changes: 6 additions & 3 deletions models/autocomplete.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,13 @@
break;
}
$img='../img_membros/'.$campo['rol'].'.jpg';//PHP verifica se existe
if (!file_exists($img)){
$img='img_membros/ver_foto.jpg';//Localiza莽茫o p/ JavaScript
}else{
$IMG='../img_membros/'.$campo['rol'].'.JPG';//PHP verifica se existe
if (file_exists($img)){
$img='img_membros/'.$campo['rol'].'.jpg';//Localiza莽茫o p/ JavaScript
}elseif (file_exists($IMG)){
$img='img_membros/'.$campo['rol'].'.JPG';//Localiza莽茫o p/ JavaScript
}else{
$img='img_membros/ver_foto.jpg';//Localiza莽茫o p/ JavaScript
}
$html ='<img class="thumb" src="'.$img.'" title="Rol: '.$rol.'" style="width:24px;height:32px;"> '.$html;
echo "<li onselect=\"this.setText('$estado').setValue('$id','$endereco','$sigla','$rol');\">$html ($sigla)</li>\n";
Expand Down
9 changes: 6 additions & 3 deletions models/autodizimo.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,13 @@
}

$img='../img_membros/'.$campo['rol'].'.jpg';//PHP verifica se existe
if (!file_exists($img)){
$img='img_membros/ver_foto.jpg';//Localiza莽茫o p/ JavaScript
}else{
$IMG='../img_membros/'.$campo['rol'].'.JPG';//PHP verifica se existe
if (file_exists($img)){
$img='img_membros/'.$campo['rol'].'.jpg';//Localiza莽茫o p/ JavaScript
}elseif (file_exists($IMG)){
$img='img_membros/'.$campo['rol'].'.JPG';//Localiza莽茫o p/ JavaScript
}else{
$img='img_membros/ver_foto.jpg';//Localiza莽茫o p/ JavaScript
}

$html ='<img src="'.$img.'" title="Rol: '.$campo['rol'].'" style="width:24px;height:32px;"> '.$html;
Expand Down
2 changes: 1 addition & 1 deletion views/tesouraria/saldoIgrejas.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//Oculta o botao imprimir para n�o sair na impress�o
$linkImpressao ='tesouraria/receita.php/?rec=13';
if ($_GET['rec']!='13') {
echo '<a href="'.$linkImpressao.'" ';
echo '<a href="'.$linkImpressao.'&ano='.$ano.'" ';
echo 'target="_black" title="Imprimir demonstrativo">';
echo '<button class="btn btn-default glyphicon glyphicon-print"> </button></a>&nbsp;';
$imprimir = '';
Expand Down

0 comments on commit a202207

Please sign in to comment.