Willy23

mahasiswa(view1)

May 18th, 2016
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. <div class="container">
  2. <hr>
  3. <form action="<?php echo site_url('mahasiswa/search_keyword');?>" method = "post">
  4. <div class="btn-group btn-group-xs "role="group">
  5. <input type="text" class= "form-control" name="keyword" placeholder = "Search"></div>
  6. <div class="btn-group btn-group "role="group">
  7. <button type="submit" class="btn btn-info" value = "Search" >Cari</button>
  8. </div>
  9. </form>
  10.  
  11. <hr>
  12.  
  13. <label class="label label-primary">Jumlah Mahasiswa :
  14. <?php echo $jlh; ?>
  15. </label>
  16. <table class="table table-hover">
  17. <tr>
  18. <th>ID Mahasiswa</th>
  19. <th>Nama Mahasiswa</th>
  20. <th>Tempat Lahir</th>
  21. <th>Tanggal Lahir</th>
  22. <th>Jenis Kelamin</th>
  23. <th>Alamat</th>
  24. <th>Agama</th>
  25. <th>Hobi</th>
  26. <th>No. Telepon</th>
  27. <th>Program Studi</th>
  28. </tr>
  29. <?php
  30. foreach ($item as $row){
  31. echo "<tr>";
  32. echo "<td>".$row->mahasiswa_id."</td>";
  33. echo "<td>".$row->namamahasiswa."</td>";
  34. echo "<td>".$row->tempatlahir."</td>";
  35. echo "<td>".$row->tanggallahir."</td>";
  36. echo "<td>".$row->jeniskelamin."</td>";
  37. echo "<td>".$row->alamat."</td>";
  38. echo "<td>".$row->namaagama."</td>";
  39. echo "<td>".$row->hobi."</td>";
  40. echo "<td>".$row->notelp."</td>";
  41. echo "<td>".$row->namaprodi."</td>";
  42. echo "<td>";
  43. ?>
  44.  
  45.  
  46. <div class="btn-group btn-group-xs" role="group">
  47. <a class="btn btn-warning" href="<?php echo site_url("mahasiswa/edit?id=$row->mahasiswa_id");?>">Edit</a>
  48. <a class="btn btn-danger" href="<?php echo site_url("mahasiswa/hapus?id=$row->mahasiswa_id");?>">Delete</a>
  49. </div>
  50. <?php
  51. echo"</td>";
  52. echo"</tr>";
  53. }
  54. ?>
  55. </table>
  56. </div>
Advertisement
Add Comment
Please, Sign In to add comment