SHARE
TWEET

Untitled

dhiyanaz Aug 22nd, 2019 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.   <title>AL-WASLIYAH</title>
  5.    <meta name="viewport" content="width=device-width, initial-scale=1.0">        
  6.   <link href="css/bootstrap.min.css" rel="stylesheet">
  7.   <link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
  8. <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
  9. <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
  10.     <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr"
  11.     crossorigin="anonymous">
  12.     <link rel="shortcut icon" href="img/logo2.png">
  13.     <!-- Required meta tags -->
  14.     <meta charset="utf-8">
  15.     <meta http-equiv="X-UA-Compatible" content="IE-edge">
  16.     <meta name="viewport" content="width=device-width, initial-scale=1">
  17.     <link href="css/bootstrap.min.css" rel="stylesheet">
  18.     <link rel="stylesheet" href="css/style.css">
  19.     <link rel="stylesheet" type="text/css" href="css/lightbox.min.css">
  20.     <!-- Bootstrap CSS -->
  21. </head><body>
  22. <!--baner-->
  23. <div class="container-fluid" style="background: rgba(10,50,10,90.10);">
  24.   <div class="row" >
  25.     <div class="col-md-3">
  26.       <div id="logo" style="margin-bottom:35px; margin-top:15px; margin-right:30px; margin-left:100px;">
  27.         <img src="img/logo2.png">
  28.       </div>
  29.     </div>
  30.     <div class="head-left col-md-8" style="margin-top:50px; margin-left:10px;">
  31.       <div class="text-left" style="color:#FFFFFF;"><h4>SEKOLAH MENENGAH ATAS</h4></div>
  32.         <div class="text-left" style="color:#FFFFFF;"><h1><strong>ALWASLIYAH TANJUNG MORAWA </strong></h1>
  33.           <div class="text-left" style="color:#FFFFFF;"><small>JALAN BANDAR LABUHAN DAGANG KARAWANG TANJUNG MORAWA</small>
  34.           </div>
  35.         </div>
  36.     </div>
  37.   </div>
  38. </div>
  39. <!--tutup-->
  40. <!--bodi 1-->
  41. <div class="container">
  42. </div>
  43. <div class="head-left col-md-12" style="background:#8FBC8F">
  44. <div class="head-right col-md-2 col-md-offset-9" >
  45. <?php
  46.   session_start();
  47.   // cek apakah yang mengakses halaman ini sudah login
  48.   if($_SESSION['level']==""){
  49.     header("location:login.php?pesan=gagal");
  50.   }
  51.   ?>
  52.   <b><p>Nama : <?php echo $_SESSION['username']; ?></p></b>
  53.   <b><p>Kelas : X </p></b>
  54.  
  55. </div class="" style="background:#8FBC8F">
  56. <div class="head-left col-md-1">
  57. <div>
  58. <div class="dropdown" style="margin-top:10px;">
  59.   <button class="btn btn-success dropdown-toggle" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" >
  60.     <span class="caret"></span>
  61.   </button>
  62.   <ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
  63.     <li><a href="login.php">Log Out</a></li>
  64.   </ul>
  65. </div>
  66. </div>
  67. </div>
  68. </div>
  69. <!--tutup-->
  70. <!--overview-->
  71. <div class="head-left col-md-8 col-md-offset-2">
  72.   <br>
  73. <div class="panel panel-success">    
  74.            <ul class="nav nav-tabs">
  75.   <li role="presentation" class="active"  ><a href="#">OverView</a></li>
  76.   <li role="presentation" style="margin-left:500px; bacground:#8FBC8F"><a href="updatepass.php">Ganti Password</a></li>
  77. </ul>
  78. <div class="panel-success">
  79.   <table class="table table-striped">
  80.     <div class="col-md-8 col-md-offset-1">
  81.       <?php
  82.         include 'koneksi.php';
  83.         $username = $_SESSION['username'];
  84.         $sql = mysqli_query($koneksi, "SELECT * from login WHERE username = '" . $username . "' LIMIT 1");
  85.         $kelas="";
  86.         $angkatan="";
  87.         $nip="";
  88.         foreach ($sql as $row){
  89.           echo "
  90.             <tr>  
  91.             <td><h3 >nama lengkap = ".$row['username']."</h3></td>
  92.             <tr/><tr>
  93.             <td><h3>kelas =".$row['kelas']."</h3></td>
  94.             </tr><tr>
  95.             <td><h3>angkatan =".$row['angkatan']."</h3></td>
  96.             </tr><tr>
  97.             <td><h3>nip =".$row['nip']."</h3></td>
  98.             </tr>";
  99.         }
  100.       ?>
  101.     </div>
  102.   </table>
  103. </div>
  104. <div class="col-md-12">
  105.   <form action="" method="POST">
  106.     <button type="submit" name="submit" class="btn btn-primary">Nilai</button>
  107.   </form>
  108. </div>
  109. <div class="panel-success">
  110.   <table class="table table-striped">
  111.     <thead>
  112.       <tr>
  113.        
  114.        
  115.        
  116.        
  117.        
  118.       </tr>
  119.     </thead>
  120.     <tbody>
  121.     <?php
  122.       $nama_lengkap = $_SESSION['username'];
  123.       if (isset($_POST['submit'])) {
  124.  
  125. $sql = mysqli_query($koneksi, "SELECT * from dataerapor WHERE nama_lengkap LIKE '%" . $nama_lengkap . "%'");
  126.         foreach ($sql as $row){
  127.           echo "
  128.               <tr>  
  129.               <th>Kelas<td><h3>".$row['kls']."</h3></td></th>
  130.               <th>Agama<td><h3>".$row['agama']."</h3></td></th>
  131.               <th>Pendidikan Kewarganegaraan<td><h3>".$row['pkn']."</h3></td></th></tr><tr>
  132.               <th>Bahasa Indonesia<td><h3>".$row['b_ind']."</h3></td></th>
  133.               <th>Bahasa Inggris<td><h3>".$row['b_ing']."</h3></td></th>
  134.               <th>Matematika<td><h3>".$row['mm']."</h3></td></th></tr><tr>
  135.               <th>Fisika<td><h3>".$row['fis']."</h3></td></th>
  136.               <th>Biologi<td><h3>".$row['bio']."</h3></td> </th>
  137.               <th>Kimia <td><h3>".$row['kim']."</h3></td></th></tr><tr>
  138.               <th>Sejarah <td><h3>".$row['sej']."</h3></td></th>
  139.               <th>Geografi<td><h3>".$row['geo']."</h3></td></th>
  140.               <th>Ekonomi<td><h3>".$row['eko']."</h3></td></th></tr><tr>
  141.               <th>Sosiologi<td><h3>".$row['sos']."</h3></td></th>
  142.               <th>Pendidikan Jasmani dan Rohani<td><h3>".$row['penjas']."</h3></td></th>
  143.               <th>Teknologi dan Informasi<td><h3>".$row['ti']."</h3></td></th></tr><tr>
  144.               <th>Bahasa Arab<td><h3>".$row['b_arab']."</h3></td></th>
  145.               <th>Aksara Arab Melayu<td><h3>".$row['aam']."</h3></td></th>
  146.               <th>Sikap<td><h3>".$row['sikap']."</h3></td></th>
  147.              
  148.               </tr>";
  149.  
  150.             }
  151.         }
  152.       ?>
  153.     </tbody>
  154.   </table>
  155. </div>
  156.         </div>
  157.       </div>
  158.     </div>
  159. </div>
  160. </div>
  161. <!--tutup-->
  162. <!--link boostrap-->
  163.    <script src="js/fontawesome-all.js" rel="stylesheet"></script>
  164.   <script src="js/jquery-3.2.1.min.js"></script>
  165.   <script src="js/bootstrap.min.js"></script>
  166.   <script src="js/script.js"></script>
  167. </body>
  168. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top