Skip to content

Commit

Permalink
Nome do Aplicativo e oração
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseilton Costa Bruce authored and Joseilton Costa Bruce committed Sep 15, 2020
1 parent 9524105 commit c3ea0de
Show file tree
Hide file tree
Showing 6 changed files with 156 additions and 161 deletions.
207 changes: 107 additions & 100 deletions agendaSec/eventform.php
Original file line number Diff line number Diff line change
@@ -1,52 +1,56 @@
<?php
session_start();
require("config.php");
require("./lang/lang.admin." . LANGUAGE_CODE . ".php");
require("functions.php");
require("config.php");
require("./lang/lang.admin." . LANGUAGE_CODE . ".php");
require("functions.php");

if (!empty($_SESSION['valid_user'])) {
require "../func_class/classes.php";
function __autoload ($classe) {
$pos = strpos($classe, '_');
if ($pos === false) {
$nomeClasse = $classe;
$dir='';
} else {
list($dir,$nomeClasse) = explode('_', $classe);
}
require "../func_class/classes.php";
function __autoload($classe)
{
$pos = strpos($classe, '_');
if ($pos === false) {
$nomeClasse = $classe;
$dir = '';
} else {
list($dir, $nomeClasse) = explode('_', $classe);
}
//$dir = strtr( $classe, '_','/' );
if (file_exists("../models/$dir/$classe.class.php")){
require_once ("../models/$dir/$classe.class.php");
}elseif (file_exists("models/$classe.class.php")){
require_once ("../models/$classe.class.php");
if (file_exists("../models/$dir/$classe.class.php")) {
require_once("../models/$dir/$classe.class.php");
} elseif (file_exists("models/$classe.class.php")) {
require_once("../models/$classe.class.php");
}
//echo "<h1>$classe ** $dir</h1>";
//echo "<h1>$classe ** $dir</h1>";
}

//$auth = auth();
$id = intval($_GET['id']);
$uid = $_SESSION['authdata']['uid'];
//print_r($_SESSION);
//$auth = auth();
// $id = intval($_GET['id']);
$id = (empty($_GET['id'])) ? '' : intval($_GET['id']);
$uid = (empty($_SESSION['authdata']['uid'])) ? '' : $_SESSION['authdata']['uid'];
//print_r($_SESSION);

if (empty($id)) {
displayEditForm('Add', $uid);
} else {
$sql = "SELECT * FROM " . DB_TABLE_PREFIX . "mssgs WHERE id = $id";
$result = mysql_query($sql) or die(mysql_error());
$row = mysql_fetch_assoc($result);
if ( $_SESSION['setor'] == $row['setor'] ) {
if ($_SESSION['setor'] == $row['setor']) {
displayEditForm('Edit', $uid, $id);
} else {
echo $lang['accessdenied'];
}
}
} else {
echo $lang['accessdenied'];
exit;
exit;
}

function displayEditForm($mode, $uid, $id="")
$lang['titlemissing'] = (empty($lang['titlemissing'])) ? '' : $lang['titlemissing'];

function displayEditForm($mode, $uid, $id = "")
{
global $lang;
if ($mode == "Add") {
Expand Down Expand Up @@ -87,89 +91,92 @@ function displayEditForm($mode, $uid, $id="")
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

<head>
<title><?php echo $pgtitle;?></title>
<title><?php echo $pgtitle; ?></title>
<link rel="stylesheet" type="text/css" href="../css/bootstrap.css">
<script language="JavaScript">
function formSubmit() {
if (document.eventForm.title.value != "") {
document.eventForm.method = "post";
document.eventForm.action = "eventsubmit.php<?php echo $qstr;?>";
document.eventForm.submit();
} else {
alert("<?php echo $lang['titlemissing'];?>");
function formSubmit() {
if (document.eventForm.title.value != "") {
document.eventForm.method = "post";
document.eventForm.action = "eventsubmit.php<?php echo $qstr; ?>";
document.eventForm.submit();
} else {
alert("<?php echo $lang['titlemissing']; ?>");
}
}
}
</script>
</head>
<body class="text-left" style="margin:10px auto; width: 90%;" >
<h3><?php echo $headerstr;?></h3>
<form name="eventForm" >
<label>
<?php echo $lang['date'];?>
</label>
<div class="row">
<?php
echo '<div class="col-xs-3">';
dayPullDown($d);
echo '</div><div class="col-xs-5">';
monthPullDown($m, $lang['months']);
echo '</div><div class="col-xs-4">';
yearPullDown($y);
echo '</div>';
?>
</div>
<label><?php echo $lang['title'];?></label>
<input type="text" name="title" class='form-control input-sm'
value="<?php echo $title ?>" >
<input type="hidden" name="uid" value="<?=$uid?>">
<label><?php echo $lang['text'];?></label>
<textarea rows=3 name="text" class='form-control input-sm'
><?php echo $text;?></textarea>
<strong>Hor&aacute;rio:</strong>
<div class="row">
<?php
echo '<div class="col-xs-3">';
hourPullDown($shour, "start");
echo '</div><div class="col-xs-1">';
echo '<b>:</b>';
echo '</div><div class="col-xs-3">';
minPullDown($sminute, "start");
echo '</div><div class="col-xs-3">';
$spm = ' selected';
amPmPullDown($spm, "start");
echo '</div>';
?>
</div>
<div class="row">
<?php
echo '<div class="col-xs-3">';
hourPullDown($ehour, "end");
echo '</div><div class="col-xs-1">';
echo '<b>:</b>';
echo '</div><div class="col-xs-3">';
minPullDown($eminute, "end");
echo '</div><div class="col-xs-3">';
$epm = ' selected';
amPmPullDown($epm, "end");
echo '</div>';
?>
</div>
<label>Igreja:</label>
<?php
$congr = new List_sele ("igreja","razao","igreja");
echo $congr->listSedeCong (++$ind,$i,' class="form-control" ');
?>
</div>
<br />
<div class="btn-group" role="group" aria-label="...">
<input type="button" class="btn btn-primary" value="<?php echo $buttonstr;?>"
onClick="formSubmit()">
<input type="button" class='btn btn-primary' value="<?php echo $lang['cancel'];?>"
onClick="window.close();">
</div>
</form>

<body class="text-left" style="margin:10px auto; width: 90%;">
<h3><?php echo $headerstr; ?></h3>
<form name="eventForm">
<label>
<?php
if (!empty($lang['date'])) {
echo $lang['date'];
}
?>
</label>
<div class="row">
<?php
echo '<div class="col-xs-3">';
dayPullDown($d);
echo '</div><div class="col-xs-5">';
monthPullDown($m, $lang['months']);
echo '</div><div class="col-xs-4">';
yearPullDown($y);
echo '</div>';
?>
</div>
<label><?php echo $lang['title']; ?></label>
<input type="text" name="title" class='form-control input-sm' value="<?php echo $title ?>">
<input type="hidden" name="uid" value="<?= $uid ?>">
<label><?php echo $lang['text']; ?></label>
<textarea rows=3 name="text" class='form-control input-sm'><?php echo $text; ?></textarea>
<strong>Hor&aacute;rio:</strong>
<div class="row">
<?php
echo '<div class="col-xs-3">';
hourPullDown($shour, "start");
echo '</div><div class="col-xs-1">';
echo '<b>:</b>';
echo '</div><div class="col-xs-3">';
minPullDown($sminute, "start");
echo '</div><div class="col-xs-3">';
$spm = ' selected';
amPmPullDown($spm, "start");
echo '</div>';
?>
</div>
<div class="row">
<?php
echo '<div class="col-xs-3">';
hourPullDown($ehour, "end");
echo '</div><div class="col-xs-1">';
echo '<b>:</b>';
echo '</div><div class="col-xs-3">';
minPullDown($eminute, "end");
echo '</div><div class="col-xs-3">';
$epm = ' selected';
amPmPullDown($epm, "end");
echo '</div>';
?>
</div>
<label>Igreja:</label>
<?php
$congr = new List_sele("igreja", "razao", "igreja");
echo $congr->listSedeCong(++$ind, $i, ' class="form-control" ');
?>
</div>
<br />
<div class="btn-group" role="group" aria-label="...">
<input type="button" class="btn btn-primary" value="<?php echo $buttonstr; ?>" onClick="formSubmit()">
<input type="button" class='btn btn-primary' value="<?php echo $lang['cancel']; ?>" onClick="window.close();">
</div>
</form>
</body>

</html>
<?php
}
Expand All @@ -194,4 +201,4 @@ function getPullDownTimeValues($time, &$hour, &$minute, &$pm)
$pm = false;
}
}
?>
?>
Binary file modified img/Centenario2.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.
Binary file modified img/Eliu.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 modified img/debian.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.
104 changes: 46 additions & 58 deletions relatorio/batismo.php
Original file line number Diff line number Diff line change
@@ -1,60 +1,48 @@
<div class="bs-callout bs-callout-info" id="callout-type-dl-truncate">
<h4>Certificado de Batismo</h4>
<form method="post" action="views/secretaria/batismoCertificado.php" target="_blank">
<p>
<div class="row">
<div class="col-xs-8">
<label>Nome:</label>
<input type="text" name='nome' id='estado' class='form-control'
placeholder="Busca no cadastro da Igreja!" value='<?php echo $_GET['nome'];?>'
autofocus='autofocus' tabindex="<?php echo ++$ind;?>">
</div>
<div class="col-xs-2">
<label>Rol:</label>
<input type="text" id='detalhe2' class="form-control" placeholder="N&ordm; do membro na igreja"
name='rol' value='<?php echo $_GET['rol'];?>' required='required'>
</div>
<div class="col-xs-6">
<label>Fun&ccedil;&atilde;o e Congrega&ccedil;&atilde;o</label>
<input type="text" class="form-control" id='acesso2'>
</div>
<div class="col-xs-3">
<label>Data do Batismo</label>
<input type="date" name="dtbatismo" class="form-control" id='id_val2' >
<input type="hidden" name="pastor" value="<?PHP echo strtr( $igSede->pastor(), 'áàãâéêíóõôúüç','aaaaeeiooouuc');?>" >
</div>
<div class="col-xs-1">
<label>Sexo</label>
<input type="text" name="sexo" class="form-control" id='sexo' placeholder="M ou F" >
</div>
<div class="col-xs-6">
<label>Secret&aacute;rio:..</label>
<select name="secretario" id="secretario" class="form-control" tabindex="<?PHP echo $ind++;?>">
<option value="<?PHP echo fun_igreja ($igSede->secretario1());?>"><?PHP echo fun_igreja ($igSede->secretario1());?></option>
<option value="<?PHP echo fun_igreja ($igSede->secretario2());?>"><?PHP echo fun_igreja ($igSede->secretario2());?></option>
</select>
</div>
<div class="col-xs-3">
<label>&nbsp;</label>
<button type="submit" class="btn btn-primary">Exibir...</button>
</div>
</div>
</p>
</form>
</div>
<script type="text/javascript">
new Autocomplete("estado", function() {
this.setValue = function( rol,nome,celular,detalhe,sexo ) {
$("#id_val2").val(rol);
$("#nome2").val(nome);
$("#acesso2").val(celular);
$("#detalhe2").val(detalhe);
$("#sexo").val(sexo);
}
if ( this.isModified )
this.setValue("");
if ( this.value.length < 1 && this.isNotClick )
return ;
return "models/autocompBatismo.php?q=" + this.value;
});
</script>
<form method="post" action="views/secretaria/batismoCertificado.php" target="_blank">
<p>
<div class="row">
<table class="table">
<tr>
<?php
require_once "forms/buscaRecMembro.php";
?>
</tr>
</table>
<!-- <div class="col-xs-8">
<label>Nome:</label>
<input type="text" name='nome' id='estado' class='form-control' placeholder="Busca no cadastro da Igreja!" value='<?php echo $_GET['nome']; ?>' autofocus='autofocus' tabindex="<?php echo ++$ind; ?>">
</div>
<div class="col-xs-2">
<label>Rol:</label>
<input type="text" id='detalhe2' class="form-control" placeholder="N&ordm; do membro na igreja" name='rol' value='<?php echo $_GET['rol']; ?>' required='required'>
</div> -->
<div class="col-xs-6">
<label>Fun&ccedil;&atilde;o e Congrega&ccedil;&atilde;o</label>
<input type="text" class="form-control" id='acesso2'>
</div>
<div class="col-xs-3">
<label>Data do Batismo</label>
<input type="date" name="dtbatismo" class="form-control" id='id_val2'>
<input type="hidden" name="pastor" value="<?PHP echo strtr($igSede->pastor(), 'áàãâéêíóõôúüç', 'aaaaeeiooouuc'); ?>">
</div>
<div class="col-xs-1">
<label>Sexo</label>
<input type="text" name="sexo" class="form-control" id='sexo' placeholder="M ou F">
</div>
<div class="col-xs-6">
<label>Secret&aacute;rio:..</label>
<select name="secretario" id="secretario" class="form-control" tabindex="<?PHP echo $ind++; ?>">
<option value="<?PHP echo fun_igreja($igSede->secretario1()); ?>"><?PHP echo fun_igreja($igSede->secretario1()); ?></option>
<option value="<?PHP echo fun_igreja($igSede->secretario2()); ?>"><?PHP echo fun_igreja($igSede->secretario2()); ?></option>
</select>
</div>
<div class="col-xs-3">
<label>&nbsp;</label>
<button type="submit" class="btn btn-primary">Exibir...</button>
</div>
</div>
</p>
</form>
</div>
6 changes: 3 additions & 3 deletions views/login.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="login">
<figure class="highlight text-center">
<h3 class="text-center"><?php echo NOMESYS; ?></h3>
<!-- <img data-holder-rendered="true" src="img/Eliu.png" style="width: 50%;" alt="Logo Eliu"> -->
<img data-holder-rendered="true" src="img/Eliu.png" style="width: 50%;" alt="Logo Eliu">
<h3 class="text-center"><?php //echo NOMESYS; ?></h3>
<pre>
<pre>
<h5>Fazer login para prosseguir</h5>
Expand Down Expand Up @@ -31,7 +31,7 @@
<div class="item active">
<img data-holder-rendered="true" src="img/debian.png" alt="900x500" width="333" data-src="holder.js/900x500/auto/#666:#666">
<div class="carousel-caption">
<h3>Joseilton Costa Bruce</h3>
<h4>Joseilton Costa Bruce</h4>
<p>[email protected]</p>
</div>
</div>
Expand Down

0 comments on commit c3ea0de

Please sign in to comment.