<?php 
    echo "<div class='col-md-12'>
              <div class='box box-info'>
                <div class='box-header with-border'>
                  <h3 class='box-title'>Edit Komentar Berita</h3>
                </div>
              <div class='box-body'>";
              $attributes = array('class'=>'form-horizontal','role'=>'form');
              echo form_open_multipart('administrator/edit_komentarberita',$attributes); 
          echo "<div class='col-md-12'>
                  <table class='table table-condensed table-bordered'>
                  <tbody>
                    <input type='hidden' name='id' value='$rows[id_komentar]'>
                    <tr><th width='120px' scope='row'>Nama Komentar</th>    <td><input type='text' class='form-control' name='a' value='$rows[nama_komentar]'></td></tr>
                    <tr><th scope='row'>Website</th>    <td><input type='text' class='form-control' name='b' value='$rows[url]'></td></tr>
                    <tr><th scope='row'>Email</th>    <td><input type='text' class='form-control' name='e' value='$rows[email]'></td></tr>
                    <tr><th scope='row'>Isi Komentar</th>             <td><textarea class='form-control' name='c' style='height:200px'>$rows[isi_komentar]</textarea></td></tr>
                    <tr><th scope='row'>Aktif</th>    <td>"; if ($rows['aktif']=='Y'){ echo "<input type='radio' name='d' value='Y' checked> Ya <input type='radio' name='d' value='N'> Tidak"; }else{ echo "<input type='radio' name='d' value='Y'> Ya <input type='radio' name='d' value='N' checked> Tidak"; } echo "</td></tr>

                  </tbody>
                  </table>
                </div>
              
              <div class='box-footer'>
                    <button type='submit' name='submit' class='btn btn-info'>Update</button>
                  <button type='button' class='btn btn-default pull-right' onclick='history.back()'>Cancel</button>
                    
                  </div>
            </div></div></div>";
            echo form_close();