154 lines
6.1 KiB
PHP
154 lines
6.1 KiB
PHP
<?php
|
||
// Mock data for the contact directory
|
||
$contacts = [
|
||
[
|
||
"Cust.Code" => "C001",
|
||
"Ticari Unvan" => "Flatlogic Inc.",
|
||
"Sehir" => "New York",
|
||
"Ad" => "John",
|
||
"Soyad" => "Doe",
|
||
"Telefon" => "123-456-7890",
|
||
"E-posta" => "john.doe@example.com",
|
||
"Grup Adı" => "VIP",
|
||
],
|
||
[
|
||
"Cust.Code" => "C002",
|
||
"Ticari Unvan" => "Google LLC",
|
||
"Sehir" => "Mountain View",
|
||
"Ad" => "Jane",
|
||
"Soyad" => "Smith",
|
||
"Telefon" => "987-654-3210",
|
||
"E-posta" => "jane.smith@example.com",
|
||
"Grup Adı" => "Technology",
|
||
],
|
||
[
|
||
"Cust.Code" => "C003",
|
||
"Ticari Unvan" => "Microsoft Corp.",
|
||
"Sehir" => "Redmond",
|
||
"Ad" => "Peter",
|
||
"Soyad" => "Jones",
|
||
"Telefon" => "555-123-4567",
|
||
"E-posta" => "peter.jones@example.com",
|
||
"Grup Adı" => "Software",
|
||
],
|
||
[
|
||
"Cust.Code" => "C004",
|
||
"Ticari Unvan" => "Apple Inc.",
|
||
"Sehir" => "Cupertino",
|
||
"Ad" => "Mary",
|
||
"Soyad" => "Johnson",
|
||
"Telefon" => "555-987-6543",
|
||
"E-posta" => "mary.j@example.com",
|
||
"Grup Adı" => "Hardware",
|
||
],
|
||
[
|
||
"Cust.Code" => "C005",
|
||
"Ticari Unvan" => "Amazon.com, Inc.",
|
||
"Sehir" => "Seattle",
|
||
"Ad" => "David",
|
||
"Soyad" => "Williams",
|
||
"Telefon" => "555-555-5555",
|
||
"E-posta" => "david.w@example.com",
|
||
"Grup Adı" => "e-Commerce",
|
||
]
|
||
];
|
||
?>
|
||
<!DOCTYPE html>
|
||
<html lang="tr">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
||
<title>rehber</title>
|
||
<meta name="description" content="Built with Flatlogic Generator">
|
||
<meta name="keywords" content="rehber, contact management, web application, user directory, online address book, contact list, php directory, Built with Flatlogic Generator">
|
||
|
||
<meta property="og:title" content="rehber">
|
||
<meta property="og:description" content="Built with Flatlogic Generator">
|
||
<meta property="og:image" content="">
|
||
<meta name="twitter:card" content="summary_large_image">
|
||
<meta name="twitter:image" content="">
|
||
|
||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
|
||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
|
||
<link rel="stylesheet" href="assets/css/custom.css">
|
||
</head>
|
||
<body>
|
||
|
||
<nav class="navbar navbar-expand-lg navbar-light bg-white sticky-top">
|
||
<div class="container-fluid">
|
||
<a class="navbar-brand" href="#">
|
||
<i class="bi bi-book-half me-2"></i>
|
||
rehber
|
||
</a>
|
||
</div>
|
||
</nav>
|
||
|
||
<main class="container my-4">
|
||
<div class="d-flex justify-content-between align-items-center mb-4 flex-wrap">
|
||
<h1 class="h2">Contact Directory</h1>
|
||
<div class="d-flex gap-2">
|
||
<button class="btn btn-primary">
|
||
<i class="bi bi-plus-circle me-2"></i>Add Record
|
||
</button>
|
||
<button class="btn btn-outline-secondary">
|
||
<i class="bi bi-box-arrow-up-right me-2"></i>Export
|
||
</button>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="card p-3">
|
||
<div class="row mb-3">
|
||
<div class="col-md-6">
|
||
<div class="input-group">
|
||
<span class="input-group-text"><i class="bi bi-search"></i></span>
|
||
<input type="text" class="form-control" placeholder="Search contacts...">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="table-responsive">
|
||
<table class="table table-striped table-hover align-middle">
|
||
<thead class="thead-light">
|
||
<tr>
|
||
<th>Cust. Code</th>
|
||
<th>Ticari Unvan</th>
|
||
<th>Şehir</th>
|
||
<th>Ad Soyad</th>
|
||
<th>Telefon</th>
|
||
<th>E-posta</th>
|
||
<th>Grup</th>
|
||
<th class="text-end">Actions</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<?php foreach ($contacts as $contact): ?>
|
||
<tr>
|
||
<td><?php echo htmlspecialchars($contact['Cust.Code']); ?></td>
|
||
<td><?php echo htmlspecialchars($contact['Ticari Unvan']); ?></td>
|
||
<td><?php echo htmlspecialchars($contact['Sehir']); ?></td>
|
||
<td><?php echo htmlspecialchars($contact['Ad'] . ' ' . $contact['Soyad']); ?></td>
|
||
<td><?php echo htmlspecialchars($contact['Telefon']); ?></td>
|
||
<td><a href="mailto:<?php echo htmlspecialchars($contact['E-posta']); ?>"><?php echo htmlspecialchars($contact['E-posta']); ?></a></td>
|
||
<td><span class="badge bg-secondary bg-opacity-25 text-dark"><?php echo htmlspecialchars($contact['Grup Adı']); ?></span></td>
|
||
<td class="text-end">
|
||
<a href="#" class="action-icon me-2" data-bs-toggle="tooltip" title="Edit"><i class="bi bi-pencil-square"></i></a>
|
||
<a href="#" class="action-icon" data-bs-toggle="tooltip" title="Delete"><i class="bi bi-trash"></i></a>
|
||
</td>
|
||
</tr>
|
||
<?php endforeach; ?>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</main>
|
||
|
||
<footer class="text-center text-muted py-4">
|
||
<small>© <?php echo date("Y"); ?> rehber. All rights reserved.</small><br>
|
||
<small>Built with Flatlogic Generator</small>
|
||
</footer>
|
||
|
||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
|
||
<script src="assets/js/main.js"></script>
|
||
</body>
|
||
</html>
|