<?php 
session_start();
require"inc/auth.php";
?>

<?php 
  include"inc/conn.php";
  include"inc/session_siswa.php";
  include"inc/style.php";

  $id = $_GET["id"];
  $qunit=mysqli_query($connect,"select * from tb_unit where id_unit='".$id."' and aktif='1'");
  $runit=mysqli_fetch_array($qunit);
?>

<!DOCTYPE html>
<html lang="en">

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

  <title>Materi Perkuliahan | <?php echo $runit['judul_unit'];?></title>
  <meta content="" name="description">
  <meta content="" name="keywords">

  
  
</head>

<body>

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

  
  <main id="main">
    
    <!-- ======= Breadcrumbs ======= -->
    <section class="breadcrumbs">
      <div class="container">
          <ol>
            <li><a href="index.php">Beranda</a></li>
            <li>Unit</li>
          </ol>
      </div>
    </section><!-- End Breadcrumbs -->
    

    
    

    <!-- ======= Blog Single Section ======= -->
    <section id="counts" class="counts"><div class="container" data-aos="fade-up">

      <div class="container">

        <div class="row">

          <div class="col-lg-12 entries">

            <article class="entry entry-single">

              

              
              <header class="section-header">
				<h2>Menu</h2>
				<p><?php echo $runit['judul_unit'];?></p>
			  </header>

              <br>



              <div class="row gy-4">

                         
                
                    <div class="col-lg-4 col-md-6">
                        <a href="pretest.php?id=<?php echo $id;?>">
                        <div class="count-box" style="background:#fee6ef;color:#c2326f;border-top:15px solid #c2326f;border-radius:5px;"> 
                            <div style="text-align:center;width:100%;color:#c2326f;"> 
                                &nbsp;&nbsp;&nbsp;&nbsp;<i class="ri-magic-line" style="color:#c2326f;"></i>
                                <br>
                        		<h4><b>Pretest</b></h4>
                        	</div>
                        </div>
                        </a>
                    </div>
             
                
                    <div class="col-lg-4 col-md-6">
                        <a href="artikel.php?id=<?php echo $id;?>">
                        <div class="count-box" style="background:#fee6ef;color:#c2326f;border-top:15px solid #c2326f;border-radius:5px;"> 
                            <div style="text-align:center;width:100%;color:#c2326f;"> 
                                &nbsp;&nbsp;&nbsp;&nbsp;<i class="ri-brush-4-line" style="color:#c2326f;"></i>
                                <br>
                        		<h4><b>Materi</b></h4>
                        	</div>
                        </div>
                        </a>
                    </div>
                    
                    
                    <div class="col-lg-4 col-md-6">
                        <a href="video.php?id=<?php echo $id;?>">
                        <div class="count-box" style="background:#fee6ef;color:#c2326f;border-top:15px solid #c2326f;border-radius:5px;"> 
                            <div style="text-align:center;width:100%;color:#c2326f;"> 
                                &nbsp;&nbsp;&nbsp;&nbsp;<i class="ri-stack-line" style="color:#c2326f;"></i>
                                <br>
                        		<h4><b>Video Pembelajaran</b></h4>
                        	</div>
                        </div>
                        </a>
                    </div>
                
                </div>
                <br><br>
                <div class="row gy-4">
                    
                    <div class="col-lg-4 col-md-6">
                        <a href="ujikonsep.php?id=<?php echo $id;?>">
                        <div class="count-box" style="background:#fee6ef;color:#c2326f;border-top:15px solid #c2326f;border-radius:5px;"> 
                            <div style="text-align:center;width:100%;color:#c2326f;">
                                &nbsp;&nbsp;&nbsp;&nbsp;<i class="ri-line-chart-line" style="color:#c2326f;"></i>
                                <br>
                        		<h4><b>Latihan Soal</b></h4>
                        	</div>
                        </div>
                        </a>
                    </div>
                    
                    
                    <div class="col-lg-4 col-md-6">
                        <a href="profil.php">
                        <div class="count-box" style="background:#fee6ef;color:#c2326f;border-top:15px solid #c2326f;border-radius:5px;"> 
                            <div style="text-align:center;width:100%;color:#c2326f;">
                                &nbsp;&nbsp;&nbsp;&nbsp;<i class="ri-command-line" style="color:#c2326f;"></i>
                                <br>
                        		<h4><b>Nilai</b></h4>
                        	</div>
                        </div>
                        </a>
                    </div>
                    
                    
                    
             


              </div>

              
            </article><!-- End blog entry -->

       

              

          </div><!-- End blog entries list -->

          

        </div>

      </div>
    </section><!-- End Blog Single Section -->

    
  </main><!-- End #main -->

  <!-- ======= Footer ======= -->
  <footer id="footer" class="footer">

    <?php include"inc/footer.php";?>
    
  </footer><!-- End Footer -->

  <a href="#" class="back-to-top d-flex align-items-center justify-content-center"><i class="bi bi-arrow-up-short"></i></a>

  <?php include"inc/script.php";?>

</body>

</html>