<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8"/>
    <title>Admin Panel</title>
    <?php include_once(VIEWPATH.'includes/head.php'); ?>
    <link href="<?php echo base_url('assets/css/signin.css');?>" rel="stylesheet"/>
  </head>
  <body>
    <div class="account-container stacked">
      <div class="content">
        <?php echo form_open();?>
          <h1><i class="fa fa-sign-in"></i> Admin Panel</h1>
          <p>Masuk sebagai administrator</p>
          <div class="form-group">
            <input type="text" id="username" name="username" value="<?php echo $this->user->us_username;?>" placeholder="Nama Pengguna" class="form-control input-lg username-field" disabled="disabled"/>
          </div>
          <div class="form-group">
            <input type="password" placeholder="Kata Sandi" id="password" name="password" value="" class="form-control input-lg password-field" required="required"/>
          </div>
          <div class="login-actions">
            <button class="login-action btn btn-primary btn-lg btn-block" type="submit" name="submit" value="login">
              Masuk
            </button>
          </div>
        <?php echo form_close();?>
      </div>
    </div>
    <div class="login-extra"><a href="<?php echo site_url('akun/profil'); ?>">Kembali ke halaman Akun</a></div>
    <script src="<?php echo base_url('assets/js/bootstrap.min.js'); ?>"></script>
    <script src="<?php echo base_url('assets/js/jquery.app.js');?>"></script>
    <script src="<?php echo base_url('assets/js/notify.min.js');?>"></script>
    <script>$(document).ready(function(){<?php
    if ($this->session->get_flash_keys()):?><?php foreach ($this->session->get_flash_keys() as $fk):
    ?>$.notify("<?php echo strip_tags($this->session->flashdata($fk));?>", "<?php echo $fk;?>");<?php
    endforeach;?><?php endif;?><?php if (function_exists('validation_errors') && validation_errors()):
    ?><?php foreach (array_reverse($this->form_validation->error_array()) as $err):?>$.notify("<?php
    echo strip_tags($err);?>", "error");<?php endforeach;?><?php endif;?>});</script>
  </body>
</html>