forked from hiltonbruce/Igreja
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1c12eec
commit b18d696
Showing
7 changed files
with
116 additions
and
63 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,80 @@ | ||
<form method="post" action="" name="" id="form1"> | ||
<?php | ||
require_once 'forms/autoCompletaMembro.php'; | ||
?> | ||
<table class="table"> | ||
<tbody> | ||
<tr> | ||
<td><label>CPF:</label> | ||
<input type="text" name="cpf" id="cpf" class="form-control"></td> | ||
<td><label>Igreja que congrega</label> | ||
<input type="text" name="igreja" id="igreja_val" disabled="disabled" class="form-control"> | ||
<input type="hidden" name="escolha" value="controller/despesa.php"> | ||
<input type="hidden" name="age" value="8"></td> | ||
<td><label>Fone: </label> | ||
<input type="text" id="id_val" name="id" class="form-control" disabled="disabled" value="" /></td> | ||
<td><label>Celular:</label> | ||
<input type="text" id="cel" class="form-control" name="sigla" disabled="disabled" value="" /></td> | ||
<td colspan="2"><label>Igreja que congrega</label> | ||
<input type="text" name="igreja" id="igreja_val" disabled="disabled" class="form-control"></td> | ||
</tr> | ||
<tr> | ||
<td><label>RG:</label> | ||
<input type="text" name="rg" id="rg" class="form-control"></td> | ||
<td><label>CPF:</label> | ||
<input type="text" name="cpf" id="cpf" class="form-control"></td> | ||
<td colspan="2"><label>Função:</label> | ||
|
||
<td><label>Função:</label> | ||
<?php | ||
$bsccredor = new List_sele('funcao', 'descricao', 'idfunc'); | ||
$listaIgreja = $bsccredor->List_Selec(++$ind,$_GET['idfunc'],'class="form-control" required="required" '); | ||
echo $listaIgreja; | ||
?></td> | ||
<td><label>Dia pgto:</label> | ||
<input type="text" name="diapgto" id='dia' tabindex="<?PHP echo $ind++;?>" class="form-control" ></td> | ||
<td> | ||
<label>Fonte para pgto:</label> | ||
<?php | ||
$congr = new List_sele ("fontes", "discriminar", "fonte"); | ||
echo $congr->List_Selec (++$ind,$_GET['fonte'],' class="form-control"'); | ||
?> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td><label>Igreja onde presta o serviço:</label><?php | ||
$bsccredor = new List_sele('igreja', 'razao', 'rolIgreja'); | ||
$listaIgreja = $bsccredor->List_Selec(++$ind,$_GET['igreja'],'class="form-control" required="required" autofocus="autofocus" '); | ||
echo $listaIgreja; | ||
?></td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
<td> | ||
<label>Hieraquia:</label> | ||
<select name="hieraquia" id="" tabindex="<?PHP echo $ind++;?>" class="form-control" > | ||
<option value=""></option> | ||
<option value="1">Primeiro</option> | ||
<option value="2">Segundo</option> | ||
<option value="2">Terceiro</option> | ||
<option value="4">Quarto</option> | ||
</select></td> | ||
<td> | ||
<label>Valor:</label> | ||
<input type="text" name="valor" tabindex="<?PHP echo $ind++;?>" class="form-control" ></td> | ||
<td><label> </label> <input type="submit" name="Submit" value="Lançar..." class="btn btn-primary btn-sm" | ||
tabindex="<?PHP echo ++$ind; ?>" /></td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</form> | ||
<script type="text/javascript"> | ||
new Autocomplete("campo_estado", function() { | ||
this.setValue = function( fone, nome, celular, igreja, rol,cpf,rg ) { | ||
$("#id_val").val(fone); | ||
$("#estado_val").val(nome); | ||
$("#cel").val(celular); | ||
$("#igreja_val").val(igreja); | ||
$("#rol").val(rol); | ||
$("#cpf").val(cpf); | ||
$("#rg").val(rg); | ||
} | ||
if ( this.isModified ) | ||
this.setValue(""); | ||
if ( this.value.length < 1 && this.isNotClick ) | ||
return ; | ||
return "models/autoMembroCargos.php?q=" + this.value; | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<h1><img src="img/loading2.gif" width="30" height="30"></h1> | ||
<?PHP | ||
/** | ||
* Joseilton Costa Bruce | ||
* | ||
* LICENÇA | ||
* | ||
* Please send an email | ||
* to [email protected] so we can send you a copy immediately. | ||
* | ||
* @category Pessoal | ||
* @package | ||
* @subpackage | ||
* @copyright Copyright (c) 2008-2009 Joseilton Costa Bruce (http://) | ||
* @license http:// | ||
* Insere dados no banco do form cad_usuario.php na tabela:usuario | ||
*/ | ||
controle ("tes"); | ||
|
||
$hist = $_SESSION['valid_user'].": ".$_SESSION['nome']; | ||
|
||
$value = "'','".$_POST['idfunc']."','','1','".$_POST['rolIgreja']."','".$_POST['rol']."','',"; | ||
$value .= "'".$_POST['hieraquia']."','1','".$_POST['valor']."','".$_POST['diapgto']."','"; | ||
$value .= $_POST['fonte']."','".$hist."','NOW()'"; | ||
|
||
$dados = new insert ($value,'cargoigreja'); | ||
$dados->inserir(); | ||
echo "<h1>".mysql_insert_id()."</h>";//recupera o id do último insert no mysql | ||
|
||
//echo "<script>location.href='./?escolha=controller/despesa.php&menu=top_tesouraria&age=7'; </script>"; | ||
echo "<a href='./?escolha=controller/despesa.php&menu=top_tesouraria&age=7'>Continuar...<a>"; | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters