<div class="navbar navbar-inverse">
	<div class="container" style="z-index: 0">
		<div class="navbar-header">
			<span class="navbar-brand" href="#">Edit Master Kelurahan</span>
		</div>
	</div><!-- /.container -->
	
</div><!-- /.navbar -->

	<div class="row-fluid well" style="overflow: hidden">

<!-- /.batas dari ci_lama -->
<?php 
    echo "<div class='col-md-12'>
              <div class='box box-info'>
                
              <div class='box-body'>";
              $attributes = array('class'=>'form-horizontal','role'=>'form');
              echo form_open_multipart('kelurahan/edit_',$attributes); 
          echo "<div class='col-md-12'>
                  <table class='table table-condensed table-bordered'>
                  <tbody>
                    <input type='hidden' name='id' value='$rows[id_kel]'>
					<tr><th scope='row'>Kecamatan</th>               <td><select name='a' class='form-control'>
                                                                            <option value='' selected>- Pilih Kecamatan -</option>";
                                                                           	foreach ($kecamatan->result_array() as $row){
                                                                                if ($rows['id_kec'] == $row['id_kec']){
                                                                                  echo "<option value='$row[id_kec]' selected>$row[nama_kec]</option>";
                                                                                }else{
                                                                                  echo "<option value='$row[id_kec]'>$row[nama_kec]</option>";
                                                                                }
                                                                            }
                    echo "</td></tr>
					<tr><th style='width:20%' scope='row'>Kelurahan</th>    <td><input type='text' class='form-control' name='b' value='$rows[nama_kel]' required></td></tr>
                    <tr><th scope='row'>Radius</th>               <td><select name='c' class='form-control'>
                                                                            <option value='' selected>- Pilih Radius -</option>";
                                                                            foreach ($radius->result_array() as $row){
                                                                                if ($rows['id_radius'] == $row['id_radius']){
                                                                                  echo "<option value='$row[id_radius]' selected>Radius : $row[kategori_radius] - $row[nilai_radius]</option>";
                                                                                }else{
                                                                                  echo "<option value='$row[id_radius]'>Radius : $row[kategori_radius] - $row[nilai_radius]</option>";
                                                                                }
                                                                            }
                    echo "</td></tr>
					
					<tr><th scope='row'></th>    <td> <button type='submit' name='submit' class='btn btn-info'>Tambahkan</button>
                    <a href='".base_url()."kelurahan/list_data_'><button type='button' class='btn btn-default pull-right'>Kembali</button></a>
                    </td></tr>
				  </tbody>
                  </table>
                </div>
              </div>
			</div>
		  </div>
		</div>";