-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
183 lines (180 loc) · 13.7 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<title>Raiane Schunk Imoveis - Início</title>
<meta name="description" content="O imóvel dos seus sonhos e que cabe no seu bolso está aqui. Compre com segurança, facilidade e comodidade.">
<link rel="apple-touch-icon" type="image/png" sizes="180x180" href="/assets/img/favicon180.png?h=9f130c2b14d978053c6731b7ccf407c8">
<link rel="icon" type="image/png" sizes="16x16" href="/assets/img/favicon16.png?h=a58c4bfcf9ecb97edb0371afd58bebd6">
<link rel="icon" type="image/png" sizes="32x32" href="/assets/img/favicon32.png?h=3a40431360e2ee134a963d30be2ac8b3">
<link rel="icon" type="image/png" sizes="180x180" href="/assets/img/favicon180.png?h=9f130c2b14d978053c6731b7ccf407c8">
<link rel="icon" type="image/png" sizes="192x192" href="/assets/img/favicon192.png?h=ae7f95b4e0aa574704d98afe2fcbff92">
<link rel="icon" type="image/png" sizes="512x512" href="/assets/img/favicon512.png?h=6c326d01805922a11358413829ed82b0">
<link rel="stylesheet" href="/assets/bootstrap/css/bootstrap.min.css?h=a58e0d4d1187fe68189dfd02f5384f56">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat:400,400i,700,700i,600,600i">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto&display=swap">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Ubuntu&display=swap">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.12.0/css/all.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/material-design-icons/3.0.1/iconfont/material-icons.min.css">
<link rel="stylesheet" href="/assets/fonts/fontawesome5-overrides.min.css?h=3166695f5111bb49984dab9ce0b4fc77">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/baguettebox.js/1.10.0/baguetteBox.min.css">
<link rel="stylesheet" href="/assets/css/styles.min.css?h=7c2c8ad4cd1a77e990b38733b4fd9a81">
</head>
<body>
<nav class="navbar navbar-light navbar-expand-lg clean-navbar" style="padding: 0px 0px;background: rgb(0,0,0);">
<div class="container">
<img src="/assets/img/Marca-dagua-fundo-escuro.png?h=255de20775f5dc4b9cde73909eb21073" style="width: 186px;padding-top: 17px;padding-bottom: 16px;"><button data-bs-toggle="collapse" class="navbar-toggler" data-bs-target="#navcol-1" style="color: rgb(128,102,13);background: #845907;"><span class="visually-hidden">Toggle navigation</span><span class="navbar-toggler-icon" style="color: rgb(0,0,0);"></span></button>
<div class="collapse navbar-collapse" id="navcol-1">
<ul class="navbar-nav ms-auto">
<li class="nav-item"><a class="nav-link" href="/index.php" style="font-family: Roboto, sans-serif;font-weight: bold;color: rgba(255,255,255,0.7);">início</a></li>
<li class="nav-item"><a class="nav-link" href="/contato.php" style="font-family: Roboto, sans-serif;font-weight: bold;color: rgba(255,255,255,255);">CONTATO</a></li>
<?php
if (isset( $_COOKIE[ 'logado' ] ) and isset ($_COOKIE[ 'usuario' ])) {
echo '<li class="nav-item"><a class="nav-link" href="/gerenciar.php" style="font-family: Roboto, sans-serif;font-weight: bold;color: rgb(255,255,255);">Gerenciar</a></li>';
echo '<li class="nav-item"><a class="nav-link" href="/logout.php" style="font-family: Roboto, sans-serif;color: rgba(255,255,255,255);">(<u>'.$_COOKIE[ 'usuario' ].'</u>) <b>sair</b>';
}
else {
echo '<li class="nav-item"><a class="nav-link" href="/login.php" style="font-family: Roboto, sans-serif;color: rgba(255,255,255,255);">Login';
}
?>
</a></li>
</ul>
</div>
</div>
</nav>
<main class="page landing-page" style="background: #f4f0f0;">
<!-- Start: Vendas em destaque -->
<section class="projects-clean" style="padding: 58px;background: rgb(248,244,244);">
<div class="container">
<!-- Start: Intro -->
<div class="intro">
<h2 class="text-center" style="font-family: Ubuntu, sans-serif;padding-top: 0px;color: #a26c1e;">VENDAS EM DESTAQUE</h2>
<p class="text-center" style="font-family: Roboto, sans-serif;color: rgb(0,0,0);">Seu imóvel dos sonhos está aqui, confira meus anúncios enquanto eles ainda estão disponíveis. Agende uma visita e se apaixone pelo seu futuro novo lar.</p>
</div>
<!-- End: Intro --><!-- Start: Imóveis -->
<div class="row projects" style="margin: 0px;margin-top: 23px;">
<?php
// Conectando e selecionando banco de dados
include 'db.php';
$queryPreparada = 'SELECT idImovel, valorImovel, bairro, cidade, estado, area, quartos, banheiros, vagas, descricao, venda FROM imovel ORDER BY idImovel';
$result = mysqli_query($link,$queryPreparada) or die ("Erro na query: %s\n". mysqli_error($link));
// Insere os imóveis cadastrados na parte de vendas em destaque
while ($row = mysqli_fetch_row($result)) {
echo '<!-- Inicio: Imóvel ' . $row[0] . ' -->
<div class="col-sm-6 col-lg-4 item" style="background: rgba(0,0,0,0.05);padding-top: 40px;">
<a href="/imovel.php?codigo=' . $row[0] . '"><img class="img-fluid" src="/assets/img/imovel-' .$row[0] . '/1.jpg"></a>
<h3 class="name" style="font-size: 18.752px;font-family: Ubuntu, sans-serif;color: #ffffff;margin-top: 0px;background: #a26c1e;padding-top: 3px;padding-bottom: 3px;">' .'R$'.str_replace(',','.',number_format($row[1])).',00</h3>
<h3 class="name" style="font-size: 12.752px;font-family: Ubuntu, sans-serif;color: #a26c1e;">IMÓVEL';
if ($row[10] == 1) {
echo ' À VENDA';
}
else {
echo ' PARA ALUGAR';
}
echo ' EM ' . strtoupper($row[2]) . '</h3>
<div class="row">
<div class="col">
<div class="row">
<div class="col-12" style="text-align: right;">
<p class="text-end description" style="margin: 1px 0px 15px;font-family: Roboto, sans-serif;padding-left: 0px;text-align: right;margin-right: 0px;color: rgb(0,0,0);">' . strtoupper($row[3]).'-'.strtoupper($row[4]); echo '</p>
</div>
</div>
</div>
<div class="col-1" style="text-align: right;"><img src="/assets/img/area.png?h=763319386c1e5f12babba41f7436228e" width="25px" style="width: 20px;"></div>
<div class="col-4">
<h6 class="d-lg-flex" style="font-family: Roboto, sans-serif;font-weight: bold;padding-top: 2px;margin-bottom: 0px;text-align: left;">'. $row[5].'m²' . '</h6>
</div>
</div>
<div class="row">
<div class="col">
<div class="row justify-content-center">
<div class="col-auto"><i class="fas fa-bed"></i></div>
<div class="col-1">
<h6 class="d-lg-flex" style="font-family: Roboto, sans-serif;font-weight: bold;padding-top: 2px;">' . $row[6]. '</h6>
</div>
</div>
</div>
<div class="col">
<div class="row justify-content-center">
<div class="col-auto"><i class="fas fa-bath"></i></div>
<div class="col-1" style="padding-top: 2px;">
<h6 class="d-lg-flex align-items-lg-center" style="font-family: Roboto, sans-serif;font-weight: bold;">'. $row[7] . '</h6>
</div>
</div>
</div>
<div class="col">
<div class="row justify-content-center">
<div class="col-auto"><i class="fa fa-car"></i></div>
<div class="col-1" style="padding-top: 2px;">
<h6 style="font-family: Roboto, sans-serif;font-weight: bold;">' . $row[8] . '</h6>
</div>
</div>
</div>
</div>
<a class="btn btn-primary text-uppercase shadow-none" role="button" style="background: rgb(0,0,0);font-family: Ubuntu, sans-serif;font-weight: bold;width: 100%;margin-top: 9px;margin-bottom: 30px;border-style: none;" data-bs-target="/imovel.php?codigo=' . $row[0] . '" href="/imovel.php?codigo=' . $row[0] . '">ver mais detalhes</a>
</div>
<!-- Fim: Imóvel ' . $row[0] . ' -->'
;}
?>
</div>
<!-- End: Imóveis -->
</div>
</section>
<!-- End: Vendas em destaque --><!-- Start: Vantagens -->
<section class="clean-block features">
<div class="container">
<div class="block-heading">
<h2 class="text-uppercase" style="font-family: Ubuntu, sans-serif;color: #a26c1e;font-weight: bold;">VANTAGENS</h2>
<p style="font-family: Roboto, sans-serif;color: rgb(0,0,0);opacity: 1;">Confiança, facilidade e agilidade na busca e aquisição do imóvel dos seus sonhos.</p>
</div>
<div class="row justify-content-center">
<div class="col-md-5 feature-box">
<img style="width: 50px;height: 50px;margin: -65px;margin-right: 0;margin-top: 0px;margin-bottom: 0px;" src="/assets/img/seguranca.png?h=0b9dfb78b7f8da43fcb9a69363b58cad">
<h4 class="text-uppercase" style="font-family: Ubuntu, sans-serif;margin-top: -50px;color: rgb(162,108,30);">Segurança</h4>
<p class="text-start" style="font-family: Roboto, sans-serif;opacity: 1;border-color: rgb(0,0,0);color: rgb(0,0,0);">Sua negociação é feita com uma corretora certificada, que atende a boas práticas de mercado para te dar toda a segurança e suporte necessário para a sua aquisição.</p>
</div>
<div class="col-md-5 feature-box">
<img style="width: 50px;height: 50px;margin: -65px;margin-right: 0;margin-top: 0px;margin-bottom: 0px;transform: rotateY(180deg);" src="/assets/img/facilidade.png?h=401b12f1c509f43c6e3a3b2c2e1adea9">
<h4 class="text-uppercase" style="font-family: Ubuntu, sans-serif;margin-top: -50px;color: rgb(162,108,30);">FACILIDADE</h4>
<p style="font-family: Roboto, sans-serif;opacity: 1;color: rgb(0,0,0);">Toda a burocracia e complicação é por minha conta. Você pode sentar e relaxar pensando no seu novo imóvel e eu resolvo todo o resto.</p>
</div>
</div>
<div class="row justify-content-center">
<div class="col-md-5 feature-box">
<img style="width: 50px;height: 50px;margin: -65px;margin-right: 0;margin-top: 0px;margin-bottom: 0px;" src="/assets/img/exclusivo.png?h=ebcb81502b9cdf3d93b0120d3746c369">
<h4 class="text-uppercase" style="font-family: Ubuntu, sans-serif;margin-top: -50px;color: rgb(162,108,30);">EXCLUSIVIDADE</h4>
<p class="text-start" style="font-family: Roboto, sans-serif;opacity: 1;border-color: rgb(0,0,0);color: rgb(0,0,0);">Trabalho com imóveis exclusivos, que voce não vai encontrar em nenhuma imobiliária ou com outros corretores. Vale a pena consultar os imóveis disponíveis regularmente.</p>
</div>
<div class="col-md-5 feature-box">
<img style="width: 50px;height: 50px;margin: -65px;margin-right: 0;margin-top: 0px;margin-bottom: 0px;transform: rotateY(180deg);" src="/assets/img/suporte1.png?h=221c79894d4adc22e8090f8c825a3a98">
<h4 class="text-uppercase" style="font-family: Ubuntu, sans-serif;margin-top: -50px;color: rgb(162,108,30);">Suporte</h4>
<p style="font-family: Roboto, sans-serif;opacity: 1;color: rgb(0,0,0);">Te acompanho e oriento durante todo o processo. Da escolha do imóvel até a venda.</p>
</div>
</div>
</div>
</section>
<!-- End: Vantagens -->
</main>
<!-- Start: Footer Dark -->
<footer class="page-footer dark">
<div class="container">
<div class="row">
<div class="col-sm-3">
<h5 class="text-uppercase" style="font-family: Ubuntu, sans-serif;">INÍCIO</h5>
<ul style="filter: hue-rotate(177deg);">
<li style="font-family: Roboto, sans-serif;"><a href="/index.php">Imóveis</a></li>
<li><a href="/contato.php" style="font-family: Roboto, sans-serif;">Contato</a></li>
</ul>
</div>
</div>
</div>
<div class="footer-copyright">
<p style="font-family: Roboto, sans-serif;">© 2022</p>
</div>
</footer>
<!-- End: Footer Dark --><script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/baguettebox.js/1.10.0/baguetteBox.min.js"></script><script src="/assets/js/script.min.js?h=1665ca77920bb6c16d0d2edee4a77966"></script>
</body>
</html>