Skip to content

Commit

Permalink
cargo arrumado e situação com pré-cadastro
Browse files Browse the repository at this point in the history
  • Loading branch information
Guiazis committed Oct 25, 2019
1 parent e76df2e commit 1b334f8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion dao/InternoDAO.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ public function listarTodos(){
$internos[$x]=array('cpf'=>$linha['cpf'],'nome'=>$linha['nome'],'sobrenome'=>$linha['sobrenome'],'id'=>$linha['id_interno']);
}
else{
$internos[$x]=array('cpf'=>mask($linha['cpf'],'###.###.###-##'),'nome'=>$linha['nome'],'id'=>$linha['id_interno']);
$internos[$x]=array('cpf'=>mask($linha['cpf'],'###.###.###-##'),'nome'=>$linha['nome'],'sobrenome'=>$linha['sobrenome'],'id'=>$linha['id_interno']);
}
$x++;
}
Expand Down
2 changes: 1 addition & 1 deletion dao/exibir_cargo.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
while ($row = $stmt->fetch()) {
$resultado[] = array('id_cargo'=>$row['id_cargo'],'cargo'=>$row['cargo']);
}
var_dump($resultado);
echo json_encode($resultado);
?>
6 changes: 0 additions & 6 deletions html/profile_funcionario.php
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,6 @@ function alterardate(data){
$(function(){

var funcionario = <?= $func ?>;

console.log(funcionario);
$.each(funcionario,function(i,item){

//Informações pessoais
Expand Down Expand Up @@ -406,8 +404,6 @@ function alterardate(data){
$(function(){

var beneficio = <?= $bene ?>;

console.log(beneficio);
$.each(beneficio,function(i,item){
$("#tabela")
.append($("<tr>")
Expand Down Expand Up @@ -441,8 +437,6 @@ function alterardate(data){
$(function(){

var epi = <?= $epi ?>;

console.log(epi);
$.each(epi,function(i,item){
$("#tabela_epi")
.append($("<tr>")
Expand Down
8 changes: 6 additions & 2 deletions wegia.sql
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,6 @@ CREATE TABLE `funcionario` (
`secao` varchar(40) DEFAULT NULL,
`certificado_reservista_numero` varchar(100) DEFAULT NULL,
`certificado_reservista_serie` varchar(100) DEFAULT NULL,
#`situacao` varchar(100) DEFAULT NULL,
#`cargo` varchar(30) DEFAULT NULL,

FOREIGN KEY (`id_pessoa`) REFERENCES `pessoa` (`id_pessoa`)

Expand Down Expand Up @@ -476,6 +474,12 @@ CREATE TABLE `situacao` (
`situacoes` varchar(30) DEFAULT NULL UNIQUE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

insert into situacao(situacoes)
values("Ativo"),
("Inativo"),
("Férias"),
("Afastado");

CREATE TABLE `voluntario_cargo` (
`id_cargo` int NOT NULL,
`id_voluntario` int NOT NULL,
Expand Down

0 comments on commit 1b334f8

Please sign in to comment.