HEX
Server: LiteSpeed
System: Linux 110.webhostingindonesia.co.id 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User: uvlnfyba (10197)
PHP: 7.4.33
Disabled: opcache_get_status,exec,passthru,shell_exec,system,popen,mail,proc_open,show_source,
Upload Files
File: /home/jkwebsite.my.id/bukutamu.galleryinvitation.my.id/application/views/tamu/ex_pdf.php
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title><?= $title ?></title>
</head>

<style>
table#table {
  width: 100%;
  /* border: 1; */
  border-collapse: collapse;
}

#table thead {
  margin-top: 50px;
}

#table th {
  text-align: center;
  border: 1px;
  padding: 5px 1px;
}

#table td {
  text-align: left;
  border: 1px;
  padding: 5px 8px;
}

#table tr#header td {
  border: 0px;
  border-bottom: 1px solid #000;
  padding: 8px 2px;
}

img {
  width: auto;
  height: 50px;
  display: inline-block;
  margin-right: 20px;
  margin-bottom: 10px;
  position: absolute;
  left: 5px;
  top: -10px;
}
</style>

<body>

  <table id="table">
    <thead>

      <tr id="header">
        <img src="<?= base_url('assets/img/page/logo.png') ?>" alt="">
        <td colspan="4" style="padding-left: 80px;">
          <span style="font-size: 16px;font-weight: bold;">Data Tamu</span><br>
          <span style="font-weight: bold;font-size: 12px;"><?= $event['wedding'] ?> <?= $event['nama'] ?></span>
        </td>
        <td>
          <span style="font-size: 14px;"><?= $title ?></span><br>
          <span style="font-size: 11px;">Dicetak: <?= date('d/m/Y') ?></span>
        </td>
      </tr>

      <tr>
        <th style="width: 7%;">No</th>
        <th style="width: 30%;">Nama</th>
        <th style="width: 26%;">Alamat</th>
        <th style="width: 15%;">Jml Tamu</th>
        <th style="width: 22%;">Checkin</th>
      </tr>
    </thead>

    <tbody>


      <?php $i = 1;
      foreach ($tamu as $row) : ?>

      <?php
        if ($row['jam_hadir'] > 0) {
          $tanggal = date('d/m/Y H:i:s', $row['jam_hadir']);
        } else {
          $tanggal = "Tidak Hadir";
        }
        ?>

      <tr>
        <td style="text-align: center;"><?= $i++ ?></td>
        <td><?= $row['nama'] ?></td>
        <td><?= $row['alamat'] ?></td>
        <td style="text-align: center;"><?= $row['jml_tamu'] ?></td>
        <td><?= $tanggal ?></td>
      </tr>
      <?php endforeach; ?>
    </tbody>
  </table>


</body>

</html>