<?php $mode		= $this->uri->segment(3);

if ($mode == "edt" || $mode == "act_edt") {
	$act					= "act_edt";
	$idp					= $datpil->id;
	$pemilik					= $datpil->pemilik;
	$produk						= $datpil->produk;
	$jenis						= $datpil->jenis;
	$alamat						= $datpil->alamat; 
	$status						= $datpil->status;
	

	
	
	
} else {
	$act					= "act_add";
	$idp					= "";
	$pemilik					= "";
	$produk					= "";
	$jenis					= "";
	$alamat					= "";
	$status					= "";
	
	

}
				
?>  

        <div class="container">
           
            <div class="row">
                <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                    <div class="form-element-list mg-t-30">
                        <div class="basic-tb-hd">
                            <h2>Data Kelola Akun</h2>
                          
                        </div>
						<form action="<?=base_URL()?>admin/manage_user/<?php echo $act; ?>" method="post" accept-charset="utf-8" enctype="multipart/form-data" class="form-horizontal">
                        <input type="hidden" name="idp" value="<?php echo $idp; ?>">
                        <div class="row">
                            <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                                <div class="floating-numner">
                                    <p>Pemilik</p>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                                <div class="form-group float-lb">
                                    <div class="nk-int-st">
                                        <input autocomplete ='off' type="text" name="pemilik"   required oninvalid="this.setCustomValidity('data tidak boleh kosong')" oninput="setCustomValidity('')" value="<?php echo $pemilik; ?>" class="form-control">
                                      
                                    </div>
                                </div>
                         </div>
						  <div class="row">
                            <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                                <div class="floating-numner">
                                    <p>Produk</p>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                                <div class="form-group float-lb">
                                    <div class="nk-int-st">
                                        <input autocomplete ='off' type="text" name="produk"   required oninvalid="this.setCustomValidity('data tidak boleh kosong')" oninput="setCustomValidity('')" value="<?php echo $produk; ?>" class="form-control">
                                      
                                    </div>
                                </div>
                         </div>
                        <div class="row">
                            <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                                <div class="floating-numner">
                                    <p>jenis</p>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                                <div class="form-group float-lb">
                                    <div class="nk-int-st">
                                        <input autocomplete ='off' type="text" name="jenis"   required oninvalid="this.setCustomValidity('data tidak boleh kosong')" oninput="setCustomValidity('')" value="<?php echo $jenis; ?>" class="form-control">
                                      
                                    </div>
                                </div>
                         </div>
						  <div class="row">
                            <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                                <div class="floating-numner">
                                    <p>Alamat</p>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                                <div class="form-group float-lb">
                                    <div class="nk-int-st">
                                        <input autocomplete ='off' type="text" name="alamat"   required oninvalid="this.setCustomValidity('data tidak boleh kosong')" oninput="setCustomValidity('')" value="<?php echo $alamat; ?>" class="form-control">
                                      
                                    </div>
                                </div>
                         </div>
						  <div class="row">
                            <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                                <div class="floating-numner">
                                    <p>Status</p>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                                <div class="form-group float-lb">
                                    <div class="nk-int-st">
                                      <div class="bootstrap-select fm-cmp-mg">
                                   <select name="status"  required value="<?php echo $status; ?>"  class="selectpicker">
                                        <option value="">-- Pilih Status --</option>
										<option value='0'>Tidak Aktif</option>
										<option value='1'>Aktif</option>
									</select>	
                                </div>
                                    </div>
                                </div>
                         </div>
						
						<button class="btn btn-sm btn-primary login-submit-cs" type="submit">Submit</button> 
                    </div>
					
					 
                </div>
            </div>
            
        </div>
 