forked from hiltonbruce/Igreja
-
Notifications
You must be signed in to change notification settings - Fork 0
/
top_dados.php
executable file
·74 lines (73 loc) · 2.79 KB
/
top_dados.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?php
require_once 'views/secretaria/menuTopDados.php';
$foco = (empty($_GET['bsc_rol']) || empty($_GET['campo'])) ? 'autofocus="autofocus"' : '';
?>
<div class="bs-callout bs-callout-info" >
<form id="form1" name="form1" method="get" action="" >
<h4>Busca</h4>
<div class="row">
<div class="col-xs-2">
<label>
<?PHP
echo $campo_rol;//valor recebido do script index.php
$anterior=$bsc_rol-1;
$proximo=$bsc_rol+1;
if ($anterior<=0)
{
$anterior=0;
}
?>
</div>
<div class="col-xs-2">
</label>
<input name="bsc_rol" type="text" id="inputTwo" class="form-control input-sm"
<?PHP echo $foco;?> title="Insira o Rol" value="<?PHP echo $bsc_rol; ?>" tabindex="<?php echo ++$ind;?>"/>
<input name="escolha" type="hidden" id="escolha" value="adm/dados_pessoais.php" />
</div>
<div class="col-xs-8">
<div class="btn-group" role="group" aria-label="...">
<a href="./?escolha=<?PHP echo $_GET["escolha"];?>&bsc_rol=<?PHP echo $anterior;?>"
class="btn btn-default btn-sm" >
<span class="glyphicon glyphicon-chevron-left"></span>
Registro Anterior</a>
<a href="./?escolha=<?PHP echo $_GET["escolha"];?>&bsc_rol=<?PHP echo $proximo;?>"
class="btn btn-default btn-sm" > Próximo Registro
<span class="glyphicon glyphicon-chevron-right"></span>
</a>
<?PHP if ($_GET["escolha"]<>"adm/cartao.php" && $_GET["escolha"]<>"adm/dados_cartas.php") {//O script cartao_print.php possui op��o pr�pria para impress�o ?>
<a href="relatorio/ficha.php?rol=<?php echo $bsc_rol;?>"
title="Imprimir ficha completa" target='_black' class="btn btn-primary btn-sm" >
<span class="glyphicon glyphicon-print"></span> Ficha 1
</a>
<a href="./views/fichamembro.php?rol=<?php echo $bsc_rol;?>"
title="Imprimir ficha completa" target='_black' class="btn btn-primary btn-sm" >
<span class="glyphicon glyphicon-print"></span> Ficha 2
</a>
<?PHP } ?>
</div>
</div>
<?php
require_once "forms/sec/EasyAutocomplete.php";
?>
<div class="col-xs-2"><label> </label>
<input type="submit" name="Submit2" class="btn btn-primary btn-sm"
value="Listar..." title="Click aqui para listar os dados do Membro"
tabindex="<?php echo ++$ind;?>" />
</div>
</div>
</form>
</div>
<?php
// require_once 'forms/autocompleta.php';
if (!(strstr($_GET["escolha"], "dados_pessoais.php") || strstr($_GET["escolha"], "cartao.php")) && isset($_SESSION["membro"])) {
echo 'Membro: '.$membro->nome().' - Cargo: '.cargo($bsc_rol).' - Congrega: '.$igreja->razao();
} elseif (empty($_GET['bsc_rol']) && $_GET['bsc_rol']<=0 ) {
?>
<div class="bs-callout bs-callout-danger" >
<?php
require_once 'forms/autocompleta.php';
?>
</div>
<?php
}
?>