laporan output pdf

Yuzuki · Dec 16, 2019

mohon bantuannya gan, utk menampil kan output seperti ini apa yg perlu saya tambahkan gan? posisinya di pojok kanan bawah utk tanda tangan. pekanbaru, ……………………. Manager Hotel


(listing tanpa contoh di atas)
&lt;!DOCTYPE html&gt;</p>
<html lang="en">
<?php
    include('../koneksi.php');
?>
<?php 
  session_start();
  error_reporting(0);
    ?>
<head>
  <title>SPK</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="../css/bootstrap.min.css">
  <link rel="stylesheet" href="../css/style.css">
  <link rel="stylesheet" href="../css/print.css" media="print">
  <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"
    integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous">
  </script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"
    integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous">
  </script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"
    integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous">
  </script>
</head>

<body>
<?php
    if($_SESSION['tipeuser'] == "admin"){
    ?>
<div class="container">
    <div class="card m-5">
      <div class="card-header text-center">
        <h3>View Data Pelamar </h3>

      </div>
      <div class="card-body">
        <div class="panel-body">
          <table width="100%" class="table table-bordered table-hover" id="dataTables-example">
            <thead>
              <tr>
                <th>Nomor</th>
                <th>Kode Pelamar</th>
                <th>Nama</th>
                <th>Tanggal Lahir</th>
                <th>Alamat</th>
                <th>No Telp</th>
              </tr>
            </thead>
            <?php
              $queri="Select * From tb_pelamar";
              $hasil=mysqli_query ($konek_db,$queri);   
              $id = 0;
              while ($data = mysqli_fetch_array ($hasil)){  
                    $id++; 
                    echo "      
                            <tr>  
                            <td>".$id."</td>
                        <td>".$data[0]."</td>  
                            <td>".$data[1]."</td>
                                  <td>".$data[2]."</td>
                                  <td>".$data[3]."</td>
                                  <td>".$data[4]."</td>
                                  </tr>   
                        ";      
                    }
              ?>
          </table>
          <button class="btn btn-primary" id="btn-hide" onclick="window.print();" style="display:block;">CETAK</button>
        </div>
      </div>
      <?php
    }else{
      header('Location:../index.php');
    }
    ?>
</body>
</html>
Silahkan login untuk menjawab!