martinms

4 Membuat Tabel Data Pendaftar UKM XYZ Ft Unib

Jul 22nd, 2021
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.63 KB | None | 0 0
  1. <?php
  2. $students = array(
  3.   array(
  4.     'id' => 1,
  5.     'nama' => 'Nasim Jailani',
  6.     'semester' => 5,
  7.     'hp' => '0957 5274 9001',
  8.     'email' => '[email protected]',
  9.     'prodi' => array(
  10.       'kode' => 'B',
  11.       'nama' => 'Teknik Sipil'
  12.     )
  13.   ),
  14.   array(
  15.     'id' => 2,
  16.     'nama' => 'Talia Safitri',
  17.     'semester' => 8,
  18.     'hp' => '(+62) 551 8049 0072',
  19.     'email' => '[email protected]',
  20.     'prodi' => array(
  21.       'kode' => 'F',
  22.       'nama' => 'Sistem Informasi'
  23.     )
  24.   ),
  25.   array(
  26.     'id' => 3,
  27.     'nama' => 'Kemal Wacana',
  28.     'semester' => 3,
  29.     'hp' => '(+62) 22 4332 334',
  30.     'email' => '[email protected]',
  31.     'prodi' => array(
  32.       'kode' => 'E',
  33.       'nama' => 'Arsitektur'
  34.     )
  35.   ),
  36.   array(
  37.     'id' => 4,
  38.     'nama' => 'Dodo Putra',
  39.     'semester' => 3,
  40.     'hp' => '(+62) 744 8775 1313',
  41.     'email' => '[email protected]',
  42.     'prodi' => array(
  43.       'kode' => 'A',
  44.       'nama' => 'Informatika'
  45.     )
  46.   ),
  47.   array(
  48.     'id' => 5,
  49.     'nama' => 'Cornelia Pratiwi',
  50.     'semester' => 3,
  51.     'hp' => '(+62) 885 4027 147',
  52.     'email' => '[email protected]',
  53.     'prodi' => array(
  54.       'kode' => 'E',
  55.       'nama' => 'Arsitektur'
  56.     )
  57.   ),
  58.   array(
  59.     'id' => 6,
  60.     'nama' => 'Ibun Waluyo',
  61.     'semester' => 8,
  62.     'hp' => '(+62) 903 8600 6859',
  63.     'email' => '[email protected]',
  64.     'prodi' => array(
  65.       'kode' => 'B',
  66.       'nama' => 'Teknik Sipil'
  67.     )
  68.   ),
  69.   array(
  70.     'id' => 7,
  71.     'nama' => 'Cindy Laksita',
  72.     'semester' => 2,
  73.     'hp' => '(+62) 216 3423 433',
  74.     'email' => '[email protected]',
  75.     'prodi' => array(
  76.       'kode' => 'B',
  77.       'nama' => 'Teknik Sipil'
  78.     )
  79.   ),
  80.   array(
  81.     'id' => 8,
  82.     'nama' => 'Balapati Lukita Maulana',
  83.     'semester' => 8,
  84.     'hp' => '(+62) 659 3411 335',
  85.     'email' => '[email protected]',
  86.     'prodi' => array(
  87.       'kode' => 'C',
  88.       'nama' => 'Teknik Mesin'
  89.     )
  90.   ),
  91.   array(
  92.     'id' => 9,
  93.     'nama' => 'Nurul Lestari',
  94.     'semester' => 5,
  95.     'hp' => '0613 8445 3114',
  96.     'email' => '[email protected]',
  97.     'prodi' => array(
  98.       'kode' => 'D',
  99.       'nama' => 'Teknik Elektro'
  100.     )
  101.   ),
  102.   array(
  103.     'id' => 10,
  104.     'nama' => 'Makuta Narpati',
  105.     'semester' => 8,
  106.     'hp' => '(+62) 313 8545 4269',
  107.     'email' => '[email protected]',
  108.     'prodi' => array(
  109.       'kode' => 'B',
  110.       'nama' => 'Teknik Sipil'
  111.     )
  112.   ),
  113. );
  114. ?>
  115. <!DOCTYPE html>
  116. <html lang="id">
  117.  
  118. <head>
  119.   <meta charset="UTF-8">
  120.   <meta http-equiv="X-UA-Compatible" content="IE=edge">
  121.   <meta name="viewport" content="width=device-width, initial-scale=1.0">
  122.  
  123.   <title>Data Mahasiswa Pendaftar</title>
  124.  
  125.   <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">
  126.  
  127.   <style>
  128.     body {
  129.       padding-top: 50px;
  130.     }
  131.   </style>
  132. </head>
  133.  
  134. <body>
  135.   <div class="container">
  136.     <div class="row">
  137.       <div class="col-10 mx-auto">
  138.         <h3 class="display-4">Data Mahasiswa</h3>
  139.  
  140.         <p>Pendaftaran UKM XYZ</p>
  141.         <p>Syarat diterima: <code>semester >= 4</code></p>
  142.  
  143.         <table class="table table-striped">
  144.           <thead class="thead-dark">
  145.             <th scope="col">ID</th>
  146.             <th scope="col">Nama</th>
  147.             <th scope="col">Semester</th>
  148.             <th scope="col">No. HP</th>
  149.             <th scope="col">Email</th>
  150.             <th scope="col">Prodi</th>
  151.             <th scope="col">Diterima</th>
  152.           </thead>
  153.           <tbody>
  154.            
  155.           </tbody>
  156.         </table>
  157.       </div>
  158.     </div>
  159.   </div>
  160. </body>
  161.  
  162. </html>
Advertisement
Add Comment
Please, Sign In to add comment