Advertisement
jamboljack

View Kursus

Aug 18th, 2015
324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.54 KB | None | 0 0
  1. <div class="panel-body">
  2.                         <a href="#myAddData" data-toggle="modal" class="btn btn-success"><span class="glyphicon glyphicon-plus-sign"></span> Add Data</a>
  3.                         <div class="adv-table">
  4.                         <table class="display table table-bordered table-striped" id="example">
  5.                         <thead>
  6.                         <tr>
  7.                             <th width="5%">No</th>
  8.                             <th>Nama Kursus</th>
  9.                             <th>Alamat</th>                        
  10.                             <th>Tahun</th>
  11.                             <th>Materi</th>
  12.                             <th width="10%">Penyelenggara</th>
  13.                             <th width="6%" class="hidden-phone">Action</th>
  14.                         </tr>
  15.                         </thead>
  16.                        
  17.                         <tbody>
  18.                         <?php
  19.                             $no = 1;
  20.                             foreach($data_kursus as $r) {
  21.                         ?>
  22.                         <tr class="gradeA">
  23.                             <td><? echo $no; ?></td>
  24.                             <td><? echo $r->kursus_nama; ?></td>
  25.                             <td><? echo $r->kursus_alamat; ?></td>                        
  26.                             <td><? echo $r->kursus_dari_tahun.' s/d '.$r->kursus_sampai_tahun; ?></td>
  27.                             <td><? echo $r->kursus_materi; ?></td>
  28.                             <td><? echo $r->kursus_donatur; ?></td>
  29.                             <td class="center hidden-phone">
  30.                             <a href="#myEditData" data-toggle="modal" data-id="<?php echo $r->kursus_id; ?>">
  31.                             <button type="button" class="btn btn-primary btn-xs edit_button" title="Edit"><i class="icon-pencil"></i></button>
  32.                             </a>
  33.                             <a href="<?php echo site_url('transisi/deletedata/'.$r->kursus_id); ?>" OnClick="return confirm('Yakin Hapus Data Ini ?')" /><button class="btn btn-danger btn-xs" title="Delete"><i class="icon-trash "></i></button></a>
  34.                             </td>                    
  35.                         </tr>
  36.                         <?php
  37.                             $no++;
  38.                         }
  39.                         ?>
  40.                         </tbody>
  41.                        
  42.                         <tfoot>
  43.                         </tfoot>
  44.                         </table>
  45.                         </div>
  46.                     </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement