update document page
This commit is contained in:
@@ -264,6 +264,39 @@ $result = $stmt->get_result();
|
||||
.box-home:hover .action-menu {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
/* Stile per il nuovo banner */
|
||||
.header-banner {
|
||||
position: relative;
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
border-radius: 10px;
|
||||
height: 150px;
|
||||
/* Altezza del banner */
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.header-banner-overlay {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: linear-gradient(to right, rgba(30, 58, 138, 0.8), rgba(255, 255, 255, 0.2));
|
||||
/* Gradiente sovrapposto */
|
||||
padding: 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.header-banner-title {
|
||||
color: #ffffff;
|
||||
font-size: 28px;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.03em;
|
||||
margin: 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
@@ -290,10 +323,22 @@ $result = $stmt->get_result();
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Nuovo Banner -->
|
||||
<div class="row mb-4">
|
||||
<div class="col-12">
|
||||
<div class="header-banner" style="background-image: url('path/to/your/image.jpg');">
|
||||
<div class="header-banner-overlay">
|
||||
<h3 class="header-banner-title">Immobili</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-12 d-flex justify-content-start align-items-center gap-3">
|
||||
<a href="manage-home.php" class="btn btn-success">
|
||||
<i class="fas fa-plus"></i> Aggiungi Casa/Terreno
|
||||
<i class="fas fa-plus"></i> Aggiungi Nuovo
|
||||
</a>
|
||||
|
||||
<button id="toggleViewBtn" class="btn btn-info ms-2">
|
||||
@@ -301,8 +346,6 @@ $result = $stmt->get_result();
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- table view -->
|
||||
<div id="tableView" style="display: none;">
|
||||
|
||||
@@ -317,21 +360,16 @@ $result = $stmt->get_result();
|
||||
<tr>
|
||||
<th>Foto</th>
|
||||
<th>Nome di Riferimento</th>
|
||||
<th>Città / Nazione</th>
|
||||
<th>Indirizzo</th>
|
||||
<th>Proprietari</th>
|
||||
<th>Città / Nazione</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<!-- Campi di input per i filtri -->
|
||||
<th></th>
|
||||
<th><input type="text" placeholder="Cerca Nome" class="form-control form-control-sm"></th>
|
||||
|
||||
<th><input type="text" placeholder="Cerca Città" class="form-control form-control-sm"></th>
|
||||
<th><input type="text" placeholder="Cerca Indirizzo" class="form-control form-control-sm"></th>
|
||||
<th><input type="text" placeholder="Cerca Proprietari" class="form-control form-control-sm"></th>
|
||||
|
||||
<th><input type="text" placeholder="Cerca Città" class="form-control form-control-sm"></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -340,25 +378,17 @@ $result = $stmt->get_result();
|
||||
<tr>
|
||||
<!-- Thumbnail immagine -->
|
||||
<td>
|
||||
<img src="mainphoto/<?php echo htmlspecialchars($row['mainphoto'] ?? 'default.jpg'); ?>"
|
||||
class="img-thumbnail open-photo"
|
||||
style="width: 80px; height: 80px; object-fit: cover; cursor: pointer;"
|
||||
alt="<?php echo htmlspecialchars($row['name']); ?>"
|
||||
data-toggle="modal" data-target="#photoModal"
|
||||
data-src="mainphoto/<?php echo htmlspecialchars($row['mainphoto'] ?? 'default.jpg'); ?>">
|
||||
<a href="manage-home.php?idhome=<?php echo $row['idhome']; ?>">
|
||||
<img src="mainphoto/<?php echo htmlspecialchars($row['mainphoto'] ?? 'default.jpg'); ?>"
|
||||
class="img-thumbnail open-photo"
|
||||
style="width: 80px; height: 80px; object-fit: cover; cursor: pointer;"
|
||||
alt="<?php echo htmlspecialchars($row['name']); ?>">
|
||||
</a>
|
||||
</td>
|
||||
|
||||
|
||||
|
||||
<!-- Nome immobile -->
|
||||
<td><?php echo htmlspecialchars($row['name']); ?></td>
|
||||
|
||||
<!-- Città e Nazione -->
|
||||
<td><?php echo htmlspecialchars($row['city']); ?>, <?php echo htmlspecialchars($row['country']); ?></td>
|
||||
|
||||
<!-- Indirizzo -->
|
||||
<td><?php echo htmlspecialchars($row['address']); ?></td>
|
||||
|
||||
<!-- Proprietari + Bottone -->
|
||||
<td>
|
||||
<?php echo nl2br(htmlspecialchars($row['owner_names'])); ?>
|
||||
@@ -381,7 +411,10 @@ $result = $stmt->get_result();
|
||||
</a>
|
||||
</td>
|
||||
|
||||
<!-- azioni -->
|
||||
<!-- Città e Nazione -->
|
||||
<td><?php echo htmlspecialchars($row['city']); ?>, <?php echo htmlspecialchars($row['country']); ?></td>
|
||||
|
||||
<!-- Azioni -->
|
||||
<td class="text-nowrap">
|
||||
<div class="dropdown">
|
||||
<button class="btn btn-light btn-sm dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
||||
@@ -406,12 +439,7 @@ $result = $stmt->get_result();
|
||||
</ul>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -432,9 +460,12 @@ $result = $stmt->get_result();
|
||||
while ($row = $result->fetch_assoc()) { ?>
|
||||
<div class="col-md-3 col-sm-6 mb-4"> <!-- 4 per riga su desktop, 2 su tablet -->
|
||||
<div class="card shadow-sm border-0 position-relative box-home">
|
||||
<img src="mainphoto/<?php echo htmlspecialchars($row['mainphoto'] ?? 'default.jpg'); ?>"
|
||||
class="card-img-top"
|
||||
alt="<?php echo htmlspecialchars($row['name']); ?>">
|
||||
<a href="manage-home.php?idhome=<?php echo $row['idhome']; ?>">
|
||||
<img src="mainphoto/<?php echo htmlspecialchars($row['mainphoto'] ?? 'default.jpg'); ?>"
|
||||
class="card-img-top"
|
||||
alt="<?php echo htmlspecialchars($row['name']); ?>">
|
||||
</a>
|
||||
|
||||
|
||||
<!-- Pulsante 3 puntini -->
|
||||
<!-- Contenitore per i bottoni (Proprietari + Menu Azioni) -->
|
||||
|
||||
Reference in New Issue
Block a user