<div class="navbar navbar-inverse">
	<div class="container" style="z-index: 0">
		<div class="navbar-header">
			<span class="navbar-brand" href="#">Tambah Data Pegawai</span>
		</div>
	</div><!-- /.container -->
	
</div><!-- /.navbar -->
<?php echo $this->session->flashdata("k");?>
	<div class="row-fluid well" style="overflow: hidden">
	
		<div class="col-lg-12">
			
		</div>
<!-- /.batas dari ci_lama -->
		<?php 

//$year = date('Y');$yearnext = date('Y')+1;

$idNext	= glinext("tb_pengguna", "user_id", 1);
//echo "Next :".$id." TA : ".$kodetahun;
    echo "<div class='col-lg-12'>
              <div class='box box-info'>
            
              <div class='box-body'>";
              $attributes = array('class'=>'form-horizontal','role'=>'form');
              echo form_open_multipart('user_siakad/tambah_',$attributes); 
          echo "<div class='col-md-12'>
		  <input type='hidden' name='id' value='$idNext'>
		
                  <table class='table table-condensed table-bordered'>
                  <tbody>
					<tr><th width='140px' scope='row'>NIP</th>    <td><input type='text' class='form-control' name='a' style='width:200px' required></td></tr>
					<tr><th scope='row'>Nama Pegawai</th>           <td><input type='text' class='form-control' name='b'></td></tr>
					<tr><th scope='row'>Username</th>           	<td><input type='text' class='form-control' name='username'></td></tr>
					<tr><th scope='row'>Jenis Kelamin</th>           <td><input type='radio' name='c' value='L'> Laki-Laki &nbsp; <input type='radio' name='c' value='P' checked> Perempuan</td></tr>
                    <tr><th scope='row'>Group User</th>               	  <td><select name='d' id='d' class='form-control' style='width:200px' >
					
                                                                            <option value='' selected>- Pilih Level -</option>";
                                                                            foreach ($data->result_array() as $row){
                                                                                echo "<option value='$row[level]'>$row[nama_level]</option>";
                                                                            }
                    echo "</td></tr>
										
					<tr><th scope='row'>Status </th>        	<td><input type='radio' name='status' value='A' checked> Aktif &nbsp; <input type='radio' name='status' value='B' > Mutasi &nbsp; <input type='radio' name='status' value='C' > Non Aktif</td></tr>
					
					<tr><th scope='row'>Pas Photo</th>                 <td><input type='file' class='form-control' name='fileku'></td></tr>
					<tr><th scope='row'>Perhatian :</th>                 <td><font color='red'>NIP merupakan username login ke aplikasi, passwordnya adalah 123</font></td></tr>
               
                  </tbody>
                  </table>
                </div>
              </div>
              <div class='box-footer'>
                    <button type='submit' name='submit' class='btn btn-primary btn btn-info'><i class='icon icon-ok icon-white'></i> Tambahkan</button>
                   <a href='".base_url()."user_siakad/list_data'><button type='button' class='btn btn-success btn btn-default pull-right'><i class='icon icon-arrow-left icon-white'></i> Kembali</button></a>
                    
                  </div>
            </div>";
?>
	</div>
	</form>
