[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
xampp.bak
/
htdocs
/
spmi2
/
application
/
views
/
administrator
/
mod_komentar
/
[
Home
]
File: view_komentar.php
<div class="col-xs-12"> <div class="box"> <div class="box-header"> <h3 class="box-title">Komentar Berita</h3> </div><!-- /.box-header --> <div class="box-body"> <table id="example1" class="table table-bordered table-striped"> <thead> <tr> <th style='width:20px'>No</th> <th width='140px'>Nama Komentar</th> <th>Isi Komentar</th> <th>Aktif</th> <th style='width:70px'>Action</th> </tr> </thead> <tbody> <?php $no = 1; foreach ($record as $row){ $brt = $this->model_app->view_where('berita',array('id_berita'=>$row['id_berita']))->row_array(); if ($row['aktif']=='N'){ $bold = 'bold'; }else{ $bold = 'none'; } echo "<tr style='font-weight:$bold'><td>$no</td> <td><a target='_BLANK' href='".base_url()."berita/detail/$brt[judul_seo]'>$row[nama_komentar]</a></td> <td>$row[isi_komentar]</td> <td align=center>$row[aktif]</td> <td><center> <a class='btn btn-success btn-xs' title='Edit Data' href='".base_url()."administrator/edit_komentarberita/$row[id_komentar]'><span class='glyphicon glyphicon-edit'></span></a> <a class='btn btn-danger btn-xs' title='Delete Data' href='".base_url()."administrator/delete_komentarberita/$row[id_komentar]' onclick=\"return confirm('Apa anda yakin untuk hapus Data ini?')\"><span class='glyphicon glyphicon-remove'></span></a> </center></td> </tr>"; $no++; } ?> </tbody> </table> </div>