<!DOCTYPE html>
<?php 
$nama_aplikasi="ComputerBaseTest";
$tiga=$this->db->query("SELECT * from setting where id='1'");
foreach ($tiga->result() as $rt) {
$nama_sekolah=$rt->nama;
$alamat=$rt->alamat;
$logo=$rt->logo;
$back=$rt->back;
}

?>
<html class="fullscreen-bg" lang="en"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <title>Login > <?php echo $nama_aplikasi;?></title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<link href="<?php echo base_url('assets/newlogin/roboto.css'); ?>" rel="stylesheet">
	<link href="<?php echo base_url('assets/newlogin/tinymce.css'); ?>" rel="stylesheet">
	<link href="<?php echo base_url('assets/newlogin/custom.css'); ?>" rel="stylesheet">
        <link href="<?php echo base_url('assets/newlogin/css/bootstrap.css'); ?>" rel="stylesheet">
        <link href="<?php echo base_url('assets/newlogin/fontawesome/css/all.css'); ?>" rel="stylesheet">
        <link href="<?php echo base_url('assets/newlogin/logo.png'); ?>" rel="shortcut icon">
</head>

<body>
    <div class="wrapper">
		<div class="bg"><img src="<?php echo base_url('assets/newlogin/bg-header.png'); ?>"></div>
		<div class="container">
			<div class="header">
				<div class="logo logo-center">
					<img src="<?php echo base_url('assets/back/'.$logo.'');?>">
					<div>
						<h2><b><?php echo $nama_sekolah; ?></b></h2>
						<h6><?php echo $alamat; ?></h6>
					</div>
				</div>
			</div>
			<div class="card login">
				<div class="card-body">
					<h4><b>Selamat Datang</b></h4>
					<p>Silahkan login dengan username dan password yang anda miliki</p>
					<?php
										echo form_open('login/proses');                       
										if (validation_errors() || $this->session->flashdata('result_login')) {
											?>
											<div class="alert alert-error">
												<button type="button" class="close" data-dismiss="alert">&times;</button>
												<strong>Warning!</strong>
												<?php echo validation_errors(); ?>
												<?php echo $this->session->flashdata('result_login'); ?>
											</div>    
										<?php } ?>
						<div class="form-label-group">
							<span class="fa fa-user"></span>
							<input autofocus="" class="form-control" id="username" placeholder="Username" required="" type="text" name="username">
							<span class="line"></span>
							<label for="username">Username</label>
						</div>
						<div class="form-label-group">
							<span class="fa fa-lock"></span>
							<input class="form-control" id="password" placeholder="Password" required="" type="password" name="password">
							<span class="line"></span>
							<label for="password">Password</label>
							<span class="fa fa-eye" id="btnEye"></span>
						</div>
						<button class="btn btn-lg btn-primary btn-block" type="submit" id="btnLogin">Login</button>
					</form>
				</div>
				<div class="card-footer center">
				<small>Copyright &copy; <?php echo date('Y');?> <a href="http://s0dikin.blogspot.com">Chung Chin</a></small>
				<!--<br>
				<br>
				<br>
				<audio src="assets/listening.mp3" controls=controls></audio>-->
				</div>
			</div>
		</div>
    </div>


	<script src="<?php echo base_url('assets/newlogin/jquery-3.js'); ?>"></script>
        <script src="<?php echo base_url('assets/newlogin/jquery.js'); ?>"></script>
        <script src="<?php echo base_url('assets/newlogin/bootstrap.js'); ?>"></script>
        <script src="<?php echo base_url('assets/newlogin/popper.js'); ?>"></script>
        <script src="<?php echo base_url('assets/newlogin/wow.js'); ?>"></script>
        <!-- Assets -->
        <script src="<?php echo base_url('assets/newlogin/front.js'); ?>"></script>
	<script src="<?php echo base_url('assets/newlogin/custom.js'); ?>"></script>
	
    

      </body></html>