:: **Zploit** v1.0 | Current Path: **/home/kreativepixelz/soulmeetvivah.com/member/**
:: Editing File: accepted-invitations.php
<?php include('header.php'); ?> <div style="height: 100px;"></div> <div class="page-content"> <div class="container"> <!-- Header --> <div class="block-box user-about mb-4"> <div class="widget-heading" style="background: linear-gradient(135deg, #28a745 0%, #20c997 100%); padding: 25px; border-radius: 15px 15px 0 0;"> <h3 style="color: #fff; margin: 0; font-size: 28px; font-weight: 600;"> <i class="icofont-check-circled" style="margin-right: 10px;"></i>Accepted Invitations </h3> <p style="color: rgba(255,255,255,0.9); margin: 10px 0 0 0; font-size: 16px;">Read messages from other members</p> </div> </div> <!-- Messages List --> <div class="row g-4"> <?php // Fetch read messages with sender details $sql = "SELECT DISTINCT m.sender_id, ud.user_id, ud.first_name, ud.last_name, ud.sv_user_id, ud.user_token, ud.gender, pi.profile_img, COUNT(m.id) as message_count, MAX(m.timestamp) as last_message_time FROM messages m INNER JOIN user_details ud ON m.sender_id = ud.user_id LEFT JOIN profile_images pi ON ud.user_id = pi.user_id WHERE m.receiver_id = '$user_id' AND m.is_read = 1 GROUP BY m.sender_id, ud.user_id, ud.first_name, ud.last_name, ud.sv_user_id, ud.user_token, ud.gender, pi.profile_img ORDER BY last_message_time DESC"; $result = mysqli_query($conn, $sql); if (mysqli_num_rows($result) > 0) { while ($row = mysqli_fetch_assoc($result)) { $profileImg = ''; if ($row['profile_img'] == 'default.jpg' || empty($row['profile_img'])) { if($row['gender'] == 'Female'){ $profileImg = '../images/female.jpg'; } else { $profileImg = '../images/male.png'; } } else { $profileImg = '../admin/images/members/' . $row['profile_img']; } ?> <div class="col-lg-6 col-md-12 mb-4"> <div class="match-card" style="cursor: pointer;" onclick="window.location.href='inbox?user_id=<?=$row['user_id']?>'"> <div class="match-card-content"> <div class="match-avatar"> <img src="<?=$profileImg?>" alt="<?=$row['first_name']?> <?=$row['last_name']?>" onerror="this.src='../admin/images/members/default.jpg'"> </div> <div class="match-info"> <h4 class="match-name"><?=$row['first_name']?> <?=$row['last_name']?></h4> <div class="match-details"> <p class="match-item"> <i class="icofont-check-circled"></i> <strong>Read Messages:</strong> <?=$row['message_count']?> </p> <p class="match-item"> <i class="icofont-clock-time"></i> <strong>Last Message:</strong> <?=date('M d, Y h:i A', strtotime($row['last_message_time']))?> </p> </div> <a href="inbox?user_id=<?=$row['user_id']?>" class="match-view-btn"> <i class="icofont-envelope" style="margin-right: 5px;"></i>View Messages </a> </div> </div> </div> </div> <?php } } else { ?> <div class="col-12"> <div class="block-box user-about"> <div class="widget-heading text-center py-5"> <i class="icofont-check-circled" style="font-size: 80px; color: #ddd; margin-bottom: 20px;"></i> <h4 style="color: #999; font-weight: 400;">No accepted invitations</h4> <p style="color: #bbb; margin-top: 10px;">You have no read messages at the moment</p> </div> </div> </div> <?php } ?> </div> </div> </div> <style type="text/css"> body { background-color: #f5f5f5; } .match-card { background: #fff; border-radius: 15px; box-shadow: 0 3px 15px rgba(0,0,0,0.08); transition: all 0.3s ease; overflow: hidden; border: 2px solid transparent; } .match-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(40, 167, 69, 0.15); border-color: #28a745; } .match-card-content { padding: 25px; display: flex; align-items: center; gap: 20px; } .match-avatar { width: 100px; height: 100px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 3px solid #28a745; } .match-avatar img { width: 100%; height: 100%; object-fit: cover; } .match-info { flex: 1; } .match-name { font-size: 22px; font-weight: 600; color: #333; margin-bottom: 15px; } .match-details { margin-bottom: 15px; } .match-item { margin: 8px 0; color: #666; font-size: 14px; } .match-item i { color: #28a745; margin-right: 8px; } .match-view-btn { display: inline-block; padding: 10px 20px; background: linear-gradient(135deg, #28a745 0%, #20c997 100%); color: #fff; border-radius: 8px; text-decoration: none; font-weight: 600; transition: all 0.3s ease; } .match-view-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3); color: #fff; } </style> <?php include('footer.php'); ?>