-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcontroleViagens.html
110 lines (94 loc) · 3.9 KB
/
controleViagens.html
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Controle de Viagens</title>
<link rel="stylesheet" href="css/controles.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css" integrity="sha512-SnH5WK+bZxgPHs44uWIX+LLJAJ9/2PkPKZ5QiAj6Ta86w+fsb2TkcmfRyVX3pBnMFcV7oQPJkl9QevSCWr3W6A==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
<link rel="icon" href="">
</head>
<body>
<header>
<h1>Controle de Frota</h1>
<nav class="sidebar" id="sidebar">
<ul>
<li><a href="cadastroMotorista.html">Cadastro Motorista</a></li>
<li><a href="cadastroVeiculo.html">Cadastro Veículo</a></li>
<li><a href="relatorio.html">Controle</a></li>
<li><a href="index.html">Sair</a></li>
</ul>
<div class="theme-toggle" id="themeToggle">
<i id="mode_icon" class="fa-solid fa-2x"></i>
</div>
<div class="close-toggle" id="closeToggle">
<i class="fa-solid fa-2x fa-xmark"></i>
</div>
</nav>
<div class="menu-toggle" id="menuToggle">
<i class="fa-solid fa-2x fa-bars"></i>
</div>
</header>
<main>
<div id="travelControl">
<h2>Controle de Viagens</h2>
<button id="botaoInserir">Inserir</button>
</div>
<div id="formList">
<table id="formListTable">
<!-- <colgroup>
<col width="16.51%">
<col width="16.51%">
<col width="16.51%">
<col width="16.51%">
<col width="16.51%">
<col width="8.73%">
<col width="8.73%">
</colgroup> -->
<thead id="tabelaCabecalho">
<tr>
<th>ID</th>
<th>Veículo</th>
<th>Motorista</th>
<th>Data/Hora Saída</th>
<th>Data/Hora Chegada</th>
<th>Editar</th>
<th>Excluir</th>
</tr>
</thead>
<tbody id="tableBody">
</tbody>
</table>
</div>
<button id="botaoConcluir">Concluir</button>
</main>
<script src="js/controle/controleViagens.js"></script>
<script src="js/controle/controleDark.js"></script>
<script>
document.getElementById("botaoInserir").addEventListener("click", function() {
window.location.href = "relatorio.html";
});
document.getElementById("botaoConcluir").addEventListener("click", function() {
window.location.href = "relatorio.html";
});
</script>
<script>
document.getElementById("menuToggle").addEventListener("click", function() {
document.getElementById("sidebar").classList.toggle("active");
});
</script>
<script>
document.addEventListener("DOMContentLoaded", function() {
const closeToggle = document.getElementById('closeToggle');
const sidebar = document.getElementById('sidebar');
closeToggle.addEventListener('click', function() {
sidebar.classList.remove('active');
});
});
</script>
</body>
</html>