<?php
defined('APK') or exit('Anda tidak dizinkan mengakses langsung script ini!');
?>

<div class='row'>

        <div class='col-md-12'>
             <div class="card">
             <div class="card-header">	
               <h5 class="card-title"><i class="fas fa-users"></i> Tim Tekhnis</h5></div>    
			  			
								<div class="card-body">
									<form id="formproktor" action='' method='post' class="form-horizontal" enctype='multipart/form-data'>
                                   
                                   <div class="row mb-2">
											<label  class="col-md-3 col-form-label bold">Tekhnisi</label>
							<div class="col-sm-9">
							 <input type='text' name='tekhnisi' value="<?= $setting['tekhnisi'] ?>" class='form-control' />
                                       </div>
						            </div>	
									 <div class="row mb-2">
											<label  class="col-md-3 col-form-label bold">Proktor</label>
							<div class="col-sm-9">
							 <input type='text' name='proktor' value="<?= $setting['proktor'] ?>" class='form-control' />
                                       </div>
						            </div>	
									<p>
									<div class="right">
									 <button type='submit' name='submit2' class='btn btn-info'><i class='fa fa-check-circle' ></i><span> Simpan</span></button>
									</div>
                            </form>
                        </div>
							</div>
                                 </div>
                                    </div>
                                        </div>
                            
                      	 
									 
<script>

	   $('#formproktor').submit(function(e) {
        e.preventDefault();
        var data = new FormData(this);
      
        $.ajax({
            type: 'POST',
            url: 'pengaturan/crud_setting.php?pg=setting_proktor',
            enctype: 'multipart/form-data',
            data: data,
            cache: false,
            contentType: false,
            processData: false,
            success: function(data) {
                 iziToast.info(
            {
                title: 'Sukses!',
                message: 'Data berhasil disimpan',
				titleColor: '#FFFF00',
				messageColor: '#fff',
				backgroundColor: 'rgba(0, 0, 0, 0.5)',
				 progressBarColor: '#FFFF00',
                  position: 'topRight'			  
                });
                setTimeout(function() {
                    window.location.reload();
                }, 2000);

            }
        });
        return false;
    });
</script>