HEX
Server: LiteSpeed
System: Linux server137.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User: bibuzptr (1123)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/bibuzptr/elearning.bibu-edu.us/verify-certificate.php
<?php include("db.php"); ?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Certificate Verification Portal - BIBU</title>
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
  <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css" rel="stylesheet">
  <style>
  /* BIBU Brand Colors */
  :root {
    --primary: #0d233b;   /* Navy */
    --accent: #e99743;    /* Gold */
    --light: #f5f5f5;     /* Soft gray */
  }

  body {
    background-color: var(--light);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }

  .portal-header {
    background-color: var(--primary);
  }

  .portal-header img {
    max-height: 80px;
    margin-bottom: 10px;
  }

  .btn-verify {
    background-color: var(--accent);
    color: white;
    font-weight: bold;
    transition: 0.3s;
  }
  .btn-verify:hover {
    background-color: #c97a2f;
  }

  .card {
    border-radius: 12px;
  }

  footer {
    background-color: var(--primary);
    color: white;
    text-align: center;
    padding: 15px 0;
    margin-top: 200px;
  }

  /* Info box style like Angaza */
  .info-box {
    background: white;
    border-radius: 10px;
    padding: 12px 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .info-box .icon {
    font-size: 1.4rem;
    color: var(--primary);
  }

  .info-box strong {
    color: var(--primary);
    font-size: 0.9rem;
  }

  .info-box span {
    color: #333;
    font-size: 1rem;
  }

  /* Highlighted certificate key */
  .info-box.key-box {
    background: var(--accent);
    color: white;
  }
  .info-box.key-box strong,
  .info-box.key-box span,
  .info-box.key-box .icon {
    color: white;
  }
  </style>
  <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
</head>
<body>

  <!-- Header -->
  <div class="text-center text-white py-4 portal-header">
    <img src="https://www.elearning.bibu-edu.us/assets/img/logobg.png" alt="BIBU Logo">
    <h2>Certificate Verification Portal</h2>
    <p>Breakthrough International Bible College & University</p>
  </div>

  <!-- Verification Form -->
  <div class="container my-5">
    <div class="card shadow-lg p-4 mx-auto" style="max-width: 500px;">
      <h5 class="mb-3 text-center">Verify Certificate</h5>
      <div class="mb-3">
        <label for="serial" class="form-label">Enter Certificate Serial Number</label>
        <input type="text" id="serial" class="form-control" placeholder="e.g. BIBU2025-001">
      </div>
      <div class="d-grid">
        <button id="verifyBtn" class="btn btn-verify">Verify</button>
      </div>
      <div id="result" class="mt-4"></div>
    </div>
  </div>

  <!-- Footer -->
  <footer>
    © 2025 Breakthrough International Bible College & University. All rights reserved.
  </footer>

<script>
$(document).ready(function(){
  $("#verifyBtn").click(function(){
    var serial = $("#serial").val().trim();
    if(serial == ""){
      $("#result").html('<div class="alert alert-warning">Please enter a certificate number.</div>');
      return;
    }
    $("#result").html('<div class="alert alert-primary">Processing request. Please wait</div>');
    $.ajax({
      url: "app/verify",
      type: "POST",
      data: { serial: serial },
      success: function(response){
        $("#result").html(response);
      }
    });
  });
});
</script>

</body>
</html>