D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home3
/
encodto1
/
tresboutique.in
/
Filename :
happyclients.php
back
Copy
<!DOCTYPE html> <html class="no-js" lang="en"> <head> <meta charset="utf-8"> <title>Tres Boutique - Gallery</title> <meta http-equiv="x-ua-compatible" content="ie=edge"> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta property="og:title" content=""> <meta property="og:type" content=""> <meta property="og:url" content=""> <meta property="og:image" content=""> <!-- Favicon --> <link rel="shortcut icon" type="image/x-icon" href="assets/imgs/theme/favicon.svg"> <!-- Template CSS --> <link rel="stylesheet" href="assets/css/main.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css"> <link rel="stylesheet" href="assets/css/vendors/uicons-regular-straight.css"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"> <style> .custom-card { display: flex; align-items: center; justify-content: start; padding: 30px; border: 1px solid #ccc; border-radius: 10px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); background-color: #f9f9f9; height: 220px; } .image-box { width: 150px; height: 150px; border-radius: 5px; overflow: hidden; } .image-box img { width: 100%; height: 100%; object-fit: cover; } .text-box { margin-left: 30px; } .circle { width: 70px; height: 70px; border-radius: 50%; overflow: hidden; margin-bottom: 15px; } .circle img { width: 100%; height: 100%; object-fit: cover; } .name { font-weight: bold; font-size: 1.5em; } .description { color: #666; font-size: 1.1em; } </style> </head> <body> <?php include 'header.php'; ?> <main class="main single-page"> <div class="page-header breadcrumb-wrap"> <div class="container"> <div class="breadcrumb"> <a href=".php" rel="nofollow">Home</a> <span></span> Happy Customers </div> </div> </div> <div class="container mt-5"> <div class="row justify-content-center"> <?php $query = "SELECT happyclient_name, happyclient_desc, happyclient_image FROM happyclients ORDER BY created_at DESC"; $result = mysqli_query($conn, $query); if ($result && mysqli_num_rows($result) > 0) { while ($row = mysqli_fetch_assoc($result)) { $name = htmlspecialchars($row['happyclient_name']); $description = htmlspecialchars($row['happyclient_desc']); $image = htmlspecialchars($row['happyclient_image']); $imagePath = !empty($image) ? "tresadmin/uploads/happyclients/$image" : "assets/imgs/default.png"; ?> <div class="col-md-6 col-lg-5 mb-4"> <div class="custom-card"> <div class="image-box"> <img src="<?php echo $imagePath; ?>" alt="Customer Image"> </div> <div class="text-box"> <div class="circle"> <img src="assets/imgs/page/avatar.png" alt="Customer Profile"> </div> <div class="name"><?php echo $name; ?></div> <div class="description"><?php echo $description; ?></div> </div> </div> </div> <?php } } else { echo '<p class="text-center">No happy clients to display.</p>'; } ?> </div> </div> <?php include 'footer.php'; ?> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/js/bootstrap.bundle.min.js"></script> </body> </html>