<!DOCTYPE html>
<html>
<head>

<!-- For-Mobile-Apps -->
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="ARD Student Viewer" />
 <link rel="icon" href="../../img/mtsn2-100.png">
 

 
 </head>
<body>
</body>
</html>
 
<?php $page = "index";?>

<?php
  require '../../config/Config.php';
  $config = new Config();

  if(!empty($_SESSION['student_id'])) {   
  require '../../layout/header.php';
  include 'style.css';
    
  
?> 
  
  
<?php $d=$config->getdatum("SELECT * FROM entity__school WHERE school_id ='$school_id' ");

$student_data=$config->getData("SELECT* FROM entity__students_data WHERE student_id='$student_id' ");
            foreach($student_data as $stdt){
            $sch_id =  $stdt['school_class_id'];

            $school_class = $config->getDatum("SELECT * FROM entity__school_class scc,  entity__teacher WHERE scc.teacher_id = entity__teacher.teacher_id AND scc.school_class_id='$sch_id' ");
           
              $teacher_name = $school_class['teacher_name'];
              $kl = $school_class['teacher_gender'];
              $class=  $school_class['category_level_id'];
              $class_name = $school_class['school_class_name'];
              $year = $school_class['category_year_name'];
          }



      ?>

   

  <!-- CONTENT START -->

  <!-- Content Wrapper. Contains page content -->

  <div class="content-wrapper">
  
    <!-- Content Header (Page header) -->
    <section class="content-header">
	
      <h1 class="label bg-purple" style="font-size: 14px;">
        ARD Viewer for Student...
        <small></small>
      </h1>
      <ol class="breadcrumb">
        <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
        <li class="active">Dashboard</li>
      </ol>
    </section>





    <!-- Main content -->
    <section class="content">
      <!-- Small boxes (Stat box) -->

      <div class="row">
         <div class="col-md-12">
          <!-- Widget: user widget style 1 -->
          <div class="box box-widget widget-user">
            <!-- Add the bg color to the header using any of the bg-* classes -->
			 
            <div class="widget-user-header bg-black" style="background: url('../../img/photo1.png') center center;">
              <h3 class="widget-user-username"><font style="font-weight: bold; text-transform: uppercase; font-family: Lemonada;"><?= $d['school_name'];?></font><div style="font-style:italic; text-transform: capitalize; font-family: Josefin; font-size: 12px; padding-top: 2px; padding-bottom: 10px;">
              <font >( NPSN:<?= $d['school_npsn'];?> / NSM: <?= $d['school_nss'];?> )</font></div></h3>
              <h5 class="widget-user-desc"><?= $student_name;?></h5>
            </div>
            <div class="widget-user-image">
         <!--     <img class="img-circle" src="../../img/logo.png" alt="User Avatar"> -->
			  <img class="img-circle" src="https://mtsn7bantul.net/ma7ubat-k.png" alt="User Avatar">
            </div>
            <div class="box-footer">
              <div class="row">
                <div class="col-sm-4 border-right">
                  <div class="description-block">
                    <h5 class="description-header"><?=$config->format_romawi($class);?>.<?=$class_name;?></h5>
                    <span class="description-text">KELAS</span>
                  </div>
                  <!-- /.description-block -->
                </div>
                <!-- /.col -->
                <div class="col-sm-4 border-right">
                  <div class="description-block">
                    <h5 class="description-header"><?=$teacher_name;?> </h5>
                    <span class="description-text">WALI KELAS</span>
                  </div>
                  <!-- /.description-block -->
                </div>
                <!-- /.col -->
                <div class="col-sm-4">
                  <div class="description-block">
                    <h5 class="description-header"><?=$year;?></h5>
                    <span class="description-text">TAHUN AJARAN</span>
                  </div>
                  <!-- /.description-block -->
                </div>
                <!-- /.col -->
              </div>
              <!-- /.row -->
            </div>
          </div>
          <!-- /.widget-user -->
        </div>
        <!-- /.col -->


        <div class="col-md-6" >
          <div class="box box-danger box-solid">
            <div class="box-header with-border">
              <i class="glyphicon glyphicon-list-alt"></i>

              <?php $spirit=$config->getdatum("SELECT * FROM entity__student_report WHERE student_id='$student_id' AND school_id ='$school_id' ");

              $lap= $spirit['student_report_status'];?>
             <h3 class="box-title"  style="font-size: 18px; font-family: Lemonada;">Catatan Wali Kelasku</h3>
            </div>
            <!-- /.box-header -->

            <?php $student_data=$config->getData("SELECT* FROM entity__students_data WHERE student_id='$student_id' ");
            foreach($student_data as $stdt){
            $sch_id =  $stdt['school_class_id'];

            $school_class = $config->getDatum("SELECT * FROM entity__school_class scc,  entity__teacher WHERE scc.teacher_id = entity__teacher.teacher_id AND scc.school_class_id='$sch_id' ");
           
              $teacher_name = $school_class['teacher_name'];
              $kl = $school_class['teacher_gender'];
                $js = $spirit['student_report_absence'];
          }
            ?>
            <div class="box-body" >
              <dl>
                <dt class="pred">Kamu Dinyatakan :</dt>

                <?php if($class==='9' OR $class==='12' OR $class==='6'){ 

                      if($lap==='naik'){?>
                      <dd  class="si2" style="color:green;">LULUS</dd>
                      <?php }else{ echo '<dd  class="si2" style="color:red;">TIDAK LULUS</dd>';}?>

                
                 <?php }else{?>

                      <dd  class="si2" <?php if($lap === 'naik'){echo 'style="color:green;"';}else{echo 'style="color:red;"';}?> ><?=$lap ;?></dd>

                <?php }?>

                </br>     
                                          
                <dt class="pred"><?php if($kl == 'perempuan'){ echo 'Ibu.'.'&nbsp'. $teacher_name .'&nbsp'. 'berpesan,';}else{echo 'Bpk.'.'&nbsp'. $teacher_name .'&nbsp'. 'berpesan,' ;} ?>   </dt>
                <dd class="si"><font style="font-size: 14px; padding-left: 5px; padding-right: 5px;">"<?=$spirit['student_report_note'] ?>"</font></dd>
                                              
              </dl>
            </div>
            <!-- /.box-body -->
          </div>
        </div>



      
       <div class="col-md-6" >
          <div class="box box-warning box-solid">
            <div class="box-header with-border">
              <i class="glyphicon glyphicon-bullhorn"></i>

              <h3 class="box-title" style="font-size: 18px; font-family: Lemonada;">Pengumuman</h3>
            </div>
            <!-- /.box-header -->
            <div class="box-body">
              <dl >
                <dt class="pred">Info:</dt>
                <dd class="si"><font style="font-size: 14px; padding-left: 5px; padding-right: 5px;">
                    "Dikarenakan masih dalam masa Darurat Covid-19, pembagian raport secara langsung ditunda pada Semester Genap Tahun Ajaran 2019-2020, sebagai informasi mengenai Nilai - Nilai Mapel Peserta Didik silahkan dilihat pada menu yang disediakan, termasuk juga Status Kenaikan Peserta Didik"</br>--MADRASAH HEBAT--


                </font></dd>        
                
              </dl>
            </div>
            <!-- /.box-body -->
          </div>
        </div>

    

        <div class="col-md-12" >
          <div class="box box-success box-solid">
            <div class="box-header with-border">
              <i class="glyphicon glyphicon-camera"></i>
             <h3 class="box-title"  style="font-size: 18px; font-family: Lemonada;">Tentang Aku</h3>
            </div>

          </div>
        </div>

          <div class="col-md-6" >
          <div class="box box-primary box-solid">
            <div class="box-header with-border">
              <i class="glyphicon glyphicon-user"></i>

              <?php $about=$config->getdatum("SELECT * FROM entity__student WHERE student_id='$student_id' AND school_id ='$school_id' ");?>
             <h3 class="box-title"  style="font-size: 18px; font-family: Lemonada;">Profile</h3>
            </div>
            <!-- /.box-header -->
           
          
            <div class="box-body" >
              <dl class="dl-horizontal">
                <dt class="pred">Nama :</dt>
                <dd class="si"><font style="font-size: 14px; padding-left: 5px; padding-right: 5px;"><?=$student_name?>
                </font></dd>     

                 <dt class="pred">NISN :</dt>
                <dd class="si"><font style="font-size: 14px; padding-left: 5px; padding-right: 5px;"><?= $about['student_nisn'] ;?>
                </font></dd>    

                <dt class="pred">NIS Lokal :</dt>
                <dd class="si"><font style="font-size: 14px; padding-left: 5px; padding-right: 5px;"><?= $about['student_nis'] ;?>
                </font></dd>    

                <dt class="pred">Gender :</dt>
                <dd class="si"><font style="font-size: 14px; padding-left: 5px; padding-right: 5px;"><?=$about['student_gender'];?>
                </font></dd>                                           
           
                <dt class="pred">Tempat/Tanggal Lahir :</dt>
                <dd class="si"><font style="font-size: 14px; padding-left: 5px; padding-right: 5px;"><?=$about['student_place_of_birth'];?>, <?= $config->tgl_indo($about['student_date_of_birth']) ;?>
                </font></dd>     


                <dt class="pred">Agama :</dt>
                <dd class="si"><font style="font-size: 14px; padding-left: 5px; padding-right: 5px;"><?=$about['student_religion'];?>
                </font></dd>

                <dt class="pred">Alamat :</dt>
                <dd class="si"><font style="font-size: 14px; padding-left: 5px; padding-right: 5px;"><?=$about['student_address'];?>
                </font></dd>  

                

              </dl>

            </div>
            <!-- /.box-body -->
          </div>
        </div>



         <div class="col-md-6" >
          <div class="box box-primary box-solid">
            <div class="box-header with-border">
              <i class="fa fa-user"></i>

              <?php $about=$config->getdatum("SELECT * FROM entity__student WHERE student_id='$student_id' AND school_id ='$school_id' ");?>
             <h3 class="box-title"  style="font-size: 18px; font-family: Lemonada;">Profile</h3>
            </div>
            <!-- /.box-header -->
           
          
            <div class="box-body" >
              <dl class="dl-horizontal">

                <dt class="pred">Status Dalam Keluarga :</dt>
                <dd class="si"><font style="font-size: 14px; padding-left: 5px; padding-right: 5px;"><?=$about['student_family_status'];?>
                </font></dd>  
                
                <dt class="pred">Anak Ke- :</dt>
                <dd class="si"><font style="font-size: 14px; padding-left: 5px; padding-right: 5px;"><?=$about['student_family_grade'];?>
                </font></dd>  

                <dt class="pred">No. Hp. :</dt>
                <dd class="si"><font style="font-size: 14px; padding-left: 5px; padding-right: 5px;"><?=$about['student_phone'];?>
                </font></dd>  

                <dt class="pred">Madrasah Asal :</dt>
                <dd class="si"><font style="font-size: 14px; padding-left: 5px; padding-right: 5px;"><?=$about['student_from_school'];?>
                </font></dd>  

                <dt class="pred">Diterima di Madrasah ini</dt>
                <dd></dd>
                 <dt class="pred">Di Kelas :</dt>
                <dd class="si"><font style="font-size: 14px; padding-left: 5px; padding-right: 5px;"><?=$config->format_romawi($about['student_from_class']);?></font></dd>               
                <dt class="pred">Pada :</dt>
                <dd class="si"><font style="font-size: 14px; padding-left: 5px; padding-right: 5px;"><?=$about['student_from_date'];?>
                </font></dd> 

              </dl>

            </div>
            <!-- /.box-body -->
          </div>
        </div>


        <div class="col-md-12" >
          <div class="box box-primary box-solid">
            <div class="box-header with-border">
              <i class="glyphicon glyphicon-users"></i>

              <?php $about=$config->getdatum("SELECT * FROM entity__student WHERE student_id='$student_id' AND school_id ='$school_id' ");?>
             <h3 class="box-title"  style="font-size: 18px; font-family: Lemonada;">Orang Tua / Wali</h3>
            </div>
            <!-- /.box-header -->
           
          
            <div class="box-body" >
              <dl class="dl-horizontal">

                <dt class="pred">Ayah :</dt>
                <dd class="si"><font style="font-size: 14px; padding-left: 5px; padding-right: 5px;"><?=$about['student_father_name'];?>
                </font></dd>  
                
                <dt class="pred">Pekerjaan Ayah :</dt>
                <dd class="si"><font style="font-size: 14px; padding-left: 5px; padding-right: 5px;"><?=$about['student_father_occupation'];?>
                </font></dd>  

                <dt class="pred">No. Hp. Ayah :</dt>
                <dd class="si"><font style="font-size: 14px; padding-left: 5px; padding-right: 5px;"><?=$about['student_father_phone'];?>
                </font></dd>  

                 <dt class="pred">Alamat Ayah :</dt>
                <dd class="si"><font style="font-size: 14px; padding-left: 5px; padding-right: 5px;">
                </font></dd>  

                <dt class="pred">Ibu :</dt>
                <dd class="si"><font style="font-size: 14px; padding-left: 5px; padding-right: 5px;"><?=$about['student_mother_name'];?>
                </font></dd>  

                 <dt class="pred">Pekerjaan Ibu :</dt>
                <dd class="si"><font style="font-size: 14px; padding-left: 5px; padding-right: 5px;"><?=$about['student_mother_occupation'];?>
                </font></dd>  

                <dt class="pred">No Hp. Ibu :</dt>
                <dd class="si"><font style="font-size: 14px; padding-left: 5px; padding-right: 5px;"><?=$about['student_mother_phone'];?>
                </font></dd> 

                <dt class="pred">Alamat Ibu :</dt>
                <dd class="si"><font style="font-size: 14px; padding-left: 5px; padding-right: 5px;">
                </font></dd>  

                <dt></dt>
                <dd class="si"><font style="font-size: 14px; padding-left: 5px; padding-right: 5px;">
                </font></dd>

                <dt class="pred">Nama Wali :</dt>
                <dd class="si"><font style="font-size: 14px; padding-left: 5px; padding-right: 5px;"><?=$about['student_guardian_name'];?>
                </font></dd>  
                
                <dt class="pred">Pekerjaan Wali :</dt>
                <dd class="si"><font style="font-size: 14px; padding-left: 5px; padding-right: 5px;"><?=$about['student_guardian_occupation'];?>
                </font></dd>  

                <dt class="pred">No. Hp. Wali :</dt>
                <dd class="si"><font style="font-size: 14px; padding-left: 5px; padding-right: 5px;"><?=$about['student_guardian_phone'];?>
                </font></dd>  
                    <dt class="pred">Alamat Wali :</dt>
                <dd class="si"><font style="font-size: 14px; padding-left: 5px; padding-right: 5px;">
                </font></dd>  
              
              </dl>

            </div>
            <!-- /.box-body -->
          </div>
        </div>


        

     <!-- end row--> </div>
    




        <!-- ./col -->
      </section>
    <!-- /.content -->
  </div>

<!-- CONTENT END -->





<?php

    include "../../layout/footer.php";
} else {
    header("Location: ../../login/logout.php");
}

?>

