<?php 
	$set 		= $this->db->query("SELECT * FROM pengaturan WHERE id='2' ")->row();
	$nik_data 	= $this->session->userdata('nik');
	$nama_data 	= $this->session->userdata('nama');
	$jk_data 	= $this->session->userdata('jk');
	if($jk_data == 'L'){
		$yth = ' Bapak ';
		}else if($jk_data == 'P'){
		$yth = ' Ibu ';
		}else{
		$yth = '';
	}
	
	$link_ptsp = $this->uri->segment('2');
	
?>
<style type="text/css">
	
	a{
	color: #232323;
	text-decoration: none;
	font-weight: 500;
	}
	
	a:hover{
	text-decoration: underline;
	}
	
	.zoom-effect {  
	position: relative;
	width: 100%;
	height: 330px;
	margin: 0 auto;
	overflow: hidden;  
	}
	
	.kotak {
	position: absolute;
	top: 0;
	left: 0;
	
	}
	
	.kotak img {
	-webkit-transition: 0.4s ease;
	transition: 0.4s ease;
	}
	
	.zoom-effect:hover .kotak img {
	-webkit-transform: scale(1.3);
	transform: scale(1.3);
	}	
</style>
<!-- Outer Row -->
<div class="row justify-content-center" style="margin-top:50px">
	<div class="col-md-1"></div>
	<div class="col-md-10 background-ptsp shadow-lg p-3 mb-5 rounded" style="min-height:550px;">
		<div class="row">
			<div class="col-md-3"></div>
			<div class="col-md-6">
				<div class="card o-hidden border-0 my-5">
					<div class="card-body p-8 background-ptsp-hijau shadow-lg" style="border:2px solid green;border-radius:5px;">
						<!-- Nested Row within Card Body -->
						<div class="row">
							<div class="col-lg-12">
								<div class="p-1">
									<div class="text-center">
										<!-- <h1 class="h1 text-gray-900">Login</h1> -->
										<p class="login-box-msg">
											<?php if ($this->session->flashdata('message') == '') {
												echo '<b style="color:white;">Silahkan lengkapi identitas anda terlebih dahulu untuk melanjutkan</b>';
												} else {
												echo $this->session->flashdata('message');
											} ?>
										</p>
									</div>									
									<table class="table">
										<tr>
											<td>
												<form action="<?php echo $login ?>" method="post" class="user" enctype="multipart/form-data">
													<div class="row">
														<div class="form-group col-6">
															<input type="text" class="form-control form-control-user bg-success text-center"
															placeholder="NIK (Nomor Induk Kependudukan)" name="nik" value="<?=$nik;?>" readonly="readonly"><center><?php echo form_error('nik') ?></center>
														</div>
														<div class="form-group col-6">
															<input type="text" class="form-control form-control-user bg-success text-center"
															placeholder="Nomor HP / WA" name="hp" value="<?=$hp;?>" readonly="readonly"><center><?php echo form_error('hp') ?></center>
														</div>
													</div>
													<div class="form-group">
														<input type="email" class="form-control form-control-user bg-success text-center"
														placeholder="Email" name="email" value="<?=$email;?>" readonly="readonly"><center><?php echo form_error('email') ?></center>
													</div>
													<div class="form-group">
														<input type="text" class="form-control form-control-user"
														placeholder="Nama Lengkap" name="nama" value="<?=$nama;?>"><center><?php echo form_error('nama') ?></center>
													</div>
													<div class="form-group">
														<input type="pekerjaan" class="form-control form-control-user"
														placeholder="Pekerjaan" name="pekerjaan"
														required="required" value="<?=$pekerjaan;?>">
													</div>
													<div class="form-group">
														<textarea class="form-control form-control-user" name="alamat" placeholder="alamat"><?=$alamat;?></textarea>
													</div>
													<div class="form-group">
														<b><center>Unggah Foto Kartu Identitas (KTP/SIM)</center></b>
														<input type="file" class="form-control"
														name="file_ktp"
														required="required" style="border-radius:30px;">
													</div>
													<button type="submit" class="btn btn-success btn-user btn-block">Perbaharui Identitas</button>
												</form>	
											</td>	
										</tr>	
										</table>
										<table class="table">
											<tr>
												<td width="30%">
													<a href="<?=base_url('beranda');?>" class="btn btn-warning btn-user btn-block" style="border-radius:30px;"><i class="fa fa-arrow-left"></i></a>
												</td>	
												<td>
													
												</td>	
											</tr>	
										</table>
									</div>
								</div>
							</div>
						</div>
					</div>	
				</div>
				<div class="col-md-3"></div>
			</div>					
			
		</div>
		<div class="col-md-1"></div>
	</div>
<!-- Outer Row -->


