Minggu, 07 Maret 2021

admin.php

 buat file (admin.php)


<?php
session_start();
if( empty( $_SESSION['iduser'] ) ){
//session_destroy();
$_SESSION['err'] = '<strong>ERROR!</strong> Anda harus login terlebih dahulu.';
header('Location: ./');
die();
} else {
include "koneksi.php";
?>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Aplikasi SPP</title>

    <!-- Bootstrap core CSS -->
    <link href="css/bootstrap.min.css" rel="stylesheet">

<style type="text/css">
body {
min-height: 200px;
padding-top: 70px;
background-image: url();
background-color: #21DEE0;
}
   @media print {
      .noprint {
         display: none;
      }
   }
</style>

</head>

  <body>

    <?php include "menu.php"; ?>

  <div class="container">
<?php
if( isset($_REQUEST['hlm'] )){
$hlm = $_REQUEST['hlm'];
switch( $hlm ){
case 'bayar':
include "pembayaran.php";
break;
case 'bayar_siswa':
include "pembayaran_siswa.php";
break;
case 'laporan':
include "laporan.php";
break;
case 'master':
include "master.php";
break;
case 'user':
include "profil.php";
break;
}
} else {
?>
      <!-- Main component for a primary marketing message or call to action -->
      <div class="jumbotron" style="background-color: yellow">
        <h2 align="center"><b>APLIKASI PEMBAYARAN SPP STEKMAN</b></h2>
        <center><img style="border-radius: 60%" src="098.png" width="250" height="320"></center>
        <br>
        <marquee behavior="alternate" onmouseover="this.stop()" onmouseout="this.start()"><p align="center"><b>Selamat Datang<b><strong> <?php echo $_SESSION['fullname']; ?></strong></p>

        <p align="center"><strong>Jl. Raksaguna No.99 Kec. Kadungora - Garut</strong></p> </marquee>
      </div>
<?php
}
?>
    </div> <!-- /container -->


    <!-- Bootstrap core JavaScript, Placed at the end of the document so the pages load faster -->
    <script src="js/jquery.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
<script type="text/javascript">
$(".force-logout").alert().delay(3000).slideUp('slow', function(){
window.location = "./logout.php";
});
      function fnCetak() {
         window.print();
      }
</script>
  </body>

</html>
<?php
}
?>

0 comments:

Posting Komentar