<div class="clearfix">
<div class="row">
  <div class="col-lg-12">
	
	<div class="navbar navbar-inverse">
		<div class="container">
			<div class="navbar-header">
				<a class="navbar-brand" href="<?php echo base_URL(); ?>gelar/list_data_">Semua Gelar Pendidikan</a>
			</div>
			<ul class="nav navbar-nav">
				<li><a href="<?php echo base_URL(); ?>gelar/tambah_" class="btn-info"><i class="icon-plus-sign icon-white"> </i> Tambah Data</a></li>
			</ul>
		<div class="navbar-collapse collapse navbar-inverse-collapse" style="margin-right: -20px">
			
			<ul class="nav navbar-nav navbar-right">
				<form class="navbar-form navbar-left" method="post" action="<?php echo base_URL(); ?>gelar/list_data_/cari">
					<input type="text" class="form-control" name="q" style="width: 200px" placeholder="Kata kunci pencarian ..." required>
					<button type="submit" class="btn btn-danger"><i class="icon-search icon-white"> </i> Cari</button>
				</form>
			</ul>
		</div><!-- /.nav-collapse -->
		</div><!-- /.container -->
	</div><!-- /.navbar -->

  </div>
</div>
            <div class="col-lx-12">  
              <div class="box">
                <div class="box-body">
				<?php echo $this->session->flashdata("k");?>
                  <table id="example1" class="table table-bordered table-striped">
                    <thead>
                      <tr>
                        <th style='width:5%'>No</th>
                        <th style='width:35%'>Singkatan Nama Gelar</th>
              			<th style='width:35%'>Keterangan</th>
	                    <th style='width:15%'>Action</th>
                      </tr>
                    </thead>
                    <tbody>
                  <?php 
                    $no = 1;
                    foreach ($record->result_array() as $row){
						$ect_id = base64_encode($this->encrypt->encode($row['gelar_pendidikan_id']));
                    echo "<tr><td><center>$no</center></td>
							<td>$row[nama_gelar_pendidikan]</td>
							<td>$row[keterangan]</td>
							 <td><center>";
								echo "
									 <a class='btn btn-success btn-xs' title='Edit Data' href='".base_url()."gelar/edit_/$ect_id'><span class='btn-success'></span><i class='icon-edit icon-white'></i></a>&nbsp
									 <a class='btn btn-danger btn-xs' title='Delete Data' href='".base_url()."gelar/list_data_/del/$ect_id' onclick=\"return confirm('Apa anda yakin untuk hapus Data ini?')\"><span class='btn-danger' ><i class='icon-trash icon-remove'>  </i></span></a>
											
									";
								
								echo "
							    
                              </center></td>
                          </tr>";
                      $no++;
                    }
                  ?>
                  </tbody>
                </table>
              </div>
			 </div>