<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>SISTEM ABSENSI SISWA</title>

    <!-- Core CSS -->
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="font-awesome/css/font-awesome.css" rel="stylesheet">
    <link href="css/sb-admin.css" rel="stylesheet">

</head>

<body>
    <div class="container">
        <div class="row">
            <div class="col-md-4 col-md-offset-4">

              <?php
              include 'config/conn.php';

              // QUERY MYSQLi (VERSI BARU)
              $sql = mysqli_query($koneksi, "SELECT * FROM sekolah WHERE id='2'");
              $rs  = mysqli_fetch_array($sql);
              ?>

              <marquee>
                <h2>
                  Selamat Datang di Website Absensi 
                  <?php echo $rs['nama']; ?>,
                  Silahkan Admin/Guru/Siswa Login dibawah ini.
                </h2>
              </marquee>

                <div class="login-panel panel panel-primary">
                    <div class="panel-heading">
                        <h3 class="panel-title">Login</h3>
                    </div>
                    <div class="panel-body">
                        <form role="form" method="post" action="ceklog.php">
                            <fieldset>
                                <div class="form-group">
                                    <input class="form-control" placeholder="Username" name="username" required autofocus>
                                </div>
                                <div class="form-group">
                                    <input class="form-control" placeholder="Password" name="password" type="password" required>
                                </div>

                                <button type="submit" class="btn btn-lg btn-success btn-block">
                                    Login
                                </button>
                            </fieldset>
                        </form>
                    </div>
                </div>

            </div>
        </div>
    </div>

    <!-- Core Scripts -->
    <script src="js/jquery-1.10.2.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script>
    <script src="js/sb-admin.js"></script>

</body>
</html>
