<?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-batik">
		<div class="preloader">
			<div class="loading">
				<img src="<?php echo base_url('sb/img/loading.gif'); ?>" width="500">
				<center>
					<h4>Harap Tunggu . . .</h4>
				</center>
			</div>
		</div>
		
		<div class="container">
			
			<!-- Outer Row -->
			<div class="row justify-content-center" style="margin-top:40px">
				<div class="col-xl-10 col-lg-12 col-md-9">
					
					<div class="card o-hidden border-0 shadow-lg my-5">
						<div class="card-body p-5 background-batik" style="border:5px solid gray;border-radius:5px;">
							<!-- Nested Row within Card Body -->
							<div class="row">
								<div class="col-lg-5 d-none d-lg-block"
                                style="background-image: url(<?php echo base_url('sb/img/'.$set->logo); ?>); background-size:300px 350px; background-repeat:no-repeat; background-position:center;">
								</div>
								<div class="col-lg-7">
									<div class="p-1">
										<center>
											<b
                                            style="text-align:center;font-weight:bold;font-size:45px;color:blue;"><?=$set->title;?><br /></b>
											<i style="color:blue;"><?=$set->deskripsi_singkat;?></i>
											<hr />
										</center>
										<div class="text-center">
											<!-- <h1 class="h1 text-gray-900">Login</h1> -->
											<p class="login-box-msg">
												<?php if ($this->session->flashdata('message') == '') {
													echo 'Silahkan Masukkan Username dan Password';
													} else {
													echo $this->session->flashdata('message');
												} ?>
											</p>
										</div>
										<form action="<?php echo base_url('login/proses'); ?>" method="post" class="user">
											<div class="form-group">
												<input type="text" class="form-control form-control-user"
												placeholder="username" name="username" autocomplete="off" required>
											</div>
											<div class="form-group">
												<input type="password" class="form-control form-control-user"
                                                placeholder="Password" name="password"
                                                required>
											</div>
											<button type="submit" class="btn btn-primary btn-user btn-block">Login</button>
											
											
											<br>
											<br>
										</form>
									</div>
								</div>
							</div>
							<div class="text-center" style="margin-bottom: -30px;"><span>Copyright &copy; 2021
                                <?php if (date('Y') != '2021') {
                                    echo ' - ' . date('Y');
								}; ?>
                                <?=$set->nama_pengadilan;?><hr/><small>Dev. By <a href="https://dewady.com"
							target="_blank">DAC</a></small></span></div>
						</div>
					</div>
					
				</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>