Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
antiradionic
/
hirepro
/
admin
/
PHPMailer-master
/
language
:
admin_dashboard-20260430031644.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php include "menu.php"; include "config.php"; // Include your database connection code. ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>HirePro</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8sh+Wyb4Q4N/bvAgOVgmvwA2hXDDlBOoaFQI5k" crossorigin="anonymous"> <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/3.7.0/chart.min.js"></script> <style> .card.s { width: 250px; background: linear-gradient(#0052D4, #2B32B2); } .card.s.ems:hover { background: linear-gradient(#023a94, #000bd7); } .card.ems { background: linear-gradient(#0052D4, #2B32B2); } .card.s.d { width: 250px; background: linear-gradient(#ff6f05, #b22b2b); } .card hr { color: #1c3cbd; width: 135px; } .newcolor { color: white !important; } .newcolora { color: #d2d2d2 !important; } .card.ss { width: auto; background: transparent; } i.bx.bx-arrow-back { margin-bottom: 2px; } hr.b { width: 170px !important; } hr.c { width: 290px !important; } .corner-text { position: absolute; top: 90; right: 205; font-size: 14px; /* Adjust the font size as needed */ color: #fff; /* Adjust the text color as needed */ } .corner-texts { position: absolute; top: 90; right: 205; font-size: 14px; /* Adjust the font size as needed */ color: #fff; /* Adjust the text color as needed */ } .corner-textsg { position: absolute; top: 90; right: 205; font-size: 14px; /* Adjust the font size as needed */ color: #fff; /* Adjust the text color as needed */ } .corner-textsu { position: absolute; top: 90; right: 205; font-size: 14px; /* Adjust the font size as needed */ color: #fff; /* Adjust the text color as needed */ } .wtg { margin-top: 10px; padding-top: 20px; } </style> </head> <body> <!-- EMS ADMIN --> <?php if ($_SESSION["admin_role"] == "Admin") : ?> <!-- Status --> <div class="container mt-2"> <div class="page-breadcrumb"> <!-- -----------------------EMS------------------------- --> <div class="row mb-5"> <div class="col-lg-9 col-md-6 col-sm-12 align-self-center d-sm-block"> <h3 class="page-title text-truncate text-dark font-weight-medium mb-5 mt-2"> <i class="fas fa-envelope-open-text mr-1" style="color:#054ed0;"></i> <span>Summary</span> </h3> </div> <div class="card-group border-0"> <!-- Total Test Sent Tab --> <div class="card "> <div class="card-body d-flex flex-column align-items-center justify-content-center"> <?php include "config.php"; // Include your database connection code. // Query to count the cities $countemails = "SELECT COUNT(*) AS emailcounts FROM `admin_messages` "; $result = mysqli_query($conn, $countemails); if ($result && mysqli_num_rows($result) > 0) { $row = mysqli_fetch_assoc($result); $emailscount = $row['emailcounts']; echo "<h1 style='font-size: 50px;' class='text-dark mb-1 font-weight-bolder'>$emailscount</h1>"; } else { echo "<h1 class='text-dark mb-1 font-weight-medium'>0</h1>"; } ?> <h5 class="text-muted font-weight-normal mb-0 w-100 text-truncate text-center">Total Emails Sent</h5> <span class="opacity-7 text-muted"><i data-feather="user-plus"></i></span> </div> </div> <!-- Total Test Sent Tab --> <!-- Total Test Taken --> <div class="card"> <div class="card-body d-flex flex-column align-items-center justify-content-center"> <?php include "config.php"; // Include your database connection code. // Query to count the cities $countemails = "SELECT COUNT(*) AS usercounts FROM `companies_register` "; $result = mysqli_query($conn, $countemails); if ($result && mysqli_num_rows($result) > 0) { $row = mysqli_fetch_assoc($result); $userscount = $row['usercounts']; echo "<h1 style='font-size: 50px;' class='text-dark mb-1 font-weight-medium'>$userscount</h1>"; } else { echo "<h1 style='font-size: 50px;' class='text-dark mb-1 font-weight-medium' class='newcolora mb-1 font-weight-medium'>0</h1>"; } ?> <h5 class="text-muted font-weight-normal mb-0 w-100 text-truncate text-center">Company Registrations </h5> <span class="opacity-7 text-muted"><i data-feather="user-plus"></i></span> </div> </div> <!-- Total Test Taken --> </div> </div> <hr> <!-- -----------------------EMS------------------------- --> </div> <!-- Status --> <?php endif; ?> <!-- EMS ADMIN --> <script> // Your existing PHP code here // Data for the chart var chartData = { labels: ["Speed", "Accuracy", "Standard Opening", "ICE Link Shared", "Gramatic Accuracy", "Upselling"], datasets: [{ label: 'Percentage', backgroundColor: ['#1c3cbd', '#1c3cbd', '#1c3cbd', '#1c3cbd', '#1c3cbd', '#1c3cbd'], data: [ <?php echo $formattedSpeedPercentage; ?>, <?php echo $formattedAccuracyPercentage; ?>, <?php echo $formattedstandardopening; ?>, <?php echo $formattedICELinkshared; ?>, <?php echo $formattedGramaticAccuracyofEmail; ?>, <?php echo $formattedUpselling; ?> ] }] }; // Get the canvas element var ctx = document.getElementById('barChart').getContext('2d'); // Create a bar chart var myChart = new Chart(ctx, { type: 'bar', data: chartData, options: { scales: { y: { beginAtZero: true, max: 100 } } } }); </script> </body> </html> <!-- Your HTML and CSS imports here -->