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

if ($mode == "edt" || $mode == "act_edt") {
	$act					= "act_edt";
	$idp					= $datpil->id;
	$id_temuan					= $datpil->id_temuan;
	$pemilik					= $datpil->pemilik;
	$ket						= $datpil->ket;
	$status						= $datpil->status;
	
	
	
} else {
	$act					= "act_add";
	$idp					= "";
	$id_temuan				= $this->uri->segment(3);
	$pemilik				= $this->session->userdata('admin_pemilik');
	$ket					= "";
	$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 Dokumen Produksi</h2>
                          
                        </div>
						<form action="<?=base_URL()?>admin/perbaikan/<?php echo $this->uri->segment(3)?>/<?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; ?>">
						 <input type="hidden" name="id_temuan" value="<?php echo $id_temuan; ?>">
						 <input type="hidden" name="pemilik" value="<?php echo $pemilik; ?>">
						 <input type="hidden" name="status" value="Menunggu Verifikasi">
                        <div class="row">
                            <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                                <div class="floating-numner">
                                    <p>Keterangan Perbaikan</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="ket"   required oninvalid="this.setCustomValidity('data tidak boleh kosong')" oninput="setCustomValidity('')" value="<?php echo $ket; ?>" 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>Upload File</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="file" name="file_perbaikan"    oninvalid="this.setCustomValidity('data tidak boleh kosong')" oninput="setCustomValidity('')" class="form-control">
                                      
                                    </div>
                                </div>
                         </div>
						<button class="btn btn-sm btn-primary login-submit-cs" type="submit">Submit</button> 
                    </div>
					
					 
                </div>
            </div>
            
        </div>
 