Ambiente Senai
69 |Seja bem-vindo ao Ambiente Senai, um local especializado em agendamentos de salas da instituição Sesi/Senai.
70 |Como Funciona?
71 |72 |
├── agendamento ├── select.js ├── assets │ ├── css │ │ ├── select.css │ │ ├── login.css │ │ ├── editar.css │ │ ├── cadastro.css │ │ └── paginainicial.css │ └── img │ │ ├── Humano.png │ │ ├── cozinhando.jpeg │ │ ├── senai-logo-1.png │ │ ├── Humaaans - 1 Character.png │ │ ├── Humaaans - 3 Characters (1).png │ │ ├── Sesi_positivo.svg │ │ └── senai-logo.svg ├── senaicontroller.php ├── script.js ├── system │ ├── conexao.php │ ├── conexão.php │ └── config.php ├── login.php ├── sobre.html ├── cadastro.php ├── editar.php ├── administrador.php ├── todosusuarios.php └── paginicial.php ├── ImagensGit ├── Sistemas Agenda (1).png ├── Sistemas Agenda (2).png ├── Sistemas Agenda (3).png ├── Sistemas Agenda (4).png ├── Sistemas Agenda (5).png ├── Sistemas Agenda (6).png ├── Sistemas Agenda (7).png ├── Sistemas Agenda (8).png ├── Sistemas Agenda (9).png ├── Sistemas Agenda (10).png ├── Sistemas Agenda (11).png ├── Sistemas Agenda (12).png ├── Sistemas Agenda (13).png └── Sistemas Agenda (14).png ├── index.php ├── README.md └── ambientes.sql /agendamento/select.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /agendamento/assets/css/select.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /agendamento/senaicontroller.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ImagensGit/Sistemas Agenda (1).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LucSena/Agendamento-de-Salas/HEAD/ImagensGit/Sistemas Agenda (1).png -------------------------------------------------------------------------------- /ImagensGit/Sistemas Agenda (2).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LucSena/Agendamento-de-Salas/HEAD/ImagensGit/Sistemas Agenda (2).png -------------------------------------------------------------------------------- /ImagensGit/Sistemas Agenda (3).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LucSena/Agendamento-de-Salas/HEAD/ImagensGit/Sistemas Agenda (3).png -------------------------------------------------------------------------------- /ImagensGit/Sistemas Agenda (4).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LucSena/Agendamento-de-Salas/HEAD/ImagensGit/Sistemas Agenda (4).png -------------------------------------------------------------------------------- /ImagensGit/Sistemas Agenda (5).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LucSena/Agendamento-de-Salas/HEAD/ImagensGit/Sistemas Agenda (5).png -------------------------------------------------------------------------------- /ImagensGit/Sistemas Agenda (6).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LucSena/Agendamento-de-Salas/HEAD/ImagensGit/Sistemas Agenda (6).png -------------------------------------------------------------------------------- /ImagensGit/Sistemas Agenda (7).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LucSena/Agendamento-de-Salas/HEAD/ImagensGit/Sistemas Agenda (7).png -------------------------------------------------------------------------------- /ImagensGit/Sistemas Agenda (8).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LucSena/Agendamento-de-Salas/HEAD/ImagensGit/Sistemas Agenda (8).png -------------------------------------------------------------------------------- /ImagensGit/Sistemas Agenda (9).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LucSena/Agendamento-de-Salas/HEAD/ImagensGit/Sistemas Agenda (9).png -------------------------------------------------------------------------------- /agendamento/assets/img/Humano.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LucSena/Agendamento-de-Salas/HEAD/agendamento/assets/img/Humano.png -------------------------------------------------------------------------------- /ImagensGit/Sistemas Agenda (10).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LucSena/Agendamento-de-Salas/HEAD/ImagensGit/Sistemas Agenda (10).png -------------------------------------------------------------------------------- /ImagensGit/Sistemas Agenda (11).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LucSena/Agendamento-de-Salas/HEAD/ImagensGit/Sistemas Agenda (11).png -------------------------------------------------------------------------------- /ImagensGit/Sistemas Agenda (12).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LucSena/Agendamento-de-Salas/HEAD/ImagensGit/Sistemas Agenda (12).png -------------------------------------------------------------------------------- /ImagensGit/Sistemas Agenda (13).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LucSena/Agendamento-de-Salas/HEAD/ImagensGit/Sistemas Agenda (13).png -------------------------------------------------------------------------------- /ImagensGit/Sistemas Agenda (14).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LucSena/Agendamento-de-Salas/HEAD/ImagensGit/Sistemas Agenda (14).png -------------------------------------------------------------------------------- /agendamento/assets/img/cozinhando.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LucSena/Agendamento-de-Salas/HEAD/agendamento/assets/img/cozinhando.jpeg -------------------------------------------------------------------------------- /agendamento/assets/img/senai-logo-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LucSena/Agendamento-de-Salas/HEAD/agendamento/assets/img/senai-logo-1.png -------------------------------------------------------------------------------- /agendamento/assets/img/Humaaans - 1 Character.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LucSena/Agendamento-de-Salas/HEAD/agendamento/assets/img/Humaaans - 1 Character.png -------------------------------------------------------------------------------- /agendamento/assets/img/Humaaans - 3 Characters (1).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LucSena/Agendamento-de-Salas/HEAD/agendamento/assets/img/Humaaans - 3 Characters (1).png -------------------------------------------------------------------------------- /agendamento/script.js: -------------------------------------------------------------------------------- 1 | const myModal = document.getElementById('myModal') 2 | const myInput = document.getElementById('myInput') 3 | 4 | myModal.addEventListener('shown.bs.modal', () => { 5 | myInput.focus() 6 | }) -------------------------------------------------------------------------------- /agendamento/system/conexao.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /agendamento/system/conexão.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /agendamento/system/config.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 | 6 | 7 |Se você não for redirecionado automaticamente, clique aqui.
12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /agendamento/assets/css/login.css: -------------------------------------------------------------------------------- 1 | .divider:after, 2 | .divider:before { 3 | content: ""; 4 | flex: 1; 5 | height: 1px; 6 | background: #eee; 7 | } 8 | 9 | .h-custom { 10 | height: calc(100% - 73px); 11 | } 12 | 13 | @media (max-width: 450px) { 14 | .h-custom { 15 | height: 100%; 16 | } 17 | } 18 | 19 | body { 20 | overflow: hidden 21 | } 22 | 23 | #caixa-form { 24 | border-left: solid 1px; 25 | padding-left: 70px; 26 | position: relative; 27 | right: 80px; 28 | } 29 | 30 | .footer { 31 | width: 100%; 32 | height: 73px; 33 | } 34 | 35 | 36 | /** 0d6efd COR PRINCIPAL - AZUL **/ -------------------------------------------------------------------------------- /agendamento/assets/css/editar.css: -------------------------------------------------------------------------------- 1 | .divider:after, 2 | .divider:before { 3 | content: ""; 4 | flex: 1; 5 | height: 1px; 6 | background: #eee; 7 | } 8 | 9 | .h-custom { 10 | height: calc(100% - 73px); 11 | } 12 | 13 | @media (max-width: 450px) { 14 | .h-custom { 15 | height: 100%; 16 | } 17 | } 18 | 19 | body { 20 | overflow: hidden; 21 | } 22 | 23 | #caixa-form { 24 | 25 | padding-left: 70px; 26 | position: relative; 27 | right: 80px; 28 | } 29 | 30 | .footer { 31 | width: 100%; 32 | height: 73px; 33 | } 34 | 35 | 36 | /** Instituição - input radio*/ 37 | 38 | .gender-group { 39 | display: flex; 40 | justify-content: space-between; 41 | margin-top: 0.62rem; 42 | } 43 | 44 | .gender-input { 45 | display: flex; 46 | align-items: center; 47 | margin-right: 90px; 48 | } 49 | 50 | .gender-input input { 51 | margin-right: 0.35rem; 52 | } 53 | 54 | .gender-input label { 55 | font-size: 0.81rem; 56 | font-weight: 600; 57 | color: #000000c0; 58 | } 59 | 60 | 61 | /** 0d6efd COR PRINCIPAL - AZUL **/ -------------------------------------------------------------------------------- /agendamento/assets/css/cadastro.css: -------------------------------------------------------------------------------- 1 | .divider:after, 2 | .divider:before { 3 | content: ""; 4 | flex: 1; 5 | height: 1px; 6 | background: #eee; 7 | } 8 | 9 | .h-custom { 10 | height: calc(100% - 73px); 11 | } 12 | 13 | @media (max-width: 450px) { 14 | .h-custom { 15 | height: 100%; 16 | } 17 | } 18 | 19 | body { 20 | overflow: hidden; 21 | } 22 | 23 | #caixa-form { 24 | border-left: solid 1px; 25 | padding-left: 70px; 26 | position: relative; 27 | right: 80px; 28 | } 29 | 30 | .footer { 31 | width: 100%; 32 | height: 73px; 33 | } 34 | 35 | 36 | /** Instituição - input radio*/ 37 | 38 | .gender-group { 39 | display: flex; 40 | justify-content: space-between; 41 | margin-top: 0.62rem; 42 | } 43 | 44 | .gender-input { 45 | display: flex; 46 | align-items: center; 47 | margin-right: 90px; 48 | } 49 | 50 | .gender-input input { 51 | margin-right: 0.35rem; 52 | } 53 | 54 | .gender-input label { 55 | font-size: 0.81rem; 56 | font-weight: 600; 57 | color: #000000c0; 58 | } 59 | 60 | 61 | /** 0d6efd COR PRINCIPAL - AZUL **/ -------------------------------------------------------------------------------- /agendamento/assets/css/paginainicial.css: -------------------------------------------------------------------------------- 1 | .bd-placeholder-img { 2 | font-size: 1.125rem; 3 | text-anchor: middle; 4 | -webkit-user-select: none; 5 | -moz-user-select: none; 6 | user-select: none; 7 | } 8 | 9 | @media (min-width: 768px) { 10 | .bd-placeholder-img-lg { 11 | font-size: 3.5rem; 12 | } 13 | } 14 | 15 | .b-example-divider { 16 | height: 3rem; 17 | background-color: rgba(0, 0, 0, .1); 18 | border: solid rgba(0, 0, 0, .15); 19 | border-width: 1px 0; 20 | box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15); 21 | } 22 | 23 | .b-example-vr { 24 | flex-shrink: 0; 25 | width: 1.5rem; 26 | height: 100vh; 27 | } 28 | 29 | .bi { 30 | vertical-align: -.125em; 31 | fill: currentColor; 32 | } 33 | 34 | .nav-scroller { 35 | position: relative; 36 | z-index: 2; 37 | height: 2.75rem; 38 | overflow-y: hidden; 39 | } 40 | 41 | .nav-scroller .nav { 42 | display: flex; 43 | flex-wrap: nowrap; 44 | padding-bottom: 1rem; 45 | margin-top: -1px; 46 | overflow-x: auto; 47 | text-align: center; 48 | white-space: nowrap; 49 | -webkit-overflow-scrolling: touch; 50 | } 51 | 52 | #caixa-imagem{ 53 | padding-right: 20px; 54 | } 55 | 56 | /* BOTÃO DE SELECT / FILTRAGEM */ 57 | 58 | .filtrar{ 59 | position: relative; 60 | bottom: 40px; 61 | } 62 | 63 | .salas{ 64 | position: relative; 65 | bottom: 32px; 66 | } 67 | 68 | /* MODAL DE VER AS SALAS*/ 69 | .bg-image { 70 | background-size: cover; 71 | background-position: center; 72 | background-repeat: no-repeat; } 73 | 74 | .price{ 75 | position: relative; 76 | top: 20px; 77 | left: 20px; 78 | color: white; 79 | } 80 | 81 | -------------------------------------------------------------------------------- /agendamento/assets/img/Sesi_positivo.svg: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /agendamento/login.php: -------------------------------------------------------------------------------- 1 | 0") or die('query failed'); 11 | 12 | if (mysqli_num_rows($select) > 0) { 13 | $row = mysqli_fetch_assoc($select); 14 | $_SESSION['id'] = $row['id']; 15 | header('location:paginicial.php'); 16 | } else { 17 | } 18 | } 19 | 20 | ?> 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 |
41 | Seja bem-vindo ao Ambiente Senai, um local especializado em agendamentos de salas da instituição Sesi/Senai.
70 |72 |
46 | Seja bem-vindo a pagina de Validação, um local para validar os cadastros do Sesi/Senai.
179 |180 | Como funciona? 181 | Agendar um ambiente 182 |
183 | Todos os usuarios 184 |Seja bem-vindo a pagina de Validação, um local para validar os cadastros do Sesi/Senai.
191 |192 | Como funciona? 193 | Agendar um ambiente 194 |
195 | Usuarios não validados 196 |'; 83 | // print_r($_POST); 84 | // echo ''; 85 | // exit; 86 | 87 | // echo "usuario a ser editado é" . $user_id; 88 | 89 | $pesquisa = "SELECT * FROM tb_salas WHERE id = '$user_id'"; 90 | 91 | $resultado = mysqli_query($link, $pesquisa); 92 | 93 | $mostrar = mysqli_fetch_assoc($resultado); 94 | 95 | 96 | 97 | /* MOSTRAR A DATA 98 | 99 | $pesquisadois = "SELECT date_format(data, '%d/%m/%Y') as Datas FROM tb_salas WHERE id = '$user_id'"; 100 | 101 | $resultadodois = mysqli_query($link, $pesquisadois); 102 | 103 | $mostrardois = mysqli_fetch_assoc($resultadodois); 104 | 105 | 106 | 107 | /* MOSTRAR BLOCO*/ 108 | 109 | // $bloco = (int) $_POST['bloco']; 110 | 111 | // $pesquisabloco = "SELECT * FROM tb_bloco WHERE id = '$bloco'"; 112 | 113 | // $resultadobloco = mysqli_query($link, $pesquisabloco); 114 | 115 | // $mostrarbloco = mysqli_fetch_assoc($resultadobloco); 116 | 117 | // 118 | 119 | 120 | $loginAntigo = $mostrar['nome']; 121 | 122 | $nome = $_POST['name']; 123 | $email = $_POST['email']; 124 | $nivel = $_POST['nivel']; 125 | 126 | if ($nome <> $loginAntigo) { 127 | 128 | $pesquisa = "SELECT * FROM tb_salas WHERE nome = '$nome'"; 129 | $resultado = mysqli_query($link, $pesquisa); 130 | $registro = mysqli_num_rows($resultado); 131 | 132 | if ($registro > 0) { 133 | echo "Usuario Login já cadastrado no sistema"; 134 | } else { 135 | $sql = "UPDATE tb_salas SET nome = '$nome', descricao = '$email', status = '$nivel' WHERE id = '$user_id' "; 136 | 137 | $query = mysqli_query($link, $sql); 138 | 139 | if ($query == true) { 140 | echo ''; 144 | } else { 145 | echo "Erro ao atualizar a sala"; 146 | } 147 | } 148 | } else { 149 | $sql = "UPDATE tb_salas SET nome ='$nome', descricao ='$email', status ='$nivel' WHERE id = '$user_id'"; 150 | 151 | $query = mysqli_query($link, $sql); 152 | 153 | if ($query == true) { 154 | echo ''; 158 | } else { 159 | echo "Erro ao atualizar a sala"; 160 | } 161 | } 162 | } 163 | 164 | //BOTÃO EDITAR 165 | 166 | 167 | // AGENDANDO UMA SALA 168 | if (isset($_POST['agendar']) && $_POST['agendar'] == 'agendando') { 169 | $sala_id = (int) $_POST['usuario']; 170 | 171 | // echo '
'; 172 | // print_r($_POST); 173 | // echo ''; 174 | // exit; 175 | 176 | $pesquisa = "SELECT * FROM tb_salas WHERE id = '$sala_id'"; 177 | $resultado = mysqli_query($link, $pesquisa); 178 | $mostrar = mysqli_fetch_assoc($resultado); 179 | 180 | $time = $_POST['time']; 181 | $timefinal = $_POST['timefinal']; 182 | $data = $_POST['data']; 183 | 184 | $atualizar = "UPDATE tb_salas SET status='2', Horario = '$time', Datas = '$data', HorarioFinal = '$timefinal' WHERE id = '$sala_id'"; 185 | $atualizado = mysqli_query($link, $atualizar); 186 | 187 | if ($atualizado == true) { 188 | echo ''; 192 | } 193 | } 194 | 195 | /* ADICIONANDO SALAS*/ 196 | 197 | if (isset($_POST['acao']) && $_POST['acao'] == "cadastrar") { 198 | //Código para cadastro no banco de dados 199 | 200 | //Resgatando os valores dos inputs do formulario 201 | $nome = $_POST['name']; 202 | $email = $_POST['email']; 203 | $nivel = $_POST['nivel']; 204 | $andar = $_POST['andar']; 205 | $bloco = $_POST['bloco']; { 206 | $insert = mysqli_query($link, "INSERT INTO `tb_salas`(nome, descricao, status, fk_andar, fk_bloco) VALUES('$nome','$email','$nivel','$andar','$bloco')") or die('query failed'); 207 | 208 | if ($insert) { 209 | $message[] = 'registered successfully!'; 210 | header('location:paginicial.php'); 211 | } else { 212 | $message[] = 'erro no registro!'; 213 | } 214 | } 215 | } 216 | 217 | /* ADICIONANDO ANDAR*/ 218 | 219 | if (isset($_POST['acao']) && $_POST['acao'] == "cadandar") { 220 | //Código para cadastro no banco de dados 221 | 222 | //Resgatando os valores dos inputs do formulario 223 | $nome = $_POST['name']; { 224 | $insert = mysqli_query($link, "INSERT INTO `tb_andar`(andar) VALUES('$nome')") or die('query failed'); 225 | 226 | if ($insert) { 227 | $message[] = 'registered successfully!'; 228 | header('location:paginicial.php'); 229 | } else { 230 | $message[] = 'erro no registro!'; 231 | } 232 | } 233 | } 234 | 235 | /* ADICIONANDO BLOCOS*/ 236 | 237 | if (isset($_POST['acao']) && $_POST['acao'] == "cadbloco") { 238 | //Código para cadastro no banco de dados 239 | 240 | //Resgatando os valores dos inputs do formulario 241 | $nome = $_POST['name']; 242 | $email = $_POST['email']; { 243 | $insert = mysqli_query($link, "INSERT INTO `tb_bloco`(bloco, descricao) VALUES('$nome','$email')") or die('query failed'); 244 | 245 | if ($insert) { 246 | $message[] = 'registered successfully!'; 247 | header('location:paginicial.php'); 248 | } else { 249 | $message[] = 'erro no registro!'; 250 | } 251 | } 252 | } 253 | 254 | // Excluindo a sala 255 | 256 | if (isset($_GET['excluir']) && $_GET['excluir'] == "excluindo") { 257 | 258 | 259 | $sala_id = (int) $_GET['id']; 260 | 261 | $pesquisa = "SELECT * FROM tb_salas WHERE id = '$sala_id'"; 262 | 263 | $resultado = mysqli_query($link, $pesquisa); 264 | 265 | $mostrar = mysqli_fetch_assoc($resultado); 266 | 267 | $apagar = "DELETE FROM tb_salas WHERE id = '$sala_id'"; 268 | 269 | $apagado = mysqli_query($link, $apagar); 270 | 271 | if ($apagado == true) { 272 | echo ''; 276 | } else { 277 | echo ''; 281 | } 282 | } 283 | 284 | /* SELECT DOS ANDARES*/ 285 | 286 | $query = $link->query("SELECT id, andar FROM tb_andar"); 287 | 288 | /* SELECT DOS BLOCOS*/ 289 | 290 | $querybloco = $link->query("SELECT id, bloco FROM tb_bloco"); 291 | 292 | ?> 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 |
Seja bem-vindo ao Ambiente Senai, um local especializado em agendamentos 422 | de salas da instituição Sesi/Senai.
423 |424 | Como funciona? 425 | Agendar um ambiente 426 |
427 |