    <br>
    <?php
    $kelas    = str_replace("'","`",(isset($_GET['kelas'])) ? $_GET['kelas'] : "");
    $unit    = str_replace("'","`",(isset($_GET['unit'])) ? $_GET['unit'] : "");
    $id    = str_replace("'","`",(isset($_GET['id'])) ? $_GET['id'] : "");
    
    $qsiswa=mysqli_query($connect,"select * from tb_siswa where id_siswa='".$id."'");
    $rsiswa=mysqli_fetch_array($qsiswa);

    $qunit=mysqli_query($connect,"select * from tb_unit where id_unit='".$unit."'");
    $runit=mysqli_fetch_array($qunit);
    ?>

    <!-- Main content -->
    <section class="content">
      <div class="container-fluid">
        <div class="row">
          






          <!-- /.col -->
          <div class="col-md-12">
            <div class="card card-info">
              <div class="card-header" style="background:#eb5d99;color:white;">
                <h3 class="card-title">Jawaban Uji Konsep - <?php echo $rsiswa['nama_lengkap'];?></h3>

                      <a class="btn btn-danger" href="<?php echo $base_url_admin;?>/index.php?prefix=pengayaan&kelas=<?php echo $kelas;?>" style="float:right;">
                        <i class="fa fa-chevron-circle-left"></i> Kembali
                      </a>

              </div>
              <div class="card-body">
                <div class="tab-content">
                  

                  <div class="active tab-pane" id="settings">
                   

                      <div class="form-group row">
                        <label for="inputEmail" class="col-sm-1 col-form-label">Unit</label>
                        <div class="col-sm-11">
                          <input value="<?php echo $runit['judul_unit'];?>" type="text" class="form-control" placeholder="Username" disabled>
                        </div>
                      </div>
                      
                      <div class="form-group row">
                        <label for="inputEmail" class="col-sm-1 col-form-label">Skor</label>
                        <div class="col-sm-11">
                          <input value="<?php include"../inc/skor3.php";?>" type="text" class="form-control" disabled>
                        </div>
                      </div>

                      <hr>

                      <div class="form-group row">

                          <?php
                            $bilangan=1;
                            $qessai=mysqli_query($connect,"select * from tb_essai where id_unit='".$runit['id_unit']."'");
                            $jum2=mysqli_num_rows($qessai);
                            while($ressai=mysqli_fetch_array($qessai)){

                            $qj=mysqli_query($connect,"select * from tb_jawaban where id_siswa='".$rsiswa['id_siswa']."' AND id_unit='".$runit['id_unit']."' AND id_essai='".$ressai['id_essai']."'");
                            $rj=mysqli_fetch_array($qj);
                            ?>
                            <table width="100%">
                              <tr>
                                <td width="3%" align="center" valign="top" rowspan=3>
                                  <?php echo $bilangan++;?>.
                                </td>
                                <td colspan=3 width="97%" style="padding-bottom:5px;padding:2px;">
                                  <?php echo $ressai['soal'];?>
                                </td>
                              </tr>
                              <tr>
                                <td style="border:1px dotted silver;padding:10px;">
                                    <b>Jawaban</b> : <?php echo $rj['jawaban'];?>
                                    <?php
                                    if($rj['jawaban']==$ressai['kunci']){
                                      echo"<span class='badge bg-info'>Benar</span>";
                                    }else{
                                      echo"<span class='badge bg-danger'>Salah</span>";
                                    }
                                    ?>
                                </td>
                              </tr>
                              <tr>
                                <td style="border:1px dotted silver;padding:10px;background:#e8fff0;">
                                    <b>Jawaban Kunci</b> : <?php echo $ressai['kunci'];?>
                                </td>
                              </tr>
                              
                            </table>
                            <br>&nbsp;
                            <?php }?>

                          </div>


                     

                  </div>
                  <!-- /.tab-pane -->
                </div>
                <!-- /.tab-content -->
              </div><!-- /.card-body -->
            </div>
            <!-- /.nav-tabs-custom -->
          </div>
          <!-- /.col -->
        </div>
        <!-- /.row -->
      </div><!-- /.container-fluid -->
    </section>