67 lines
3.4 KiB
PHP
67 lines
3.4 KiB
PHP
<!doctype html>
|
||
<html lang="en">
|
||
<head>
|
||
<!-- Required meta tags -->
|
||
<meta charset="utf-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||
|
||
<!-- Bootstrap CSS -->
|
||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
||
<link rel="stylesheet" href="<?=base_url();?>assets/admin/css/style.css">
|
||
|
||
<title><?=TITLE?></title>
|
||
</head>
|
||
<body>
|
||
<section class="abc-login">
|
||
<div class="container">
|
||
<div class="row">
|
||
<div class="col-sm-9 col-md-7 col-lg-5 mx-auto">
|
||
<div class="card card-signin my-5">
|
||
<div class="card-body">
|
||
<div class="logo d-flex justify-content-center align-content-center"> <img src="<?=base_url();?>assets/admin/img/logo.jpg" alt=""></div>
|
||
<h5 class="card-title text-center">Please enter your login details. </h5>
|
||
<?php
|
||
$success_msg= $this->session->flashdata('success_msg');
|
||
$error_msg= $this->session->flashdata('login_failed');
|
||
if($error_msg){ ?>
|
||
<div class="alert alert-danger">
|
||
<?php echo $error_msg; ?>
|
||
<a href="#" class="close" data-dismiss="alert" aria-label="close" >×</a>
|
||
</div>
|
||
<?php } ?>
|
||
<?php echo form_open('admin/admin/login'); ?>
|
||
<div class="form-signin">
|
||
<div class="form-label-group">
|
||
<label for="inputEmail">User Name</label>
|
||
<input type="text" id="username" name="username" value="<?php if(isset($_COOKIE['abc_user'])) { echo $_COOKIE['abc_user']; } ?>" class="form-control" placeholder="User Name" required autofocus>
|
||
|
||
</div>
|
||
|
||
<div class="form-label-group">
|
||
<label for="inputPassword">Password</label>
|
||
<input type="password" id="password" value="<?php if(isset($_COOKIE['abc_password'])) { echo $_COOKIE['abc_password']; } ?>" name="password" class="form-control" placeholder="Password" required>
|
||
|
||
</div>
|
||
|
||
<div class="custom-control custom-checkbox mb-3">
|
||
<input type="checkbox" <?php if(isset($_COOKIE['abc_password'])) { ?> checked="checked" <?php } ?> class="custom-control-input" name="remember_me" id="customCheck1">
|
||
<label class="custom-control-label remember" for="customCheck1"><span>Remember password</span></label>
|
||
</div>
|
||
<button class="btn btn-lg btn-primary btn-block text-uppercase" type="submit">Sign in</button>
|
||
</div>
|
||
<?php echo form_close(); ?>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
|
||
<!-- Optional JavaScript -->
|
||
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
|
||
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
|
||
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
|
||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
|
||
</body>
|
||
</html>
|