-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
199 lines (183 loc) · 8.12 KB
/
index.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
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
<!doctype html>
<html lang="pt-br" data-bs-theme="auto">
<head>
<script src="../assets/js/color-modes.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Jonas Moreira">
<title>Hotel & Pousada</title>
<link rel="shortcut icon" href="assets\img\hotel-icone.png">
<link href="assets/css/bootstrap.min.css" rel="stylesheet">
<style>
@media (min-width: 768px) {
.bd-placeholder-img-lg {
font-size: 3.5rem;
}
}
.b-example-divider {
width: 100%;
height: 3rem;
background-color: rgba(0, 0, 0, .1);
border: solid rgba(0, 0, 0, .15);
border-width: 1px 0;
box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
}
.b-example-vr {
flex-shrink: 0;
width: 1.5rem;
height: 100vh;
}
.bi {
vertical-align: -.125em;
fill: currentColor;
}
</style>
<!-- Custom styles for this template -->
<link href="assets/css/sidebars.css" rel="stylesheet">
</head>
<body>
<div class="d-flex flex-nowrap bg-light-subtle">
<!-- Conteúdo da barra lateral -->
<div class="d-flex flex-column flex-shrink-0 p-3 text-bg-dark" style="width: 280px;">
<a href="/" class="d-flex align-items-center mb-3 mb-md-0 me-md-auto text-white text-decoration-none">
<!-- adicionar imagem da logo -->
<img src="assets\img\hotel-logo.jpg" class="figure-img img-fluid rounded me-4" style="width: 100px; height: 100px" alt="">
<span class="fs-4">Hotel & Pousada</span>
</a>
<hr>
<ul class="nav nav-pills flex-column mb-auto">
<li class="nav-item">
<a href="?page=index.php" class="nav-link active" aria-current="page" href="?page=config.php">
<i class="bi bi-house-door me-2"></i>
Home
</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-togle text-white" href="#" role="button" data-bs-toggle="dropdown">
<i class="bi bi-person-badge me-2"></i>
Reserva
</a>
<ul class="dropdown-menu flex-column">
<li><a class="dropdown-item" href="?page=nova_reserva">Nova</a></li>
</ul>
</li>
<li>
<a class="nav-link text-white" href="?page=listar_reserva">
<i class="bi bi-card-checklist me-2"></i>
Lista de Reservas
</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown text-white" href="#" role="button" data-bs-toggle="dropdown">
<i class="bi bi-person-circle me-2"></i>
Cliente
</a>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="?page=novo_cliente">Novo</a></li>
<li><a class="dropdown-item" href="?page=listar_cliente">Listar</a></li>
</ul>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown text-white" href="#" role="button" data-bs-toggle="dropdown">
<i class="bi bi-person-badge me-2"></i>
Quarto
</a>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="?page=novo_quarto">Novo</a></li>
<li><a class="dropdown-item" href="?page=listar_quarto">Listar</a></li>
</ul>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown text-white" href="#" role="button" data-bs-toggle="dropdown">
<i class="bi bi-bookmarks-fill me-2"></i>
Categoria
</a>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="?page=nova_categoria">Nova</a></li>
<!-- <li><a class="dropdown-item" href="?page=listar_categoria">Listar</a></li> -->
</ul>
</li>
</ul>
<hr>
</div>
<div class="b-example-divider b-example-vr"></div>
<script src="assets/js/bootstrap.bundle.min.js"></script>
<div class="container">
<!-- Conteúdo principal -->
<div class="row">
<div class="col mt-5">
<?php
include("config.php");
switch (@$_REQUEST["page"]) {
case "novo_cliente":
include("novo-cliente.php");
break;
case "listar_cliente":
include("listar-cliente.php");
break;
case "salvar_cliente":
include("salvar-cliente.php");
break;
case "editar_cliente":
include("editar-cliente.php");
break;
case "nova_categoria":
include("nova-categoria.php");
break;
case "listar_categoria":
include("listar-categoria.php");
break;
case "salvar_categoria":
include("salvar-categoria.php");
break;
case "editar_categoria":
include("editar-categoria.php");
break;
case "novo_quarto":
include("novo-quarto.php");
break;
case "listar_quarto":
include("listar-quarto.php");
break;
case "salvar_quarto":
include("salvar-quarto.php");
break;
case "editar_quarto":
include("editar-quarto.php");
break;
case "nova_reserva":
include("nova-reserva.php");
break;
case "listar_reserva":
include("listar-reserva.php");
break;
case "salvar_reserva":
include("salvar-reserva.php");
break;
case "editar_reserva":
include("editar-reserva.php");
break;
case "abrir-config":
include("configuracao.php");
break;
default:
?>
<div class="row marcador align-items-center">
<div class="col mx-auto text-center">
<figure class="figure">
<h1>
Hotel Hackathon
</h1>
<img src="#" class="img-fluid rounded" style="width: 150px; height: 150px" alt="...">
</figure>
</div>
</div>
<?php
}
?>
</div>
</div>
</div>
<script src="assets/js/sidebars.js"></script>
</body>
</html>