emprit

naaa

Sep 26th, 2012
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.27 KB | None | 0 0
  1. <style type='text/css'>
  2. table{
  3. width:100%
  4. }
  5.  
  6. table th{
  7. padding:1em
  8. }
  9.  
  10. table td{
  11. padding:.5em
  12. }
  13.  
  14. tr:hover{
  15. color:blue;
  16. }
  17.  
  18. .table-overview{
  19. width:100%;
  20. margin:1em 0;
  21. border:1px solid rgba(0,0,0,.1)
  22. }
  23.  
  24. .table-overview td,.table-overview th{
  25. padding:8px 15px;
  26. border-bottom:1px solid #eee;
  27. border-right:1px solid #eee;
  28. border-collapse:collapse;
  29. text-align:left
  30. }
  31.  
  32. .table-overview th{
  33. background-color:#ececec
  34. }
  35.  
  36.  
  37. #hor-minimalist-b {
  38.     font-family: "Lucida Sans Unicode","Lucida Grande",Sans-Serif;
  39.     font-size: 12px;
  40.     background: none repeat scroll 0% 0% rgb(255, 255, 255);
  41.     width: 480px;
  42.     border-collapse: collapse;
  43.     text-align: left;
  44.     margin: 20px;
  45. }
  46.  
  47. </style>
  48. <table id="hor-minimalist-b" class="table-overview">
  49. <tr>
  50. <th scope="col">No</th>
  51. <th scope="col">Nama</th>
  52. <th scope="col">Nama Lengkap</th>
  53. <th scope="col">Email</th>
  54. <th scope="col">Aksi</th>
  55. </tr>
  56. <?php
  57. $i=0;
  58. foreach ($query as $row){
  59. $i++;
  60. echo    "<tr class='odd gradeX'>";
  61. echo    "<td><center>$i</center></td>";
  62. echo    "<td>$row->nama</td>";
  63. echo    "<td>$row->nama_lengkap</td>";
  64. echo    "<td>$row->email</td>";
  65. echo    "<td><a href='edit/{$row->id_user}'>Edit</a> | <a href='hapus/{$row->id_user}'>Hapus</a></td>";
  66. echo  "</tr>";
  67. }
  68. ?>
  69. </table>
Advertisement
Add Comment
Please, Sign In to add comment