<?php 
    $set = $this->db->query("SELECT * FROM pengaturan WHERE id='2' ")->row();
?>
<!DOCTYPE html>
<html lang="en">
	
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
		<meta name="description" content="">
		<meta name="author" content="">
		
		<title><?=$set->title;?></title>
		<link rel="shortcut icon" href="<?php echo base_url('sb/img/Favicon.ico'); ?>">
		<!-- Custom fonts for this template-->
		<link href="<?php echo base_url('sb/adminlte'); ?>/fontawesome-free/css/all.min.css" rel="stylesheet"
        type="text/css">
		<link
        href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i"
        rel="stylesheet">
		
		<!-- Custom styles for this template-->
		<link href="<?php echo base_url('sb'); ?>/css/style.css" rel="stylesheet">
		<link href="<?php echo base_url('sb'); ?>/css/sb-admin-2.min.css" rel="stylesheet">
	</head>
	
	<body class="background-pintu alert-success">
		<div class="container">
			
			
			<!-- Outer Row -->
			<div class="row justify-content-center" style="margin-top:40px">
				<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-merah">
							<!-- 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 Isi Data Dibawah ini untuk bisa login ke sistem</b>';
													} else {
													echo $this->session->flashdata('message');
												} ?>
											</p>
										</div>
										<form action="<?php echo $login ?>" method="post" class="user" target="_parent">
											<div class="form-group">
												<input type="number" class="form-control form-control-user"
												placeholder="Nomor Whatsapp" name="hp" value="<?=$hp;?>"><center><?php echo form_error('hp') ?></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" style="font-weight:bold;color:white;font-size:large">
												JENIS KELAMIN
												<div class="form-check">
													<input class="form-check-input" type="radio" name="jk" id="flexRadioDefault1" value="L" <?php if($jk == "L") print "selected";?> >
													<label class="form-check-label" for="flexRadioDefault1">
														LAKI-LAKI
													</label>
												</div>
												<div class="form-check">
													<input class="form-check-input" type="radio" name="jk" id="flexRadioDefault2" value="P" <?php if($jk == "P") print "selected";?>>
													<label class="form-check-label" for="flexRadioDefault2">
														PEREMPUAN
													</label>
												</div>
												<center><?php echo form_error('jk') ?></center>
											</div>
											<button type="submit" class="btn btn-danger btn-user btn-block">Daftar Akun</button><hr/>
											<b>Sudah terdaftar? <a href="<?=base_url('login/index');?>" target="_parent" style="color:white;"> Klik Disini</a></b>
										</form>
									</div>
								</div>
							</div>
						</div>
					</div>					
				</div>
				<div class="col-md-3"></div>
				
			</div>
			
		</div>
		
		<!-- Bootstrap core JavaScript-->
		<script src="<?php echo base_url('sb'); ?>/vendor/jquery/jquery.min.js"></script>
		<script src="<?php echo base_url('sb/adminlte'); ?>/bootstrap/js/bootstrap.bundle.min.js"></script>
		
		<!-- Core plugin JavaScript-->
		<script src="<?php echo base_url('sb/adminlte'); ?>/jquery-easing/jquery.easing.min.js"></script>
		
		<!-- Custom scripts for all pages-->
		<script src="<?php echo base_url('sb/adminlte'); ?>/js/sb-admin-2.min.js"></script>
		
		<script>
			$(document).ready(function() {
				$(".preloader").fadeOut();
			})
		</script>
	</body>
	
</html>