<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);

require 'fungsi/fungsi.php';
require 'fungsi/proses_log.php';
?>
<!DOCTYPE html>
<html>

<head>

  <meta charset="UTF-8">

  <title>Login - Karyawan </title>

  <link rel="stylesheet" href="<?=url()?>css/reset.css">

  <link rel="icon" type="image/png" href="<?=url()?>images/logo_absensi.png">

    <link rel="stylesheet" href="<?=url()?>css/style.css" media="screen" type="text/css" />

</head>

<body>
<form action="" autocomplete="off" method="POST">
  <div class="wrap">
  	<h1 class="login_adm">Login Karyawan</h1>
		<div class="avatar">
      <img src="<?=url()?>images/employee2.png">
		</div>
		<input type="text" name="user" autocomplete="OFF" placeholder="username" required>
	
		<input type="password" name="pass" placeholder="password" required>
	<!-- 	<a href="" class="forgot_link">forgot ?</a> --><br>
		<button type="submit" name="login">Sign in</button>
	</div>
	<?php if (isset($_POST['login'])) {
		$pro->login();

	} ?>
</form>


</body>

</html>

