<?php 
    echo "<div class='col-md-12'>
              <div class='box box-info'>
                <div class='box-header with-border'>
                  <h3 class='box-title'>Edit File pengumuman</h3>
                </div>
              <div class='box-body'>";
              $attributes = array('class'=>'form-horizontal','role'=>'form');
              echo form_open_multipart('administrator/edit_pengumuman',$attributes); 
          echo "<div class='col-md-12'>
                  <table class='table table-condensed table-bordered'>
                  <tbody>
                    <input type='hidden' name='id' value='$rows[id_pengumuman]'>
                    <tr><th width='120px' scope='row'>Judul</th>    <td><input type='text' class='form-control' name='a' value='$rows[judul]' required></td></tr>
                    <tr><th scope='row'>Keterangan</th>                 <td><textarea id='editor1' class='form-control' name='c'>$rows[keterangan]</textarea></td></tr>
                    <tr><th width='120px' scope='row'>Ganti File</th>    <td><input type='file' class='form-control' name='b'>";
                                                                        if ($rows['file_download'] != ''){ echo "File : <a href='".base_url()."download/file_pengumuman/$rows[file_download]'>$rows[file_download]</a>"; } 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();
