/
home
/
u897542709
/
domains
/
zcardin.com
/
public_html
/
Upload File
HOME
<?php require 'config.php'; // فلترة البحث $search = $_GET['search'] ?? ''; $field_filter = $_GET['field'] ?? ''; $location_filter = $_GET['location'] ?? ''; // SQL بناء $sql = "SELECT * FROM AutoUsers WHERE 1"; $params = []; if ($search) { $sql .= " AND (full_name LIKE ? OR skills LIKE ?)"; $params[] = "%$search%"; $params[] = "%$search%"; } if ($field_filter) { $sql .= " AND business_field = ?"; $params[] = $field_filter; } if ($location_filter) { $sql .= " AND location = ?"; $params[] = $location_filter; } $stmt = $pdo->prepare($sql); $stmt->execute($params); $users = $stmt->fetchAll(); ?> <!DOCTYPE html> <html> <head> <title>Discover Professionals - ZCardIn</title> <style> body { font-family: Arial, sans-serif; padding: 20px; } .user-card { border: 1px solid #ccc; padding: 15px; border-radius: 10px; margin: 10px; width: 300px; display: inline-block; vertical-align: top; } .user-card img { width: 100px; height: 100px; border-radius: 50%; } .search-bar input, .search-bar select { margin: 5px; padding: 5px; } </style> </head> <body> <h2>اكتشف المستخدمين</h2> <form class="search-bar" method="GET"> <input type="text" name="search" placeholder="ابحث بالاسم أو المهارات" value="<?= htmlspecialchars($search) ?>"> <input type="text" name="field" placeholder="مجال العمل" value="<?= htmlspecialchars($field_filter) ?>"> <input type="text" name="location" placeholder="الموقع" value="<?= htmlspecialchars($location_filter) ?>"> <button type="submit">بحث</button> </form> <div class="results"> <?php foreach ($users as $u): ?> <div class="user-card"> <img src="<?= htmlspecialchars($u['profile_image'] ?? 'default.png') ?>" alt="Profile Picture"> <h3><?= htmlspecialchars($u['full_name']) ?></h3> <p><strong>المجال:</strong> <?= htmlspecialchars($u['business_field']) ?></p> <p><strong>الموقع:</strong> <?= htmlspecialchars($u['location']) ?></p> <p><strong>المهارات:</strong> <?= htmlspecialchars($u['skills']) ?></p> <a href="profile_view.php?public_id=<?= urlencode($u['public_id']) ?>">عرض البروفايل</a> </div> <?php endforeach; ?> </div> </body> </html>