115 lines
2.9 KiB
PHP
115 lines
2.9 KiB
PHP
<?php
|
|
require_once "classes/Record.php";
|
|
|
|
$record = new Record();
|
|
|
|
$totalRecord = $record->countTotal();
|
|
$activeRecord = $record->countActive();
|
|
$inactiveRecord = $record->countInactive();
|
|
|
|
?>
|
|
|
|
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>CRUD Manager</title>
|
|
|
|
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css">
|
|
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons/font/bootstrap-icons.css" rel="stylesheet">
|
|
<link rel="stylesheet" href="style.css">
|
|
|
|
</head>
|
|
<body>
|
|
|
|
|
|
<nav class="navbar padding custom-navbar">
|
|
<div class="container-fluid nav-inner">
|
|
|
|
|
|
<div class="logo">
|
|
<a href="index.php" class="text-decoration-none text-dark">
|
|
<span class="logo-icon">C</span>
|
|
<span class="logo-text">CRUD Manager</span>
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="search-area">
|
|
<i class="fa fa-search search-icon"></i>
|
|
<input type="text" class="search-box" placeholder="Search anything...">
|
|
</div>
|
|
|
|
|
|
<div class="nav-links">
|
|
<button class="btn btn-dark">Home</button>
|
|
<a href="./record.php" class="nav-link-btn">Records</a>
|
|
<div class="profile">👤</div>
|
|
</div>
|
|
|
|
</div>
|
|
</nav>
|
|
|
|
|
|
<div class="container top-space">
|
|
<div class="main-card">
|
|
<h1>CRUD Manager</h1>
|
|
<p>
|
|
Efficiently manage, create, edit, and organize all your records in one powerful dashboard.
|
|
Track status, monitor activity, and maintain complete control over your data.
|
|
</p>
|
|
|
|
<div class="button-group">
|
|
<a href="manage_records.php" class="btn btn-dark">View Record</a>
|
|
<a href="./record.php" class="btn btn-outline-dark">Create New Record</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="container top-space">
|
|
<div class="row">
|
|
|
|
<div class="col-md-4">
|
|
<div class="stat-box">
|
|
<p>Total Records</p>
|
|
<h2><?= $totalRecord; ?></h2>
|
|
<i class="bi bi-database icon-blue"></i>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-4">
|
|
<div class="stat-box">
|
|
<p>Active</p>
|
|
<h2><?php echo $activeRecord; ?></h2>
|
|
<i class="bi bi-check-circle text-success"></i>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-4">
|
|
<div class="stat-box">
|
|
<p>Pending</p>
|
|
<h2><?php echo $inactiveRecord; ?></h2>
|
|
<i class="bi bi-clock text-warning"></i>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- <div class="col-md-3">
|
|
<div class="stat-box">
|
|
<p>Archived</p>
|
|
<h2>66</h2>
|
|
<i class="bi bi-archive"></i>
|
|
</div>
|
|
</div> -->
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|