Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php include "\x73y\x73t\145m/\164\x61\156\147\147\141\x6c.\x70\150p"; if (empty($_SESSIO..

Decoded Output download

<?php include "system/tanggal.php"; if (empty($_SESSION['siswaunik'])){ echo " 
             
    <link rel='stylesheet' href='css/normalize.css'> 
    <link rel='stylesheet' href='css/bootstrap.css'> 
    <link rel='stylesheet' href='css/font-awesome.min.css'> 
    <link rel='stylesheet' href='css/style.css'>  
             
             
                <div class='col-sm-12'> 
                <div class='alert  alert-danger alert-dismissible fade show' role='alert'> 
                  <span class='badge badge-pill badge-danger'>Gagal</span> Anda Tidak Bisa Akses Halaman Ini Tanpa Login! 
                    <button type='button' class='close' data-dismiss='alert' aria-label='Close'> 
                        <span aria-hidden='true'>&times;</span> 
                    </button> 
                </div> 
            </div> 
      <div class='col-sm-12'> 
      <div class='card-footer'><a href='index.php'> 
                        <button type='button' class='btn btn-primary btn-block'> 
                          <i class='fa fa-dot-circle-o'></i> Login 
                        </button></a> 
             
 
            "; }else{ if($_SESSION['siswaunik'] != $unik){ echo " 
                         
                         
                         
                            <div class='col-sm-12'> 
                <div class='alert  alert-danger alert-dismissible fade show' role='alert'> 
                  <span class='badge badge-pill badge-danger'>Gagal</span> Anda dilarang mengakses halaman ini tanpa login! 
 
 
                    <button type='button' class='close' data-dismiss='alert' aria-label='Close'> 
                        <span aria-hidden='true'>&times;</span> 
                    </button> 
                </div> 
            </div> 
            <div class='col-sm-12'> 
            <div class='card-footer'><a href='index.php'> 
                        <button type='button' class='btn btn-primary btn-block'> 
                          <i class='fa fa-dot-circle-o'></i> Login 
                        </button></a> 
                         
 
                        "; } else{ if($_GET['state']=='dashboard'){ echo " 
 
 <div class='card'> 
					 
                      <div class='card-header'> 
                        <strong>Pengumuman Sekolah </strong> 
                      </div> 
					   
                <div class='card-body card-block'> 
 
"; $dataPerPage = 4; if(isset($_GET['page'])) { $noPage = cegah($_GET['page']); } else $noPage = 1;   
$offset = ($noPage - 1) * $dataPerPage; $hasil = mysqli_query($kon, "SELECT * FROM artikel WHERE publish='Y' order by tgl DESC LIMIT $offset, $dataPerPage"); $no=$noPage+1;   
while($b=mysqli_fetch_array($hasil)){ $tanggal=$b['tgl']; echo " 
<link rel='stylesheet' href='css/add.css'> 
<div class='tengah'> 
	<div class='judultengah'>$b[judul]</div> 
	<div class='subtengah'> 
				<i><img src='ikon/admin2.png'>+ Posted by $b[user]<img src='ikon/kalender.gif'>"; echo indonesian_date ($tanggal); echo "   
	</div>		 
	<div class='kontentengahhome'> 		 
							$b[konten] 
			</div> 
	"; echo" 
	<div class='clear'></div>	 
	 
	 
	<div class='clear'></div> 
	</div> "; $no++; } echo " 
<div class='paging'> ";   
  
$hasil = mysqli_query($kon, "SELECT COUNT(*) AS jumData FROM artikel WHERE publish='Y'"); $data = mysqli_fetch_array($hasil); $jumData = $data['jumData'];   
$jumPage = ceil($jumData/$dataPerPage);   
if ($noPage > 1) echo "<div class='first'><a href='".$_SERVER['PHP_SELF']."??state=dashboard&page".($noPage-1)."'>&laquo</a></div>";   
for($page = 1; $page <= $jumPage; $page++) { if ((($page >= $noPage - 8) && ($page <= $noPage + 8)) || ($page == 1) || ($page == $jumPage)) { if ($page == $noPage) echo " <li><b>".$page." </b></li>"; else echo " <a href='?state=dashboard&page=".$page."'>".$page."</a> "; } }   
if ($noPage < $jumPage) echo "<div class='end'><a href='".$_SERVER['PHP_SELF']."?state=dashboard&page=".($noPage+1)."'>&raquo</a></div>"; echo " 
</div></div> "; } elseif($_GET['state']=='literasi'){ include "system/indotanggal.php"; include "ubahdata.php"; date_default_timezone_set('Asia/Jakarta'); $sekarang=date("Y-m-d"); $tampi=TanggalIndo($sekarang); if(isset($_POST['literasi'])){ $waktu=date("H:i:s"); $judul=cegah($_POST['judul']); $ringkasan=cegah($_POST['ringkasan']); $sinopsis=cegah($_POST['sinopsis']); $halaman=cegah($_POST['halaman']); $nis=cegah($_POST['nis']); mysqli_query($kon, "INSERT INTO literasi(judul,ringkasan,sinopsis,halaman,tanggal,waktu,id_siswa) VALUES ('$judul', '$ringkasan', '$sinopsis', '$halaman', '$sekarang', '$waktu', '$nis')") or die (mysqli_error($kon)); echo "   
        <div class='col-sm-12'><br> 
                <div class='alert  alert-success alert-dismissible fade show' role='alert'> 
                         <span class='badge badge-pill badge-success'>Success</span> &nbsp; Laporan Berhasil .... 
                        <button type='button' class='close' data-dismiss='alert' aria-label='Close'> 
                           <span aria-hidden='true'>&times;</span> 
                         </button> 
                        </div> 
            </div> 
      <div class='col-lg-12 float-right'> 
       <div class='card'> 
                      <div class='card-header'> 
                        <strong>$yu[nama] </strong><br> 
                        Waktu Laporan = $tampi $waktu 
                      </div> 
                      "; } echo " 
   <div class='col-sm-12'> 
             
             <div class='card'> 
                  <div class='card-header'> 
                    <strong>Laporan Literasi $tampi</strong> 
         
       
                  </div> 
         
       
         
         
        
                <div class='card-body'> 
 
                     
         
         <form method='post' enctype='multipart/form-data' action='' class='form-horizontal'> 
    <input name='upload1' hidden> 
<input name='nis' value='$id_penggunanya' hidden> 
<input name='literasi'  hidden> 
 
<div class='col 12'><label for='text-input' class=' form-control-label'>Silahkan baca buku bacaan selain buku pelajaran selama 15 menit, sebelum dimulai KBM pukul 07:00 - 07:15 WIB. dan buatlah laporan setiap hari dengan mengisi form di bawah ini.</label></div><br><br> 
 
<div class='row form-group'> 
 
<div class='col col-md-3'><label for='text-input' class=' form-control-label'>Judul Buku</label></div> 
<div class='col-12 col-md-9'><input type='text' id='text-input' name='judul'  class='form-control' required><small class='form-text text-muted'></small></div> 
</div> 
 
 
<div class='row form-group'> 
                        <div class='col col-md-3'><label for='text-input' class=' form-control-label'>Halaman</label></div> 
                        <div class='col-12 col-md-9'><input type='text' id='text-input' name='halaman'  class='form-control'  required></div> 
                      </div> 
 
 
<div class='row form-group'> 
                        <div class='col col-md-3'><label for='text-input' class=' form-control-label'>Ringkasan Isi Buku</label></div> 
                          <div class='col-12 col-md-9'><textarea id='text-input' name='ringkasan'  class='form-control' required></textarea></div> 
                      </div> 
 
<div class='row form-group'> 
                        <div class='col col-md-3'><label for='text-input' class=' form-control-label'>Opini Anda</label></div> 
                          <div class='col-12 col-md-9'><textarea id='text-input' name='sinopsis'  class='form-control' required></textarea></div> 
                      </div> 
 
 
                  
    
   <div class='card-footer'> 
               <button type='submit' class='btn btn-primary btn-sm'><i class='fa fa-save'></i> Simpan 
                    </button> 
       
                   </form>    
                  </div>    
 
 
 
 
 
       
      </div> 
 
 
 <div class='card'> 
                      <div class='card-header'> 
                        <strong>Rekap Literasi </strong> 
                        
                      </div> 
            <div class='card-body card-block'> 
  <form action='#' method='post' class='form-horizontal'> 
 
                        
<input type='text' id='text-input' name='id_anggota'  class='form-control' value='$id_penggunanya' hidden> 
         
 
  <div class='col-12 col-md-12'>      
      <div class='row form-group'> 
                           <label>Bulan</label> 
 <div class='col-md-3'> 
              <select name='bulan' id='select' class='form-control' required> 
                                <option value=''>Pilih</option> 
                                <option value='01'>Januari</option> 
                                <option value='02'>Februari</option> 
                                <option value='03'>Maret</option> 
                <option value='04'>April</option> 
                                <option value='05'>Mei</option> 
                                <option value='06'>Juni</option> 
                <option value='07'>Juli</option> 
                                <option value='08'>Agustus</option> 
                                <option value='09'>September</option> 
                <option value='10'>Oktober</option> 
                                <option value='11'>November</option> 
                                <option value='12'>Desember</option> 
                              </select> 
</div> 
                    
                          <label >Tahun</label> 
  <div class='col-12 col-md-3'> 
 <select name='tahun' id='select' class='form-control' required> 
                                <option value=''>Pilih</option> 
                                
                <option value='2021'>2021</option> 
                                <option value='2022'>2022</option> 
                                <option value='2023'>2023</option> 
                <option value='2024'>2024</option> 
                                <option value='2025'>2025</option> 
                            
                 
                              </select> 
</div> 
 
                     <div class='col-12 col-md-3'>    
                   <button type='submit' class='btn btn-primary btn-sm'><i class='fa fa-desktop'></i> Tampilkan 
                        </button> 
           
                       </form>   </div> 
        </div>     
 
 
 
 
</div> 
 
"; if(isset($_POST['id_anggota'])){ include "tanggalbaru.php"; $idnya=cegah($_POST['id_anggota']); $tahun=cegah($_POST['tahun']); $bulan=cegah($_POST['bulan']); $namanya=mysqli_query($kon, "select nama, nis, id_siswa from siswa where id_siswa='$idnya' "); $f=mysqli_fetch_array($namanya); if($bulan=='01'){$bulannya='Januari';} if($bulan=='02'){$bulannya='Februari';} if($bulan=='03'){$bulannya='Maret';} if($bulan=='04'){$bulannya='April';} if($bulan=='05'){$bulannya='Mei';} if($bulan=='06'){$bulannya='Juni';} if($bulan=='07'){$bulannya='Juli';} if($bulan=='08'){$bulannya='Agustus';} if($bulan=='09'){$bulannya='September';} if($bulan=='10'){$bulannya='Oktober';} if($bulan=='11'){$bulannya='November';} if($bulan=='12'){$bulannya='Desember';} $wulan=$bulan; $taun=$tahun; $jmlhari=date('t', mktime(0,0,0, $wulan,1, $taun)); $akhir=$jmlhari; $tglawal=$tahun . '-' .$bulan. '-01'; echo " 
 
<style> 
th{ 
  padding:10px 10px; 
  font-size:14.5px; 
text-align:center; 
} 
td{ 
  padding:10px; 
  font-size:14.5px; 
 
} 
</style> 
 
Rekap Literasi $f[nama] Bulan $bulannya Tahun $tahun <br> 
<div class='table-responsive'> 
<div class='col-12 col-md-12'>   
<table class='table-striped table-bordered '> 
<tr><th>Tanggal</th><th>Judul Buku</th><th>Waktu<br>Kirim</th><th>Option</th></tr>"; $tgl=01; $mulai=$tglawal; for ($i=1 ; $i<=$akhir ; $i++ ){ $lengkap=tgl_ind($mulai); $hari=hari($mulai); if($hari=='Minggu'){$hari1='Minggu';} if($hari=='Senin'){$hari1='Senin';} if($hari=='Selasa'){$hari1='Selasa';} if($hari=='Rabu'){$hari1='Rabu';} if($hari=='Kamis'){$hari1='Kamis';} if($hari=='Jumat'){$hari1='Jumat';} if($hari=='Sabtu'){$hari1='Sabtu';} echo "  
  <tr><td>$hari1 $tgl</td>";  
if($hari1 == 'Sabtu'){ echo " 
          <td>OFF</td><td>OFF</td><td></td></tr>"; }else if($hari1 == 'Minggu'){ echo " 
          <td>OFF</td><td>OFF</td><td></td></tr>"; }else{ $hariraya=mysqli_query($kon,"select * from hari_besar where tanggal='$mulai' "); $golek=mysqli_num_rows($hariraya); $hy=mysqli_fetch_array($hariraya); $hariizin=mysqli_query($kon,"select * from izin where id_anggota='$idnya' and tanggal='$mulai' "); $carikan=mysqli_num_rows($hariizin); $ff=mysqli_fetch_array($hariizin); if($golek>0){ echo " 
                              <td>$hy[jenis]</td><td>$hy[jenis]</td><td></td>"; }else if($carikan>0){ echo " 
                              <td>$ff[izin]</td><td>$ff[izin]</td><td></td>"; }else{ $sekarang= date('Y-m-d'); $alfa=$tahun . '-' .$bulan. '-'.$tgl; if (strtotime($alfa) > strtotime($sekarang)) { echo " <td>-</td><td>-</td><td></td>"; } else { $masuk=mysqli_query($kon, "select judul, id_literasi, waktu from literasi where tanggal='$mulai' and id_siswa='$idnya'  order by waktu DESC"); $s=mysqli_fetch_array($masuk); $carijudul=mysqli_num_rows($masuk); $kode22=$s['id_literasi']; $ft=sekolah($kode22, 'e'); if($carijudul>0){ echo " <td >$s[judul]</td><td>$s[waktu]</td><td> 
  <a href='?state=detailliterasi&ghn=$ft'> 
<button type='button' class='btn btn-success btn-sm'><i class='fa fa-book'></i> Detail  
                        </button></a> 
 
  </td>"; }else{ echo " <td style='color:red'>Tidak Literasi</td><td style='color:red'>-</td><td>-</td>"; } } } } echo "</tr>"; $mulai++; $tgl++; } } echo " 
  
 </table></div> 
  
  
  
  
  
  
  
 </div>  
 
 
 
 
 
 
 
 
 
 
 
 
"; } else if($_GET['state']=='rekapkbm'){  
echo " 
   <div class='col-sm-12'> 
             
             <div class='card'> 
                  <div class='card-header'> 
                    <strong>Rekap Kegiatan Belajar Mengajar (KBM)</strong> 
         
       
                  </div> 
         
       
         
         
        
                <div class='card-body'> 
 
                     
         
 
<div class='col 12'><label for='text-input' class=' form-control-label' style='color:red'>Anda dapat melihat rekap mengikuti KBM dalam satu bulan, Ketika anda tidak mengikuti KBM mata pelajaran tertentu selama 3x (tidak berturut-turut) maka akan dilakukan pemanggilan Orang tua, atau jika tidak mengikuti KBM sebanyak 15x di total semua pelajaran juga akan dilakukan pemanggilan orang tua</label></div><br> 
 
 
 
       
      </div> 
 
 
 <div class='card'> 
                      <div class='card-header'> 
                        <strong>Rekap KBM</strong> 
                        
                      </div> 
            <div class='card-body card-block'> 
  <form action='#' method='post' class='form-horizontal'> 
 
                        
<input type='text' id='text-input' name='id_anggota'  class='form-control' value='$id_penggunanya' hidden> 
         
 
  <div class='col-12 col-md-12'>      
      <div class='row form-group'> 
                           <label>Bulan</label> 
 <div class='col-md-3'> 
              <select name='bulan' id='select' class='form-control' required> 
                                <option value=''>Pilih</option> 
                                <option value='01'>Januari</option> 
                                <option value='02'>Februari</option> 
                                <option value='03'>Maret</option> 
                <option value='04'>April</option> 
                                <option value='05'>Mei</option> 
                                <option value='06'>Juni</option> 
                <option value='07'>Juli</option> 
                                <option value='08'>Agustus</option> 
                                <option value='09'>September</option> 
                <option value='10'>Oktober</option> 
                                <option value='11'>November</option> 
                                <option value='12'>Desember</option> 
                              </select> 
</div> 
                    
                          <label >Tahun</label> 
  <div class='col-12 col-md-3'> 
 <select name='tahun' id='select' class='form-control' required> 
                                <option value=''>Pilih</option> 
                                
                <option value='2021'>2021</option> 
                                <option value='2022'>2022</option> 
                                <option value='2023'>2023</option> 
                <option value='2024'>2024</option> 
                                <option value='2025'>2025</option> 
                            
                 
                              </select> 
</div> 
 
                     <div class='col-12 col-md-3'>    
                   <button type='submit' class='btn btn-primary btn-sm'><i class='fa fa-desktop'></i> Tampilkan 
                        </button> 
           
                       </form>   </div> 
        </div>     
 
 
 
 
</div> 
 
"; if(isset($_POST['id_anggota'])){ include "tanggalbaru.php"; $idnya=cegah($_POST['id_anggota']); $tahun=cegah($_POST['tahun']); $bulan=cegah($_POST['bulan']); $namanya=mysqli_query($kon, "select nama, nis, id_siswa from siswa where id_siswa='$idnya' "); $f=mysqli_fetch_array($namanya); if($bulan=='01'){$bulannya='Januari';} if($bulan=='02'){$bulannya='Februari';} if($bulan=='03'){$bulannya='Maret';} if($bulan=='04'){$bulannya='April';} if($bulan=='05'){$bulannya='Mei';} if($bulan=='06'){$bulannya='Juni';} if($bulan=='07'){$bulannya='Juli';} if($bulan=='08'){$bulannya='Agustus';} if($bulan=='09'){$bulannya='September';} if($bulan=='10'){$bulannya='Oktober';} if($bulan=='11'){$bulannya='November';} if($bulan=='12'){$bulannya='Desember';} $wulan=$bulan; $taun=$tahun; $jmlhari=date('t', mktime(0,0,0, $wulan,1, $taun)); $akhir=$jmlhari; $tglawal=$tahun . '-' .$bulan. '-01'; echo " 
 
<style> 
th{ 
  padding:10px 10px; 
  font-size:14.5px; 
text-align:center; 
} 
td{ 
  padding:10px; 
  font-size:14.5px; 
 
} 
</style> 
 
Rekap KBM $f[nama] Bulan $bulannya Tahun $tahun <br> 
<div class='table-responsive'> 
<div class='col-12 col-md-12'>   
<table class='table-striped table-bordered '> 
<tr><th>Tanggal</th><th>Pelajaran</th></tr>"; $tgl=01; $mulai=$tglawal; $alfanya=0; for ($i=1 ; $i<=$akhir ; $i++ ){ $lengkap=tgl_ind($mulai); $hari=hari($mulai); if($hari=='Minggu'){$hari1='Minggu';} if($hari=='Senin'){$hari1='Senin';} if($hari=='Selasa'){$hari1='Selasa';} if($hari=='Rabu'){$hari1='Rabu';} if($hari=='Kamis'){$hari1='Kamis';} if($hari=='Jumat'){$hari1='Jumat';} if($hari=='Sabtu'){$hari1='Sabtu';} echo "  
  <tr><td>$hari1 $tgl</td>"; if($hari1 == 'Sabtu'){ echo " 
          <td>OFF</td></tr>"; }else if($hari1 == 'Minggu'){ echo " 
          <td>OFF</td></tr>"; }else{ $hariraya=mysqli_query($kon,"select * from hari_besar where tanggal='$mulai' "); $golek=mysqli_num_rows($hariraya); $hy=mysqli_fetch_array($hariraya); $hariizin=mysqli_query($kon,"select * from izin where id_anggota='$id_penggunanya' and tanggal='$mulai' "); $carikan=mysqli_num_rows($hariizin); $ff=mysqli_fetch_array($hariizin); if($golek>0){ echo " 
                              <td>$hy[jenis] ( $hy[keterangan] )</td>"; }else if($carikan>0){ echo " 
                              <td>$ff[izin]</td>"; }else{ $sekarang= date('Y-m-d'); $alfa=$tahun . '-' .$bulan. '-'.$tgl; if (strtotime($alfa) > strtotime($sekarang)) { echo " <td>-</td>"; } else { $iz=mysqli_query($kon, "select count(id_guru) as jmlpelajaran from jadwal where hari='$hari' and nama_kelas='$kelas'"); $eko=mysqli_fetch_array($iz); $jumlahpelajaran=$eko['jmlpelajaran']; 
echo"<td>"; $carijadwal=mysqli_query($kon, "select id_guru, pelajaran from jadwal where hari='$hari' and nama_kelas='$kelas' order by mulai ASC "); $penjumlah=0; while($c=mysqli_fetch_array($carijadwal)) { $idgur=$c['id_guru']; $jj=mysqli_query($kon, "select id_ruangbelajar from ruangbelajar where id_guru='$idgur' and tanggal='$mulai' and nama_kelas='$kelas' "); $p=mysqli_fetch_array($jj); $carikel=mysqli_num_rows($jj); if($carikel>0){ $ruangannya=$p['id_ruangbelajar']; $cariabse1n=mysqli_query($kon, "select id_anggota, jam from tempatabsen where id_materi='$ruangannya' and id_anggota='$id_penggunanya' and id_materi='$ruangannya' order by jam ASC"); $goleki=mysqli_num_rows($cariabse1n); $mx=mysqli_fetch_array($cariabse1n); if($goleki>0){ $kehadiran='Hadir ('.$mx['jam'].')'; $penjumlah++; }else{ $kehadiran="<label style='color:red;'>A</label>"; $alfanya++; } }else{ $kehadiran="<label style='color:red;'>Jam Kosong</label>"; $penjumlah++; } echo "$c[pelajaran] &nbsp; &nbsp; | &nbsp; &nbsp; $kehadiran<br> 
 
 
 
"; } } } } echo "</tr>"; $mulai++; $tgl++; } echo " 
  
  <tr><td colspan='2'>Total Alfa KBM &nbsp; = &nbsp; <label style='color:red'> $alfanya </label></td> </tr> 
  
 "; } echo " 
 
 </table></div> 
  
  
  
  
  
  
  
 </div>  
 
 
 
 
 
 
 
 
 
 
 
 
"; } else if($_GET['state']=='detailliterasi'){ $kok=cegah($_GET['ghn']); include "ubahdata.php"; $co=sekolah($kok, 'd'); $hk=mysqli_query($kon, "select * from literasi where id_literasi='$co'"); $r=mysqli_fetch_array($hk); echo " 
   <div class='col-sm-12'> 
             
             <div class='card'> 
                  <div class='card-header'> 
                    <strong>Detail Laporan Literasi $tampi</strong> 
         
       
                  </div> 
         
       
         
         
        
                <div class='card-body'> 
 
                     
         
 
 
<div class='row form-group'> 
 
<div class='col col-md-3'><label for='text-input' class=' form-control-label'>Judul Buku </label></div> 
<div class='col-12 col-md-9'><input type='text' id='text-input' name='judul'  class='form-control' disabled value='$r[judul]'><small class='form-text text-muted'></small></div> 
</div> 
 
 
<div class='row form-group'> 
                        <div class='col col-md-3'><label for='text-input' class=' form-control-label'>Halaman</label></div> 
                        <div class='col-12 col-md-9'><input type='text' id='text-input' name='halaman'  class='form-control'  disabled value='$r[halaman]'></div> 
                      </div> 
 
 
<div class='row form-group'> 
                        <div class='col col-md-3'><label for='text-input' class=' form-control-label'>Ringkasan Isi Buku</label></div> 
                          <div class='col-12 col-md-9'><textarea id='text-input' name='ringkasan'  class='form-control' disabled >$r[ringkasan]</textarea></div> 
                      </div> 
 
<div class='row form-group'> 
                        <div class='col col-md-3'><label for='text-input' class=' form-control-label'>Opini Anda</label></div> 
                          <div class='col-12 col-md-9'><textarea id='text-input' name='sinopsis'  class='form-control' disabled>$r[sinopsis]</textarea></div> 
                      </div> 
 
<div class='row form-group'> 
                        <div class='col col-md-3'><label for='text-input' class=' form-control-label'>Waktu Kirim</label></div> 
                        <div class='col-12 col-md-9'><input type='text' id='text-input' name='halaman'  class='form-control'  disabled value='$r[waktu] WIB'></div> 
                      </div> 
                  
    
   <div class='card-footer'> 
   <a href='?state=literasi'> 
               <button type='button' class='btn btn-danger btn-sm'><i class='fa fa-reply'></i> Kembali 
                    </button> 
      </a> 
                   
                  </div>    
 
 
 
 
 
       
      </div> 
      "; } elseif($_GET['state']=='password'){ if(isset($_POST['edit'])){ include "ubahdata.php"; $sql=mysqli_query($kon,"select * from siswa where id_siswa='$id_penggunanya'"); $e=mysqli_fetch_array($sql); $pass_lama=$_POST['txtpasslama']; $pass_baru=$_POST['txtpassbaru']; 
$pass_ulangi=$_POST['txtpassulangi']; $data=sekolah($e['password'], 'd'); $passnyaa=sekolah($pass_ulangi, 'e'); if($pass_lama<>$data){ echo" 
		 
<div class='col-sm-12'> 
                <div class='alert  alert-danger alert-dismissible fade show' role='alert'> 
                  <span class='badge badge-pill badge-danger'>Gagal</span> Password Lama Salah!!! 
                    <button type='button' class='close' data-dismiss='alert' aria-label='Close'> 
                        <span aria-hidden='true'>&times;</span> 
                    </button> 
                </div> 
            </div>"; }else{ if($pass_baru<>$pass_ulangi){ echo" 
<div class='col-sm-12'> 
                <div class='alert  alert-danger alert-dismissible fade show' role='alert'> 
                  <span class='badge badge-pill badge-danger'>Gagal</span> Password baru dan Ulangi Password Tidak Sama!!! 
                    <button type='button' class='close' data-dismiss='alert' aria-label='Close'> 
                        <span aria-hidden='true'>&times;</span> 
                    </button> 
                </div> 
            </div>"; }else{ mysqli_query($kon,"update siswa set password='$passnyaa' where id_siswa='$id_penggunanya'"); echo " 
			 
							 <div class='col-sm-12'> 
                			<div class='alert  alert-success alert-dismissible fade show' role='alert'> 
                  			 <span class='badge badge-pill badge-success'>Success</span> Password Berhasil Diubah. 
                    		<button type='button' class='close' data-dismiss='alert' aria-label='Close'> 
                       		 <span aria-hidden='true'>&times;</span> 
                   			 </button> 
                				</div> 
           					 </div> 
						  
							"; } } } echo"	  
 
<div class='card'> 
                    <div class='card-header'> 
        	<i class='mr-2 fa fa-align-justify'></i> 
                        <strong class='card-title'>Ubah Password </strong> 
                    </div> 
                    <div class='card-body'> 
 
                        <div class='fontawesome-icon-list'> 
             
             
			 
			 
<form action='' method='post' class='form-horizontal'> 
                           
<input type='text' name='edit' hidden> 
			   <div class='row form-group'> 
                            <div class='col col-md-3'><label for='text-input' class=' form-control-label'>Masukkan Password Lama</label></div> 
                            <div class='col-12 col-md-9'><input type='text' id='text-input' name='txtpasslama'  class='form-control' required><small class='form-text text-muted'></small></div> 
                          </div> 
 
 
			 <div class='row form-group'> 
                            <div class='col col-md-3'><label for='text-input' class=' form-control-label'>Masukkan Password Baru</label></div> 
                            <div class='col-12 col-md-9'><input type='text'  id='psw' name='txtpassbaru' class='form-control' required><small class='form-text text-muted'></small></div> 
                          </div> 
 
			 <div class='row form-group'> 
                            <div class='col col-md-3'><label for='text-input' class=' form-control-label'>Ulangi Password Baru</label></div> 
                            <div class='col-12 col-md-9'><input type='text' id='text-input' name='txtpassulangi' class='form-control' required><small class='form-text text-muted'></small></div> 
                          </div> 
 
			  
 
 
 
                      
		    
		   <div class='card-footer'> 
                   <button type='submit' class='btn btn-primary btn-sm' onclick='validation()'><i class='fa fa-save'></i> Simpan 
                        </button> 
                       </form>    
                      </div>			 
			 
			 
			 
			 
	 
</div> 
 
			 
			 
 		 
        </div>  
		</div>  
 
 
 
<script type='text/javascript'> 
function validation(){ 
  var validasiHuruf = /^[a-zA-Z0-9]+$/; 
  var nama = document.getElementById('psw'); 
  if (nama.value.match(validasiHuruf)) { 
 
  } else { 
      alert('Tidak diijinkan karakter selain angka dan huruf'); 
      nama.value=''; 
      nama.focus(); 
      return false; 
  } 
} 
</script> 
 
 
 
 
 
		"; } elseif($_GET['state']=='keluar'){ session_destroy(); $cookie = $_COOKIE['username']; mysqli_query($kon, "DELETE FROM on_online WHERE o_cookie = '$cookie'");   
setcookie('username','',time());   
setcookie('password','',time());   
echo "<script>;window.location='index.php'</script>"; } elseif($_GET['state']=='tugas'){ include "tanggalbaru.php"; echo" 
<script type='text/javascript' src='js/jquery-3.2.1.min.js'></script> 	 
	 
	 
<link rel='stylesheet' href='assets/css/lib/datatable/dataTables.bootstrap.min.css'> 
 
 <div class='card'> 
					 
                    
					   
                <div class='card-body card-block'> 
 
</div> 
</div> 
            <div class='col-sm-12'> 
                 
                 <div class='card'> 
                      <div class='card-header'> 
                        <strong>Daftar Tugas &nbsp;  &nbsp;  &nbsp;  &nbsp; </strong> 
                       
					  
					   
					   
					  </div> 
					   
							   
					   
					   
					   
					   
					   
					   
                      <div class='card-body card-block'> 
				<link rel='stylesheet' href='css/datatable/dataTables.bootstrap.min.css'> 
	 
	 
	 
	 <table id='bootstrap-data-table' class='table table-striped table-bordered table-responsive'> 
                    <thead> 
				 
			<tr><th>No</th><th>Judul Tugas</th><th>Tanggal</th><th>Pelajaran</th><th>Guru Mapel</th><th>Pilihan</th></tr> 
				</thead>  
				<tbody>"; $asq=mysqli_query($kon,"select * from tugas_aktif where id_kelas='$id_kelas' and status='1' "); $no=1; while($b=mysqli_fetch_array($asq)){ $kirim=$b['tanggal']; $namatugasnya=mysqli_query($kon, "select nama_tugas, kode from tugas where kode='$b[kode]' group by nama_tugas"); $qr=mysqli_fetch_array($namatugasnya); $pelajarannya=mysqli_query($kon, "select * from pelajaran where id_pelajaran='$b[id_mapel]'"); $r=mysqli_fetch_array($pelajarannya); $cariguru=mysqli_query($kon, "select nama, id_anggota from anggota where id_anggota='$b[id_guru]'"); $tk1=mysqli_fetch_array($cariguru); echo " 
			<tr><td>$no</td><td>$qr[nama_tugas]</td><td>"; echo tgl_ind($kirim); echo "</td><td>$r[nama_pelajaran]</td><td>$tk1[nama]</td><td> 
			 
			"; $ceknilai=mysqli_query($kon, "select * from raport_tugas where kode='$b[kode]' and nis='$nis' and nilai > '0' "); $hasilnya=mysqli_num_rows($ceknilai); if($hasilnya>0){ echo " 
		 
			<button type='button' class='btn btn-outline-secondary btn-sm'><i class='fa fa-ban'></i>&nbsp Sudah Di Nilai</button> "; }else{ echo " 
			<a href='?state=kerjakan&idguru=$b[id_guru]&idmapel=$b[id_mapel]&kode=$b[kode]&idkelas=$id_kelas'> 
			<button type='button' class='btn btn-outline-danger btn-sm'><i class='fa fa-edit'></i>&nbsp Kerjakan</button></a> "; } echo " 
			 
			</td></tr>"; $no++; } echo " 
			</tbody>    
            </table> 
	 
	 
	 
	 
	 
					   
					   
			          
                    </div> 
 
        </div> 
    </div> 
	</div> 
	 
	 
	<script src='js/data-table/datatables.min.js'></script> 
    <script src='js/data-table/dataTables.bootstrap.min.js'></script> 
     <script src='js/data-table/datatables-init.js'></script> 
 
    <script type='text/javascript'> 
        $(document).ready(function() { 
          $('#bootstrap-data-table-export').DataTable(); 
        } ); 
    </script>  
	"; } elseif($_GET['state']=='kerjakan'){ $dapatkode=cegah($_GET['kode']); $kodekelas=cegah($_GET['idkelas']); $kodemapel=cegah($_GET['idmapel']); $kodeguruu=cegah($_GET['idguru']); $tg=mysqli_query($kon, "select * from tugas where kode='$dapatkode' "); while($r=mysqli_fetch_array($tg)){ $rere=mysqli_query($kon, "select * from jwbtugas where kode='$dapatkode' 
		 and no_soal='$r[no_soal]'  
		 and id_siswa='$id_penggunanya'  "); $ketemu=mysqli_num_rows($rere); if($ketemu>0){ }else{ mysqli_query($kon, "INSERT INTO jwbtugas 
(id_guru,id_kelas,id_mapel,id_siswa,jawaban,no_soal,kode) 
			 VALUES ('$kodeguruu','$kodekelas','$kodemapel', 
			'$id_penggunanya','','$r[no_soal]','$dapatkode' 
			)")or die (mysqli_error($kon)); } } $tg2=mysqli_query($kon, "select * from tugas where kode='$dapatkode' "); $r2=mysqli_fetch_array($tg2); echo" 
  
	  
	    <div class='col-sm-12'> 
                 
                 <div class='card'> 
                      <div class='card-header'> 
                        <strong>$r2[nama_tugas]</strong> 
                      </div> 
		  <div class='card-body card-block'> 
	  
	  
	 <script src='js/jquery-3.2.1.min.js' type='text/javascript'></script> 
 
<table id='bootstrap-data-table' class='table table-striped table-bordered table-responsive'> 
                    <thead> 
			<tr align='center'><th>No Soal</th><th>Pertanyaan</th><th>Status</th> <th>Opsi</th></tr> 
			 
			</thead>  
				<tbody>"; $sql97=mysqli_query($kon, "select * from tugas where kode='$dapatkode' order by no_soal asc"); while($f=mysqli_fetch_array($sql97)){ $sql97w1=mysqli_query($kon, "select * from jwbtugas where kode='$dapatkode' and id_siswa='$id_penggunanya' 
		and no_soal='$f[no_soal]'"); $u=mysqli_fetch_array($sql97w1); if(empty($u['jawaban'])){ $status='<font color=red>Belum di Jawab </font>'; }else{ $status='Terjawab'; } echo " 
 
<tr><td>$f[no_soal]</td><td>$f[soal]</td><td>$status</td><td> 
 
<a href='?state=menjwb&kode=$f[kode]&nosoal=$f[no_soal]'> 
<button type='button' class='btn btn-outline-danger btn-sm'><i class='fa fa-edit'></i>&nbsp Jawab</button></a> 
			 
 
 
</td></tr> 
"; } echo " 
			 </tbody>    
            </table> 
			 
		</div> 
		 
	 
					  </div> 
					 
					   
 
		"; 
} elseif($_GET['state']=='menjwb'){ $cod=cegah($_GET['kode']); $numn=cegah($_GET['nosoal']); echo" 
	<style> 
.hidden{ 
	visibility: hidden; 
 
} 
</style> 
<script type='text/javascript' src='js/tinymce/jquery.tinymce.min.js'></script> 
<script type='text/javascript' src='js/tinymce/tinymce.min.js'></script> 
<script type='text/javascript' src='js/tinymce/editmce.js'></script> 
	  <div class='card'> 
					 
                    
					   
                <div class='card-body card-block'> 
 
</div> 
</div> 
	    <div class='col-sm-12'> 
                 
                 <div class='card'> 
                      <div class='card-header'> 
                        <strong>Jawab Tugas</strong> 
                      </div> 
		  <div class='card-body card-block'> 
"; $sql97=mysqli_query($kon, "select * from tugas where kode='$cod' and no_soal='$numn'"); $f=mysqli_fetch_array($sql97)or die(mysqli_error($kon)); $sql971=mysqli_query($kon, "select * from jwbtugas where kode='$cod' and id_siswa='$id_penggunanya' 
		and no_soal='$numn'"); $f1=mysqli_fetch_array($sql971)or die(mysqli_error($kon)); echo " 
 
 
 
 
		<form method='post' action='simpanjawaban.php'> 
		<input type='text' value='$f1[id_jwbtugas]' name='idtugas' hidden> 
		<input type='text' value='$f1[kode]' name='kode' hidden> 
		<input type='text' value='$f1[no_soal]' name='nomer' hidden> 
		<input type='text' value='$id_penggunanya' name='id' hidden> 
		<input type='text' value='$f1[id_guru]' name='idguru' hidden> 
		<input type='text' value='$f1[id_kelas]' name='idkelas' hidden> 
		<input type='text' value='$f1[id_mapel]' name='idmapel' hidden> 
		 <div class='row form-group'> 
		 <div class='col-12 col-md-12'></div> 
       <div class='col col-md-12'><label class=' form-control-label'>$f[soal]</label></div> 
 
 <div class='col-12 col-md-12'><textarea id='editor' name='jawab'  class='form-control'>$f1[jawaban]</textarea></div> 
     </div> 
	 <input name='image' type='file' id='upload' class='hidden' onchange=''> 
			 
		</div> 
		 
	  <div class='card-footer'> 
	 
                   <button type='submit' class='btn btn-primary btn-sm'><i class='fa fa-save'></i> Simpan 
                        </button> 
				    
                      </div> 
					  </div> 
					 
			</form>	 
  
 
		"; } elseif($_GET['state']=='test'){ echo" 
<script type='text/javascript' src='js/jquery-3.2.1.min.js'></script> 	 
	 
	 
<link rel='stylesheet' href='assets/css/lib/datatable/dataTables.bootstrap.min.css'> 
 
 
            <div class='col-sm-12'> 
                 
                 <div class='card'> 
                      <div class='card-header'> 
                        <strong>Daftar Test Aktif &nbsp;  &nbsp;  &nbsp;  &nbsp; </strong> 
                       
					  
					   
					   
					  </div> 
					   
							   
					   
					   
					   
					   
					   
					   
                      <div class='card-body card-block'> 
				<link rel='stylesheet' href='css/datatable/dataTables.bootstrap.min.css'> 
	 
	 
	 
	 <table id='bootstrap-data-table' class='table table-striped table-bordered table-responsive'> 
                    <thead> 
				 
			<tr><th>No</th><th>Judul Test</th><th>Pelajaran </th><th>Guru Mapel</th><th>Waktu </th><th>Pilihan</th></tr> 
				</thead>  
				<tbody>"; $asq=mysqli_query($kon,"select * from test_aktif where id_kelas='$id_kelas' and status='1' "); $no=1; while($b=mysqli_fetch_array($asq)){ $ere=mysqli_query($kon, "select nama_pelajaran from pelajaran where id_pelajaran='$b[id_mapel]' "); $r=mysqli_fetch_array($ere); $we1=mysqli_query($kon, "select nama from anggota where id_anggota='$b[id_guru]' "); $tk1=mysqli_fetch_array($we1)or die(mysqli_error($kon)); $we=mysqli_query($kon, "select * from ulangan where id_ulangan='$b[id_ulangan]' "); $tk=mysqli_fetch_array($we) ; $gg=mysqli_query($kon, "select id_ulangan, waktu,id_guru from soal where id_ulangan='$b[id_ulangan]' group by id_guru "); $gh=mysqli_fetch_array($gg); echo " 
			<tr><td>$no</td><td>$tk[nama_ulangan] </td><td>$r[nama_pelajaran]</td><td>$tk1[nama]</td><td>$gh[waktu] Menit</td><td>"; $cekselesai=mysqli_query($kon, "select * from selesai where no_ujian='$nis' and id_mapel='$b[id_ulangan]' and status='1'"); $jikaketemu=mysqli_num_rows($cekselesai); if($jikaketemu>0){ echo " 
<input type='button' class='btn btn-outline-secondary btn-sm' value='Sudah Di Kerjakan'> 
"; }else{ echo " 
 
			<form method='post' action='ujian/siap.php'> 
 
			<input type='text' name='idguru' value='$b[id_guru]' hidden> 
			<input type='text' name='idmapel' value='$b[id_ulangan]' hidden> 
			<input type='text' name='idkelas' value='$id_kelas' hidden> 
			<input type='text' name='user' value='$id_penggunanya' hidden> 
			<input type='text' name='nis' value='$nis' hidden> 
		 
			<input type='submit' class='btn btn-outline-danger btn-sm' value='Kerjakan'> 
			</form> 
			"; } echo " 
			 
			 
			</td></tr>"; $no++; } echo " 
			</tbody>    
            </table> 
	 
	 
	 
	 
	 
					   
					   
			          
                    </div> 
 
        </div> 
    </div> 
	</div> 
	 
	 
	<script src='js/data-table/datatables.min.js'></script> 
    <script src='js/data-table/dataTables.bootstrap.min.js'></script> 
     <script src='js/data-table/datatables-init.js'></script> 
 
    <script type='text/javascript'> 
        $(document).ready(function() { 
          $('#bootstrap-data-table-export').DataTable(); 
        } ); 
    </script>  
	"; } elseif($_GET['state']=='meeting'){ echo" 
<script type='text/javascript' src='js/jquery-3.2.1.min.js'></script> 	 
	 
	 
<link rel='stylesheet' href='assets/css/lib/datatable/dataTables.bootstrap.min.css'> 
 
 
            <div class='col-sm-12'> 
                 
                 <div class='card'> 
                      <div class='card-header'> 
                        <strong>Daftar Video Meeting (ZOOM) &nbsp;  &nbsp;  &nbsp;  &nbsp; </strong> 
                       
					  
					   
					   
					  </div> 
					   
							   
					   
					   
					   
					   
					   
					   
                      <div class='card-body card-block'> 
				<link rel='stylesheet' href='css/datatable/dataTables.bootstrap.min.css'> 
	 
	 
	 
	 <table id='bootstrap-data-table' class='table table-striped table-bordered table-responsive'> 
                    <thead> 
				 
			<tr><th>No</th><th>Pelajaran </th><th>Guru Mapel</th><th>Pilihan</th></tr> 
				</thead>  
				<tbody>"; $asq=mysqli_query($kon,"select * from meeting where id_kelas='$id_kelas'"); $no=1; while($b=mysqli_fetch_array($asq)){ $ere=mysqli_query($kon, "select nama_pelajaran from pelajaran where id_pelajaran='$b[mapel]' "); $r=mysqli_fetch_array($ere); $we1=mysqli_query($kon, "select nama from anggota where id_anggota='$b[guru]' "); $tk1=mysqli_fetch_array($we1)or die(mysqli_error($kon)); echo " 
			<tr><td>$no</td><td>$r[nama_pelajaran]</td><td>$tk1[nama]</td><td> 
			<a href='$b[link]'> 
			<button type='button' class='btn btn-outline-primary btn-sm'><i class='fa fa-video-camera'></i>&nbsp Gabung Meeting</button></a> 
			</a> 
			</td></tr>"; $no++; } echo " 
			</tbody>    
            </table> 
	 
	 
	 
	 
	 
					   
					   
			          
                    </div> 
 
        </div> 
    </div> 
	</div> 
	 
	 
	<script src='js/data-table/datatables.min.js'></script> 
    <script src='js/data-table/dataTables.bootstrap.min.js'></script> 
     <script src='js/data-table/datatables-init.js'></script> 
 
    <script type='text/javascript'> 
        $(document).ready(function() { 
          $('#bootstrap-data-table-export').DataTable(); 
        } ); 
    </script>  
	"; } elseif($_GET['state']=='materi'){ echo" 
 
	 <div class='card'> 
					 
                    
					   
                <div class='card-body card-block'> 
 
</div> 
</div> 
<script type='text/javascript' src='js/jquery-3.2.1.min.js'></script> 	 
	 
	 
<link rel='stylesheet' href='assets/css/lib/datatable/dataTables.bootstrap.min.css'> 
 
 
            <div class='col-sm-12'> 
                 
                 <div class='card'> 
                      <div class='card-header'> 
                        <strong>Daftar Ringkasan Materi &nbsp;  &nbsp;  &nbsp;  &nbsp; </strong> 
                       
					  
					   
					   
					  </div> 
					   
							   
					   
					   
					   
					   
					   
					   
                      <div class='card-body card-block'> 
				<link rel='stylesheet' href='css/datatable/dataTables.bootstrap.min.css'> 
	 
	 
	 
	 <table id='bootstrap-data-table' class='table table-striped table-bordered table-responsive'> 
                    <thead> 
				 
			<tr><th>No</th><th>Judul Materi</th><th>Pelajaran</th><th>Guru Mapel</th><th>Pilihan</th></tr> 
				</thead>  
				<tbody>"; $mater=mysqli_query($kon, "select * from materi where id_kelas='$id_kelas' "); $no=1; 
while($bb=mysqli_fetch_array($mater)){ $mp=mysqli_query($kon, "select * from pelajaran where id_pelajaran='$bb[id_mapel]' "); $bb1=mysqli_fetch_array($mp); $mp2=mysqli_query($kon, "select * from anggota where id_anggota='$bb[id_guru]' "); $bb12=mysqli_fetch_array($mp2); echo " 
 
<tr><td>$no</td><td>$bb[nama_materi]</td><td>$bb1[nama_pelajaran]</td><td>$bb12[nama]</td> 
<td> 
 
 
<a href='?state=tampil&idmateri=$bb[id_materi]' > 
<button type='button' class='btn btn-outline-primary btn-sm'><i class='fa fa-search'></i>&nbsp Preview</button></a> 
<a href='$bb[link]' > 
<button type='button' class='btn btn-outline-danger btn-sm'><i class='fa fa-download'></i>&nbsp Download</button></a> 
			 
 
 
 
 
 
</td> 
</tr> 
 
"; $no++; } echo " 
			</tbody>    
            </table> 
	 
	 
	 
	 
	 
					   
					   
			          
                    </div> 
 
        </div> 
    </div> 
	</div> 
	 
	 
	<script src='js/data-table/datatables.min.js'></script> 
    <script src='js/data-table/dataTables.bootstrap.min.js'></script> 
     <script src='js/data-table/datatables-init.js'></script> 
 
    <script type='text/javascript'> 
        $(document).ready(function() { 
          $('#bootstrap-data-table-export').DataTable(); 
        } ); 
    </script>  
	"; } elseif($_GET['state']=='tampil'){ $ekop=cegah($_GET['idmateri']); $mater=mysqli_query($kon, "select * from materi where id_materi='$ekop' "); $bb=mysqli_fetch_array($mater); $ma=mysqli_query($kon, "select * from pelajaran where id_pelajaran='$bb[id_mapel]'"); $rf=mysqli_fetch_array($ma); echo" 
 
<script type='text/javascript' src='js/jquery-3.2.1.min.js'></script>    
     
     
<link rel='stylesheet' href='assets/css/lib/datatable/dataTables.bootstrap.min.css'> 
 
 
                 
                 <div class='card'> 
                      <div class='card-header'> 
                        <strong>Preview Ringkasan Materi &nbsp;  &nbsp;  &nbsp;  &nbsp; </strong> 
                       
                      
                       
                       
                      </div> 
                       
                               
                       
                       
                       
                       
                       
                       
                      <div class='card-body card-block'> 
          
 
 
 
 <div class='row form-group'> 
                            <div class='col col-md-3'><label for='text-input' class=' form-control-label'>Judul Materi</label></div> 
                            <div class='col-12 col-md-9'><input type='text' id='text-input' value='$bb[nama_materi]'  class='form-control' disabled></div> 
                          </div> 
 
 
 
      
    <div class='row form-group'> 
                            <div class='col col-md-3'><label class=' form-control-label'>Pelajaran</label></div> 
                           <div class='col-12 col-md-9'><input type='text' id='text-input' value='$rf[nama_pelajaran]'  class='form-control' disabled></div> 
                          </div> 
 
       
<div class='row form-group'> 
                            <div class='col col-md-3'><label class=' form-control-label'>Kelas</label></div> 
                             <div class='col-12 col-md-9'><input type='text' id='text-input' value='$bb[kelas]'  class='form-control' disabled></div> 
                          </div> 
 
 
<div class='row form-group'> 
                            <div class='col col-md-3'><label class=' form-control-label'>Semester</label></div> 
                            <div class='col-12 col-md-9'><input type='text' id='text-input' value='$bb[semester]'  class='form-control' disabled></div> 
                          </div> 
 
 
<div class='row form-group'> 
                            <div class='col col-md-3'><label class=' form-control-label'>Kompetensi Dasar</label></div> 
                             <div class='col-12 col-md-9'><input type='text' id='text-input' value='$bb[kd]'  class='form-control' disabled></div> 
                          </div> 
               
 
               <div class='row form-group'> 
                            <div class='col col-md-3'><label for='text-input' class=' form-control-label'>Deskripsi Singkat</label></div> 
                            <div class='col-12 col-md-9'><textarea id='text-input' name='deskripsi'  class='form-control' disabled rows='7'>$bb[deskripsi]</textarea></div> 
                          </div> 
 
 
 
 
 
 
 
<br><br> 
 
 
 
 
 
 
 
     
    <embed src='$bb[link]' type='application/pdf' width='100%' height='600px' /> 
 
  
                       
                       
                      
                    </div> 
 
        </div> 
    </div> 
    </div> 
     
 
    "; } elseif($_GET['state']=='nilaitugas'){ echo" 
<script type='text/javascript' src='js/jquery-3.2.1.min.js'></script> 	 
	 
	 
<link rel='stylesheet' href='assets/css/lib/datatable/dataTables.bootstrap.min.css'> 
 
 
            <div class='col-sm-12'> 
                 
                 <div class='card'> 
                      <div class='card-header'> 
                        <strong>Nilai Tugas &nbsp;  &nbsp;  &nbsp;  &nbsp; </strong> 
                       
					  
					   
					   
					  </div> 
					   
							   
					   
					   
					   
					   
					   
					   
                      <div class='card-body card-block'> 
				<link rel='stylesheet' href='css/datatable/dataTables.bootstrap.min.css'> 
	 
	 
	 
	 <table id='bootstrap-data-table' class='table table-striped table-bordered table-responsive'> 
                    <thead> 
				 
			<tr><th>No</th><th>Judul Tugas</th><th>Pelajaran</th><th>Guru Mapel</th><th>Nilai</th><th>Pilihan</th></tr> 
				</thead>  
				<tbody>"; $asq=mysqli_query($kon,"select * from tugas_aktif where id_kelas='$id_kelas' "); $no=1; while($b=mysqli_fetch_array($asq)){ $ere=mysqli_query($kon, "select * from pelajaran where id_pelajaran='$b[id_mapel]' "); $r=mysqli_fetch_array($ere); $we=mysqli_query($kon, "select * from tugas where kode='$b[kode]' group by kode "); $tk=mysqli_fetch_array($we); $we1=mysqli_query($kon, "select * from anggota where id_anggota='$b[id_guru]' "); $tk1=mysqli_fetch_array($we1); $nilainya=mysqli_query($kon, "select * from raport_tugas where nis='$nis' and kode='$b[kode]' "); $nil=mysqli_fetch_array($nilainya); if($nil['nilai']>0){ echo " 
			<tr><td>$no</td><td>$tk[nama_tugas]</td><td>$r[nama_pelajaran]</td><td>$tk1[nama]</td> 
 
 
<td> $nil[nilai] </td> 
			<td> 
			 
			<a href='?state=detail&idguru=$b[id_guru]&idmapel=$b[id_mapel]&kode=$b[kode]&idkelas=$id_kelas'> 
			<button type='button' class='btn btn-outline-danger btn-sm'><i class='fa fa-credit-card'></i>&nbsp Detail</button></a> 
			 
			 
			 
			</td></tr>"; }else{ } $no++; } echo " 
			</tbody>    
            </table> 
	 
	 
	 
	 
	 
					   
					   
			          
                    </div> 
 
        </div> 
    </div> 
	</div> 
	 
	 
	<script src='js/data-table/datatables.min.js'></script> 
    <script src='js/data-table/dataTables.bootstrap.min.js'></script> 
     <script src='js/data-table/datatables-init.js'></script> 
 
    <script type='text/javascript'> 
        $(document).ready(function() { 
          $('#bootstrap-data-table-export').DataTable(); 
        } ); 
    </script>  
	"; } elseif($_GET['state']=='detail'){ include "tanggalbaru.php"; $kodem=cegah($_GET['kode']); $kodeguru=cegah($_GET['idguru']); $kodekelas=cegah($_GET['idkelas']); $kodemapel=cegah($_GET['idmapel']); $tg=mysqli_query($kon, "select * from tugas where kode='$kodem' "); while($r=mysqli_fetch_array($tg)){ $rere=mysqli_query($kon, "select * from jwbtugas where kode='$kodem' 
		 and no_soal='$r[no_soal]'  
		 and id_siswa='$id_penggunanya'  "); $ketemu=mysqli_num_rows($rere); if($ketemu>0){ }else{ mysqli_query($kon, "INSERT INTO jwbtugas 
(id_guru,id_kelas,id_mapel,id_siswa,jawaban,no_soal,kode) 
			 VALUES ('$kodeguru','$kodekelas','$kodemapel', 
			'$id_penggunanya','','$r[no_soal]','$kodem' 
			)")or die (mysqli_error($kon)); } } $tg2=mysqli_query($kon, "select * from tugas where kode='$kodem' "); 
$r2=mysqli_fetch_array($tg2); echo" 
	  
 
	    <div class='col-sm-12'> 
                 
                 <div class='card'> 
                      <div class='card-header'> 
                        <strong>$r2[nama_tugas]</strong> 
                      </div> 
		  <div class='card-body card-block'> 
	  
	  
	 <script src='js/jquery-3.2.1.min.js' type='text/javascript'></script> 
 
<table id='bootstrap-data-table' class='table table-striped table-bordered table-responsive'> 
                    <thead> 
			<tr align='center'><th>No Soal</th><th>Pertanyaan</th><th>Jawaban</th> <th>Nilai</th><th>Keterangan</th><th>Waktu Jawab</th></tr> 
			 
			</thead>  
				<tbody>"; $sql97=mysqli_query($kon, "select * from tugas where kode='$kodem' order by no_soal asc"); while($f=mysqli_fetch_array($sql97)){ $sql97w1=mysqli_query($kon, "select * from jwbtugas where kode='$kodem' and id_siswa='$id_penggunanya' 
		and no_soal='$f[no_soal]'"); $u=mysqli_fetch_array($sql97w1); $tgljwb1=$u['tanggal']; echo " 
 
<tr><td>$f[no_soal]</td><td>$f[soal]</td><td>$u[jawaban]</td><td> 
 
$u[nilai] 
 
</td><td>$u[keterangan]</td><td>"; echo tgl_ind($tgljwb1); echo "</td></tr> 
"; } echo " 
			 </tbody>    
            </table> 
			 
		</div> 
		 
	 
					  </div> 
					 
					   
 
		"; } elseif($_GET['state']=='nilaitest'){ echo" 
<script type='text/javascript' src='js/jquery-3.2.1.min.js'></script> 	 
	 
	 
<link rel='stylesheet' href='assets/css/lib/datatable/dataTables.bootstrap.min.css'> 
 
 
            <div class='col-sm-12'> 
                 
                 <div class='card'> 
                      <div class='card-header'> 
                        <strong>Nilai Test &nbsp;  &nbsp;  &nbsp;  &nbsp; </strong> 
                       
					  
					   
					   
					  </div> 
					   
							   
					   
					   
					   
					   
					   
					   
                      <div class='card-body card-block'> 
				<link rel='stylesheet' href='css/datatable/dataTables.bootstrap.min.css'> 
	 
	 
	 
	 <table id='bootstrap-data-table' class='table table-striped table-bordered table-responsive'> 
                    <thead> 
				 
			<tr><th>No</th><th>Judul Test</th><th>Pelajaran</th><th>Guru Mapel</th><th>Waktu </th><th>Nilai</th></tr> 
				</thead>  
				<tbody>"; $asq=mysqli_query($kon,"select * from test_aktif where id_kelas='$id_kelas' "); $no=1; while($b=mysqli_fetch_array($asq)){ $ere=mysqli_query($kon, "select * from pelajaran where id_pelajaran='$b[id_mapel]' "); $r=mysqli_fetch_array($ere); $we1=mysqli_query($kon, "select * from anggota where id_anggota='$b[id_guru]' "); $tk1=mysqli_fetch_array($we1); $we=mysqli_query($kon, "select * from ulangan where id_ulangan='$b[id_ulangan]' "); $tk=mysqli_fetch_array($we); $gg=mysqli_query($kon, "select id_ulangan, waktu,id_guru from soal where id_ulangan='$b[id_ulangan]' group by id_guru "); $gh=mysqli_fetch_array($gg); $we22=mysqli_query($kon, "select * from raport where id_ulangan='$b[id_ulangan]' and nis='$nis'"); $wq=mysqli_fetch_array($we22); if($wq['nilai']>=0){ echo " 
			<tr><td>$no</td><td>$tk[nama_ulangan]</td><td>$r[nama_pelajaran]</td><td>$tk1[nama]</td><td>$gh[waktu] Menit</th><td> 
			 
		$wq[nilai] 
			 
			</td></tr>"; }else{ } $no++; } echo " 
			</tbody>    
            </table> 
	 
	 
	 
	 
	 
					   
					   
			          
                    </div> 
 
        </div> 
    </div> 
	</div> 
	 
	 
	<script src='js/data-table/datatables.min.js'></script> 
    <script src='js/data-table/dataTables.bootstrap.min.js'></script> 
     <script src='js/data-table/datatables-init.js'></script> 
 
    <script type='text/javascript'> 
        $(document).ready(function() { 
          $('#bootstrap-data-table-export').DataTable(); 
        } ); 
    </script>  
	"; } elseif($_GET['state']=='video1'){ echo" 
 
	 <div class='card'> 
					 
                    
					   
                <div class='card-body card-block'> 
 
</div> 
</div> 
<script type='text/javascript' src='js/jquery-3.2.1.min.js'></script> 	 
	 
	 
<link rel='stylesheet' href='assets/css/lib/datatable/dataTables.bootstrap.min.css'> 
 
 
            <div class='col-sm-12'> 
                 
                 <div class='card'> 
                      <div class='card-header'> 
                        <strong>Daftar Video Pembelajaran &nbsp;  &nbsp;  &nbsp;  &nbsp; </strong> 
                       
					  
					   
					   
					  </div> 
					   
							   
					   
					   
					   
					   
					   
					   
                      <div class='card-body card-block'> 
				<link rel='stylesheet' href='css/datatable/dataTables.bootstrap.min.css'> 
	 
	 
	 
	 <table id='bootstrap-data-table' class='table table-striped table-bordered table-responsive'> 
                    <thead> 
				 
			<tr><th>No</th><th>Judul Video </th><th>Deskripsi</th><th>Pelajaran</th><th>Guru Mapel</th><th>Pilihan</th></tr> 
				</thead>  
				<tbody>"; $mater=mysqli_query($kon, "select * from video where id_kelas='$t[id_kelas]' "); $no=1; while($bb=mysqli_fetch_array($mater)){ $mp=mysqli_query($kon, "select * from pelajaran where id_pelajaran='$bb[id_mapel]' "); $bb1=mysqli_fetch_array($mp); $mp2=mysqli_query($kon, "select * from anggota where id_anggota='$bb[id_guru]' "); $bb12=mysqli_fetch_array($mp2); echo " 
 
<tr><td>$no</td><td>$bb[nama_video]</td><td>$bb[deskripsi]</td><td>$bb1[nama_pelajaran]</td><td>$bb12[nama]</td> 
<td> 
 
 
<a href='?state=previewvide0&kode=$bb[id_video]' > 
<button type='button' class='btn btn-outline-primary btn-sm'><i class='fa fa-search'></i>&nbsp Preview</button></a> 
 
			 
 
 
 
 
 
</td> 
</tr> 
 
"; $no++; } echo " 
			</tbody>    
            </table> 
	 
	 
	 
	 
	 
					   
					   
			          
                    </div> 
 
        </div> 
    </div> 
	</div> 
	 
	 
	<script src='js/data-table/datatables.min.js'></script> 
    <script src='js/data-table/dataTables.bootstrap.min.js'></script> 
     <script src='js/data-table/datatables-init.js'></script> 
 
    <script type='text/javascript'> 
        $(document).ready(function() { 
          $('#bootstrap-data-table-export').DataTable(); 
        } ); 
    </script>  
	"; 
} elseif($_GET['state']=='previewvide0'){ $kodevid=cegah($_GET['kode']); $sdf=mysqli_query($kon, "select film, deskripsi from video where id_video='$kodevid'"); $h=mysqli_fetch_array($sdf); echo" 
 
 
            <div class='col-sm-12'> 
                 
                 <div class='card'> 
                      <div class='card-header'> 
                        <strong>Video Preview</strong> 
                         
                     
                      </div> 
                       
                     
                       
                       
            
                    <div class='card-body'> 
 
$h[film] 
                    </div> 
                    </div> 
                    </div> 
                    "; } if($_GET['state']=='video'){ $dataPerPage = 8; if(isset($_GET['page'])) { $noPage = cegah($_GET['page']); } else $noPage = 1;   
$offset = ($noPage - 1) * $dataPerPage; $srt=mysqli_query($kon, "select * from video where id_kelas='$t[id_kelas]' group by nama_video order by id_video DESC LIMIT $offset, $dataPerPage"); echo " 
<link rel='stylesheet' href='css/add.css'> 
 <div class='card'> 
 
 
                     
                      <div class='card-header'> 
                        <strong>Video Pembelajaran</strong> 
                      </div> 
                       
                <div class='card-body card-block'> 
    "; $no=$noPage+1; while( $cv=mysqli_fetch_array($srt)){ $kode=ubah($cv['nama_video']); echo "  
    <style> 
.videoku{ 
    position:relative; 
} 
.play{ 
    position:absolute; 
    width:66px; 
    height:43; 
    left: 50%; 
    top:50%; 
    margin-left:-33px; 
    margin-top:-21px; 
    
} 
 
     
 
 
    </style>     
 
          
<div class='col-md-3 col-sm-6'> 
<div style='min-height:300px; padding:5px; margin-bottom:15px;'> 
<div style='margin-bottom:5px'> 
 
<div class='videoku'> 
<a href='?state=tampilvideo&id=$kode'>   
<img src='video/$cv[gambar]' width='100%'> 
<img src='asset/play.png' class='play'> 
</a> 
</div> 
<h4>$cv[nama_video]</h4> 
<div class='deskripsi'> 
$cv[kd] 
</div> 
</div> 
</div> 
</div> 
 
"; $no++; } echo " 
<div class='paging'> 
<div style='clear:both;'></div> 
"; $hasil = mysqli_query($kon, "SELECT COUNT(*) AS jumData FROM video WHERE id_kelas='$t[id_kelas]'"); $data = mysqli_fetch_array($hasil); $jumData = $data['jumData'];   
$jumPage = ceil($jumData/$dataPerPage);   
if ($noPage > 1) echo "<div class='first'><a href='".$_SERVER['PHP_SELF']."?state=video&page".($noPage-1)."'>&laquo</a></div>";   
for($page = 1; $page <= $jumPage; $page++) { if ((($page >= $noPage - 8) && ($page <= $noPage + 8)) || ($page == 1) || ($page == $jumPage)) { if ($page == $noPage) echo " <li><b>".$page." </b></li>"; else echo " <a href='?state=video&page=".$page."'>".$page."</a> "; } }   
if ($noPage < $jumPage) echo "<div class='end'><a href='".$_SERVER['PHP_SELF']."?state=video&page=".($noPage+1)."'>&raquo</a></div>"; echo " 
</div> "; } if($_GET['state']=='tampilvideo'){ $kodevid=cegah($_GET['id']); $baca=balik($kodevid); $wwe=mysqli_query($kon, "select * from video where nama_video='$baca'"); $mm=mysqli_fetch_array($wwe); $mapl=mysqli_query($kon, "select * from pelajaran where id_pelajaran='$mm[id_mapel]'"); $ty=mysqli_fetch_array($mapl); echo " 
<link rel='stylesheet' href='css/add.css'> 
 <div class='card'> 
 
 
                     
                      <div class='card-header'> 
                        <strong>Video Pembelajaran</strong> 
                      </div> 
                       
                <div class='card-body card-block'> 
 
<div class='row'> 
                <div class='col-12 col-md-8'> 
                 $mm[link] 
 
                </div> 
 
                <div class='col-12 col-md-4'> 
                <b> Pelajaran : <br></b> 
                $ty[nama_pelajaran] <br> 
               <b> KD : <br></b> 
                $mm[kd] <br> 
               <b> Kelas : <br></b> 
                $mm[kelas]<br> 
              <b>  Semester :<br></b> 
                $mm[semester]<br> 
               <b> Deskripsi Video <br></b> 
                 
                $mm[deskripsi] 
 
                </div> 
 
 
 
</div> 
 
</div> 
 
 <div class='card'> 
 
 
                     
                      <div class='card-header'> 
                        <strong>Video Lainnya</strong> 
                      </div> 
                       
                <div class='card-body card-block'> 
    "; $dataPerPage = 8; if(isset($_GET['page'])) { $noPage = cegah($_GET['page']); } else $noPage = 1;   
$offset = ($noPage - 1) * $dataPerPage; $srt=mysqli_query($kon, "select * from video where id_kelas='$t[id_kelas]'  and nama_video<>'$baca' group by nama_video order by id_video DESC LIMIT $offset, $dataPerPage"); $no=$noPage+1; while( $cv=mysqli_fetch_array($srt)){ $kode=ubah($cv['nama_video']); echo "  
    <style> 
.videoku{ 
    position:relative; 
} 
.play{ 
    position:absolute; 
    width:66px; 
    height:43; 
    left: 50%; 
    top:50%; 
    margin-left:-33px; 
    margin-top:-21px; 
    
} 
 
     
 
 
    </style>     
 
          
<div class='col-md-3 col-sm-6'> 
<div style='min-height:300px; padding:5px; margin-bottom:15px;'> 
<div style='margin-bottom:5px'> 
 
<div class='videoku'> 
<a href='?state=tampilvideo&id=$kode'>   
<img src='video/$cv[gambar]' width='100%'> 
<img src='asset/play.png' class='play'> 
</a> 
</div> 
<h4>$cv[nama_video]</h4> 
<div class='deskripsi'> 
$cv[kd] 
</div> 
</div> 
</div> 
</div> 
 
"; $no++; } echo " 
<div class='paging'> 
<div style='clear:both;'></div> 
"; $hasil = mysqli_query($kon, "SELECT COUNT(*) AS jumData FROM video WHERE id_kelas='$t[id_kelas]'  group by nama_video"); $data = mysqli_fetch_array($hasil); $jumData = $data['jumData'];   
$jumPage = ceil($jumData/$dataPerPage);   
if ($noPage > 1) echo "<div class='first'><a href='".$_SERVER['PHP_SELF']."?state=tampilvideo&page".($noPage-1)."'>&laquo</a></div>";   
for($page = 1; $page <= $jumPage; $page++) { if ((($page >= $noPage - 8) && ($page <= $noPage + 8)) || ($page == 1) || ($page == $jumPage)) { if ($page == $noPage) echo " <li><b>".$page." </b></li>"; else echo " <a href='?state=tampilvideo&page=".$page."'>".$page."</a> "; } }   
if ($noPage < $jumPage) echo "<div class='end'><a href='".$_SERVER['PHP_SELF']."?state=tampilvideo&page=".($noPage+1)."'>&raquo</a></div>"; echo " 
</div> "; } if($_GET['state']=='videolibrary'){ $dataPerPage = 8; if(isset($_GET['page'])) { $noPage = cegah($_GET['page']); } else $noPage = 1;   
$offset = ($noPage - 1) * $dataPerPage; $srt=mysqli_query($kon, "select * from video group by nama_video order by id_video DESC LIMIT $offset, $dataPerPage"); echo " 
<link rel='stylesheet' href='css/add.css'> 
 <div class='card'> 
 
 
                     
                      <div class='card-header'> 
                        <strong>Video Pembelajaran</strong> 
                      </div> 
                       
                <div class='card-body card-block'> 
    "; $no=$noPage+1; while( $cv=mysqli_fetch_array($srt)){ $kode=ubah($cv['nama_video']); echo "  
    <style> 
.videoku{ 
    position:relative; 
} 
.play{ 
    position:absolute; 
    width:66px; 
    height:43; 
    left: 50%; 
    top:50%; 
    margin-left:-33px; 
    margin-top:-21px; 
    
} 
 
     
 
 
    </style>     
 
          
<div class='col-md-3 col-sm-6'> 
<div style='min-height:300px; padding:5px; margin-bottom:15px;'> 
<div style='margin-bottom:5px'> 
 
<div class='videoku'> 
<a href='?state=tampil1video&id=$kode'>   
<img src='video/$cv[gambar]' width='100%'> 
<img src='asset/play.png' class='play'> 
</a> 
</div> 
<h4>$cv[nama_video]</h4> 
<div class='deskripsi'> 
$cv[kd] 
</div> 
</div> 
</div> 
</div> 
 
"; $no++; } echo " 
<div class='paging'> 
<div style='clear:both;'></div> 
"; $hasil = mysqli_query($kon, "SELECT COUNT(*) AS jumData FROM video "); $data = mysqli_fetch_array($hasil); $jumData = $data['jumData'];   
$jumPage = ceil($jumData/$dataPerPage);   
if ($noPage > 1) echo "<div class='first'><a href='".$_SERVER['PHP_SELF']."?state=videolibrary&page".($noPage-1)."'>&laquo</a></div>";   
for($page = 1; $page <= $jumPage; $page++) { if ((($page >= $noPage - 8) && ($page <= $noPage + 8)) || ($page == 1) || ($page == $jumPage)) { if ($page == $noPage) echo " <li><b>".$page." </b></li>"; else echo " <a href='?state=videolibrary&page=".$page."'>".$page."</a> "; } }   
if ($noPage < $jumPage) echo "<div class='end'><a href='".$_SERVER['PHP_SELF']."?state=videolibrary&page=".($noPage+1)."'>&raquo</a></div>"; echo " 
</div> "; } if($_GET['state']=='tampil1video'){ $kodevid=cegah($_GET['id']); $baca=balik($kodevid); $wwe=mysqli_query($kon, "select * from video where nama_video='$baca'"); $mm=mysqli_fetch_array($wwe); $mapl=mysqli_query($kon, "select * from pelajaran where id_pelajaran='$mm[id_mapel]'"); $ty=mysqli_fetch_array($mapl); echo " 
<link rel='stylesheet' href='css/add.css'> 
 <div class='card'> 
 
 
                     
                      <div class='card-header'> 
                        <strong>Video Pembelajaran</strong> 
                      </div> 
                       
                <div class='card-body card-block'> 
 
<div class='row'> 
                <div class='col-12 col-md-8'> 
                 $mm[link] 
 
                </div> 
 
                <div class='col-12 col-md-4'> 
                 <b> Pelajaran : <br></b> 
                $ty[nama_pelajaran] <br> 
               <b> KD : <br></b> 
                $mm[kd] <br> 
               <b> Kelas : <br></b> 
                $mm[kelas]<br> 
              <b>  Semester :<br></b> 
                $mm[semester]<br> 
               <b> Deskripsi Video <br></b> 
                 
                $mm[deskripsi] 
 
                </div> 
 
 
 
</div> 
 
</div> 
 
 <div class='card'> 
 
 
                     
                      <div class='card-header'> 
                        <strong>Video Lainnya</strong> 
                      </div> 
                       
                <div class='card-body card-block'> 
    "; $dataPerPage = 8; if(isset($_GET['page'])) { $noPage = cegah($_GET['page']); } else $noPage = 1;   
$offset = ($noPage - 1) * $dataPerPage; $srt=mysqli_query($kon, "select * from video where nama_video<>'$baca' group by nama_video order by id_video LIMIT $offset, $dataPerPage"); $no=$noPage+1; while( $cv=mysqli_fetch_array($srt)){ $kode=ubah($cv['nama_video']); echo "  
    <style> 
.videoku{ 
    position:relative; 
} 
.play{ 
    position:absolute; 
    width:66px; 
    height:43; 
    left: 50%; 
    top:50%; 
    margin-left:-33px; 
    margin-top:-21px; 
    
} 
 
     
 
 
    </style>     
 
          
<div class='col-md-3 col-sm-6'> 
<div style='min-height:300px; padding:5px; margin-bottom:15px;'> 
<div style='margin-bottom:5px'> 
 
<div class='videoku'> 
<a href='?state=tampil1video&id=$kode'>   
<img src='video/$cv[gambar]' width='100%'> 
<img src='asset/play.png' class='play'> 
</a> 
</div> 
<h4>$cv[nama_video]</h4> 
<div class='deskripsi'> 
$cv[kd] 
</div> 
</div> 
</div> 
</div> 
 
"; $no++; } echo " 
<div class='paging'> 
<div style='clear:both;'></div> 
"; $hasil = mysqli_query($kon, "SELECT COUNT(*) AS jumData FROM video "); $data = mysqli_fetch_array($hasil); $jumData = $data['jumData'];   
$jumPage = ceil($jumData/$dataPerPage);   
if ($noPage > 1) echo "<div class='first'><a href='".$_SERVER['PHP_SELF']."?state=tampil1video&page".($noPage-1)."'>&laquo</a></div>";   
for($page = 1; $page <= $jumPage; $page++) { if ((($page >= $noPage - 8) && ($page <= $noPage + 8)) || ($page == 1) || ($page == $jumPage)) { if ($page == $noPage) echo " <li><b>".$page." </b></li>"; else echo " <a href='?state=tampil1video&page=".$page."'>".$page."</a> "; } }   
if ($noPage < $jumPage) echo "<div class='end'><a href='".$_SERVER['PHP_SELF']."?state=tampil1video&page=".($noPage+1)."'>&raquo</a></div>"; echo " 
</div> "; } elseif($_GET['state']=='tanyaguru'){ echo" 
 
	 <div class='card'> 
					 
                    
					   
                <div class='card-body card-block'> 
 
</div> 
</div> 
<script type='text/javascript' src='js/jquery-3.2.1.min.js'></script> 	 
	 
	 
<link rel='stylesheet' href='assets/css/lib/datatable/dataTables.bootstrap.min.css'> 
 
 
            <div class='col-sm-12'> 
                 
                 <div class='card'> 
                      <div class='card-header'> 
                        <strong>Tanya Guru &nbsp;  &nbsp;  &nbsp;  &nbsp; </strong> 
                       
					  
					   
					   
					  </div> 
					   
							   
					   
					   
					   
					   
					   
					   
                      <div class='card-body card-block'> 
				<link rel='stylesheet' href='css/datatable/dataTables.bootstrap.min.css'> 
	 
	 
	 
	 <table id='bootstrap-data-table' class='table table-striped table-bordered table-responsive'> 
                    <thead> 
				 
			<tr><th>No</th><th>Judul Materi</th><th>Pelajaran</th><th>Guru Mapel</th><th>Pilihan</th></tr> 
				</thead>  
				<tbody>"; $mater=mysqli_query($kon, "select * from materi where id_kelas='$id_kelas' "); $no=1; while($bb=mysqli_fetch_array($mater)){ $mp=mysqli_query($kon, "select * from pelajaran where id_pelajaran='$bb[id_mapel]' "); $bb1=mysqli_fetch_array($mp); $mp2=mysqli_query($kon, "select * from anggota where id_anggota='$bb[id_guru]' "); $bb12=mysqli_fetch_array($mp2); $materi22=ubah($bb['nama_materi']); $uhk=mysqli_query($kon, "select * from terakhir where id_user='$id_penggunanya' and sebagai='siswa' and id_chat='$bb[nama_materi]' "); $xc=mysqli_fetch_array($uhk); $tanggalsekarang=$xc['tanggal']; $jamsekarang=$xc['jam']; $jchat=mysqli_query($kon, "select * from tanyaguru where tgl='$tanggalsekarang' and id_materi='$bb[nama_materi]' and jam > '$jamsekarang' "); $jumlahdata=mysqli_num_rows($jchat); echo "  
 
<tr><td>$no</td><td>$bb[nama_materi]</td><td>$bb1[nama_pelajaran]</td><td>$bb12[nama]</td> 
<td> 
 
 
 
<a href='?state=chat&idmate=$materi22' > 
<button type='button' class='btn btn-outline-success btn-sm'><i class='fa fa-comment-o'></i>&nbsp Tanya Guru</button></a> 
			 
 
";if($jumlahdata=='0'){ }else{ echo " 
<span style='padding:4px 10px; background:red; color:#fff; border-radius:15px;'><b>$jumlahdata</b></span> 
    "; } echo "   
 
 
 
</td> 
</tr> 
 
"; $no++; } echo " 
			</tbody>    
            </table> 
	 
	 
	 
	 
	 
					   
					   
			          
                    </div> 
 
        </div> 
    </div> 
	</div> 
	 
	 
	<script src='js/data-table/datatables.min.js'></script> 
    <script src='js/data-table/dataTables.bootstrap.min.js'></script> 
     <script src='js/data-table/datatables-init.js'></script> 
 
    <script type='text/javascript'> 
        $(document).ready(function() { 
          $('#bootstrap-data-table-export').DataTable(); 
        } ); 
    </script>  
	"; } elseif($_GET['state']=='chat'){ date_default_timezone_set('Asia/Jakarta'); $ambiltanggal1=date("Y-m-d"); $ambiljam1=date("H:i:s"); $idchat=cegah($_GET['idmate']); $idchat2=balik($idchat); $rfr=mysqli_query($kon, "select nama_materi, id_guru, id_materi from materi where nama_materi='$idchat2' "); $bx=mysqli_fetch_array($rfr); $namamateri=$bx['nama_materi']; $gurunya=$bx['id_guru']; $kodemateri=$bx['nama_materi']; $ca=mysqli_query($kon, "select * from terakhir where id_user='$id_penggunanya' and sebagai='siswa' and id_chat='$namamateri'"); $caridaftar=mysqli_num_rows($ca); if($caridaftar>0){ mysqli_query($kon, "UPDATE terakhir SET tanggal='$ambiltanggal1', 
                                jam='$ambiljam1' 
                                
                                 
                                where id_user='$id_penggunanya' and sebagai='siswa' and id_chat='$kodemateri' 
                                ") or die (mysqli_error($kon)); }else{ mysqli_query($kon, "INSERT INTO terakhir (id_user,sebagai,tanggal, jam,id_chat) VALUES  
('$id_penggunanya','siswa','$ambiltanggal1','$ambiljam1','$kodemateri')") or die (mysqli_error($kon)); } $_SESSION['gurunya']=$bx['id_guru']; $_SESSION['kodemateri']=$bx['nama_materi']; echo" 
<link href='css/chat.css' rel='stylesheet'> 
 
            <div class='col-sm-12'> 
                 
                 <div class='card'> 
                      <div class='card-header'> 
                        <strong>Tanya Jawab Materi $namamateri &nbsp;  &nbsp;  &nbsp;  &nbsp; </strong> 
                       
					  
					   
					   
					  </div> 
					   
							   
					   
					   
					   
					   
					   
					   
                      <div class='card-body card-block'> 
 
<div class='row'> 
 
<div class='tanya'> 
<form method='post' id='ekotimo'> 
<input type='text' class='form-control' name='komentar' value='' id='jajal' style='border:2px solid #149db2;'> 
<input type='text'  class='form-control' name='kodemateri' value='$kodemateri' hidden> 
<input type='text'  class='form-control' name='gurunya' value='siswa' hidden> 
<input type='text'  class='form-control' name='id_penggunanya' value='$id_penggunanya' hidden> 
<input type='text' class='form-control' name'kelas' value='guru' hidden> 
<input type='text'  class='form-control' name='inikelas' value='$yu[kelas]' hidden> 
<input type='text'  class='form-control' name='nama' value='$yu[nama]' hidden> 
<input type='text'  class='form-control' name='guru' value='$gurunya' hidden> 
</div> 
<div class='kirim'> 
 <button type='submit' class='btn btn-primary btn-sm' style='border-radius:10px;' id='kirimchat'><i class='fa fa-comment-o'></i> Kirim 
                        </button> 
</form> 
</div> 
  </div>               
<div id='chatnya'> 
 
</div> 
 
 
</div> 
	 
	 
	 
	 
					   
					   
			          
                    </div> 
 
        </div> 
    </div> 
	</div> 
	 
	 
	<script src='js/data-table/datatables.min.js'></script> 
    <script src='js/data-table/dataTables.bootstrap.min.js'></script> 
     <script src='js/data-table/datatables-init.js'></script> 
 
    <script type='text/javascript'> 
        $(document).ready(function() { 
          $('#bootstrap-data-table-export').DataTable(); 
        } ); 
    </script>  
"; ?> 
 
<script> 
var _0x1de9=['click','#komentarchat','simpanchat.php','#ekotimo','value','html','getElementById','serialize','jajal','#chatnya','load','tampilchat.php','POST','#kirimchat'];(function(_0x150bd8,_0x1de9df){var _0x3d66c1=function(_0x308cec){while(--_0x308cec){_0x150bd8['push'](_0x150bd8['shift']());}};_0x3d66c1(++_0x1de9df);}(_0x1de9,0xbc));var _0x3d66=function(_0x150bd8,_0x1de9df){_0x150bd8=_0x150bd8-0x0;var _0x3d66c1=_0x1de9[_0x150bd8];return _0x3d66c1;};updatedata(),setInterval(function(){updatedata();},0x1388);function updatedata(){$['ajax']({'url':_0x3d66('0x5'),'success':function(){$(_0x3d66('0x3'))[_0x3d66('0x4')](_0x3d66('0x5'));}});}$(_0x3d66('0x7'))[_0x3d66('0x8')](function(){var _0x2e2b5e=$(_0x3d66('0xb'))[_0x3d66('0x1')](),_0x28a44b=$(_0x3d66('0x9'))['data']('komentar');document[_0x3d66('0x0')](_0x3d66('0x2'))[_0x3d66('0xc')]='',$['ajax']({'type':_0x3d66('0x6'),'dataType':_0x3d66('0xd'),'url':_0x3d66('0xa'),'data':_0x2e2b5e,'success':function(_0x305bf4){$(_0x3d66('0x3'))[_0x3d66('0x4')](_0x3d66('0x5'));}});}); 
 
</script> 
 
 
 
 
 
	"; 
<?php }  
else if($_GET['state']=='ruangbelajar'){ include "tanggalbaru.php"; $peng=ubah($id_penggunanya); date_default_timezone_set('Asia/Jakarta'); $jam_menit=date("H:i:s"); $arr = explode(":", $jam_menit); $waktunya=$arr[0] * 60 + $arr[1]; $bulan=date("Y-m-d"); $waktu=date("H:i:s"); $kkm=mysqli_query($kon, "select * from aturjam where id_jam='1'"); $mk=mysqli_fetch_array($kkm); $jamselfie=$mk['mulaimasuk']; $jammasuk=$mk['jammasuk']; $jampulang=$mk['jampulang']; $akhirabsen=$mk['mulaipulang']; $tgljam=date("Y-m-d H:i:s"); $harinyaa=hari($tgljam); $jampertama=$jammasuk; $arr7 = explode(":", $jampertama); $batasjampertama=$arr7[0] * 60 + $arr7[1]; $jamterakhir=$jampulang; $arr71 = explode(":", $jamterakhir); $batasjamterakhir=$arr71[0] * 60 + $arr71[1]; echo " 
 
<div class='card'> 
 
 
                  "; if($modelpembelajaran=='PTM'){ echo " 
<div class='card-header'> 
                      <strong>Jadwal Kelas ";echo bulan($tgljam); echo " <br> Status Pembelajaran anda $modelpembelajaran, Ruang Belajar Hanya Digunakan Ketika Guru Berhalangan mengajar dan Harus Mengajar Secara Daring</strong> 
                    </div> 
                    "; }else{ echo " 
<div class='card-header'> 
                      <strong>Jadwal Kelas ";echo bulan($tgljam); echo " <br> Status Pembelajaran anda $modelpembelajaran, Silahkan Masuk Kelas Tepat Waktu</strong> 
                    </div> 
                    "; } echo " 
                     
                     
              <div class='card-body card-block'> 
  
              <link rel='stylesheet' href='css/sweetalert2.css'> 
              <script src='js/sweetalert2.js'></script> 
"; $jadw=mysqli_query($kon, "select * from jadwal where nama_kelas='$yu[kelas]'  and hari='$harinyaa' "); while($jkl=mysqli_fetch_array($jadw)){ $idjadwal1=ubah($jkl['id_jadwal']); $arr2 = explode(":", $jkl['mulai']); $waktunya2=$arr2[0] * 60 + $arr2[1]; $arr21 = explode(":", $jkl['selesai']); $waktunya21=$arr21[0] * 60 + $arr21[1]; if($waktunya >= $waktunya2 && $waktunya <= $waktunya21){ if($waktunya2 <= $batasjampertama){ $carimateri=mysqli_query($kon, "select * from ruangbelajar where id_jadwal='$jkl[id_jadwal]' and tanggal='$bulan'"); $hasilcari=mysqli_num_rows($carimateri); $zzr=mysqli_fetch_array($carimateri); $idruang=ubah($zzr['id_ruangbelajar']); $kodeguru=$zzr['id_guru']; $mkj=mysqli_query($kon, "select nama, foto from anggota where id_anggota='$kodeguru'"); $gj=mysqli_fetch_array($mkj); if(empty($gj['foto'])){ $profil= 'asset/admin.jpg'; }else{ $profil= '../tas/foto/'.$gj['foto']; } if($hasilcari){ echo " 
 
<div class='col-lg-4 col-md-6'> 
<a href='masukkelas2.php?hNi=$idruang&klM=$peng'> 
   <aside class='profile-nav alt'> 
       <section class='card'> 
           
           <div class='card-header user-header alt ' style='background:#36911e;'> 
               <div class='media'> 
                 
                       <img class='align-self-center rounded-circle mr-3' style='width:85px; height:85px;' alt='' src='$profil'> 
               
                   <div class='media-body'> 
                   <h4 class='text-light display-6'>$jkl[nama_kelas] <br>-- $zzr[jenis] --  </h4> 
                      
                   </div> 
               </div> 
           </div> 
 
 
           <ul class='list-group list-group-flush'> 
           <li class='list-group-item'> 
           <i class='fa fa-user'></i> $gj[nama] </span> 
           </a> 
         </li> 
               <li class='list-group-item'> 
                    <i class='fa fa-home'></i> $jkl[pelajaran]</span> 
               </li> 
               <li class='list-group-item'> 
                    <i class='fa fa-clock-o'></i> $jkl[mulai] - $jkl[selesai]</span> 
               </li> 
              
               
           </ul> 
 
       </section> 
   </aside> 
</div> 
 
<script> 
 
function sweetAlert() {   
 
  Swal.fire({ 
    title: 'Anda Sudah Presensi Selfie?', 
    text: \"Jika belum silahkan presensi terlebih dahulu sebelum mengikuti pelajaran\", 
    type: 'warning', 
    showCancelButton: true, 
            confirmButtonColor: '#DD6B55', 
            cancelButtonColor: '#3085d6', 
            confirmButtonText: 'Presensi', 
            cancelButtonText: \"Masuk Kelas\", 
            closeOnConfirm: false, 
            closeOnCancel: false 
   }).then((result) => { 
    if (result.value) { 
      window.location.href = '?state=absen' 
    }else if(result.dismiss == 'cancel'){ 
      window.location.href = 'masukkelas2.php?hNi=$idruang&klM=$peng' 
   } 
     
   }) 
    
} 
  </script> 
"; }else{ echo " 
    
     <div class='col-lg-4 col-md-6'> 
     <a href='' onClick=\"alert('Kelas belum dibuka silahkan hubungi guru mapel')\"> 
         <aside class='profile-nav alt'> 
             <section class='card'> 
                 <div class='card-header user-header alt bg-info'> 
                     <div class='media' style='height:85px;'> 
                     
                         <div class='media-body'> 
                         <h4 class='text-light display-6'>$jkl[nama_kelas] </h4> 
                            
                         </div> 
                     </div> 
                 </div> 
      
      
                 <ul class='list-group list-group-flush'> 
                 <li class='list-group-item'> 
                 <i class='fa fa-user'></i> Kelas Belum Dibuka</span> 
                 </a> 
               </li> 
                     <li class='list-group-item'> 
                          <i class='fa fa-home'></i> $jkl[pelajaran]</span> 
                     </li> 
                     <li class='list-group-item'> 
                          <i class='fa fa-clock-o'></i> $jkl[mulai] - $jkl[selesai]</span> 
                     </li> 
                    
                     
                 </ul> 
      
             </section> 
         </aside> 
     </div> 
     
 
 
"; } }else if($waktunya2 >= $batasjamterakhir){ $carimateri=mysqli_query($kon, "select * from ruangbelajar where id_jadwal='$jkl[id_jadwal]' and tanggal='$bulan'"); $hasilcari=mysqli_num_rows($carimateri); $zzr=mysqli_fetch_array($carimateri); $idruang=ubah($zzr['id_ruangbelajar']); $kodeguru=$zzr['id_guru']; $mkj=mysqli_query($kon, "select nama, foto from anggota where id_anggota='$kodeguru'"); $gj=mysqli_fetch_array($mkj); if(empty($gj['foto'])){ $profil= 'asset/admin.jpg'; }else{ $profil= '../tas/foto/'.$gj['foto']; } if($hasilcari){ echo " 
 
<div class='col-lg-4 col-md-6'> 
<a href='masukkelas2.php?hNi=$idruang&klM=$peng'> 
   <aside class='profile-nav alt'> 
       <section class='card'> 
           
           <div class='card-header user-header alt ' style='background:#36911e;'> 
               <div class='media'> 
                 
                       <img class='align-self-center rounded-circle mr-3' style='width:85px; height:85px;' alt='' src='$profil'> 
               
                   <div class='media-body'> 
                   <h4 class='text-light display-6'>$jkl[nama_kelas] <br>-- $zzr[jenis] -- </h4> 
                      
                   </div> 
               </div> 
           </div> 
 
 
           <ul class='list-group list-group-flush'> 
           <li class='list-group-item'> 
           <i class='fa fa-user'></i> $gj[nama]</span> 
           </a> 
         </li> 
               <li class='list-group-item'> 
                    <i class='fa fa-home'></i> $jkl[pelajaran]</span> 
               </li> 
               <li class='list-group-item'> 
                    <i class='fa fa-clock-o'></i> $jkl[mulai] - $jkl[selesai]</span> 
               </li> 
              
               
           </ul> 
 
       </section> 
   </aside> 
</div> 
  
 
<script> 
 
function sweetAlert2() {   
 
  Swal.fire({ 
    title: 'Presensi Pulang Sekolah', 
    text: \"Setelah Pelajaran ini Berakhir Silahkan Masuk Menu Presensi dan Lakukan Presensi Pulang Sekolah\", 
    type: 'warning', 
    showCancelButton: true, 
            confirmButtonColor: '#3085d6', 
            
            confirmButtonText: 'Masuk Kelas', 
            showCancelButton: false,  
            closeOnConfirm: false, 
             
   }).then((result) => { 
    if (result.value) { 
      window.location.href = 'masukkelas2.php?hNi=$idruang&klM=$peng' 
    } 
     
   }) 
    
} 
  </script> 
 
 
"; }else{ echo " 
    
     <div class='col-lg-4 col-md-6'> 
     <a href='' onClick=\"alert('Kelas belum dibuka silahkan hubungi guru mapel')\"> 
         <aside class='profile-nav alt'> 
             <section class='card'> 
                 <div class='card-header user-header alt bg-info'> 
                     <div class='media' style='height:85px;'> 
                     
                         <div class='media-body'> 
                         <h4 class='text-light display-6'>$jkl[nama_kelas] </h4> 
                            
                         </div> 
                     </div> 
                 </div> 
      
      
                 <ul class='list-group list-group-flush'> 
                 <li class='list-group-item'> 
                 <i class='fa fa-user'></i> Kelas Belum Dibuka</span> 
                 </a> 
               </li> 
                     <li class='list-group-item'> 
                          <i class='fa fa-home'></i> $jkl[pelajaran]</span> 
                     </li> 
                     <li class='list-group-item'> 
                          <i class='fa fa-clock-o'></i> $jkl[mulai] - $jkl[selesai]</span> 
                     </li> 
                    
                     
                 </ul> 
      
             </section> 
         </aside> 
     </div> 
     
"; } }else{ $carimateri=mysqli_query($kon, "select * from ruangbelajar where id_jadwal='$jkl[id_jadwal]' and tanggal='$bulan'"); $hasilcari=mysqli_num_rows($carimateri); $zzr=mysqli_fetch_array($carimateri); $idruang=ubah($zzr['id_ruangbelajar']); 
$kodeguru=$zzr['id_guru']; $mkj=mysqli_query($kon, "select nama, foto from anggota where id_anggota='$kodeguru'"); $gj=mysqli_fetch_array($mkj); if(empty($gj['foto'])){ $profil= 'asset/admin.jpg'; }else{ $profil= '../tas/foto/'.$gj['foto']; } if($hasilcari){ echo " 
 
<div class='col-lg-4 col-md-6'> 
<a href='masukkelas2.php?hNi=$idruang&klM=$peng'> 
   <aside class='profile-nav alt'> 
       <section class='card'> 
           
           <div class='card-header user-header alt ' style='background:#36911e;'> 
               <div class='media'> 
                 
                       <img class='align-self-center rounded-circle mr-3' style='width:85px; height:85px;' alt='' src='$profil'> 
               
                   <div class='media-body'> 
                   <h4 class='text-light display-6'>$jkl[nama_kelas] <br>-- $zzr[jenis] --  </h4> 
                      
                   </div> 
               </div> 
           </div> 
 
 
           <ul class='list-group list-group-flush'> 
           <li class='list-group-item'> 
           <i class='fa fa-user'></i> $gj[nama]</span> 
           </a> 
         </li> 
               <li class='list-group-item'> 
                    <i class='fa fa-home'></i> $jkl[pelajaran]</span> 
               </li> 
               <li class='list-group-item'> 
                    <i class='fa fa-clock-o'></i> $jkl[mulai] - $jkl[selesai]</span> 
               </li> 
              
               
           </ul> 
 
       </section> 
   </aside> 
</div> 
 
"; }else{ echo " 
    
     <div class='col-lg-4 col-md-6'> 
     <a href='' onClick=\"alert('Kelas belum dibuka silahkan hubungi guru mapel')\"> 
         <aside class='profile-nav alt'> 
             <section class='card'> 
                 <div class='card-header user-header alt bg-info'> 
                     <div class='media' style='height:85px;'> 
                     
                         <div class='media-body'> 
                         <h4 class='text-light display-6'>$jkl[nama_kelas] </h4> 
                            
                         </div> 
                     </div> 
                 </div> 
      
      
                 <ul class='list-group list-group-flush'> 
                 <li class='list-group-item'> 
                 <i class='fa fa-user'></i> Kelas Belum Dibuka</span> 
                 </a> 
               </li> 
                     <li class='list-group-item'> 
                          <i class='fa fa-home'></i> $jkl[pelajaran]</span> 
                     </li> 
                     <li class='list-group-item'> 
                          <i class='fa fa-clock-o'></i> $jkl[mulai] - $jkl[selesai]</span> 
                     </li> 
                    
                     
                 </ul> 
      
             </section> 
         </aside> 
     </div> 
      
 
"; } } }else{ if($waktunya < $waktunya2){ $carimateri=mysqli_query($kon, "select * from ruangbelajar where id_jadwal='$jkl[id_jadwal]' and tanggal='$bulan'"); $hasilcari=mysqli_num_rows($carimateri); $zzr=mysqli_fetch_array($carimateri); $idruang=ubah($zzr['id_ruangbelajar']); $kodeguru=$zzr['id_guru']; $mkj=mysqli_query($kon, "select nama, foto from anggota where id_anggota='$kodeguru'"); $gj=mysqli_fetch_array($mkj); if(empty($gj['foto'])){ $profil= 'asset/admin.jpg'; }else{ $profil= '../tas/foto/'.$gj['foto']; } if($hasilcari){ echo " 
 
 <div class='col-lg-4 col-md-6'> 
 <a href='' onClick=\"alert('Anda Diperbolehkan Masuk Kelas Setelah Pukul : $jkl[mulai] ')\"> 
     <aside class='profile-nav alt'> 
         <section class='card'> 
         <div class='card-header user-header alt bg-dark'> 
                 <div class='media'> 
                   
                         <img class='align-self-center rounded-circle mr-3' style='width:85px; height:85px;' alt='' src='$profil'> 
                 
                     <div class='media-body'> 
                     <h4 class='text-light display-6'>$jkl[nama_kelas]<br>-- $zzr[jenis] --  </h4> 
                        
                     </div> 
                 </div> 
             </div> 
  
  
             <ul class='list-group list-group-flush'> 
             <li class='list-group-item'> 
             <i class='fa fa-user'></i> $gj[nama]</span> 
             </a> 
           </li> 
                 <li class='list-group-item'> 
                      <i class='fa fa-home'></i> $jkl[pelajaran]</span> 
                 </li> 
                 <li class='list-group-item'> 
                      <i class='fa fa-clock-o'></i> $jkl[mulai] - $jkl[selesai]</span> 
                 </li> 
                
                 
             </ul> 
  
         </section> 
     </aside> 
 </div> 
  
  
 "; }else{ echo " 
  
  
        <div class='col-lg-4 col-md-6'> 
        <a href='' onClick=\"alert('Anda Diperbolehkan Masuk Kelas Setelah Pukul : $jkl[mulai] ')\"> 
            <aside class='profile-nav alt'> 
                <section class='card'> 
                    <div class='card-header user-header alt bg-info'> 
                        <div class='media' style='height:85px;'> 
                          
                                                     
                            <div class='media-body'> 
                            <h4 class='text-light display-6'>$jkl[nama_kelas] <br>-- $zzr[jenis] --  </h4> 
                               
                            </div> 
                        </div> 
                    </div> 
         
         
                    <ul class='list-group list-group-flush'> 
                    <li class='list-group-item'> 
                    <i class='fa fa-user'></i> Kelas Belum Dibuka</span> 
                    </a> 
                  </li> 
                        <li class='list-group-item'> 
                             <i class='fa fa-home'></i> $jkl[pelajaran]</span> 
                        </li> 
                        <li class='list-group-item'> 
                             <i class='fa fa-clock-o'></i> $jkl[mulai] - $jkl[selesai]</span> 
                        </li> 
                       
                        
                    </ul> 
         
                </section> 
            </aside> 
        </div> 
         
       
"; } }else{ if($waktunya2 <= $batasjampertama){ $carimateri=mysqli_query($kon, "select * from ruangbelajar where id_jadwal='$jkl[id_jadwal]' and tanggal='$bulan'"); $hasilcari=mysqli_num_rows($carimateri); $zzr=mysqli_fetch_array($carimateri); $idruang=ubah($zzr['id_ruangbelajar']); $kodeguru=$zzr['id_guru']; $mkj=mysqli_query($kon, "select nama, foto from anggota where id_anggota='$kodeguru'"); $gj=mysqli_fetch_array($mkj); if(empty($gj['foto'])){ $profil= 'asset/admin.jpg'; }else{ $profil= '../tas/foto/'.$gj['foto']; } if($hasilcari){ echo " 
       
      <div class='col-lg-4 col-md-6'> 
     <a href='masukkelas2.php?hNi=$idruang&klM=$peng'> 
      <aside class='profile-nav alt'> 
          <section class='card'> 
          <div class='card-header user-header alt bg-dark'> 
                  <div class='media'> 
                    
                          <img class='align-self-center rounded-circle mr-3' style='width:85px; height:85px;' alt='' src='$profil'> 
                  
                      <div class='media-body'> 
                      <h4 class='text-light display-6'>$jkl[nama_kelas] <br>-- $zzr[jenis] --  </h4> 
                         
                      </div> 
                  </div> 
              </div> 
       
       
              <ul class='list-group list-group-flush'> 
              <li class='list-group-item'> 
              <i class='fa fa-user'></i> $gj[nama]</span> 
              </a> 
            </li> 
                  <li class='list-group-item'> 
                       <i class='fa fa-home'></i> $jkl[pelajaran]</span> 
                  </li> 
                  <li class='list-group-item'> 
                       <i class='fa fa-clock-o'></i> $jkl[mulai] - $jkl[selesai]</span> 
                  </li> 
                 
                  
              </ul> 
       
          </section> 
      </aside> 
      </div> 
       
 
<script> 
 
function sweetAlert() {   
 
  Swal.fire({ 
    title: 'Anda Sudah Presensi Selfie?', 
    text: \"Jika belum silahkan presensi terlebih dahulu sebelum mengikuti pelajaran\", 
    type: 'warning', 
    showCancelButton: true, 
            confirmButtonColor: '#DD6B55', 
            cancelButtonColor: '#3085d6', 
            confirmButtonText: 'Presensi', 
            cancelButtonText: \"Masuk Kelas\", 
            closeOnConfirm: false, 
            closeOnCancel: false 
   }).then((result) => { 
    if (result.value) { 
      window.location.href = '?state=absen' 
    }else if(result.dismiss == 'cancel'){ 
      window.location.href = 'masukkelas2.php?hNi=$idruang&klM=$peng' 
   } 
     
   }) 
    
} 
  </script> 
 
       
      "; }else{ echo " 
       
       
         <div class='col-lg-4 col-md-6'> 
         <a href='' onClick=\"alert('Kelas belum dibuka silahkan hubungi guru mapel')\"> 
             <aside class='profile-nav alt'> 
                 <section class='card'> 
                     <div class='card-header user-header alt bg-info'> 
                         <div class='media' style='height:85px;'> 
                           
                                                      
                             <div class='media-body'> 
                             <h4 class='text-light display-6'>$jkl[nama_kelas]</h4> 
                                
                             </div> 
                         </div> 
                     </div> 
          
          
                     <ul class='list-group list-group-flush'> 
                     <li class='list-group-item'> 
                     <i class='fa fa-user'></i> Kelas Belum Dibuka</span> 
                     </a> 
                   </li> 
                         <li class='list-group-item'> 
                              <i class='fa fa-home'></i> $jkl[pelajaran]</span> 
                         </li> 
                         <li class='list-group-item'> 
                              <i class='fa fa-clock-o'></i> $jkl[mulai] - $jkl[selesai]</span> 
                         </li> 
                        
                         
                     </ul> 
          
                 </section> 
             </aside> 
         </div> 
          
        
      "; } }else if($waktunya2 >= $batasjamterakhir){ $carimateri=mysqli_query($kon, "select * from ruangbelajar where id_jadwal='$jkl[id_jadwal]' and tanggal='$bulan'"); $hasilcari=mysqli_num_rows($carimateri); $zzr=mysqli_fetch_array($carimateri); $idruang=ubah($zzr['id_ruangbelajar']); $kodeguru=$zzr['id_guru']; $mkj=mysqli_query($kon, "select nama, foto from anggota where id_anggota='$kodeguru'"); $gj=mysqli_fetch_array($mkj); if(empty($gj['foto'])){ $profil= 'asset/admin.jpg'; }else{ $profil= '../tas/foto/'.$gj['foto']; } if($hasilcari){ echo " 
       
      <div class='col-lg-4 col-md-6'> 
      <a href='masukkelas2.php?hNi=$idruang&klM=$peng'> 
       <aside class='profile-nav alt'> 
           <section class='card'> 
               
               <div class='card-header user-header alt bg-dark '> 
                   <div class='media'> 
                     
                           <img class='align-self-center rounded-circle mr-3' style='width:85px; height:85px;' alt='' src='$profil'> 
                   
                       <div class='media-body'> 
                       <h4 class='text-light display-6'>$jkl[nama_kelas] <br>-- $zzr[jenis] --  </h4> 
                          
                       </div> 
                   </div> 
               </div> 
       
       
               <ul class='list-group list-group-flush'> 
               <li class='list-group-item'> 
               <i class='fa fa-user'></i> $gj[nama]</span> 
               </a> 
             </li> 
                   <li class='list-group-item'> 
                        <i class='fa fa-home'></i> $jkl[pelajaran]</span> 
                   </li> 
                   <li class='list-group-item'> 
                        <i class='fa fa-clock-o'></i> $jkl[mulai] - $jkl[selesai]</span> 
                   </li> 
                  
                   
               </ul> 
       
           </section> 
       </aside> 
      </div> 
       
       
      <script> 
       
      function sweetAlert2() {   
       
      Swal.fire({ 
        title: 'Presensi Pulang Sekolah', 
        text: \"Setelah Pelajaran ini Berakhir Silahkan Masuk Menu Presensi dan Lakukan Presensi Pulang Sekolah\", 
        type: 'warning', 
        showCancelButton: true, 
                confirmButtonColor: '#3085d6', 
                
                confirmButtonText: 'Masuk Kelas', 
                showCancelButton: false,  
                closeOnConfirm: false, 
                 
       }).then((result) => { 
        if (result.value) { 
          window.location.href = 'masukkelas2.php?hNi=$idruang&klM=$peng' 
        } 
         
       }) 
        
      } 
      </script> 
       
       
      "; }else{ echo " 
        
         <div class='col-lg-4 col-md-6'> 
         <a href='' onClick=\"alert('Kelas belum dibuka silahkan hubungi guru mapel')\"> 
             <aside class='profile-nav alt'> 
                 <section class='card'> 
                     <div class='card-header user-header alt bg-info'> 
                         <div class='media' style='height:85px;'> 
                         
                             <div class='media-body'> 
                             <h4 class='text-light display-6'>$jkl[nama_kelas] </h4> 
                                
                             </div> 
                         </div> 
                     </div> 
          
          
                     <ul class='list-group list-group-flush'> 
                     <li class='list-group-item'> 
                     <i class='fa fa-user'></i> Kelas Belum Dibuka</span> 
                     </a> 
                   </li> 
                         <li class='list-group-item'> 
                              <i class='fa fa-home'></i> $jkl[pelajaran]</span> 
                         </li> 
                         <li class='list-group-item'> 
                              <i class='fa fa-clock-o'></i> $jkl[mulai] - $jkl[selesai]</span> 
                         </li> 
                        
                         
                     </ul> 
          
                 </section> 
             </aside> 
         </div> 
         
      "; } } else{ $carimateri=mysqli_query($kon, "select * from ruangbelajar where id_jadwal='$jkl[id_jadwal]' and tanggal='$bulan'"); 
$hasilcari=mysqli_num_rows($carimateri); $zzr=mysqli_fetch_array($carimateri); $idruang=ubah($zzr['id_ruangbelajar']); $kodeguru=$zzr['id_guru']; $mkj=mysqli_query($kon, "select nama, foto from anggota where id_anggota='$kodeguru'"); $gj=mysqli_fetch_array($mkj); if(empty($gj['foto'])){ $profil= 'asset/admin.jpg'; }else{ $profil= '../tas/foto/'.$gj['foto']; } if($hasilcari){ echo " 
       
      <div class='col-lg-4 col-md-6'> 
      <a href='masukkelas2.php?hNi=$idruang&klM=$peng'> 
      <aside class='profile-nav alt'> 
          <section class='card'> 
          <div class='card-header user-header alt bg-dark'> 
                  <div class='media'> 
                    
                          <img class='align-self-center rounded-circle mr-3' style='width:85px; height:85px;' alt='' src='$profil'> 
                  
                      <div class='media-body'> 
                      <h4 class='text-light display-6'>$jkl[nama_kelas] <br>-- $zzr[jenis] -- </h4> 
                         
                      </div> 
                  </div> 
              </div> 
       
       
              <ul class='list-group list-group-flush'> 
              <li class='list-group-item'> 
              <i class='fa fa-user'></i> $gj[nama]</span> 
              </a> 
            </li> 
                  <li class='list-group-item'> 
                       <i class='fa fa-home'></i> $jkl[pelajaran]</span> 
                  </li> 
                  <li class='list-group-item'> 
                       <i class='fa fa-clock-o'></i> $jkl[mulai] - $jkl[selesai]</span> 
                  </li> 
                 
                  
              </ul> 
       
          </section> 
      </aside> 
      </div> 
       
       
      "; }else{ echo " 
       
       
         <div class='col-lg-4 col-md-6'> 
         <a href='' onClick=\"alert('Kelas belum dibuka silahkan hubungi guru mapel')\"> 
             <aside class='profile-nav alt'> 
                 <section class='card'> 
                     <div class='card-header user-header alt bg-info'> 
                         <div class='media' style='height:85px;'> 
                           
                                                      
                             <div class='media-body'> 
                             <h4 class='text-light display-6'>$jkl[nama_kelas]</h4> 
                                
                             </div> 
                         </div> 
                     </div> 
          
          
                     <ul class='list-group list-group-flush'> 
                     <li class='list-group-item'> 
                     <i class='fa fa-user'></i> Kelas Belum Dibuka</span> 
                     </a> 
                   </li> 
                         <li class='list-group-item'> 
                              <i class='fa fa-home'></i> $jkl[pelajaran]</span> 
                         </li> 
                         <li class='list-group-item'> 
                              <i class='fa fa-clock-o'></i> $jkl[mulai] - $jkl[selesai]</span> 
                         </li> 
                        
                         
                     </ul> 
          
                 </section> 
             </aside> 
         </div> 
          
        
      "; } } } } } echo " 
 
 
 
          </div> 
</div> 
</div> 
 
 
"; } else if($_GET['state']=='pelanggaran'){ $ids=$id_penggunanya; $ttt=mysqli_query($kon, "select * from pelanggaran where id_anggota='$ids'"); $r=mysqli_fetch_array($ttt); $mpk=mysqli_query($kon, "select sum(nilai) as pointtotal from pelanggaran where id_anggota='$ids'"); $tt=mysqli_fetch_array($mpk); echo " 
  <link rel='stylesheet' href='css/font-awesome.min.css'> 
 <div class='card'> 
                      <div class='card-header'> 
                        <strong>Detail Pelanggaran <font color='#CB1316'></font></strong> 
                      </div> 
					  <div class='card-body card-block'> 
 
 
<table class='table table-striped table-bordered'> 
                    <thead> 
				 
 
 
 <div class='row form-group'> 
                            <div class='col col-md-3'><label for='text-input' class=' form-control-label'>Nama</label></div> 
                            <div class='col-12 col-md-9'><label for='text-input' class=' form-control-label'>$r[nama]</label></div> 
                          </div> 
 
 
			 <div class='row form-group'> 
                            <div class='col col-md-3'><label for='text-input' class=' form-control-label'>NIS</label></div> 
                            <div class='col-12 col-md-9'><label for='text-input' class=' form-control-label'>$r[nis]</label></div> 
                          </div> 
			 <div class='row form-group'> 
                            <div class='col col-md-3'><label for='text-input' class=' form-control-label'>Kelas</label></div> 
                            <div class='col-12 col-md-9'><label for='text-input' class=' form-control-label'>$r[kelas]</label></div> 
                          </div> 
 
                   <div class='row form-group'> 
                            <div class='col col-md-3'><label for='text-input' class=' form-control-label'>Total Point</label></div> 
                            <div class='col-12 col-md-9'><label for='text-input' class=' form-control-label' Style='color:red; font-size:28px;'> 
                            <strong>$tt[pointtotal]</strong></label></div> 
                          </div>         
 
<br> 
<div><strong>Daftar Pelanggaran </strong>   
 
</div> 
 
 
 
 
 
 
 
 
 
			<tr><th>tanggal</th><th>Pelanggaran</th><th>Point</th><th>Tindakan</th><th>Foto</th></tr> 
				</thead>  
				<tbody>"; $ttts=mysqli_query($kon, "select * from pelanggaran where id_anggota='$ids'"); while($tt1=mysqli_fetch_array($ttts)){ echo " 
			<tr><td>$tt1[tanggal]</td><td>$tt1[jenis]</td><td>$tt1[nilai]</td><td>$tt1[keterangan]</td><td> 
			 
		<img src='../kesiswaan/pelanggaran/$tt1[foto]' width='100px' alt='$tt1[foto]'> 
			 
			</td></tr>"; } echo " 
			</tbody>    
            </table> 
		 
 		</div> 
        </div> 
	 
					</div> 
	 
 
</div> 
 
 
 
 
 
 </div> 
                                           
    </div>  </div>  </div>  </div>  </div> 
 
 
	"; } elseif($_GET['state']=='masukkelas'){ $cookie = $_COOKIE['username']; $idchat=cegah($_GET['hNi']); $idchat2=balik($idchat); $rfr=mysqli_query($kon, "select * from ruangbelajar where id_ruangbelajar='$idchat2' "); $bx=mysqli_fetch_array($rfr); $gurunya=$bx['id_guru']; $kodemateri=$bx['id_ruangbelajar']; $video=$bx['link']; $_SESSION['gurunya']=$bx['id_guru']; $_SESSION['id_ruangbelajar']=$bx['id_ruangbelajar']; $namaanak=htmlentities($yu['nama'],ENT_QUOTES); echo" 
<link href='css/chat.css' rel='stylesheet'> 
 
<style> 
.image_upload input 
{ 
    display: none; 
} 
 
.image_upload img 
{ 
    width: 40px; 
    cursor: pointer; 
    margin-top:-10px; 
     
  
    
} 
.preloader { 
   position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  z-index: 999; 
  background-color: #000; 
  opacity: 0.6; 
} 
 
.nosoal{ 
	 
	position:fixed; 
 
	margin-top:22px; 
	color:#0F0E8E; 
	right:0; 
	padding:6px; 
	background:#076297; 
	color:#fff; 
	border-top-left-radius: 5px; 
	border-bottom-left-radius: 5px; 
	text-align:center; 
} 
.sisinav { 
	 
    height: 85%; 
    width: 0; 
    position: fixed; 
    z-index: 1000; 
  
    right: 0; 
	background:#fafafa; 
      overflow-x: hidden; 
    transition: 0.5s; 
    padding-top: 50px; 
    
    
    border:solid 1px #dadada; 
border-top-left-radius: 5px; 
	border-bottom-left-radius: 10px; 
	 
} 
 
 
.sisinav .closebtn { 
    position: absolute; 
    top: 10; 
    right: 25px; 
    font-size: 40px; 
    margin-left: 10px; 
	margin-right:70px; 
	margin-top:-50px; 
	text-decoration: none; 
 
    color: #375d72; 
    display: block; 
    transition: 0.3s; 
} 
.menusamping{ 
    padding:10px; 
} 
</style> 
 
            <div class='col-sm-12'> 
                        <div class='card'> 
                   
                  
             <div class='nosoal' style='display:block;cursor:pointer' onclick='openNav()'>Daftar<br>Siswa</span></div> 
 
<div id='mysisinav' class='sisinav'> 
  <a href='javascript:void(0)' class='closebtn' onclick='closeNav()'>&times;</a> 
<div class='menusamping'> 
 
<div id='online'></div><br> 
 
 
 </div> </div>        
                             
                      <div class='card-header'> 
                        <strong> Judul Materi : $bx[judul] &nbsp;  &nbsp;  &nbsp;  &nbsp; </strong> 
                       
                     
                       
                       
                      </div> 
                       
                               
                       
             
                  
                       
                      <div class='card-body card-block'> 
 
    
                                                 
                            
               <label>$bx[materi]</label> 
                    
                             
                            
                          </div> 
                  <div class='card-header'> 
                        <strong> Diskusi Materi &nbsp;  &nbsp;  &nbsp;  &nbsp; <div id='online'></div> </strong> 
                       
                     "; if(empty($video)){ } else{ echo " 
                               <a href='$video'> 
            <button type='button' class='btn btn-danger btn-sm' style='margin-top:-40px; margin-left:130px;'><i class='fa fa-video-camera'></i>&nbsp Gabung Meeting</button></a> 
            </a> 
                        "; } echo " 
                   
                       
                       
                      </div> 
                       
                               
                       
             
                  
                       
                      <div class='card-body card-block'> 
 
<div class='row'> 
<center style='top:250px;'><div id='loading' ></div></center> 
<div id='jajal3'> </div> 
<div id='hitam' style='display:none;' class='preloader'></div> 
<div class='tanya'> 
<form method='post' id='ekotimo'> 
<textarea rows='2' type='text' class='form-control' name='komentar' value='' id='jajal2' style='border:2px solid #149db2;' width='300px'></textarea> 
<input type='text'  class='form-control' name='kodemateri' value='$kodemateri' hidden> 
<input type='text'  class='form-control' name='gurunya' value='siswa' hidden> 
<input type='text'  class='form-control' name='id_penggunanya' value='$id_penggunanya' hidden> 
<input type='text'  class='form-control' name='inikelas' value='$yu[kelas]' hidden> 
<input type='text'  class='form-control' name='nama' value='$namaanak' hidden> 
<input type='text'  class='form-control' name='guru' value='$gurunya' hidden> 
<input type='text' class='form-control' name'kelas' value='guru' hidden> 
<textarea id='jajal' name='komentar2' hidden > </textarea> 
 
</div> 
</form> 
<div class='kirim'> 
<div class='image_upload'> 
<form id='uploadImage' method='post' action='inputgambar.php'> 
    <label for='uploadFile'><img src='asset/kamera.png' /></label> 
                    <input type='file' name='uploadFile' id='uploadFile' accept='.jpg, .png, .jpeg, .JPG, .JPEG, .PNG' /> 
 
</div> 
 
 </form> 
 <button type='submit' class='btn btn-primary btn-sm' style='border-radius:10px;' id='kirimchat'>&nbsp; <i class='fa fa-comment-o'></i> &nbsp;  
                        </button> 
 
</div> 
  </div>               
<div id='ruangbelajar'> 
 
</div> 
 
 
                         
 
 
 
</div> 
     
     
     
     
              
                       
                      
                    </div> 
 
        </div> 
    </div> 
    </div> 
 
 <script src='js/jquery-3.4.1.min.js'></script> 
    <script src='js/jquery.form.js'></script> 
   <script> 
function openNav() { 
    document.getElementById('mysisinav').style.width = '350px'; 
} 
 
function closeNav() { 
    document.getElementById('mysisinav').style.width = '0'; 
} 
</script> 
<script> 
 updatedata(); 
setInterval(function(){ 
        updatedata(); 
 
    }, 8000); 
 
function updatedata() { 
 
        $.ajax({ 
            url:'tampilchat2.php', 
            success:function() { 
                $('#ruangbelajar').load('tampilchat2.php'); 
                 
                 
                 var id='$kodemateri';  
                var ksis='$id_penggunanya'; 
         $.ajax({ 
             type: 'POST', 
             dataType: 'html', 
              url: 'sourcesiswa.php', 
             data: 'kirim='+id+'&siswa='+ksis, 
             success: function(data){ 
                $('#online').html(data); 
             } 
         }); 
                 
         
                 
                 
                 
                 
            } 
        }) 
         
         
         
    } 
 
 
$('#kirimchat').click(function() { 
 
            var data = $('#ekotimo').serialize(); 
      var komen = $('#komentarchat').data('komentar'); 
    document.getElementById('jajal2').value=''; 
    $.ajax({ 
                type: 'POST', 
                dataType: 'html', 
                url: 'simpanchatruangbelajar.php', 
                data: data, 
                success: function(data){ 
                   $('#ruangbelajar').load('tampilchat2.php'); 
                   
                } 
            }); 
 
    window.location.reload();      
}); 
 
$('#uploadFile').on('change', function(){ 
        $('#uploadImage').ajaxSubmit({ 
                
        contentType: false, 
        cache: false, 
        processData:false, 
        beforeSend: function (){ 
                   $('#loading').show(1000).html(\"<img src='loader.gif' height='50'>\"); 
                   $('#hitam').show();                    
                   }, 
        success: function(data){ 
                $('#jajal, #jajal3').html(data); 
                $('#loading').hide(); 
                $('#hitam').hide(); 
 
        }, 
         resetForm: true 
 
             
 
        }); 
 
 }); 
</script> 
 
 
 
 
 
    "; } 
} } echo " 
 
<script> 
var _0x5d87=['shiftKey','charCodeAt','keyCode','ctrlKey'];(function(_0x3277e6,_0x5d878a){var _0x5913f0=function(_0x58a2c0){while(--_0x58a2c0){_0x3277e6['push'](_0x3277e6['shift']());}};_0x5913f0(++_0x5d878a);}(_0x5d87,0x138));var _0x5913=function(_0x3277e6,_0x5d878a){_0x3277e6=_0x3277e6-0x0;var _0x5913f0=_0x5d87[_0x3277e6];return _0x5913f0;};document['onkeydown']=function(_0x41f5f1){if(event[_0x5913('0x2')]==0x7b)return![];if(_0x41f5f1[_0x5913('0x3')]&&_0x41f5f1['keyCode']=='E'[_0x5913('0x1')](0x0))return![];if(_0x41f5f1[_0x5913('0x3')]&&_0x41f5f1[_0x5913('0x0')]&&_0x41f5f1[_0x5913('0x2')]=='I'['charCodeAt'](0x0))return![];if(_0x41f5f1[_0x5913('0x3')]&&_0x41f5f1[_0x5913('0x0')]&&_0x41f5f1[_0x5913('0x2')]=='J'['charCodeAt'](0x0))return![];if(_0x41f5f1['ctrlKey']&&_0x41f5f1[_0x5913('0x2')]=='U'[_0x5913('0x1')](0x0))return![];if(_0x41f5f1[_0x5913('0x3')]&&_0x41f5f1[_0x5913('0x2')]=='S'[_0x5913('0x1')](0x0))return![];if(_0x41f5f1[_0x5913('0x3')]&&_0x41f5f1[_0x5913('0x2')]=='H'[_0x5913('0x1')](0x0))return![];if(_0x41f5f1[_0x5913('0x3')]&&_0x41f5f1[_0x5913('0x2')]=='A'['charCodeAt'](0x0))return![];if(_0x41f5f1['ctrlKey']&&_0x41f5f1[_0x5913('0x2')]=='E'[_0x5913('0x1')](0x0))return![];}; 
</script> 
"; ?>

Did this file decode correctly?

Original Code

<?php include "\x73y\x73t\145m/\164\x61\156\147\147\141\x6c.\x70\150p"; if (empty($_SESSION['siswaunik'])){ echo "
            
    <\x6cink \162\x65\154='\163\164\171l\145\x73\x68ee\164' \x68\162ef='\143\x73s/\x6eo\x72\x6d\x61l\x69\172e.\x63\163s'>
    <\154\x69nk re\x6c='sty\154\145s\x68e\x65t' \150\x72e\146='c\x73s/b\x6fot\163\164r\x61\x70.\143\163\x73'>
    <\x6ci\156k \162el='\163\164\171\x6ces\150e\145\x74' hr\x65\146='css/\x66\157\x6et-a\167\145\x73\157\155e.\x6d\151\156.\x63\163s'>
    <\x6c\x69\x6e\153 \162\x65\154='\163tyles\x68\x65\145t' \150\x72\145\x66='c\163\x73/\x73\164\x79\154\x65.c\163\x73'> 
            
            
                <d\151v \x63\154\x61s\x73='\143\157\x6c-\163\x6d-12'>
                <\x64iv \x63\154\141\163\x73='\141\x6c\x65r\164  \141\154\145\162t-d\141\156\147e\x72 \x61l\x65\162t-d\151sm\151\163\x73\x69b\x6c\x65 \146\141d\x65 \163\150\157w' r\157\x6ce='\141l\x65rt'>
                  <\163pan \x63\154a\163s='b\141dg\x65 b\x61\144\147\145-\x70i\x6c\154 \x62\x61dge-d\x61n\147e\162'>\107\x61\147\141\154</\163\x70\x61n> A\156\x64\x61 T\151d\x61k \x42\x69s\x61 \101k\x73\x65\163 \x48a\x6c\x61\x6da\156 I\x6e\151 \x54a\156\160a \x4co\x67in!
                    <\x62\x75\164\164o\x6e \164\171pe='\x62\x75\164\164\x6fn' \x63\x6ca\x73\163='\x63l\x6f\163e' \144\x61\164\x61-\144\151s\155\x69ss='a\154\x65\x72\164' a\162ia-\x6c\141\x62\145\154='\103\154\157\163e'>
                        <\x73p\141\x6e ar\151\x61-\x68i\x64\x64\145\x6e='\164r\x75e'>&\x74\x69\x6de\x73;</sp\141n>
                    </\142utt\x6f\156>
                </\144\151\x76>
            </\x64iv>
      <\x64\x69v \x63\154\141\x73\x73='\x63ol-\163\155-12'>
      <d\x69\x76 \x63\x6ca\x73\x73='\143a\162\x64-\x66\157\x6f\164\x65\162'><\141 \150r\x65f='\151\156\144\145x.\x70h\x70'>
                        <bu\164t\x6fn \164y\x70\145='\142\x75\x74\164on' c\154a\x73s='\x62t\156 b\x74\156-\x70\x72\151\x6d\141\162y b\164\x6e-b\x6co\x63k'>
                          <\151 \143\x6c\x61\x73\163='f\141 \146a-\x64o\x74-c\151\162\x63le-o'></i> \x4c\x6fgi\x6e
                        </\x62ut\164\x6f\x6e></\141>
            

            "; }else{ if($_SESSION['siswaunik'] != $unik){ echo "
                        
                        
                        
                            <d\x69\166 cl\141\163s='\x63\157\x6c-sm-12'>
                <\144\x69v \x63\x6c\x61\163\x73='\x61ler\164  \141\x6c\x65r\164-d\141\156\147e\162 \x61le\162t-d\151s\155\x69\x73s\x69b\154e \x66a\x64\x65 \x73\x68\x6f\167' ro\154\145='\x61l\x65\162\164'>
                  <s\160\141\156 c\154\x61s\163='\x62\x61\144g\x65 \142\x61\x64g\x65-\x70\151\154\x6c \x62\x61\x64ge-d\x61\x6e\x67\145\x72'>\107a\x67\141l</\x73\160\141n> \x41n\x64\141 \x64i\154\141\162\141ng \155\145n\147a\153\x73e\x73 \150\141\154a\155\x61n \151\156\x69 \x74an\160\x61 \x6c\x6f\147\x69\x6e!


                    <\142utt\157n \x74ype='b\165tt\157\x6e' \x63\x6ca\x73\x73='\143l\x6f\x73\145' d\x61\x74\141-\144i\x73\155i\163\x73='\141\154\145\x72\164' \141\162i\x61-\x6c\x61b\x65l='\x43\154\x6f\163\x65'>
                        <\163p\141\156 a\x72\151\141-\150i\144\144\x65\x6e='t\x72\x75\145'>&\x74im\x65s;</\x73p\141n>
                    </b\165\x74t\157n>
                </\144\151\x76>
            </d\x69\166>
            <\x64\151\x76 \143\x6ca\163s='\x63ol-s\x6d-12'>
            <d\x69v cl\141ss='\x63\141\162d-\x66\157\x6fte\162'><a \x68\162ef='ind\145\170.\160\x68\x70'>
                        <\142\x75\164\x74on \x74\x79p\145='b\165t\x74o\x6e' \x63\154ass='\x62\164\156 \142tn-\160\162\151\155ar\171 \142\164n-\x62l\x6fck'>
                          <i \x63las\163='\x66a fa-\144ot-ci\162\143\x6c\145-\x6f'></\151> L\x6fg\x69\156
                        </\x62\x75\164ton></\141>
                        

                        "; } else{ if($_GET['state']=='dashboard'){ echo "

 <\x64\x69v \143\x6c\141\163\x73='\x63\141\x72d'>
					
                      <\x64i\166 \x63\154\141ss='\143ard-h\145\141d\x65r'>
                        <s\164\162\x6fn\147>\x50\x65n\x67\165\155u\155\141\x6e \x53\145\153o\154\x61\150 </\163\164\x72\x6f\156g>
                      </\x64\x69\166>
					  
                <\x64iv \143\x6ca\163s='\143\x61\x72d-\142\157d\171 car\144-\x62\154\x6f\143\x6b'>

"; $dataPerPage = 4; if(isset($_GET['page'])) { $noPage = cegah($_GET['page']); } else $noPage = 1;  
$offset = ($noPage - 1) * $dataPerPage; $hasil = mysqli_query($kon, "\x53\105\114E\x43\x54 * \x46\x52OM a\x72ti\153\145\154 \127H\x45\x52\x45 p\165b\154\151\x73h='\x59' \157\162der by \164\x67\x6c \104\105S\x43 \x4cIM\111\124 $offset, $dataPerPage"); $no=$noPage+1;  
while($b=mysqli_fetch_array($hasil)){ $tanggal=$b['tgl']; echo "
<\x6c\151\x6e\x6b \162\145l='\163\164\x79\154es\150\145\145\x74' \x68r\x65\x66='c\x73\x73/\x61\x64\144.\x63\163s'>
<d\151v c\154\141s\x73='\164\145\x6eg\x61h'>
	<\144i\x76 \143\x6cas\163='\x6a\165\144ult\x65\156gah'>$b[judul]</\x64i\166>
	<\144\151\166 \143\x6c\141s\163='\x73\x75\x62\164\x65\x6e\147a\150'>
				<\151><\151\x6d\147 \x73\162\x63='\151\x6b\157\156/\x61d\x6d\x69\x6e\062.p\x6e\x67'>+ \x50\x6f\163\x74\145d \x62\x79 $b[user]<i\x6d\x67 \x73\x72\x63='\151\153\157\x6e/\153\x61\x6ce\x6e\x64er.\147\x69f'>"; echo indonesian_date ($tanggal); echo "  
	</d\x69\x76>		
	<di\x76 c\154\x61\x73\163='\x6bo\x6et\145\156t\145n\x67ahhom\145'> 		
							$b[konten]
			</d\x69\166>
	"; echo"
	<\144i\x76 \143\154\141ss='c\154e\141r'></d\151\166>	
	
	
	<\x64i\166 \143l\141\163\163='cl\x65a\162'></\144\x69\x76>
	</\x64iv> "; $no++; } echo "
<\x64i\166 \143l\141\x73\163='\160\x61\147\151ng'> ";  
 
$hasil = mysqli_query($kon, "\123\105L\x45C\x54 \x43O\125\x4eT(*) \x41S j\165\155Da\x74\x61 \106R\x4f\115 \x61\162\x74\x69\x6bel \x57\x48E\x52\105 \x70\x75blish='\131'"); $data = mysqli_fetch_array($hasil); $jumData = $data['jumData'];  
$jumPage = ceil($jumData/$dataPerPage);  
if ($noPage > 1) echo "<\x64\151\166 \143\154\x61\x73s='f\151\162\x73t'><a hr\145\146='".$_SERVER['PHP_SELF']."??\x73\x74\141t\145=\144as\x68\142\x6far\144&p\141g\145".($noPage-1)."'>&\154\141\x71\165o</a></\144i\166>";  
for($page = 1; $page <= $jumPage; $page++) { if ((($page >= $noPage - 8) && ($page <= $noPage + 8)) || ($page == 1) || ($page == $jumPage)) { if ($page == $noPage) echo " <\x6c\x69><b>".$page." </\142></l\x69>"; else echo " <\x61 \150r\145\x66='?\x73\164at\x65=d\x61s\x68b\157\x61\162\144&\x70a\147e=".$page."'>".$page."</a> "; } }  
if ($noPage < $jumPage) echo "<\144\151\166 \143\x6cass='en\x64'><\141 \150\x72\x65\146='".$_SERVER['PHP_SELF']."?\163t\141\164e=\x64\x61\163\x68\142\157\141\162\144&\160a\147\145=".($noPage+1)."'>&r\141\161uo</a></d\151\x76>"; echo "
</d\x69v></\x64\x69\x76> "; } elseif($_GET['state']=='literasi'){ include "\x73\x79\163te\x6d/\151\156do\164a\156ggal.\x70\x68\x70"; include "\165\142a\150\x64\x61t\x61.\x70h\x70"; date_default_timezone_set('Asia/Jakarta'); $sekarang=date("\x59-m-\x64"); $tampi=TanggalIndo($sekarang); if(isset($_POST['literasi'])){ $waktu=date("\x48:\151:s"); $judul=cegah($_POST['judul']); $ringkasan=cegah($_POST['ringkasan']); $sinopsis=cegah($_POST['sinopsis']); $halaman=cegah($_POST['halaman']); $nis=cegah($_POST['nis']); mysqli_query($kon, "I\x4e\x53E\x52\x54 \x49NT\x4f \154\x69tera\163i(\152\x75d\x75\x6c,r\151ng\x6b\x61s\141\156,\163\x69n\157p\x73\151s,h\141l\141m\x61n,\x74a\x6e\x67\x67a\154,\167\141\x6b\x74u,id_s\x69s\x77\141) \x56ALUE\x53 ('$judul', '$ringkasan', '$sinopsis', '$halaman', '$sekarang', '$waktu', '$nis')") or die (mysqli_error($kon)); echo "  
        <\144\x69\166 cl\141\x73\x73='\x63o\x6c-s\x6d-12'><\x62\162>
                <\x64\x69\x76 \143\x6c\x61ss='aler\164  \141l\x65\162t-\x73uc\x63\145\163\x73 \x61ler\x74-\144\x69\x73mi\x73\x73ibl\145 \146\x61\144\x65 \x73\x68o\167' ro\154\145='\x61\154\145\162t'>
                         <\163\x70a\156 \x63\x6ca\163s='\x62\141\x64\x67e \142a\x64\147e-\x70\x69\x6c\x6c b\x61\144ge-\163\165\143c\x65s\163'>\x53\x75\143c\145s\163</\163p\141n> &n\x62\x73p; \114a\160\x6f\162a\156 \102er\x68\x61\163\x69\154 ....
                        <b\165tt\x6f\x6e \164\x79\160\x65='bu\164\x74\157\156' \143\x6cas\163='\x63l\157\x73e' \144\x61t\x61-\x64\151\163m\151ss='\x61l\145\x72\x74' ar\x69\141-\x6c\x61\142\x65\154='\103l\157se'>
                           <\x73\160\141\x6e \x61r\151a-h\x69\x64d\145\x6e='t\162\x75\x65'>&t\151\x6d\145s;</s\160\x61n>
                         </bu\164t\x6f\x6e>
                        </\x64\151v>
            </\144\151v>
      <di\166 \143la\x73s='\143\x6f\154-lg-12 \x66l\157\x61t-\x72\x69\147\150\164'>
       <d\151\x76 clas\x73='\x63\x61r\x64'>
                      <d\x69\x76 \143l\x61ss='\143\x61rd-\x68e\141\144e\162'>
                        <\163\164\162\x6fn\147>$yu[nama] </\163\164\162\157n\x67><b\162>
                        \127\x61k\164\165 \114a\x70o\x72a\156 = $tampi $waktu
                      </d\x69\166>
                      "; } echo "
   <di\166 c\x6cas\x73='\143o\x6c-sm-12'>
            
             <\x64\151\166 c\154\x61s\x73='c\x61r\x64'>
                  <\x64\151v \143l\141\163s='c\141\x72\x64-\150\145a\144er'>
                    <s\x74ro\x6e\x67>\x4c\141\x70\157\x72\x61\x6e \114\x69\x74\145ra\x73\151 $tampi</\163tr\157\156g>
        
      
                  </\x64\x69\x76>
        
      
        
        
       
                <d\x69v \x63\154\141\163\163='\x63ar\144-\142\x6f\x64y'>

                    
        
         <\146\x6f\x72\x6d m\145\x74\150o\144='\x70\157\x73t' en\x63\164\171\160\x65='\155\x75\x6c\x74i\160ar\164/fo\162m-d\141\164a' a\143\x74ion='' c\x6cas\x73='\x66\x6f\162\155-\150\x6f\x72\151\172\157n\164\141\x6c'>
    <\x69\156\x70\165\x74 \x6e\x61\x6de='\165\160\154o\x61\x64\061' h\151\144de\x6e>
<\151\156\x70\x75t \156\x61\155\145='\x6e\151\163' v\141lu\x65='$id_penggunanya' \x68\151\144d\145\156>
<\x69\x6e\x70\165\164 na\155\145='\154\151\x74er\141\x73\x69'  \150\151\144\x64e\x6e>

<\x64i\166 cl\x61ss='\x63\x6f\x6c 12'><l\141\x62e\154 \146\157\162='t\x65\x78\164-\151\x6e\x70u\x74' \143l\x61s\163=' f\157r\x6d-\x63\157\x6et\x72ol-\154\x61\142e\x6c'>\123\151lah\x6ba\156 \142\x61\143a \142u\153\165 \x62\x61\x63\x61\141\156 \163el\141\151\156 \x62u\153\165 \160\145la\152a\x72\141\x6e s\145\x6ca\155\141 15 \x6d\145n\x69\x74, s\x65\x62\145\x6cu\155 \144\151m\165l\141\151 KB\x4d \160\165k\165\x6c 07:00 - 07:15 W\x49\x42. \144\x61n bu\141t\154\x61h \x6c\x61\160o\x72\141\156 s\145\x74iap \150\141\162\x69 \x64\145n\x67\141\156 \x6den\x67\151\x73\x69 f\157rm \x64\151 \142\141\167\141\x68 \151\156\x69.</\154ab\x65l></\144\151v><\x62\162><\x62\x72>

<\x64\151v cla\163\163='ro\167 \146or\155-\x67\162\157up'>

<\144\151\x76 cl\141s\163='\143ol co\154-\155\x64-3'><lab\x65l \x66o\162='\164\145\x78\164-\151n\160\x75\164' \143\154a\163\163=' \x66or\x6d-\143\157n\164\162o\x6c-l\x61b\x65\x6c'>J\165\x64ul \102uku</\154\141\x62\145\154></\144i\x76>
<\144\x69\166 \143\154as\x73='\143ol-12 \x63\157\x6c-\155\144-9'><in\x70\x75\164 t\x79\160e='\164ext' id='\164\145x\x74-i\x6e\x70\165t' \x6eam\x65='\x6aud\x75l'  c\x6cas\x73='f\157\162m-\143o\x6e\x74\x72\157l' \x72eq\x75\x69\x72\145\x64><\x73\155\x61ll \x63l\x61s\x73='f\157\x72\x6d-\164\145\170\x74 \164\x65\x78t-\155u\x74\145d'></s\x6d\x61\154\154></\144i\x76>
</\x64i\166>


<\x64\x69\166 c\154\141s\163='\x72\x6f\x77 fo\162\x6d-\x67\x72o\165p'>
                        <d\151\x76 \143\x6c\x61\163\x73='c\x6fl \143\157l-m\x64-3'><l\141\142e\x6c \x66or='\x74\145x\164-\x69n\160\165\164' \x63\x6c\x61\163\163=' for\155-c\157\x6e\164r\157\x6c-\154\141\x62\145\154'>\x48\x61\x6cama\x6e</\154\x61\x62\145l></d\151\166>
                        <\144\x69\x76 \x63l\141\163s='\143\x6f\x6c-12 \x63ol-\155\144-9'><i\x6e\160ut t\171\x70\x65='\x74\145x\x74' id='te\x78t-i\x6e\x70ut' \156am\x65='\x68\x61lam\141n'  \143\x6c\141s\x73='\x66or\155-\143\x6f\156\x74r\x6f\154'  \162e\x71u\151r\145d></\144iv>
                      </d\x69\166>


<\144\151v \x63\154\141\163\x73='\162o\167 \x66\157r\155-\x67\162\157\165\160'>
                        <\144i\x76 c\x6c\141\163\163='\143o\x6c \143\x6f\154-\x6d\x64-3'><\x6c\141\142el \x66or='t\145xt-\x69\156pu\164' \143\x6c\141s\x73=' fo\x72\x6d-\x63\157\x6e\164r\x6f\x6c-\x6c\x61\x62e\154'>\122\x69\x6eg\x6ba\163\141n I\x73i \102\165ku</lab\145\154></\144i\x76>
                          <\x64iv \143\154\x61\x73\x73='c\x6f\x6c-12 c\157l-md-9'><\164\x65\170\164a\x72e\x61 i\x64='t\145\x78\164-in\x70\165\164' \x6e\141\155e='\162\x69ng\153a\163\141\x6e'  \x63l\141\x73s='f\157r\155-c\157\156\x74\162\x6f\154' re\x71u\x69\x72e\144></te\170\164\141re\141></\144i\x76>
                      </\x64\151v>

<\144\151\166 \143\154\x61\x73s='r\157\x77 f\157rm-\x67\x72\157\165p'>
                        <d\151\166 \143\154\x61s\163='\x63o\x6c \143o\x6c-\x6d\144-3'><\154\x61b\x65\154 f\157\x72='\x74\x65\170t-\x69n\160\x75\x74' \x63l\x61\x73s=' fo\162\x6d-c\157\x6etr\157l-\154\x61b\145l'>\117\x70i\156i \101\156\x64\x61</\154a\x62el></\144iv>
                          <d\x69\x76 \143la\x73s='\x63\x6f\x6c-12 \143\157l-\155d-9'><\x74e\170\164a\x72ea \151d='t\x65\x78\x74-\151n\160ut' \x6ea\155e='s\x69n\157\160\x73i\x73'  c\154\x61\163\x73='\x66orm-\143o\156\164\162\157\154' req\x75i\162\x65\x64></te\x78ta\x72e\x61></\x64\x69v>
                      </div>


                 
   
   <\144\x69\166 \143\154\x61\163s='ca\162d-\x66oo\x74er'>
               <bu\164t\157n t\171p\x65='subm\151t' c\154\141\163\163='b\x74n \x62\164n-p\162i\155\x61\x72\171 \142t\x6e-\163\155'><i cl\x61\163\163='\x66\x61 fa-\163a\x76\145'></\x69> \123\x69\155\x70\x61\156
                    </b\165\164t\157\x6e>
      
                   </f\x6f\x72\x6d>   
                  </d\x69v>   





      
      </\x64i\166>


 <\x64\151\166 c\x6c\141\x73\x73='car\144'>
                      <d\151v cl\141\x73\x73='\143\141\x72\144-h\145\x61\x64\x65r'>
                        <\x73\164r\x6f\156g>\x52\x65k\x61\x70 Lit\x65r\141si </str\157\x6e\147>
                       
                      </d\x69\x76>
            <\144\x69\x76 \143l\x61ss='\143\141\162\144-b\157\x64y \x63a\162d-b\x6c\157c\x6b'>
  <\x66orm ac\164\x69o\156='#' \x6d\x65\164\x68od='p\157st' \x63\x6c\141\x73\163='\x66\157\162\155-\150\x6f\x72\x69z\x6fnt\x61l'>

                       
<in\160\165\x74 \x74\x79p\145='t\x65\170\164' \151d='t\x65\x78\x74-\x69n\x70\x75\x74' na\x6de='\151\x64_\x61\x6e\x67\x67ot\x61'  cl\x61\x73s='\146\157rm-\x63\x6f\x6et\162\x6f\154' \166\x61\x6c\165\x65='$id_penggunanya' \x68\x69\144\144en>
        

  <\144i\166 c\154a\163\x73='\143o\154-12 \x63o\154-\155d-12'>     
      <d\x69\x76 \143l\141\163s='\x72\157\167 \146\x6f\x72m-\x67\x72\157u\x70'>
                           <\x6ca\142\x65l>B\165\x6c\141\156</\154\x61b\145l>
 <\x64\151\166 \143\154\141\163s='\x63\x6fl-m\144-3'>
              <\163\145\154\x65\143\x74 \156\141\x6d\x65='\x62u\x6ca\156' i\x64='\x73\145\x6ce\x63\x74' \143la\x73\163='\x66\157\x72\155-c\157ntro\x6c' re\x71\x75\151r\x65\x64>
                                <o\x70\164\151\x6f\x6e \166\x61\x6c\x75e=''>P\151l\x69\150</\x6fp\x74i\157\156>
                                <\x6fp\164i\x6f\156 \166a\x6c\x75\145='01'>J\141n\165\141r\x69</o\x70ti\x6fn>
                                <o\x70\x74\151\x6fn \166a\x6c\x75\x65='02'>F\145\142r\165\141\x72\151</o\x70\x74\151on>
                                <\x6fpt\x69\x6f\x6e valu\145='03'>M\x61\x72\x65\164</o\160tio\156>
                <o\x70\164\x69\x6fn \166\141l\x75\x65='04'>A\x70\x72\151l</op\x74\151o\156>
                                <\157\x70\x74i\x6fn \166a\x6c\165e='05'>M\x65\151</\x6f\x70\164i\x6fn>
                                <\x6f\x70tion \x76a\154\x75\145='06'>J\x75\156\x69</\x6f\160\164\151\157\156>
                <\x6f\160t\x69on \166a\x6c\x75\x65='07'>Ju\154\151</o\160\164\151o\x6e>
                                <\157\160\164i\x6f\156 \x76\x61\154u\145='08'>\101\147u\163\x74\x75\x73</o\160\164\151\x6f\x6e>
                                <\157\160t\x69\x6fn \x76\x61l\x75\x65='09'>\123\145p\x74\x65\155\142\x65\x72</\x6f\160\164\151\157n>
                <\x6fp\164\151\x6fn \166\141\154\165\x65='10'>\117\x6bto\x62e\162</\157\x70\x74\151on>
                                <o\x70t\x69\157\156 \166\141lue='11'>\116o\x76e\x6d\x62er</\x6f\x70\x74i\157\x6e>
                                <\157p\x74\151o\156 \x76a\154u\145='12'>\104\x65\163\145\x6d\x62\145\162</\157\x70\164\x69\157\156>
                              </s\x65lec\164>
</\144iv>
                   
                          <\154ab\x65l >T\x61h\165\x6e</\154\141b\145l>
  <\144\x69v c\x6c\141s\x73='\143o\154-12 \x63\157\x6c-m\x64-3'>
 <\163\145\x6ce\x63t \x6e\x61\x6de='\164\141\150\165\156' i\144='\163\145\154\x65\x63t' \x63\x6ca\163s='\146\x6fr\155-\x63\157\x6e\164ro\x6c' \162\x65q\x75i\x72\145\x64>
                                <\x6fp\x74i\x6f\x6e v\x61\154\165\x65=''>P\x69l\x69\150</o\160t\151\157n>
                               
                <o\x70t\151\157n value='2021'>2021</\157\x70\x74i\x6fn>
                                <o\160t\151on va\x6cue='2022'>2022</\x6f\x70\164io\x6e>
                                <\x6f\x70\x74\x69\157\x6e va\154\165\x65='2023'>2023</\157\x70\x74io\x6e>
                <\x6f\160ti\157n \x76\141l\165\145='2024'>2024</\x6f\x70ti\157\x6e>
                                <\157\x70\164\151\157\156 \x76\x61\154\165\x65='2025'>2025</\157\x70\x74ion>
                           
                
                              </\163el\x65\143t>
</d\x69\x76>

                     <d\151\166 cla\x73\x73='co\x6c-12 co\154-\155d-3'>   
                   <\142\x75\x74\x74\x6f\x6e \164\171\x70\x65='\x73\x75bm\x69\164' \143la\163\163='b\164\156 b\x74\156-p\x72\151m\x61\162\171 \142\x74n-\163\x6d'><i cl\x61s\x73='\x66a \x66a-\144\x65\163k\164\x6fp'></\151> \124a\155\x70\x69\x6c\153a\156
                        </\x62\x75\164\164\157\156>
          
                       </\146\x6f\x72m>   </\x64\151\166>
        </\x64iv>    




</\x64\151v>

"; if(isset($_POST['id_anggota'])){ include "tang\147\x61\154\142ar\x75.p\150\160"; $idnya=cegah($_POST['id_anggota']); $tahun=cegah($_POST['tahun']); $bulan=cegah($_POST['bulan']); $namanya=mysqli_query($kon, "\x73\145\x6c\145c\x74 \156\x61m\141, \156i\x73, \151\144_\163is\x77\x61 \146\162\x6fm \x73\151\163\167a \x77\150\x65\x72e \151\144_\163\151\x73\167\x61='$idnya' "); $f=mysqli_fetch_array($namanya); if($bulan=='01'){$bulannya='Januari';} if($bulan=='02'){$bulannya='Februari';} if($bulan=='03'){$bulannya='Maret';} if($bulan=='04'){$bulannya='April';} if($bulan=='05'){$bulannya='Mei';} if($bulan=='06'){$bulannya='Juni';} if($bulan=='07'){$bulannya='Juli';} if($bulan=='08'){$bulannya='Agustus';} if($bulan=='09'){$bulannya='September';} if($bulan=='10'){$bulannya='Oktober';} if($bulan=='11'){$bulannya='November';} if($bulan=='12'){$bulannya='Desember';} $wulan=$bulan; $taun=$tahun; $jmlhari=date('t', mktime(0,0,0, $wulan,1, $taun)); $akhir=$jmlhari; $tglawal=$tahun . '-' .$bulan. '-01'; echo "

<\163\x74yl\145>
\164\x68{
  \160\x61\x64\x64\x69\156\x67:10\160\170 10px;
  f\157\156\164-\163\151z\145:14.5\160x;
\164\145\x78\x74-\141\x6c\151\x67n:\x63\145\x6e\x74\145r;
}
\x74\x64{
  \x70\x61d\x64\x69n\147:10\x70\x78;
  \x66\157\156\x74-\163\151\172\x65:14.5\x70\170;

}
</st\x79\x6c\x65>

\122\145\153a\160 Liter\x61\x73i $f[nama] \102\x75l\x61n $bulannya \124\x61h\165\x6e $tahun <b\162>
<\144i\166 c\x6ca\x73s='\164able-r\x65spo\156\163\151ve'>
<\144\x69\166 \143\x6c\141\163s='\x63o\x6c-12 \x63\157l-m\x64-12'>  
<\x74\141\142le \x63\154\x61\163\x73='t\141b\154\145-\x73\x74r\x69\x70\145\x64 \x74\141b\154e-\x62\157\x72\144\x65\x72\145\144 '>
<\164r><\x74\150>\124an\147g\141\154</th><\164\150>J\165\144\165l Buku</\164h><\164h>\127\141kt\165<\142\162>\113\151rim</\x74\150><th>\x4fp\164\151o\x6e</\164\150></\164\x72>"; $tgl=01; $mulai=$tglawal; for ($i=1 ; $i<=$akhir ; $i++ ){ $lengkap=tgl_ind($mulai); $hari=hari($mulai); if($hari=='Minggu'){$hari1='Minggu';} if($hari=='Senin'){$hari1='Senin';} if($hari=='Selasa'){$hari1='Selasa';} if($hari=='Rabu'){$hari1='Rabu';} if($hari=='Kamis'){$hari1='Kamis';} if($hari=='Jumat'){$hari1='Jumat';} if($hari=='Sabtu'){$hari1='Sabtu';} echo " 
  <\164\x72><\164\144>$hari1 $tgl</t\x64>"; 
if($hari1 == 'Sabtu'){ echo "
          <t\144>\x4f\106\x46</\x74d><\x74\144>\117\106\x46</\164d><\x74\144></\x74\144></\x74r>"; }else if($hari1 == 'Minggu'){ echo "
          <\164d>\117F\x46</\164\x64><\164\144>O\106F</\164d><td></\x74\144></\164\x72>"; }else{ $hariraya=mysqli_query($kon,"\163\145\154e\x63\x74 * \x66ro\155 \150\x61r\x69_\x62es\x61r \x77\x68\x65\x72e ta\x6e\x67g\x61\154='$mulai' "); $golek=mysqli_num_rows($hariraya); $hy=mysqli_fetch_array($hariraya); $hariizin=mysqli_query($kon,"se\154e\x63\164 * \146rom \151z\x69\x6e \x77\150\x65\x72\145 i\144_\141\x6e\x67go\x74a='$idnya' a\156\x64 ta\x6e\x67\x67\x61\154='$mulai' "); $carikan=mysqli_num_rows($hariizin); $ff=mysqli_fetch_array($hariizin); if($golek>0){ echo "
                              <\x74\144>$hy[jenis]</\164d><\x74\x64>$hy[jenis]</td><\x74\144></\164\144>"; }else if($carikan>0){ echo "
                              <\164\x64>$ff[izin]</\x74\144><\x74\x64>$ff[izin]</td><\164d></td>"; }else{ $sekarang= date('Y-m-d'); $alfa=$tahun . '-' .$bulan. '-'.$tgl; if (strtotime($alfa) > strtotime($sekarang)) { echo " <\x74\x64>-</\164\x64><\164d>-</\x74\x64><t\144></\x74d>"; } else { $masuk=mysqli_query($kon, "\163\x65\154\x65c\x74 \x6a\x75\x64\165l, i\x64_\154i\164\145\x72as\x69, \x77\141\x6b\x74\165 \x66r\x6fm \x6cit\x65\162a\163i \167\150e\x72\145 \x74\141\x6eg\x67\141\154='$mulai' \x61n\144 \151\x64_\x73\x69sw\x61='$idnya'  \157r\x64e\162 \x62y w\141\x6b\x74u \x44\x45\123C"); $s=mysqli_fetch_array($masuk); $carijudul=mysqli_num_rows($masuk); $kode22=$s['id_literasi']; $ft=sekolah($kode22, 'e'); if($carijudul>0){ echo " <t\x64 >$s[judul]</\164d><td>$s[waktu]</\x74\x64><\164d>
  <a \x68\x72\145f='?\x73\x74a\164\x65=d\145t\x61\x69\154\154\x69\x74\x65\x72\x61s\151&\147\150\x6e=$ft'>
<\142\165\x74\164on ty\160e='\x62\x75t\164\x6f\156' \143\x6c\x61ss='\x62\164\156 \x62\164\156-su\143\143\x65\x73s \x62t\156-sm'><i \x63\x6c\141\x73\x73='\x66\x61 \x66\x61-b\x6f\157\153'></i> \104e\164ai\154 
                        </\142\x75\164\x74\x6f\x6e></\x61>

  </\164d>"; }else{ echo " <\164d \x73ty\154e='c\157\154\x6f\x72:\x72ed'>T\x69d\141\x6b Li\x74\145\x72a\163\151</t\144><\164d \x73\164\x79\154\145='\x63\157\154o\162:\162\x65\x64'>-</\x74\x64><\164\x64>-</\x74d>"; } } } } echo "</\x74\x72>"; $mulai++; $tgl++; } } echo "
 
 </\x74abl\x65></\x64\x69\x76>
 
 
 
 
 
 
 
 </\x64\151v> 












"; } else if($_GET['state']=='rekapkbm'){ 
echo "
   <div \143\x6c\141\x73s='\x63\157\154-s\x6d-12'>
            
             <\x64\x69v c\154\141\x73s='\143\141\162d'>
                  <\x64iv \143las\163='car\x64-he\x61de\x72'>
                    <s\x74\x72\157ng>\122e\153\141p \x4b\145\x67\x69\x61t\141\156 \x42e\x6c\x61\x6a\x61r \115e\x6eg\141\152a\x72 (\x4b\x42\115)</s\164\162o\x6e\147>
        
      
                  </\x64\x69\x76>
        
      
        
        
       
                <\x64i\x76 \x63\154as\163='\143\x61r\144-b\x6f\x64\171'>

                    
        

<d\x69v cl\x61\163\x73='\143\x6fl 12'><l\141\142\x65\x6c \x66\x6f\162='t\x65x\x74-\151\156p\x75\x74' c\x6c\141\163\163=' f\157r\155-\x63ont\162o\x6c-\154\x61b\145\x6c' \163\164\171\154\145='\x63\x6f\154o\x72:\162\145d'>A\156\x64\x61 \144\x61p\x61\164 m\x65\x6ci\x68\141t \162ek\141p \155\145\x6e\x67i\153\x75t\151 \113\102\115 d\141l\x61\x6d sa\164\165 \x62\x75\154a\156, \113\145\164\151k\141 \141\x6e\144\141 \164i\x64a\x6b \x6d\145\156\x67iku\x74\x69 KB\x4d \155a\164\141 \160\145l\x61\152\x61\x72\x61n t\145rt\145\156\x74\165 \x73\x65\154am\141 3x (ti\x64\x61\153 b\145\162\x74\x75\x72\165t-\164\x75\x72ut) m\141\153a \141kan \x64\151\154\x61\x6b\x75ka\x6e pe\x6d\141\x6e\x67gila\x6e \117\x72\141\x6eg \164u\x61, \x61\164\x61\165 \x6a\151ka \x74i\144a\153 \x6d\145\x6e\x67\x69k\x75\x74\x69 \x4b\102M \163eba\x6ey\x61\x6b 15x \x64i \164\x6f\x74\141\154 \163\x65\x6d\x75\141 \x70elaja\x72\141\x6e \x6a\165g\141 ak\x61n \144\151\x6c\141ku\x6b\x61n p\145\x6da\x6e\147g\151lan o\x72a\156\x67 \x74\165a</\x6c\x61\x62\x65\154></d\x69\x76><\x62r>



      
      </d\151\x76>


 <\144\151\x76 \143la\163\x73='\143\141\162d'>
                      <d\151v \x63las\x73='c\x61r\x64-\150\x65\141\144\x65r'>
                        <\x73tr\x6f\156g>\x52ek\141\160 K\102M</\x73\164\162o\156\x67>
                       
                      </\x64i\x76>
            <d\151\x76 \143\154\141s\x73='car\144-\x62\157\x64\x79 \143ar\144-bl\x6fck'>
  <\x66\x6f\162\x6d \141c\x74\151\157\156='#' \x6d\145\x74\x68\x6f\x64='\x70os\164' c\154\141\163\x73='f\157\162\x6d-h\157\162\151\172\x6fntal'>

                       
<\x69n\x70\165t \164\x79\160\145='t\x65x\164' \151\144='\x74e\170\x74-\151n\x70\x75t' \x6e\x61\x6de='\151\144_\x61ngg\x6ft\141'  \143\x6cass='fo\x72m-\x63on\164ro\x6c' \x76\x61\x6c\x75\x65='$id_penggunanya' h\x69\144d\x65n>
        

  <\144\151\x76 \x63\x6c\141\x73s='c\x6fl-12 \143\157\x6c-m\144-12'>     
      <\x64\x69v c\x6c\141ss='\162\x6f\x77 \x66\157\162\155-\147\x72\x6fu\x70'>
                           <\154a\142\x65\154>B\165l\141\156</lab\x65\154>
 <\144\x69v \x63\154\141\x73s='\143\x6f\x6c-\155\144-3'>
              <\163\145\x6ce\x63t \x6e\141\155e='\x62ul\141\x6e' \151d='\163\145\154ect' \x63\154\x61\x73s='\x66o\162\x6d-c\157n\x74rol' r\x65\161u\151\162\x65\144>
                                <\x6f\x70t\151\157\156 \x76a\154u\145=''>P\x69l\151\150</o\x70\164\151\x6f\156>
                                <\x6f\160\x74\151\x6f\156 \166\x61\154ue='01'>Janu\x61r\x69</o\x70t\x69\157\156>
                                <\157\160\x74\x69on \166\141\154u\x65='02'>\106\145\142\162\x75\x61\162\x69</\157p\164\151on>
                                <\x6f\160t\x69\157\x6e \x76\x61l\x75\x65='03'>M\x61\162\x65t</\x6f\x70\164\151o\x6e>
                <\157\160\x74io\x6e \x76\141\x6c\165\x65='04'>\101p\162\x69l</op\x74i\x6f\156>
                                <\x6fp\x74ion va\154ue='05'>M\145i</\x6fp\164i\157\156>
                                <opti\157\x6e v\141\x6c\165\145='06'>J\165\156\x69</o\160\x74\151\x6f\156>
                <\157p\164\151\157n \x76al\x75e='07'>\112\x75\x6ci</o\x70\164\151\157\x6e>
                                <\x6f\x70\x74\x69\x6f\156 va\154\x75e='08'>\101\147us\x74\x75s</\x6fp\164\x69\157\x6e>
                                <o\160\164io\156 \x76\x61\154u\145='09'>\x53e\x70\164\145\x6db\145\x72</\x6f\x70\x74ion>
                <\157\x70\164\151o\156 \x76a\x6cue='10'>\117kto\142\x65\x72</\157\x70\x74i\157\156>
                                <o\160t\x69o\x6e \166a\x6cue='11'>\116o\166e\155\142\x65\162</\x6fptio\156>
                                <opti\157n \x76a\x6c\165\x65='12'>\104e\x73\x65\155be\x72</o\160\x74\x69on>
                              </\163\145\154\x65c\164>
</\x64\151\166>
                   
                          <\154a\x62\145l >\124a\x68\x75\156</\154a\x62\x65\x6c>
  <d\151\166 \x63\154a\163s='\x63\x6f\154-12 c\x6f\154-\x6d\x64-3'>
 <\x73\145\154\x65\x63\x74 \156\x61me='\x74\141\150\x75\x6e' \151\144='s\x65lec\164' \143l\141ss='for\x6d-c\x6f\x6e\164\x72\x6fl' \x72\x65\x71\165\x69\x72\x65\144>
                                <\157pti\x6fn val\x75\x65=''>\120\151\x6c\x69\x68</\157\160\x74i\157\x6e>
                               
                <op\x74\151\x6f\x6e \166alu\x65='2021'>2021</o\x70\x74\151\157\156>
                                <\157\160\164\x69on val\x75e='2022'>2022</o\x70\x74\x69o\x6e>
                                <\x6fp\x74i\x6f\x6e \166\141\154\165e='2023'>2023</o\160\x74\x69\x6f\x6e>
                <\157pt\151\x6fn \x76\141\154\x75e='2024'>2024</\x6f\x70\x74\151\157\156>
                                <\157\x70t\151o\x6e v\x61\154\165\145='2025'>2025</\x6f\x70ti\157\156>
                           
                
                              </\163el\145ct>
</\x64\151\x76>

                     <div \143\x6c\141\x73\163='\x63o\154-12 \x63o\154-\x6d\144-3'>   
                   <b\x75\164\x74on t\171p\145='\x73\x75\142\155\151\x74' \x63\x6c\141\x73\x73='b\x74\156 b\164\156-\160\162\151\x6d\x61\x72\x79 b\x74\x6e-\x73\155'><\x69 \143l\141s\163='\146\141 fa-\144e\x73\x6bto\x70'></\x69> \x54\x61m\160i\x6c\x6b\x61n
                        </b\165\164\164\157\156>
          
                       </\146\x6f\162m>   </\x64\x69v>
        </\x64\151\166>    




</\144\151\x76>

"; if(isset($_POST['id_anggota'])){ include "\x74\x61ng\x67\x61lb\141\x72u.\x70h\x70"; $idnya=cegah($_POST['id_anggota']); $tahun=cegah($_POST['tahun']); $bulan=cegah($_POST['bulan']); $namanya=mysqli_query($kon, "\163e\154\x65c\164 n\141m\141, ni\x73, \151\x64_s\x69\x73\167\141 \146\x72\x6f\155 \x73\x69\x73\167\141 w\150er\145 i\x64_\x73i\x73w\x61='$idnya' "); $f=mysqli_fetch_array($namanya); if($bulan=='01'){$bulannya='Januari';} if($bulan=='02'){$bulannya='Februari';} if($bulan=='03'){$bulannya='Maret';} if($bulan=='04'){$bulannya='April';} if($bulan=='05'){$bulannya='Mei';} if($bulan=='06'){$bulannya='Juni';} if($bulan=='07'){$bulannya='Juli';} if($bulan=='08'){$bulannya='Agustus';} if($bulan=='09'){$bulannya='September';} if($bulan=='10'){$bulannya='Oktober';} if($bulan=='11'){$bulannya='November';} if($bulan=='12'){$bulannya='Desember';} $wulan=$bulan; $taun=$tahun; $jmlhari=date('t', mktime(0,0,0, $wulan,1, $taun)); $akhir=$jmlhari; $tglawal=$tahun . '-' .$bulan. '-01'; echo "

<\x73\x74y\154\145>
\x74\150{
  \x70\141\144\x64i\x6e\147:10p\x78 10p\x78;
  f\157\x6e\164-\163\151\x7ae:14.5\160x;
\164\145\x78t-a\x6ci\x67\156:\143\x65n\x74e\162;
}
t\x64{
  p\x61\144\144in\147:10\160\x78;
  \x66\157\x6et-s\151z\145:14.5\160\170;

}
</\x73t\x79le>

Re\x6b\141\x70 \113B\x4d $f[nama] \102\x75\154\x61\156 $bulannya \x54\141\x68\x75n $tahun <b\x72>
<\x64\151\x76 c\154\x61\163\x73='\164\141\142l\x65-re\x73\160on\163\151\166\x65'>
<di\166 cla\x73\x73='c\157l-12 \x63\157l-m\x64-12'>  
<\164a\142\154\x65 \x63\154\x61\163s='\164a\x62l\145-\x73\x74\x72\151\160ed \x74a\142\154\145-\x62\157\162\x64\x65r\x65d '>
<\x74\162><t\150>\124a\156gg\x61l</\164\x68><\164h>P\145\x6c\x61\152\141\162a\156</t\x68></\164r>"; $tgl=01; $mulai=$tglawal; $alfanya=0; for ($i=1 ; $i<=$akhir ; $i++ ){ $lengkap=tgl_ind($mulai); $hari=hari($mulai); if($hari=='Minggu'){$hari1='Minggu';} if($hari=='Senin'){$hari1='Senin';} if($hari=='Selasa'){$hari1='Selasa';} if($hari=='Rabu'){$hari1='Rabu';} if($hari=='Kamis'){$hari1='Kamis';} if($hari=='Jumat'){$hari1='Jumat';} if($hari=='Sabtu'){$hari1='Sabtu';} echo " 
  <\164r><t\144>$hari1 $tgl</t\144>"; if($hari1 == 'Sabtu'){ echo "
          <t\x64>\x4f\x46\106</t\x64></\164r>"; }else if($hari1 == 'Minggu'){ echo "
          <\x74\x64>\x4f\x46\106</\164\x64></\x74r>"; }else{ $hariraya=mysqli_query($kon,"\x73\x65lect * \146ro\155 \x68\141r\x69_\x62e\163\x61\162 w\150\x65re \164\x61n\147\x67\x61l='$mulai' "); $golek=mysqli_num_rows($hariraya); $hy=mysqli_fetch_array($hariraya); $hariizin=mysqli_query($kon,"s\145l\145ct * \146r\157\x6d izin w\x68e\x72e \x69d_a\x6e\x67\x67\157t\141='$id_penggunanya' \x61n\144 \x74\x61\156\147\147\x61l='$mulai' "); $carikan=mysqli_num_rows($hariizin); $ff=mysqli_fetch_array($hariizin); if($golek>0){ echo "
                              <\x74d>$hy[jenis] ( $hy[keterangan] )</\164d>"; }else if($carikan>0){ echo "
                              <t\x64>$ff[izin]</\x74\144>"; }else{ $sekarang= date('Y-m-d'); $alfa=$tahun . '-' .$bulan. '-'.$tgl; if (strtotime($alfa) > strtotime($sekarang)) { echo " <t\144>-</\164\144>"; } else { $iz=mysqli_query($kon, "\163\x65l\145ct count(\151\144_\147\165ru) \141s \x6a\x6d\154p\145l\x61\152\x61\162a\156 \146\162\x6fm ja\144\167\141l w\150\145\162e \x68\x61\162\151='$hari' a\x6e\x64 \156\x61\155a_\153\145l\141\x73='$kelas'"); $eko=mysqli_fetch_array($iz); $jumlahpelajaran=$eko['jmlpelajaran'];
echo"<\x74d>"; $carijadwal=mysqli_query($kon, "\163\145l\x65c\x74 i\x64_\x67\x75r\x75, \x70e\x6ca\152\141r\141n \146\x72\157m \152\141\x64\x77\141\x6c w\x68\145\x72\x65 h\141r\151='$hari' a\156\x64 \x6ea\x6d\141_k\x65\154\141\163='$kelas' \157rd\145\x72 b\171 \155ula\151 \x41\123\103 "); $penjumlah=0; while($c=mysqli_fetch_array($carijadwal)) { $idgur=$c['id_guru']; $jj=mysqli_query($kon, "se\154e\143\x74 \x69\144_\162\165\x61\x6e\147b\145l\141j\141\162 \x66\162\157\x6d \x72ua\156gbe\x6c\x61\152ar \167\x68e\162\x65 \x69\144_\x67\165\x72\x75='$idgur' a\156d \164\141\156\x67\x67\x61\154='$mulai' \141nd \156\141m\x61_k\145\154\x61s='$kelas' "); $p=mysqli_fetch_array($jj); $carikel=mysqli_num_rows($jj); if($carikel>0){ $ruangannya=$p['id_ruangbelajar']; $cariabse1n=mysqli_query($kon, "\163e\x6c\x65\143\x74 i\x64_a\x6e\147g\x6ft\x61, \x6a\x61\155 \146\162\x6f\155 \x74\145\x6d\x70at\x61\142\x73\x65\156 w\x68\145\x72\145 \x69\x64_\155at\x65\162\151='$ruangannya' \x61\x6e\x64 \x69\144_\141\156\x67\147\x6f\164\141='$id_penggunanya' a\x6e\x64 i\144_\155a\x74\x65ri='$ruangannya' \x6f\162\144e\x72 by jam \101\123\x43"); $goleki=mysqli_num_rows($cariabse1n); $mx=mysqli_fetch_array($cariabse1n); if($goleki>0){ $kehadiran='Hadir ('.$mx['jam'].')'; $penjumlah++; }else{ $kehadiran="<\x6ca\142el s\x74y\x6ce='\x63\x6f\154o\x72:\x72\145\144;'>\101</\x6c\x61\x62\x65\154>"; $alfanya++; } }else{ $kehadiran="<\154a\142el \x73\x74yl\145='\143\157lo\162:\162e\144;'>J\x61\155 K\157\163\157n\147</\x6ca\142\145\x6c>"; $penjumlah++; } echo "$c[pelajaran] &nb\x73\160; &\x6e\142\x73p; | &\x6e\142\163\x70; &nb\163p; $kehadiran<\142\x72>



"; } } } } echo "</tr>"; $mulai++; $tgl++; } echo "
 
  <\x74r><\164\x64 \143\x6f\x6c\163\160a\156='2'>\x54o\x74\x61\154 \101\x6c\x66\141 KBM &\156\142s\x70; = &\x6eb\163\160; <l\141\142e\154 s\164y\154\145='\x63\x6fl\157r:\x72\x65\144'> $alfanya </l\141be\x6c></td> </\x74\x72>
 
 "; } echo "

 </\x74\x61\x62\154\145></\x64\151\166>
 
 
 
 
 
 
 
 </\x64\151\x76> 












"; } else if($_GET['state']=='detailliterasi'){ $kok=cegah($_GET['ghn']); include "\165b\x61h\x64a\164\x61.\x70\x68p"; $co=sekolah($kok, 'd'); $hk=mysqli_query($kon, "s\x65\154\x65\143t * \146\162\x6f\x6d l\x69\x74\145\x72a\x73i \167\x68\x65\x72\x65 id_l\x69\x74\x65r\141\163\151='$co'"); $r=mysqli_fetch_array($hk); echo "
   <\x64\x69\166 c\154\x61s\x73='\143\x6f\154-s\x6d-12'>
            
             <\144i\x76 c\x6cass='\x63\x61\x72\144'>
                  <\144iv \x63la\163s='\x63a\x72\x64-h\x65\141de\162'>
                    <\x73\x74\162\x6f\156g>Detai\154 \x4c\x61\x70\157r\x61\x6e Lite\162\141\x73i $tampi</\163\x74rong>
        
      
                  </di\166>
        
      
        
        
       
                <\x64\151\x76 \x63\154a\x73s='\143ar\x64-\x62o\144\x79'>

                    
        


<\144\151\x76 c\x6c\x61ss='\162\x6f\x77 \x66\157r\155-\147r\x6f\165\160'>

<\144i\x76 \143\154\x61\163s='\x63\x6fl \x63o\154-\155d-3'><\154\x61\x62e\154 f\x6f\162='\164\145x\x74-\151\x6ep\x75\164' cl\141\163\x73=' \146\x6frm-\143\x6f\x6e\164ro\x6c-\x6c\x61\x62e\x6c'>\112\165\144\165\154 B\165\x6b\x75 </l\x61\142e\x6c></\144iv>
<\x64\x69\x76 \x63\154\141s\163='\143o\154-12 \x63o\154-\155\x64-9'><\x69\156p\x75\164 \164y\160e='\164ext' \151\x64='t\x65\170\x74-i\x6e\x70\x75t' n\x61m\x65='\x6au\x64u\x6c'  c\x6cass='\x66\157\x72\155-co\156\x74\x72\157\x6c' \x64\151sa\x62\154\145d v\x61l\165\x65='$r[judul]'><\x73\x6da\154\x6c \143\x6cas\163='\146\x6f\162m-text \x74ext-m\x75t\x65d'></smal\x6c></d\x69\x76>
</d\151\x76>


<\x64\x69\166 \x63\x6c\x61\x73\x73='\x72\x6fw \146\157\162\x6d-gro\x75p'>
                        <\144\x69v \143la\x73\163='\143o\x6c \x63o\x6c-\155d-3'><\x6c\141\142\145l \x66\x6f\162='\164\x65\x78t-in\160u\164' \x63\x6ca\x73\x73=' \146\x6f\162m-c\x6f\156\164r\157\x6c-l\141\142\145\154'>H\x61\154a\x6d\x61\156</\154\141\142\x65l></d\151\x76>
                        <\144\x69\166 \143\154\141\x73s='\143\157\154-12 \x63o\x6c-\155\144-9'><\x69n\160ut \164\171\160\145='\164e\170\x74' \151d='t\x65\170t-\151n\x70u\x74' n\141m\145='\x68\141\x6c\x61\155a\x6e'  \x63l\141\163s='\146\157\162\155-\x63o\156\x74r\157l'  \144i\163\141\x62\x6c\145\144 \x76a\x6cu\x65='$r[halaman]'></\x64\151\x76>
                      </\x64\x69\166>


<\x64\151\x76 \x63lass='r\157\x77 \x66o\162\155-\147\x72\x6f\x75p'>
                        <d\x69\x76 \143l\x61ss='\x63\x6fl \x63o\154-m\144-3'><\x6c\x61\x62\145l \x66o\x72='\x74\145\x78\164-\151npu\164' \x63\154a\x73\163=' fo\x72\155-\x63on\164r\157\x6c-\154\x61\x62\x65\x6c'>\122\x69\x6e\x67\x6b\141\163\x61\156 \x49\x73\151 \x42u\153\x75</\x6c\141\142e\154></d\x69\166>
                          <di\166 cl\x61\x73s='\x63ol-12 \143o\154-\x6dd-9'><t\x65\170\164a\x72e\141 \x69d='\164\145x\164-i\156\160\x75\164' n\x61m\145='ri\x6e\x67\x6b\141s\141\156'  \x63lass='\146\157r\155-\143ont\162\157l' \x64\x69\163\x61bl\145\144 >$r[ringkasan]</\x74e\170\x74\141\162\x65a></\144\151v>
                      </\x64\151v>

<d\151v cl\x61s\163='\x72\x6fw \146\x6f\x72\155-\x67\x72\157\165\160'>
                        <\144\151\x76 \x63\x6c\141s\163='\x63\x6fl \x63o\x6c-m\144-3'><l\141\x62e\x6c for='tex\x74-\151\156\160\165t' \143\154\x61\x73\x73=' form-c\157\x6et\x72o\x6c-\x6c\x61\x62\x65\154'>\x4f\160\x69\156i \x41\x6e\144a</\154a\x62\x65l></d\x69\166>
                          <d\151\166 \143\154\141\163\x73='\143\157\154-12 col-m\144-9'><\164ex\x74\141\162e\x61 \151\x64='\x74ext-i\156\x70\165\164' \156\141\155e='\163\x69\156\157\160sis'  \x63\154\141\x73\x73='\146\x6f\162\155-\143o\x6e\x74rol' \144i\x73\141b\154\145\144>$r[sinopsis]</t\145\170t\x61\162e\x61></\144iv>
                      </\x64i\166>

<\x64iv \143\154\x61s\163='\162\157w f\x6frm-\x67\162\157\x75p'>
                        <\x64\151\166 \143\x6c\141\x73\163='co\154 c\x6fl-m\x64-3'><l\x61\142e\x6c f\x6f\x72='\164\x65xt-\x69\x6ep\x75\x74' \143l\141\163\163=' \x66\157\162\x6d-con\x74r\x6f\x6c-l\x61\x62el'>\127akt\165 \x4bi\x72\151\155</l\x61b\145\154></di\166>
                        <d\x69v \143\x6c\141\163\163='\143\157l-12 \x63\157\154-\x6dd-9'><inp\165\164 t\x79pe='\164e\170\x74' \151d='te\170\164-inp\165t' n\x61\x6de='\x68\141\154\x61\155\x61\x6e'  \x63\154\x61\x73s='\x66\157\x72m-cont\x72\x6fl'  d\x69\x73\141\142\x6c\145d v\141\x6c\165\145='$r[waktu] W\x49\102'></d\151\166>
                      </div>
                 
   
   <d\x69\x76 \x63\154\141\x73s='\x63\141\x72\x64-\x66\157\x6f\164\145\x72'>
   <\141 \150re\146='?\x73ta\x74\145=l\x69\164\x65ras\x69'>
               <\x62u\164\164o\156 \x74\171\160e='b\x75\x74\164\x6f\156' c\x6cas\x73='b\164n \x62\x74\x6e-\144\141nger b\164n-\x73m'><\x69 \143l\141\163\x73='\x66a f\141-\x72\145\160\154\x79'></\x69> \x4b\145\x6db\x61\x6c\151
                    </\x62utt\x6f\156>
      </\x61>
                  
                  </\x64\x69\x76>   





      
      </\144\151\166>
      "; } elseif($_GET['state']=='password'){ if(isset($_POST['edit'])){ include "u\x62\x61hd\x61t\141.\x70\150\x70"; $sql=mysqli_query($kon,"\163el\x65\143\164 * f\162\x6f\x6d \x73\151\163\x77\x61 \167\150\x65\162\145 \151d_\x73\x69\163\167\141='$id_penggunanya'"); $e=mysqli_fetch_array($sql); $pass_lama=$_POST['txtpasslama']; $pass_baru=$_POST['txtpassbaru'];
$pass_ulangi=$_POST['txtpassulangi']; $data=sekolah($e['password'], 'd'); $passnyaa=sekolah($pass_ulangi, 'e'); if($pass_lama<>$data){ echo"
		
<\x64\151\x76 \143\x6c\x61\x73\x73='\x63\x6fl-s\x6d-12'>
                <\144\x69\x76 \143\154a\x73\x73='\x61\x6c\145rt  \141\x6cer\164-\x64\x61n\147\145r \141\154\x65\162t-\144\151\x73m\x69s\163\151b\154\145 f\x61d\x65 s\150\x6fw' \162ole='\141le\162\x74'>
                  <\163\160\141\156 c\154\x61\163\163='\x62\141\x64\147e \x62\141\144\147\x65-\160il\154 \142\x61\144g\145-\x64ang\145r'>G\141g\141l</\x73p\141\156> \120as\x73wo\162\144 \x4c\141m\x61 \x53\141\x6c\141h!!!
                    <\142u\x74to\156 \164y\x70\x65='b\165t\x74\x6f\x6e' cl\x61s\x73='\x63\x6c\157\x73\145' \144\x61\x74\x61-\144\151\163\x6dis\163='al\x65\162\x74' a\x72\151a-\154\x61be\154='\x43lo\163\145'>
                        <\x73p\141n \141\162i\141-\x68\x69\x64de\156='tr\165e'>&ti\x6d\145s;</\163\x70\141n>
                    </\142ut\164\x6f\156>
                </\x64i\x76>
            </\x64\x69\166>"; }else{ if($pass_baru<>$pass_ulangi){ echo"
<di\x76 \143\154\141ss='col-\x73m-12'>
                <d\151v c\154\x61\x73\163='\141\154\x65\162\x74  \141\x6c\145\x72\x74-\144\x61\156\x67e\x72 \x61\154\x65\x72\164-\144i\163\x6di\163s\151\142le f\141\x64e sh\x6fw' \162\x6f\x6c\x65='a\x6c\145r\164'>
                  <\163\160\x61\156 \143\154\141ss='bad\x67\x65 \x62\141\x64\x67\x65-pi\x6c\154 b\141\x64\147\x65-\x64\x61ng\x65r'>\x47\x61ga\x6c</\x73\x70\141\x6e> \x50\141s\163\167ord b\141r\165 \144\141n \x55l\141ng\151 \x50\x61\163\x73\167\x6f\x72d \x54\151d\x61k S\141\x6da!!!
                    <b\165\x74\x74\157n \164y\x70\x65='\142\165\164\164on' \143\x6c\141\163\163='\x63lose' \x64\x61t\x61-d\151s\x6d\x69\163\x73='a\154\x65\162t' a\162\151a-\x6c\141\142\x65l='\103\154o\x73\145'>
                        <\x73\160\x61\156 \x61r\x69a-\150i\x64\144\145\x6e='\164\x72\165\145'>&t\151\x6de\163;</s\x70\141\156>
                    </\142\165\164\x74\x6f\156>
                </\x64i\x76>
            </\x64i\x76>"; }else{ mysqli_query($kon,"\165\160\x64\141\164\145 s\151\163w\x61 \163et \x70\141\x73s\167\157r\x64='$passnyaa' \167\150\145\162e \x69\144_\163\151\x73wa='$id_penggunanya'"); echo "
			
							 <\144\151v c\154ass='\x63o\x6c-\x73\x6d-12'>
                			<\x64\x69\166 \x63\154as\163='\x61\x6ce\x72\x74  \x61\x6c\x65\162t-\163\x75\x63\x63\145s\x73 al\x65\x72\x74-di\x73\155\151s\x73\151\142\154\145 f\141d\145 s\x68\x6fw' \162ol\x65='al\x65\x72t'>
                  			 <\163\x70\x61n \143\x6c\x61\x73\163='b\x61\144ge \x62\141\x64\147\x65-\160\x69\154l \x62\141d\147e-\x73\165c\143\145\x73s'>\x53\x75\143\x63e\x73s</\163\160an> Pa\x73\163\167\157rd B\x65\162\150\x61s\151\154 \104i\x75\x62ah.
                    		<\x62u\x74t\x6f\x6e \x74y\160\145='b\x75\164\164\x6fn' \143\154\x61\x73\163='clo\x73\145' \144\141t\x61-\144\151\x73\155\151s\x73='al\145\x72\x74' \x61\x72\151\141-\154\141\142\x65l='C\154os\145'>
                       		 <\163pa\x6e ar\x69\141-\150\151d\144\145\156='\x74\x72\165\145'>&\x74im\145s;</\163pa\156>
                   			 </\x62\x75\x74\x74o\x6e>
                				</\x64\x69v>
           					 </di\166>
						 
							"; } } } echo"	 

<di\x76 \143\154as\x73='car\x64'>
                    <\x64iv \x63l\x61\x73\163='\143a\x72\x64-\150\x65\x61\x64\x65\162'>
        	<\151 \x63l\x61s\x73='\x6d\x72-2 \146\x61 \146a-\x61\154\151g\156-j\x75\163ti\x66\171'></\151>
                        <\163tron\x67 \143\x6cass='\143\x61\162d-\x74\151\x74\x6c\145'>\125\142\141\x68 \120\x61\x73s\167\x6fr\144 </s\164r\x6fn\x67>
                    </d\x69v>
                    <\144\x69\166 \143\154\x61s\x73='\143\x61\162\144-\142\157\144\171'>

                        <\144\151\x76 \143\x6c\x61\x73s='\x66\x6f\x6e\x74aw\x65\x73o\x6d\x65-\151con-\154i\163\x74'>
            
            
			
			
<fo\x72m ac\x74\151\x6f\156='' \x6d\145\x74\150\157\x64='\160o\x73t' \x63\x6c\x61s\163='f\x6fr\x6d-\x68o\162\151zo\x6e\x74al'>
                          
<\151\x6ep\165\x74 \164\x79\160\x65='\164\x65\170t' \156\141m\x65='e\144\x69t' \x68id\x64en>
			   <\x64\x69v \143\x6c\x61\x73s='\x72o\167 fo\162m-\x67r\157\x75\160'>
                            <\x64\151\x76 \x63\154a\x73s='c\157\154 \143o\154-\x6dd-3'><\154ab\x65l \146o\162='\x74\145x\164-i\156\x70\x75t' c\154\x61\x73s=' \x66o\x72m-\x63\x6fn\x74\162\x6f\x6c-\x6c\141\x62\x65\154'>\115a\x73u\x6b\x6b\141\156 \x50ass\167o\x72\x64 \x4c\141\155a</\x6c\x61b\145\154></\144\x69v>
                            <d\151\166 \x63l\141\163s='\x63\157l-12 c\157l-\x6d\144-9'><i\156\x70u\x74 \164\x79\160\x65='\x74\x65\170\164' \x69\x64='t\x65\170\164-\151\156\x70\165\x74' \x6e\141\155\x65='\x74\170\164\160a\163\163\x6ca\x6d\x61'  c\154\x61\163\x73='\x66or\x6d-\x63ont\x72\x6f\x6c' r\x65qu\151\x72\145d><\163\155al\154 \143l\x61\x73\163='\146or\x6d-\x74\x65\170\164 t\x65\x78\164-\x6d\165\x74\145\x64'></s\155a\154l></\144\151\166>
                          </\144i\x76>


			 <\144iv c\154\141\163s='\x72\x6f\x77 \146\157\162m-\147\x72\157\165\160'>
                            <\144iv \x63\154\141\163\163='\143\x6f\154 \143ol-\x6d\144-3'><\154\x61b\145\x6c \x66\157\x72='t\x65\170\164-\151\156\x70\x75\164' \143l\x61\x73s=' f\x6fr\155-\x63\157\156\x74\x72\x6f\x6c-\x6c\x61\x62\145l'>M\141\163\x75\x6b\153\141\156 \x50\x61\163\163w\157r\x64 \102\141ru</l\141\142\x65l></\x64\x69\x76>
                            <\x64i\166 clas\163='c\157l-12 \143\157\154-\x6dd-9'><\x69n\160\165\x74 \x74\x79\x70\x65='te\170\x74'  \151\x64='\160s\x77' \156am\145='\x74\x78\x74p\x61\163\x73\x62\x61\162\165' \143\154\x61s\163='fo\x72\x6d-\143\x6f\156\x74\x72o\x6c' \x72\x65\161u\151r\145\x64><s\155a\x6c\154 \143\x6ca\163s='\x66\157r\x6d-t\x65x\164 \164\145\170t-\x6d\165\x74ed'></\163m\x61ll></\x64i\166>
                          </\144\151\x76>

			 <\x64\151v cl\x61\163s='\162o\x77 f\x6f\162m-gro\x75p'>
                            <di\166 \143l\141\163s='\143o\x6c \x63\157l-\155\144-3'><\154\141b\x65\x6c \146\157\162='\164\x65\170t-i\156p\165\164' c\154\141\x73\x73=' \146or\x6d-c\157n\x74r\x6fl-lab\x65\x6c'>\x55\154\x61\156g\x69 \x50a\x73\163w\157\x72\x64 \102a\x72u</l\141\142\x65l></d\151\166>
                            <\x64i\166 \143\x6c\141\x73\x73='\143\x6f\154-12 \143\x6f\x6c-m\x64-9'><i\156p\x75t \164\x79\x70\x65='\x74\145\170\164' \x69d='text-\x69\156p\x75t' na\x6d\x65='t\170\164\160a\x73\x73u\x6c\x61\156g\151' cl\x61\163\x73='\146o\x72m-c\x6fn\164\162o\x6c' r\145\161\x75\x69\x72\x65\x64><\x73\155\x61\154l \x63\x6c\141\163\163='fo\x72m-t\x65\170\164 \x74\145\x78\164-m\165\164\145\x64'></\163\155all></d\151\x76>
                          </\144\151\166>

			 



                     
		   
		   <\144i\166 \143\x6cas\x73='\x63a\x72d-f\x6f\x6f\x74er'>
                   <\142\x75\x74\164o\x6e t\171\160\x65='\163\x75b\155\151t' \143\x6c\141s\x73='b\164\x6e bt\x6e-p\162imar\171 \x62\x74\156-sm' \x6f\x6eclic\153='v\x61\x6c\x69\x64\141\x74\x69\157\x6e()'><i \x63las\x73='\x66\141 fa-s\141\x76e'></\x69> \x53\x69\x6d\x70\x61\156
                        </\x62u\x74\164\157\156>
                       </\146o\x72\155>   
                      </di\x76>			
			
			
			
			
	
</\x64\151v>

			
			
 		
        </\x64\x69v> 
		</\144\151v> 



<\163c\162i\x70t \x74y\160e='\x74\x65\x78t/\152\141\166\x61\x73\x63\162\151\160\164'>
\146u\156\x63\164\151\x6f\x6e \166\x61\x6c\x69\x64a\x74io\x6e(){
  var \x76\x61\154\151\144\141\x73\151\110\165r\x75\x66 = /^[\x61-\x7a\101-\1320-9]+$/;
  v\x61\162 \156\x61\x6da = \x64o\x63u\x6de\x6e\164.ge\164E\x6c\145\155\x65n\x74ByI\144('\160s\167');
  \151f (\156\141\155a.\x76\x61lu\x65.\x6d\x61t\143h(\x76\x61\154\x69\144\x61\163i\x48ur\165f)) {

  } \x65lse {
      \141\154\145\x72\x74('Ti\144ak d\x69\151\x6ai\156\x6ba\156 \x6bara\153te\x72 s\145\x6c\141\x69\156 \141\x6eg\x6b\x61 \144\x61\156 \150u\162\x75f');
      \156\141\155\141.va\154\x75\145='';
      n\141m\141.\146oc\165\x73();
      r\x65\x74\x75rn fa\x6c\163e;
  }
}
</s\x63ript>





		"; } elseif($_GET['state']=='keluar'){ session_destroy(); $cookie = $_COOKIE['username']; mysqli_query($kon, "\104\x45\114\x45\x54E \x46\122\117\x4d \x6fn_\157\156\x6c\151n\145 \127\x48\x45\122E \157_\143\x6f\157\x6b\x69\145 = '$cookie'");  
setcookie('username','',time());  
setcookie('password','',time());  
echo "<\163\143\162\151p\164>;\x77\x69ndow.l\157\x63\141\164\x69\157\156='i\x6e\x64\x65\x78.\x70\150\x70'</\x73cr\x69\x70\164>"; } elseif($_GET['state']=='tugas'){ include "tan\147\147a\x6c\142a\162u.\x70\150p"; echo"
<\163\143\x72\151\x70\x74 \x74\171p\145='\164\x65\x78t/\152av\141\x73c\162\x69\160\x74' \163\x72c='\x6as/\152\161\x75\x65\162\171-3.2.1.m\x69\156.\x6as'></sc\162i\160t> 	
	
	
<\x6c\151n\x6b r\145l='\163t\171l\145\163\x68\145\145t' hr\145\x66='\x61s\163et\x73/\143\163\x73/\x6c\151b/d\141\164\x61ta\x62\x6c\145/da\x74aT\141bl\x65s.\142oo\x74\x73\164\162\141\x70.m\151n.\x63\x73\x73'>

 <\x64i\x76 c\x6c\141\x73\163='\143a\162\144'>
					
                   
					  
                <\144i\x76 \x63\154\x61\x73\163='\x63\x61r\144-\142o\144y \x63\x61rd-\142\154\x6f\143\x6b'>

</\144\x69\x76>
</\x64iv>
            <div c\x6c\141\x73\163='c\157l-\x73\155-12'>
                
                 <d\151\166 c\x6c\x61\163\x73='ca\162d'>
                      <\x64i\166 \x63\x6ca\x73\x73='\143\141rd-\150\145ad\145\162'>
                        <s\x74\x72\x6f\x6e\147>\104\141\146\164\x61r \124ug\141s &n\x62s\x70;  &n\142s\160;  &n\142s\x70;  &\x6e\142sp; </st\162\157n\147>
                      
					 
					  
					  
					  </\144\151v>
					  
							  
					  
					  
					  
					  
					  
					  
                      <d\x69v \143\x6c\x61ss='\143a\x72\144-b\157d\x79 \143\141\x72d-\142l\x6f\x63\x6b'>
				<\x6cin\153 \x72\x65\154='\163\164\x79\x6c\145sh\x65et' h\x72e\x66='\x63\x73\163/d\x61\x74\x61\x74\x61\142le/d\x61t\x61\x54\141\x62\154\x65\x73.bo\x6f\164\x73t\162\141\160.\155in.\x63\163s'>
	
	
	
	 <\x74abl\x65 id='b\x6fo\x74\163tr\141p-\x64\141ta-\x74able' c\154\141\x73\163='\x74\141b\x6c\145 \164\x61\142l\x65-\163\164\x72\151\x70\145\x64 t\x61b\154e-\x62\157\162\x64\145\x72\145\x64 \164\x61bl\x65-res\160on\163\151\x76\145'>
                    <\x74\150ea\x64>
				
			<t\162><t\x68>\x4e\x6f</\x74\150><\x74h>J\165\x64\165\x6c \x54u\147\x61\x73</t\x68><\164\150>\124\141\x6e\x67\147a\x6c</\164\150><t\x68>P\145\154\141\152a\x72an</\164\x68><t\150>\107\165r\165 \115\x61\160e\x6c</th><\164\x68>Pi\154\x69\150\141\156</t\x68></t\x72>
				</t\x68\145\x61\x64> 
				<\164b\157\144\x79>"; $asq=mysqli_query($kon,"s\x65\154e\143t * \146\162o\155 \x74u\147\141s_\141kt\x69\146 \x77h\145\x72\145 \x69\144_kel\x61\x73='$id_kelas' \141\x6ed \x73t\x61\x74\165\163='1' "); $no=1; while($b=mysqli_fetch_array($asq)){ $kirim=$b['tanggal']; $namatugasnya=mysqli_query($kon, "\x73\x65\x6c\x65\143\x74 \x6e\x61\x6d\x61_tug\141\x73, k\157\x64\x65 \x66\x72\x6f\155 \164u\x67\x61\x73 \167\x68er\145 \x6bo\x64\145='$b[kode]' g\162\x6f\165\160 \142\x79 \156a\155a_\164u\147\x61s"); $qr=mysqli_fetch_array($namatugasnya); $pelajarannya=mysqli_query($kon, "\163\x65l\145c\x74 * \x66\x72\157m \x70e\x6c\141\152\141r\x61n w\x68\145\x72\145 \151\x64_\x70\x65\x6c\141j\141ra\156='$b[id_mapel]'"); $r=mysqli_fetch_array($pelajarannya); $cariguru=mysqli_query($kon, "se\x6ce\143\x74 \156\141\x6d\141, i\144_\x61\156\x67\147\157\x74\x61 \x66r\x6f\155 a\156\147got\x61 w\x68\x65\x72e \x69\x64_\141\156\x67g\157\164\x61='$b[id_guru]'"); $tk1=mysqli_fetch_array($cariguru); echo "
			<\164\x72><\x74\144>$no</t\x64><t\144>$qr[nama_tugas]</\164d><t\x64>"; echo tgl_ind($kirim); echo "</td><\164\144>$r[nama_pelajaran]</t\144><\x74\x64>$tk1[nama]</t\x64><\x74d>
			
			"; $ceknilai=mysqli_query($kon, "select * \146\x72\157m \162\141\x70\157\x72\x74_t\x75g\x61\x73 \x77h\x65r\145 k\x6f\x64e='$b[kode]' a\x6ed n\x69\x73='$nis' \141nd \x6ei\x6c\141i > '0' "); $hasilnya=mysqli_num_rows($ceknilai); if($hasilnya>0){ echo "
		
			<\142\x75\164ton \x74\171\160\x65='\x62\165t\x74\157n' c\x6c\141s\163='\142\x74n \x62\x74n-\x6f\165\164\154\151\156\145-\x73\x65\x63\157\x6e\x64\x61\x72\171 btn-\x73\155'><\x69 \143la\x73\x73='\146a \x66\141-b\141n'></i>&\156b\163\160 \123\165da\150 \x44i Nila\x69</\142\x75\x74\x74\157n> "; }else{ echo "
			<a h\x72e\x66='?\x73t\141te=k\x65\x72jaka\x6e&\151\144\x67\x75\162\165=$b[id_guru]&i\x64\155\x61p\x65\154=$b[id_mapel]&\153o\x64\145=$b[kode]&i\x64\x6b\145l\x61\163=$id_kelas'>
			<b\165\x74\x74\157\156 \x74\171pe='\142\165\x74t\157\x6e' \143lass='\142\x74\x6e \142tn-\x6f\165\164\x6c\x69\x6e\145-\x64a\x6eg\x65\x72 btn-sm'><i cla\x73\163='\146a f\141-edi\164'></\x69>&\156bs\x70 K\145r\x6aa\153a\x6e</\x62\165\164\x74o\x6e></a> "; } echo "
			
			</t\144></\164\162>"; $no++; } echo "
			</\x74\142\157d\171>   
            </\164\141bl\145>
	
	
	
	
	
					  
					  
			         
                    </\144\151\166>

        </\x64\x69v>
    </\144\151\166>
	</\x64\151\166>
	
	
	<\x73\143\x72\x69p\164 s\162\x63='\152\x73/\144\x61ta-t\141\142le/\144atat\x61b\154\145s.min.j\x73'></\163c\x72i\160\164>
    <\163cr\x69p\164 sr\x63='\x6a\163/d\141t\x61-\164\141\x62\x6ce/d\141\x74a\124ab\154es.bo\157ts\164\162ap.\x6d\151\x6e.j\x73'></\x73cr\x69\x70\164>
     <\x73\143\x72\151\x70\x74 \x73r\x63='\152s/\x64\x61\x74\x61-\164ab\154e/\144a\x74\x61t\x61\x62\154\x65s-i\156i\164.js'></s\143r\x69\x70t>

    <\x73\143\x72\x69\x70t \x74y\x70e='\164\145x\x74/j\141\x76\x61script'>
        $(\144\x6f\x63\165m\145\x6e\164).\162\145\x61\x64\171(\x66\x75n\143t\x69\x6fn() {
          $('#\x62o\157ts\x74\x72\141p-\x64\141\x74\x61-\x74a\142l\145-\145x\x70\x6f\162\x74').D\141taT\x61\142le();
        } );
    </\x73c\x72i\160\164> 
	"; } elseif($_GET['state']=='kerjakan'){ $dapatkode=cegah($_GET['kode']); $kodekelas=cegah($_GET['idkelas']); $kodemapel=cegah($_GET['idmapel']); $kodeguruu=cegah($_GET['idguru']); $tg=mysqli_query($kon, "sel\x65c\x74 * f\162\x6f\155 \x74\x75\147\141s \x77\150\145\x72\145 ko\144e='$dapatkode' "); while($r=mysqli_fetch_array($tg)){ $rere=mysqli_query($kon, "\163el\145ct * \146\x72om \152\167\x62t\x75\147\x61\x73 \167he\x72\145 \153\157\144e='$dapatkode'
		 a\156\x64 n\157_\163\157\x61\154='$r[no_soal]' 
		 \x61n\x64 id_s\x69\163\167\x61='$id_penggunanya'  "); $ketemu=mysqli_num_rows($rere); if($ketemu>0){ }else{ mysqli_query($kon, "I\116\x53\x45\122\x54 \111N\124\117 jw\x62t\x75\x67a\163
(id_\147\x75\162\x75,id_\153\145\154\x61\163,\151d_m\141\160e\x6c,i\144_\x73\x69\x73\167\141,ja\167\x61\142\x61n,\156\157_\x73\157a\154,\153\157\144\x65)
			 VA\114\125\105\123 ('$kodeguruu','$kodekelas','$kodemapel',
			'$id_penggunanya','','$r[no_soal]','$dapatkode'
			)")or die (mysqli_error($kon)); } } $tg2=mysqli_query($kon, "\x73ele\x63\x74 * \x66\x72\157m \164u\147a\x73 w\x68\145re \x6b\157de='$dapatkode' "); $r2=mysqli_fetch_array($tg2); echo"
 
	 
	    <\x64iv c\154\141\x73s='\x63ol-\163\x6d-12'>
                
                 <\x64\x69v c\x6c\141\163s='\x63a\162d'>
                      <\x64\151\x76 c\154a\x73\x73='\x63\141\162d-\150\x65\x61\x64e\x72'>
                        <\x73tron\147>$r2[nama_tugas]</\x73t\x72\x6f\156\x67>
                      </di\x76>
		  <\144iv \x63\x6c\141s\x73='\x63\141\x72\144-\x62o\x64\x79 \x63a\x72d-b\x6c\157\x63k'>
	 
	 
	 <\163\143\x72\x69\160t \163r\x63='\152\x73/\x6a\x71\x75\x65\162y-3.2.1.m\151n.\152\163' \164\x79\x70\x65='\x74ext/\x6a\141\x76\141\x73\x63\162\151\x70t'></\x73cri\x70\164>

<\164\141bl\145 \x69\x64='\x62\x6f\157\164s\164r\141\160-dat\141-\x74ab\154\145' cl\141\x73\x73='\164\x61\142le ta\142\154\145-stri\160\x65d \x74\x61\142\154\x65-b\157r\x64\x65\x72ed \164\x61b\x6ce-\162e\163\160\x6fn\x73\151v\145'>
                    <the\x61d>
			<\x74r \141\x6c\151\x67\x6e='\x63\x65n\x74\145\162'><th>\116\x6f \x53\157\x61\154</\x74\150><th>\x50\x65r\164\141\x6eya\141\156</t\x68><\x74h>S\164\141\164\x75\x73</\x74h> <\x74\x68>\117\160\163i</\x74\x68></\x74\x72>
			
			</t\x68\x65\x61d> 
				<\164\142\157dy>"; $sql97=mysqli_query($kon, "\163\145le\x63t * \x66\x72\157\155 \164\x75\147a\x73 \x77h\x65\x72\145 k\x6f\x64e='$dapatkode' or\x64e\x72 \x62\x79 \x6eo_\x73\x6fal \x61s\x63"); while($f=mysqli_fetch_array($sql97)){ $sql97w1=mysqli_query($kon, "\163e\x6c\145ct * \x66\162\x6f\x6d jwbt\165g\141\x73 \x77\x68e\162e \x6bo\144\145='$dapatkode' \x61nd \x69\144_\163\151sw\x61='$id_penggunanya'
		\x61\x6ed n\157_s\157\x61\x6c='$f[no_soal]'"); $u=mysqli_fetch_array($sql97w1); if(empty($u['jawaban'])){ $status='<font color=red>Belum di Jawab </font>'; }else{ $status='Terjawab'; } echo "

<\x74\x72><t\x64>$f[no_soal]</\x74\x64><\164d>$f[soal]</\164d><t\x64>$status</\x74d><\x74d>

<\141 hr\x65\x66='?\163\x74\141t\x65=menj\x77\142&\153\157d\x65=$f[kode]&\x6eo\x73o\141\x6c=$f[no_soal]'>
<\142\x75\x74\x74\157\156 \x74\171\160\145='but\x74o\156' c\154\141\163\163='\142\x74\156 b\164n-\157\x75t\154\x69\156e-d\141\156\147\x65\162 \x62\x74\156-s\x6d'><\151 cla\x73\x73='fa \x66\x61-\x65\144i\x74'></\x69>&\x6e\x62s\160 J\x61wa\x62</\142u\164\x74o\x6e></a>
			


</t\144></\164r>
"; } echo "
			 </\x74\x62\157\144y>   
            </\x74\141bl\x65>
			
		</\x64iv>
		
	
					  </d\x69v>
					
					  

		";
} elseif($_GET['state']=='menjwb'){ $cod=cegah($_GET['kode']); $numn=cegah($_GET['nosoal']); echo"
	<s\164\171le>
.\x68\x69d\x64\x65\156{
	v\151\x73\151\x62\x69l\151\x74\171: \x68\151\144\x64e\156;

}
</s\x74\171\x6c\145>
<s\143\162i\160\x74 \164\171\x70\x65='\164e\170\164/\x6a\141v\141scr\151\160\x74' s\162c='\x6a\163/\164\x69\x6ey\155\x63\145/\152\161\165\145\x72\x79.tin\171\x6d\143e.m\151n.j\163'></\163\x63r\x69\x70t>
<\163c\x72\x69p\x74 \164\x79p\145='\x74\145\x78t/j\x61\166\141\x73c\162ipt' \163\162c='\152\x73/\x74\x69\156\x79\155\x63e/\164\x69\x6e\x79\x6d\x63\x65.\x6din.\152\x73'></\x73\143ri\160\164>
<sc\162i\160t \x74\171p\x65='tex\x74/\152\141\x76\x61sc\162\151p\x74' src='\152\163/\164i\156\x79\155c\145/e\144\x69\164\155c\145.\152\x73'></s\x63\x72\x69p\164>
	  <\x64\x69\166 c\x6c\x61\x73\163='ca\x72\144'>
					
                   
					  
                <\x64iv \x63\x6c\x61\x73\163='\143ar\x64-\142\x6f\x64\x79 \x63a\162\144-\142l\x6f\x63\x6b'>

</\x64i\x76>
</\x64iv>
	    <d\151v cla\163s='\143o\x6c-s\x6d-12'>
                
                 <\x64iv \x63l\x61s\163='\x63\141\162\144'>
                      <d\x69\166 \x63\x6c\141\x73\x73='\143a\x72\x64-h\145\x61\144er'>
                        <\x73\164\x72o\156\147>J\x61w\x61\x62 \124\x75\x67a\163</\x73\x74r\157n\x67>
                      </\144\151v>
		  <\x64iv \143\154\x61\x73\163='\143a\x72\x64-b\x6f\x64y c\141rd-\x62\x6c\x6fc\x6b'>
"; $sql97=mysqli_query($kon, "\x73e\154\145\x63\164 * \x66\162o\x6d \x74\x75\147\141s w\150\x65r\145 \x6bo\144\145='$cod' a\x6e\144 \x6e\157_\x73\x6f\141\154='$numn'"); $f=mysqli_fetch_array($sql97)or die(mysqli_error($kon)); $sql971=mysqli_query($kon, "sele\143\x74 * f\x72o\x6d \x6a\167\142t\x75\147\141\x73 \167\150e\x72\x65 \153\x6f\144\x65='$cod' \141n\144 id_s\151sw\141='$id_penggunanya'
		a\156\144 \x6eo_\x73\x6fa\x6c='$numn'"); $f1=mysqli_fetch_array($sql971)or die(mysqli_error($kon)); echo "




		<f\x6f\x72\x6d \155\x65t\x68od='post' \141\x63ti\157\x6e='si\155\x70\x61n\152\x61w\141\142a\x6e.php'>
		<i\x6e\160\x75\x74 type='t\145xt' \166a\154u\145='$f1[id_jwbtugas]' \156a\155\145='i\x64t\165\147\x61\163' \x68\x69dde\156>
		<i\x6ep\x75\x74 \164\171\x70e='t\x65\x78\164' va\x6cue='$f1[kode]' \x6e\141m\145='k\157de' \x68\151\144\x64\145\156>
		<inpu\164 \x74\171p\145='\164e\x78t' \x76\x61l\165\145='$f1[no_soal]' \156am\145='n\157m\145\162' \x68\x69\x64\144\x65n>
		<i\156\x70ut \x74y\x70e='t\x65xt' \166\141\154\165e='$id_penggunanya' \156a\x6de='\151d' \x68\151\x64\144\x65n>
		<\x69npu\164 \x74y\160\145='\164ex\x74' \166\141lue='$f1[id_guru]' n\141\x6de='\151d\147\165r\165' \x68\x69\144d\x65n>
		<i\x6e\x70\x75\164 \164ype='t\x65\170t' valu\145='$f1[id_kelas]' n\x61\155\145='i\x64\153e\x6cas' hid\x64e\x6e>
		<\151\156\160u\164 \x74\171\x70\145='\x74\x65\170t' \x76\141l\x75\145='$f1[id_mapel]' \156\141\x6d\145='\151dm\141\160\x65\x6c' h\151\x64\x64\x65\x6e>
		 <\144\x69v \143l\141ss='r\157w \x66\x6frm-g\x72\x6f\165\x70'>
		 <d\x69v cl\141\x73s='\143o\154-12 \x63\x6fl-\155d-12'></\144\x69v>
       <div \x63lass='\x63ol \x63\157\154-m\144-12'><l\141\142\x65l \143\154\141s\x73=' \146\157\162\155-\x63\157\156trol-\x6c\141\x62\145\x6c'>$f[soal]</\x6c\141b\x65\154></d\x69\x76>

 <\x64\151\166 \143\154\141s\x73='c\x6f\x6c-12 \143o\154-\155\x64-12'><\164\x65\x78tar\145\141 id='e\144i\164\157\x72' \x6e\x61\155\x65='\x6a\141w\141\142'  cl\141\163\x73='f\157\x72\155-\143ontr\x6f\154'>$f1[jawaban]</t\x65\x78\x74\x61r\x65\x61></\x64\x69\166>
     </d\x69v>
	 <i\x6e\x70\165t \156\x61\x6de='\x69ma\x67\x65' t\x79pe='\146\151l\145' \x69\x64='u\x70\x6c\x6fad' \x63\154\x61\x73s='\150i\x64\x64\145\x6e' \157\156chan\x67e=''>
			
		</\144iv>
		
	  <d\151v \x63\154\141\163s='\143\141r\x64-f\157o\164\145\162'>
	
                   <\142\x75t\164\x6f\156 \x74ype='\x73\x75\x62m\x69\x74' \143\x6cass='\142t\x6e \x62tn-pr\x69\x6da\x72y \x62\164n-\x73m'><\151 \143\154\x61s\163='fa \146\x61-\x73\141\166e'></\x69> \123\151\x6d\x70\141\156
                        </\x62\165t\164\157n>
				   
                      </di\x76>
					  </\x64\x69\166>
					
			</\x66\x6f\x72\155>	
 

		"; } elseif($_GET['state']=='test'){ echo"
<s\x63\162ipt \164\171\x70\x65='\164\145\x78\x74/j\141\x76\141s\143\x72\x69p\x74' \163\x72\x63='j\x73/\152\161\165\x65\x72\171-3.2.1.\155\x69\156.\152s'></s\x63r\x69pt> 	
	
	
<\154\151\156\153 \x72\145\154='styl\145s\150\x65\145t' \x68\x72\145f='\x61\x73\163et\163/\143\x73\163/\154ib/\x64a\164\141\x74\x61bl\145/data\x54\141bl\145s.\x62\x6f\x6f\x74s\x74\x72ap.\x6di\156.\143s\163'>


            <d\x69v c\154a\163s='c\x6f\x6c-\x73\x6d-12'>
                
                 <\x64\x69\166 cla\163s='\x63\141\x72\x64'>
                      <d\151\166 cla\x73s='c\x61\x72\144-h\x65\x61\144\145\x72'>
                        <\163\x74\162o\x6e\x67>D\141f\x74\x61r \124\145s\x74 \x41\153\164if &n\142\x73p;  &n\142\x73\160;  &\x6eb\x73\160;  &nb\163\x70; </\163\x74\x72\157\156\x67>
                      
					 
					  
					  
					  </\144i\x76>
					  
							  
					  
					  
					  
					  
					  
					  
                      <\x64\x69\166 \143\154\x61ss='c\x61\162\144-b\157d\x79 c\x61r\x64-\x62\x6c\157ck'>
				<\x6c\x69nk \x72el='sty\x6c\x65\x73he\x65\164' \x68\x72\x65f='\x63\163\163/\x64\141t\x61\164ab\154\145/\x64\x61t\x61Ta\142\154\145s.\142\157o\x74\x73\164rap.\x6d\151\x6e.\x63\163\x73'>
	
	
	
	 <table \x69\x64='\x62\x6f\157\164s\164\x72\141\160-\144\x61\x74a-\x74ab\x6c\145' \143l\141\163\163='\x74\x61b\x6c\145 \x74\141bl\145-\x73\164\162\x69p\x65\144 t\141\142\154\145-\x62\157rder\145\144 t\141b\154\x65-r\145s\160\x6f\x6es\151\166\145'>
                    <\164\x68\145\x61d>
				
			<\164r><\x74\150>\116\157</\x74\x68><th>\x4aud\165\154 T\145\163\164</th><t\150>P\x65\x6c\141\x6a\141\162a\x6e </\164\150><\164\x68>G\x75r\165 \115\141pe\x6c</\164h><\164h>\x57\x61\153t\165 </th><\x74\x68>\x50\x69l\x69ha\x6e</th></\x74\162>
				</\x74\150\x65\141\144> 
				<tbo\144y>"; $asq=mysqli_query($kon,"\163\145\154\145c\x74 * \x66\x72o\x6d \x74e\x73t_\x61k\164i\x66 w\150\x65\x72\145 \151d_\153e\154\x61\163='$id_kelas' a\156\144 \x73\x74atu\163='1' "); $no=1; while($b=mysqli_fetch_array($asq)){ $ere=mysqli_query($kon, "s\145\154\x65\143\x74 \x6e\x61\155a_\160e\154a\152\x61r\141\x6e \146\x72om pel\x61\x6a\141\162\x61\x6e \167h\145\x72\x65 \151\x64_p\145\x6c\141\x6aa\162an='$b[id_mapel]' "); $r=mysqli_fetch_array($ere); $we1=mysqli_query($kon, "s\145\x6ce\x63\x74 \x6ea\155\141 f\162\x6f\x6d a\x6eg\147\x6fta \167\x68e\162e \x69d_anggo\164\141='$b[id_guru]' "); $tk1=mysqli_fetch_array($we1)or die(mysqli_error($kon)); $we=mysqli_query($kon, "se\154\145\143t * f\162\157\155 \x75\x6c\141n\147\x61\156 w\150\145re \151\x64_\x75l\141\156\147\x61\156='$b[id_ulangan]' "); $tk=mysqli_fetch_array($we) ; $gg=mysqli_query($kon, "\x73\145\x6c\145\143\164 id_\x75\x6c\x61n\147\x61n, \167\x61\x6b\x74\x75,i\x64_gu\x72\165 \x66\x72\x6f\x6d \x73\x6f\141\x6c \x77\150\x65re i\144_\165\x6ca\156\147\x61\x6e='$b[id_ulangan]' g\162\x6f\165\160 b\x79 i\144_\147\165\x72\x75 "); $gh=mysqli_fetch_array($gg); echo "
			<\x74\162><\164\144>$no</td><td>$tk[nama_ulangan] </\164\144><\164\x64>$r[nama_pelajaran]</\x74d><\164d>$tk1[nama]</\164\144><\164\x64>$gh[waktu] Men\x69t</\164d><\164\144>"; $cekselesai=mysqli_query($kon, "sel\x65c\x74 * \146\x72\x6f\155 \x73\145\154e\163\x61\151 \x77\150\x65\162\x65 no_\165\152\x69\x61\156='$nis' \141\x6e\144 \x69\144_m\x61\x70\145l='$b[id_ulangan]' a\x6e\x64 \x73\x74\x61\x74us='1'"); $jikaketemu=mysqli_num_rows($cekselesai); if($jikaketemu>0){ echo "
<\x69n\x70u\x74 t\x79\160\x65='\x62\165t\x74\x6fn' c\154as\163='\x62\164n b\164\156-\x6f\165\164line-\163e\143o\156da\162\171 \x62\164\156-s\155' \x76\141lu\145='\123u\x64\141\x68 \x44i \x4ber\x6aak\x61n'>
"; }else{ echo "

			<f\x6f\162\155 \155\x65\x74\x68\x6f\x64='\x70o\x73t' \141\143ti\157\156='\165\x6aia\x6e/si\141\x70.\160\150\x70'>

			<\151\x6e\x70\165t \x74y\160\x65='\164\x65\170\x74' \x6ea\155e='\x69\144gu\x72\x75' valu\x65='$b[id_guru]' hidden>
			<\x69n\x70\165t t\171p\145='t\x65x\x74' \156a\155\145='i\144map\145\154' v\141l\165\x65='$b[id_ulangan]' \x68\151d\144\145n>
			<inp\x75\x74 \164\x79\x70e='\x74\145x\164' na\155\145='id\x6bela\x73' \166\141\x6c\165\x65='$id_kelas' \x68\151\x64\x64\145n>
			<\151\156\160ut \164\x79\x70\145='te\170\x74' n\x61\x6d\145='u\163\145\x72' va\x6c\x75e='$id_penggunanya' \150i\144\144\145n>
			<\x69\156\160u\164 t\171p\145='\x74\145x\x74' \156\x61\155e='\x6ei\x73' \166\x61lu\145='$nis' \x68i\x64\x64\145\156>
		
			<in\160\x75t \164\171\x70\x65='s\x75\142\155i\164' c\154\141\163s='\142\164n b\x74n-\157ut\154in\145-\144a\x6e\147\145r bt\156-\x73m' \x76\x61l\x75e='\113\x65\162\152\x61\x6ba\156'>
			</f\x6frm>
			"; } echo "
			
			
			</td></\x74r>"; $no++; } echo "
			</\x74\x62od\x79>   
            </t\141bl\x65>
	
	
	
	
	
					  
					  
			         
                    </d\151\166>

        </\144iv>
    </\x64\x69\x76>
	</\144\151\166>
	
	
	<\163c\x72i\160\x74 sr\x63='\x6a\x73/\x64\141\x74a-\x74\141\142\154\x65/\144a\164\141\x74\141\x62\154\145\163.\x6d\151\156.j\x73'></sc\x72ip\164>
    <\163c\x72i\160\164 \x73\x72c='j\x73/\x64ata-\164a\142\x6c\x65/\x64\141ta\124\x61\142\154e\x73.\142\157ot\163\164\162\x61\160.\x6di\156.\152s'></\163\143\162i\x70t>
     <\x73\143r\151\160\x74 s\x72\143='\x6a\163/\144\141t\141-ta\142l\145/\x64\x61\164\141t\x61\142\154\x65s-i\156\x69t.j\x73'></s\x63\x72i\160t>

    <s\143\162ip\164 \x74\171\x70\x65='\x74\x65\x78t/\152\x61\166a\163c\162\151\x70\x74'>
        $(\x64oc\165\155e\x6et).\x72ea\x64\x79(\146\x75\156\x63\x74io\x6e() {
          $('#\x62\x6f\157\x74\x73t\162\x61\x70-da\164a-\x74\x61\142l\145-\145x\160\157r\x74').\104\141t\x61\124\x61\142le();
        } );
    </\163\143r\151\x70t> 
	"; } elseif($_GET['state']=='meeting'){ echo"
<\163\x63\162i\x70\x74 t\x79pe='te\170t/j\x61va\x73\x63r\x69\160\164' s\162\143='j\x73/\152\x71ue\162\171-3.2.1.m\151\156.\x6as'></\x73\143rip\164> 	
	
	
<l\x69\x6e\x6b \x72\x65l='\x73t\171l\x65\163\150\x65e\x74' hre\146='as\163\145\x74\163/c\163\163/\x6c\x69b/\x64\x61\x74\141\164\141\142l\x65/data\x54\x61\x62\x6c\145\x73.\142\157\x6fts\164r\141p.\155\151\x6e.c\163s'>


            <\x64\151v \143l\x61\x73\x73='\143\x6f\154-sm-12'>
                
                 <\x64\x69v \x63l\141ss='\143a\x72\144'>
                      <d\151\x76 clas\163='\143\141\x72\x64-\x68\145\x61\144\x65\162'>
                        <\x73\164\162on\147>\x44a\x66\x74a\x72 V\x69deo Mee\164i\x6eg (\x5a\x4f\x4f\x4d) &\x6e\142s\160;  &\x6ebsp;  &\x6ebs\160;  &\156\x62sp; </\163t\162\x6f\156\147>
                      
					 
					  
					  
					  </di\x76>
					  
							  
					  
					  
					  
					  
					  
					  
                      <\144i\x76 \x63l\x61\x73\163='\143a\162d-\142\157\144\x79 \x63\x61\162d-\x62\x6c\x6f\143\153'>
				<li\x6e\x6b \162\145\154='\x73tylesh\x65e\x74' \x68r\x65\x66='css/d\141ta\164\141\x62\154e/\144ataT\141\142\x6c\145\x73.\x62\x6f\157\x74\163\x74\162\141\160.\x6din.\x63\163\x73'>
	
	
	
	 <t\141b\x6ce \x69\x64='\142\157\x6f\164s\x74ra\160-da\164\x61-\164a\142\154\145' \x63las\163='\x74a\x62le ta\142\154\145-st\162\151\x70\x65\144 t\141\142\154e-b\157\x72d\x65\x72\145d \x74\x61bl\145-\x72\x65\x73\x70on\x73\151v\x65'>
                    <\164h\x65\x61\144>
				
			<\164\162><t\150>No</\x74h><\x74\x68>\120e\154aj\141r\x61\x6e </th><\164h>\107\x75r\x75 M\141p\145\154</t\x68><t\x68>\120\151\154\x69\150\141\156</\x74h></tr>
				</\x74\150ead> 
				<t\142\x6f\x64y>"; $asq=mysqli_query($kon,"\163\x65\x6ce\143\x74 * \146\x72om \155\x65e\x74\x69\x6e\x67 \x77\150\x65\162\145 \151d_\153\145\x6ca\x73='$id_kelas'"); $no=1; while($b=mysqli_fetch_array($asq)){ $ere=mysqli_query($kon, "s\x65\x6cec\x74 n\141m\141_\160el\x61\x6a\141r\141\x6e \146\162\157\155 \x70\x65\154\141ja\162\x61n \167\150e\162e \x69d_p\x65\x6ca\x6a\x61\x72\x61n='$b[mapel]' "); $r=mysqli_fetch_array($ere); $we1=mysqli_query($kon, "se\x6c\145ct n\x61m\x61 \146r\x6f\x6d an\147\x67\x6f\164a \x77\x68er\x65 \x69d_\x61\156\x67\147\157\164a='$b[guru]' "); $tk1=mysqli_fetch_array($we1)or die(mysqli_error($kon)); echo "
			<\x74r><t\x64>$no</t\144><t\x64>$r[nama_pelajaran]</td><\164\x64>$tk1[nama]</t\x64><\x74d>
			<a \150r\x65f='$b[link]'>
			<\x62\165\x74\x74\x6f\156 t\171\x70e='\x62\x75tt\x6f\156' \143la\163s='b\x74\x6e \x62\164\x6e-o\x75\164\x6ci\x6e\145-pri\155a\x72\x79 b\x74\156-\163m'><\151 c\154\141\x73\x73='\146\141 \x66\141-\166ide\157-\x63am\x65\x72\x61'></\151>&n\142s\160 \107ab\165\156\147 \115\x65\x65\164\x69\156\147</\x62\165\164\164\x6fn></a>
			</\x61>
			</\164d></t\162>"; $no++; } echo "
			</t\142\x6f\x64y>   
            </\164\x61\142\154e>
	
	
	
	
	
					  
					  
			         
                    </\x64\x69\x76>

        </d\x69\x76>
    </\144\x69\166>
	</\144\151v>
	
	
	<\163\143\x72i\x70\x74 s\x72c='j\x73/\x64\x61t\x61-t\141\142\154e/\144\141t\141\x74a\142\154\145s.\x6d\151\x6e.j\163'></\163\143\x72\x69\160\x74>
    <\x73\143ri\160\x74 \x73\x72c='\152s/\144\x61\164\141-\164a\142\154\x65/\x64\x61\x74\141T\x61b\x6ce\x73.\x62\x6fots\164ra\x70.mi\156.j\163'></\163c\162\x69p\164>
     <sc\x72i\x70t \x73\x72\143='\152\x73/\144a\164\x61-\x74a\x62\154\145/\144\x61\x74at\x61b\x6c\145\x73-\151n\x69\164.\x6a\163'></\163cr\151p\x74>

    <s\143\162\x69p\x74 t\x79\160e='\164e\170t/\152\x61v\141\x73c\x72\x69\x70\x74'>
        $(\144\157c\x75me\156\x74).\162\x65\141d\171(\146un\x63ti\157\156() {
          $('#\142\x6f\x6f\x74\x73t\162\141\x70-\144a\164a-\x74\x61b\154\145-e\170\x70\x6f\x72\164').\x44at\x61T\x61bl\145();
        } );
    </s\x63r\x69\160\164> 
	"; } elseif($_GET['state']=='materi'){ echo"

	 <\x64i\166 c\x6c\x61\163\x73='\143a\162\x64'>
					
                   
					  
                <d\x69\166 \x63\154as\x73='c\141\162d-\x62o\144\x79 c\141\x72d-\142l\157\143\x6b'>

</\144\151\166>
</\144\151\x76>
<\163\143\x72ip\x74 ty\x70\145='t\145\170\164/\x6a\x61\x76\141s\143\x72\x69\160\164' \x73\162\x63='js/\x6aq\165\145\162\x79-3.2.1.m\x69\x6e.\x6as'></\x73\x63\x72\151p\x74> 	
	
	
<\x6c\151n\x6b \x72e\154='\x73ty\x6c\145\163hee\x74' h\x72ef='\x61\x73\163\x65\164\x73/\143\163\x73/\x6c\151\142/\x64\141\x74a\x74\141\x62\154e/\x64\x61\x74\141\124ab\154\x65\163.b\157o\164s\x74r\141\160.\155i\156.\143s\x73'>


            <\144\151v \x63\x6ca\163\163='\143\x6fl-s\155-12'>
                
                 <\144\x69\x76 \143l\x61ss='\x63\x61\x72\x64'>
                      <d\x69\166 \x63l\x61\163\x73='\x63\x61r\x64-\150eader'>
                        <st\162\157\x6e\147>\104af\164\x61\162 Ri\x6e\147\153\x61s\x61n M\141\164\145\x72\151 &\x6e\142\x73p;  &\156\x62\x73p;  &\156\x62\163p;  &n\x62sp; </\x73\x74\162o\x6e\x67>
                      
					 
					  
					  
					  </\x64i\166>
					  
							  
					  
					  
					  
					  
					  
					  
                      <d\x69\x76 \x63\x6c\141\163\163='c\x61\x72d-b\157\x64y c\141\x72\x64-\142\154\157\143k'>
				<\154\151\x6e\153 \x72\x65\154='\x73\x74\x79\154\145\163\x68e\x65\164' \x68\x72e\x66='\143\163\x73/\144\141\x74\141t\x61\x62\154\x65/da\x74\141\124ab\x6c\x65\x73.\x62\157ots\x74\162\x61p.m\151\156.\x63s\163'>
	
	
	
	 <ta\142le \x69\x64='\x62\157o\x74\x73\x74\x72a\x70-\x64a\x74a-t\141bl\145' \x63\x6ca\x73\163='\x74ab\154e \164\141\142\154\145-\x73\164\x72\151\x70e\144 ta\x62\154e-\142\x6f\x72\144\145\162\x65\x64 \x74\x61bl\x65-re\163\160\157n\x73\x69v\145'>
                    <the\141\144>
				
			<\x74\162><\164h>No</\x74h><\164\150>\112ud\165l \x4d\x61t\145\162i</\164h><th>P\x65\154a\x6a\141\162\141\156</t\150><\164h>G\x75r\165 M\141\x70\x65\154</\x74\150><th>P\x69\154\151\x68\x61\x6e</\x74\x68></\x74\162>
				</\x74he\x61\x64> 
				<\164b\x6f\x64\x79>"; $mater=mysqli_query($kon, "\163el\145\143\x74 * \x66\x72\x6f\x6d \155\x61\164e\x72\x69 \x77h\145\x72e \151\x64_\x6b\x65\x6ca\x73='$id_kelas' "); $no=1;
while($bb=mysqli_fetch_array($mater)){ $mp=mysqli_query($kon, "s\145\154e\143\x74 * f\x72o\155 \x70e\x6c\x61\x6a\141r\141n wh\145\162\145 i\x64_\160\145l\x61\152\x61r\141\156='$bb[id_mapel]' "); $bb1=mysqli_fetch_array($mp); $mp2=mysqli_query($kon, "s\x65\x6c\145\143t * f\x72om a\x6e\x67go\164\141 \x77\150\145\162\145 id_a\156\x67go\164\141='$bb[id_guru]' "); $bb12=mysqli_fetch_array($mp2); echo "

<\164\162><\x74d>$no</t\144><\x74d>$bb[nama_materi]</\x74d><\x74\x64>$bb1[nama_pelajaran]</\164\144><\164\144>$bb12[nama]</td>
<\x74\x64>


<\141 \x68\x72\x65\146='?sta\x74\145=t\x61m\x70\151\154&\151dmate\162\151=$bb[id_materi]' >
<\x62\165t\x74\x6f\156 \164\x79\x70\x65='\142ut\164on' \143l\141\x73\163='\142tn \142\x74n-\157\165\x74l\x69ne-p\162\x69m\x61\x72\171 b\164n-\163m'><\x69 cl\141s\x73='\146\141 \x66a-\163\145\x61\x72ch'></\151>&nbsp \120r\145\x76\x69ew</bu\164\164\x6f\156></\141>
<\x61 h\x72e\x66='$bb[link]' >
<\142u\164ton t\x79pe='\x62\x75\164\164o\x6e' cl\x61\x73s='\x62\164\156 \142t\x6e-\157\165\x74\x6c\x69\x6e\x65-da\156\x67\145r \142\x74n-sm'><\x69 \x63l\141\x73s='f\x61 \x66a-dow\x6e\154\157\x61\144'></\x69>&\x6ebsp \x44o\167\156\154\157ad</\142\165\164\x74\157n></a>
			





</\164d>
</t\162>

"; $no++; } echo "
			</\x74\142o\x64y>   
            </\164\141b\x6c\145>
	
	
	
	
	
					  
					  
			         
                    </\x64\151\x76>

        </di\166>
    </di\x76>
	</\x64\151v>
	
	
	<s\143\x72\151\x70\164 s\162\143='j\163/d\141\164\x61-\x74\141bl\145/\x64\141\164\x61\x74\x61\142le\x73.min.\152\x73'></script>
    <\163\143r\151\x70\x74 \163r\143='\x6as/\144a\164\141-ta\142\154e/d\141t\141\x54a\142les.\142\157\x6ft\x73t\x72\x61p.\155in.\x6a\x73'></s\x63\162i\160t>
     <\163\143\162\x69\160\x74 s\162c='j\163/\x64\x61\x74a-\x74\141bl\x65/\144\141\x74\x61\164\x61\x62\x6c\x65\x73-\151\x6e\151\164.j\x73'></\163\143\162\151\x70t>

    <\163\143\x72\x69\x70\164 ty\x70e='\164\145x\x74/\152\141vascri\x70\164'>
        $(\144\x6f\x63\x75\155\145nt).r\x65\x61\x64y(\x66\165\156ct\151\157\x6e() {
          $('#\x62\x6fotst\x72\x61\160-d\141\x74\x61-\164\x61\x62\154e-\145xp\x6f\x72t').\104ataT\x61b\x6c\145();
        } );
    </\163\x63r\x69p\164> 
	"; } elseif($_GET['state']=='tampil'){ $ekop=cegah($_GET['idmateri']); $mater=mysqli_query($kon, "\163\145\x6c\x65\x63\x74 * \x66\x72o\155 \155\x61\x74\x65\162i w\150\145re \x69\x64_\x6d\141t\x65r\151='$ekop' "); $bb=mysqli_fetch_array($mater); $ma=mysqli_query($kon, "\163\x65le\x63\164 * \146\x72\157m \160\x65\154\141jaran \167\150\145\162\145 \151d_pe\154\141ja\162\141\156='$bb[id_mapel]'"); $rf=mysqli_fetch_array($ma); echo"

<\163\x63\x72\151pt \164\x79pe='\164\x65x\x74/\x6aa\x76as\143r\151p\164' src='j\163/j\161\165\x65\x72\171-3.2.1.min.\x6as'></s\x63\162i\x70t>   
    
    
<l\151\x6e\x6b r\145\154='\x73\x74\171lesh\145\145\164' hr\x65\146='\141\163\163e\x74\x73/\143s\x73/\154\x69\x62/\144\141\x74\141\164\x61\142\154e/d\x61\x74aT\x61\x62\154es.\142\x6fo\164s\164\162\x61\x70.mi\156.css'>


                
                 <\x64i\x76 \143l\141ss='\143\141r\144'>
                      <\x64\151v \x63\x6c\141s\163='\143\141\162\x64-\x68\145a\144\x65r'>
                        <s\x74\162\x6f\156\x67>\120r\x65v\x69e\x77 \x52\x69ng\x6basan M\x61\164\145r\x69 &\156\x62\x73\160;  &\156\x62\163p;  &\x6eb\x73p;  &\156\x62s\x70; </\x73t\162\157\x6e\147>
                      
                     
                      
                      
                      </d\x69\166>
                      
                              
                      
                      
                      
                      
                      
                      
                      <\x64\x69\x76 cl\141\x73\x73='c\x61\x72d-\142od\171 \x63\x61\x72d-\142lo\143\153'>
         



 <\144\x69v cl\141\163s='ro\167 \x66\157\162m-\x67\x72\x6f\x75\160'>
                            <d\x69\166 \143\154\141\163\x73='\x63\157\x6c \143\x6f\x6c-\x6dd-3'><\x6c\141\142e\154 \146\x6f\x72='\164\145\170\164-i\x6e\x70ut' \143la\x73s=' f\x6f\162\155-\143\x6fn\164\x72\157\154-la\x62\x65\x6c'>\112\165\x64\x75\x6c \115\x61\164\x65\162\151</\x6c\141\142e\154></\144\x69v>
                            <\144i\166 \x63la\x73s='\x63\x6f\x6c-12 \x63\157\x6c-\155\x64-9'><\151n\160\165t \x74\x79\x70e='\164e\x78t' \x69\144='\164\x65x\164-inp\x75\x74' \166\141l\165\145='$bb[nama_materi]'  \x63las\x73='f\157r\x6d-c\157\x6et\162\x6f\154' \x64\x69\163abled></d\x69v>
                          </d\151\x76>



     
    <\144\151\x76 c\x6c\141\163s='ro\x77 for\155-\x67\x72ou\160'>
                            <\x64\151\166 cla\x73\163='c\x6fl \143\157l-\155d-3'><l\141\142\x65\154 \x63\x6cass=' \146\x6fr\x6d-c\157n\x74ro\154-\x6cabe\154'>\120el\x61\x6aa\x72\141n</\154a\142\x65\154></\144\x69\x76>
                           <di\x76 cl\141s\163='\x63o\x6c-12 \x63\x6f\154-md-9'><\151n\x70ut \164\171\160e='t\145\x78\164' \x69d='\x74\145\170\x74-\x69\x6e\160\165t' v\141\154\165\x65='$rf[nama_pelajaran]'  \143\x6c\x61ss='fo\x72m-\143o\x6e\164\x72\x6f\154' d\x69\163\x61\142le\x64></di\166>
                          </\x64i\166>

      
<\x64\151v \x63l\x61\x73\x73='r\157w \x66\157rm-g\162\157\165\160'>
                            <d\x69\x76 \143l\141\163s='co\154 \143ol-m\144-3'><\x6c\x61b\145\x6c \x63\154ass=' \x66\157rm-\x63o\x6et\162\x6f\x6c-labe\x6c'>Ke\x6c\141s</\x6cab\145\154></\x64\151v>
                             <d\x69\166 \143l\141\163\163='co\x6c-12 \143ol-\155\x64-9'><\x69\x6e\x70ut \x74\171pe='\164e\170\x74' i\144='t\145xt-\151\156\160\x75\x74' va\154\x75e='$bb[kelas]'  \143l\x61\163\163='for\155-\143\x6fn\164r\157\154' \144i\163\x61b\154\x65\x64></\144\x69\x76>
                          </\144\x69\x76>


<\x64i\166 \x63l\141\163\x73='\x72o\x77 \146\157\162\x6d-\147\162\x6f\x75\160'>
                            <\144iv \143\x6c\x61\x73\163='c\157\x6c col-\x6d\x64-3'><l\141b\145\154 cl\x61\163\163=' \146o\162\x6d-\143\157\156\x74r\x6f\x6c-\154ab\145\x6c'>\x53\145m\x65\x73\x74\x65r</lab\145\154></\144i\166>
                            <\x64\151v \143\154as\163='\x63\157l-12 co\154-\155\x64-9'><\x69\156pu\164 \164\x79pe='t\145\x78t' \x69d='\x74e\x78\164-\151n\160\x75t' \x76\x61\154u\x65='$bb[semester]'  cl\x61s\163='\x66o\x72m-\143\x6f\x6e\164\x72\157\x6c' \144isa\142\154\145\x64></\x64\x69\x76>
                          </\144\151v>


<d\x69\166 c\154\x61\163\163='r\157\167 \146\157\162\x6d-\x67r\157\165\160'>
                            <\x64\x69\x76 \143\154a\163\x73='\x63\157\x6c \x63ol-\x6d\x64-3'><\x6c\141\x62\x65\154 cl\x61\x73\x73=' \146\157\x72\155-c\157nt\x72o\x6c-l\141\142\145l'>K\157\155\x70e\x74\x65\x6es\x69 \x44a\163a\162</\154a\142el></\x64i\x76>
                             <div \x63l\x61\163s='\x63ol-12 \x63\x6f\x6c-\155\x64-9'><\151\x6epu\x74 \164\x79p\145='\x74e\x78\x74' \151\x64='t\145\x78\164-i\156\160\165t' v\x61\x6cu\145='$bb[kd]'  \143\x6ca\163\x73='\146\157\x72\155-c\x6f\156t\x72\157\154' \144i\x73a\x62l\x65d></\x64\151v>
                          </div>
              

               <\144\x69\x76 \143\x6c\141s\x73='row f\x6fr\155-g\x72o\165p'>
                            <d\151\x76 cl\x61\x73\163='\143o\154 \143ol-\155\x64-3'><l\x61b\x65l \x66\x6f\162='t\145\x78\x74-\151n\x70u\164' \143\154\141\163s=' \x66\x6fr\155-co\156tr\157\154-labe\x6c'>\x44\145\163\x6brip\163i S\x69\156g\153\x61t</\x6c\x61b\145\x6c></di\x76>
                            <\x64\151v \x63\154a\x73\163='\143\x6f\x6c-12 \143\x6f\x6c-\x6d\144-9'><t\145\170t\141\162\145a \151\x64='\x74ex\x74-\151\x6ep\165\164' \x6ea\155\145='\x64\x65\163\x6b\162\x69\x70\x73i'  c\154\141\163\x73='f\x6frm-co\x6e\164\x72\x6fl' \144i\163\x61b\154ed \162o\x77\x73='7'>$bb[deskripsi]</\x74\145x\164\141\x72\145\141></\x64\151\x76>
                          </\x64\151v>







<\142\x72><\x62\162>







    
    <\145\155\x62\145d \x73\x72c='$bb[link]' \x74\x79\x70\145='ap\160\x6c\x69c\x61t\151\x6f\x6e/\x70d\146' \x77i\144\x74h='100%' h\x65\x69g\150\164='600px' />

 
                      
                      
                     
                    </di\x76>

        </div>
    </d\151\x76>
    </d\x69\x76>
    

    "; } elseif($_GET['state']=='nilaitugas'){ echo"
<s\x63r\151\x70t t\171\x70\x65='\x74\145xt/\152\x61v\141s\x63\162i\x70\164' \x73\x72\143='\x6a\163/\x6aq\165e\162\x79-3.2.1.\155\151\x6e.j\x73'></\x73\x63r\151\160t> 	
	
	
<\x6cink \x72\x65\154='\x73\164\171\154\145\163h\x65\x65\164' h\x72\145\x66='as\x73e\x74s/\143\x73\x73/l\x69b/\144\x61t\141\x74\141\x62le/\144\x61\x74\141\x54\x61\x62\x6ces.\x62o\x6f\164\x73t\162\x61\x70.\155in.c\x73\163'>


            <\x64i\166 \143l\x61\163s='c\x6fl-\x73m-12'>
                
                 <\144\x69v \x63\154a\x73\x73='car\144'>
                      <\x64iv \143\154\141s\x73='car\144-\x68\145\141d\145\162'>
                        <\163\x74r\x6fn\x67>\x4e\x69\x6ca\151 T\165g\141s &\x6e\142sp;  &\156bs\160;  &\156\x62\x73\160;  &\156\142s\x70; </s\x74\x72o\x6eg>
                      
					 
					  
					  
					  </d\x69v>
					  
							  
					  
					  
					  
					  
					  
					  
                      <d\x69\x76 \x63\154\x61\x73s='c\141r\144-\x62\157\144y c\x61\x72d-\142lo\x63\x6b'>
				<\154\x69n\x6b \162\x65l='\x73\x74y\154\145\163h\145et' \x68\162\145\x66='\143\163\163/\144\x61\x74at\x61\x62le/d\141\164\x61\x54ab\x6c\x65\163.b\157\x6ft\163\164r\141\x70.\x6d\151\156.\x63\163\163'>
	
	
	
	 <\x74\141ble \x69\144='boo\x74\163\164\x72\x61\x70-d\x61\x74a-tab\x6c\x65' \x63\x6ca\x73s='\x74a\x62\x6c\x65 ta\x62le-\163t\x72\x69\160\145d \164ab\x6c\145-\142\x6fr\x64er\x65\144 \x74\141bl\x65-res\160o\x6e\x73\151\166\x65'>
                    <t\150e\x61\144>
				
			<\164\x72><th>\x4e\x6f</\164\x68><\x74h>\x4a\165\x64\x75\x6c Tuga\x73</\x74\150><t\x68>P\145\154\x61j\x61\162\141n</\164\x68><\164h>\x47u\x72\165 M\x61p\145\x6c</\x74\150><\x74\x68>\x4e\151\154ai</\x74h><t\150>\120\x69\154\151h\141n</\x74\150></\164\x72>
				</\164\150\x65\141\144> 
				<t\x62\157\144\171>"; $asq=mysqli_query($kon,"\x73\x65l\x65ct * \146\x72o\x6d tuga\163_ak\x74\x69\146 \x77\x68\x65\162\145 \151d_\x6b\145l\141\x73='$id_kelas' "); $no=1; while($b=mysqli_fetch_array($asq)){ $ere=mysqli_query($kon, "s\145\154\x65\143t * fr\157m pel\x61ja\x72\x61n \x77\x68e\x72\x65 \151d_pe\x6c\141jar\x61\x6e='$b[id_mapel]' "); $r=mysqli_fetch_array($ere); $we=mysqli_query($kon, "\163\x65\x6c\145\143\164 * f\x72\157\x6d \x74\165g\x61\163 \167h\x65\x72\145 k\x6fd\145='$b[kode]' g\x72\x6f\x75\160 by k\157d\x65 "); $tk=mysqli_fetch_array($we); $we1=mysqli_query($kon, "\163e\154\x65\143t * \x66\x72\x6fm an\147\x67o\x74\x61 w\150\x65\162\145 \151\x64_\141\156gg\x6f\164\141='$b[id_guru]' "); $tk1=mysqli_fetch_array($we1); $nilainya=mysqli_query($kon, "selec\164 * fr\157\155 r\x61\x70\x6frt_\x74\165\147as \x77he\x72e n\x69s='$nis' \x61\x6e\144 \153\157d\x65='$b[kode]' "); $nil=mysqli_fetch_array($nilainya); if($nil['nilai']>0){ echo "
			<t\162><td>$no</\x74d><\164d>$tk[nama_tugas]</t\x64><t\x64>$r[nama_pelajaran]</\x74\x64><t\x64>$tk1[nama]</td>


<t\144> $nil[nilai] </td>
			<\164\x64>
			
			<a h\x72ef='?\x73\x74\x61\164\x65=\144\x65\x74\141\x69l&\151d\147u\162\x75=$b[id_guru]&\151dm\x61\x70el=$b[id_mapel]&\153\x6f\x64e=$b[kode]&\x69d\x6b\x65l\141\163=$id_kelas'>
			<\142utt\x6f\x6e \164\x79p\x65='\142u\x74to\156' \x63\x6c\141\x73\163='\x62\x74n \x62t\156-ou\x74l\x69\156\x65-\x64\x61\156\x67e\x72 b\164n-s\155'><i \x63l\x61\x73\163='fa f\141-\x63re\144i\164-c\141\x72\144'></i>&\x6e\142\x73\160 \104e\164\x61\151\x6c</bu\x74\164o\x6e></a>
			
			
			
			</\x74d></\x74r>"; }else{ } $no++; } echo "
			</tbody>   
            </t\141\142\154\145>
	
	
	
	
	
					  
					  
			         
                    </\x64\151\x76>

        </div>
    </d\151v>
	</\x64\x69\166>
	
	
	<\x73\x63\162\151\160t \163\x72c='\152\x73/\x64\x61ta-\164\141\142\x6ce/\144a\164\141\x74\x61\142\x6ce\x73.\155i\156.j\x73'></\x73\x63\162\151pt>
    <s\x63\x72\x69p\164 \x73r\143='\x6a\163/d\x61\x74a-t\x61b\x6c\x65/d\141ta\x54\x61bl\145\163.\x62\x6f\x6ftst\162\x61p.\155i\156.\x6a\163'></s\x63\x72i\160t>
     <\163\143\x72\151p\164 \x73\162\x63='\x6as/d\x61t\141-\164\x61\142\x6ce/\144\x61\164\x61t\141bl\x65\163-\151n\151\x74.\x6a\163'></s\143\162i\x70\164>

    <s\x63\162\151\x70\x74 t\x79\160e='\x74\145x\164/\152ava\x73\143\162\x69\160\164'>
        $(\x64ocu\x6d\x65\x6et).\x72\x65ad\x79(f\x75n\143t\x69\157\156() {
          $('#b\157\157\x74s\164\162a\x70-\x64\141t\x61-\x74\x61b\x6c\x65-\145\170p\157\x72\164').\x44\x61\164a\124abl\145();
        } );
    </\163c\162\151\x70\x74> 
	"; } elseif($_GET['state']=='detail'){ include "t\x61\x6eg\x67\x61lba\162\x75.\160\150p"; $kodem=cegah($_GET['kode']); $kodeguru=cegah($_GET['idguru']); $kodekelas=cegah($_GET['idkelas']); $kodemapel=cegah($_GET['idmapel']); $tg=mysqli_query($kon, "s\x65l\145\143\164 * \x66\162o\x6d \x74\165\x67a\163 \167h\145\162e ko\x64\x65='$kodem' "); while($r=mysqli_fetch_array($tg)){ $rere=mysqli_query($kon, "s\145l\145ct * f\x72\x6f\155 \152wbt\165\x67\x61\163 \167\x68\x65re \153\x6f\144\x65='$kodem'
		 \141\156\144 n\157_\x73\157\x61l='$r[no_soal]' 
		 and \151\x64_s\x69\x73\167\x61='$id_penggunanya'  "); $ketemu=mysqli_num_rows($rere); if($ketemu>0){ }else{ mysqli_query($kon, "\x49\x4eS\x45\x52\124 \111\x4e\124\x4f \x6a\x77\x62\164u\x67\141\163
(\151\144_guru,\x69\144_\153\145\154\141\163,\151\144_\x6d\x61p\x65l,\x69\x64_\x73i\x73\x77\x61,\152a\x77\x61b\141\156,n\157_s\x6fa\x6c,\x6b\157\144e)
			 V\x41\x4c\125ES ('$kodeguru','$kodekelas','$kodemapel',
			'$id_penggunanya','','$r[no_soal]','$kodem'
			)")or die (mysqli_error($kon)); } } $tg2=mysqli_query($kon, "\163e\x6cect * f\162\x6fm \x74ug\x61\163 \x77\150\x65r\x65 \x6bod\145='$kodem' ");
$r2=mysqli_fetch_array($tg2); echo"
	 

	    <\144i\166 c\x6c\141\163\163='\x63\x6f\154-s\x6d-12'>
                
                 <\x64\151\166 c\x6ca\x73\x73='\143a\162d'>
                      <d\151\166 c\154\141\x73\163='\143\141\x72\144-\150\x65\x61\144e\x72'>
                        <s\x74\162\157\x6e\147>$r2[nama_tugas]</\x73\164\162\157\156\x67>
                      </di\x76>
		  <\144\151v c\154\x61\163\163='\143ard-b\x6fdy c\141\162\144-blo\x63\x6b'>
	 
	 
	 <s\x63\x72\151pt sr\143='\152\163/\152\161ue\162y-3.2.1.m\x69n.\x6as' t\171\x70\x65='t\x65\x78\x74/\x6a\141\166\x61\x73\143\x72\151\160\164'></\163\x63\162i\160\164>

<\164\x61\x62\154\x65 \151d='\x62\157ots\x74\x72\141\160-\x64a\x74a-ta\x62\x6c\145' \x63l\141\x73s='\x74\x61b\x6c\x65 ta\x62\x6c\145-s\x74r\x69\160\x65\144 \x74a\x62l\145-\x62\x6frde\x72\x65d \164\141\142\154\x65-r\x65\x73\160\157nsi\x76e'>
                    <\164head>
			<\164\162 alig\x6e='ce\156\x74\145\162'><t\150>\x4e\157 \123\157a\x6c</th><\x74\150>\120e\x72t\141nyaa\x6e</\x74\x68><\164\x68>\112\x61\167\141b\x61n</\x74\x68> <\x74\x68>\116\x69\x6c\141\x69</\164h><t\x68>\113\145t\145\162\x61\x6e\x67a\x6e</\x74\x68><\x74\150>Wa\153\164\165 J\141w\x61b</\x74\150></\x74r>
			
			</\x74\x68\x65\x61d> 
				<\164\x62o\x64\x79>"; $sql97=mysqli_query($kon, "\x73e\154\x65\x63\x74 * \x66ro\155 tug\141s \167\150e\x72\x65 ko\144\145='$kodem' \x6f\x72\144e\x72 \142\171 n\x6f_\163\x6f\141\154 \x61s\143"); while($f=mysqli_fetch_array($sql97)){ $sql97w1=mysqli_query($kon, "\x73e\x6ce\x63\164 * \146\162om \152\167\x62\x74\x75\x67\141\163 w\150\x65\162\145 k\x6f\144\145='$kodem' \141\156\x64 i\x64_\x73\x69\163w\141='$id_penggunanya'
		a\156\x64 \x6e\x6f_so\141l='$f[no_soal]'"); $u=mysqli_fetch_array($sql97w1); $tgljwb1=$u['tanggal']; echo "

<tr><td>$f[no_soal]</t\x64><\x74d>$f[soal]</\164\144><\x74\x64>$u[jawaban]</\x74\144><\164d>

$u[nilai]

</t\144><td>$u[keterangan]</td><t\144>"; echo tgl_ind($tgljwb1); echo "</\x74d></tr>
"; } echo "
			 </tbo\x64\171>   
            </t\x61bl\x65>
			
		</\144\x69\x76>
		
	
					  </di\x76>
					
					  

		"; } elseif($_GET['state']=='nilaitest'){ echo"
<s\x63\x72\151\x70\164 ty\160e='\164\x65xt/\x6aa\166asc\x72\x69\x70t' sr\x63='\x6a\163/\152q\x75e\x72\x79-3.2.1.m\151\x6e.\x6a\x73'></\x73\143\162\x69\x70t> 	
	
	
<\x6c\x69\x6e\x6b \x72\x65l='st\171le\163he\x65t' \150\x72\x65\146='ass\145\x74\163/c\x73s/l\x69\142/\x64\141tata\x62\154\145/\144\x61t\x61\x54\x61\x62\154\x65\163.\142\157\x6f\164\x73tr\x61p.\155\x69\156.c\x73s'>


            <\x64i\x76 c\154a\163\163='\x63\x6f\154-\x73\155-12'>
                
                 <d\151\166 \143l\x61ss='\x63\x61\162\144'>
                      <\x64\151v \143l\141s\163='\x63ar\144-\x68\x65\x61d\145r'>
                        <\x73\x74ro\156g>\x4e\151l\x61i T\x65\163t &n\142\x73p;  &\x6e\x62sp;  &n\142s\x70;  &n\x62\163p; </s\164\x72o\156g>
                      
					 
					  
					  
					  </div>
					  
							  
					  
					  
					  
					  
					  
					  
                      <\x64\151\x76 \143\x6c\141\163\x73='c\141rd-\x62\157\144y \143\x61rd-\x62\x6c\x6fck'>
				<\154ink r\145l='\163\164\171\x6c\145\x73he\145\164' \x68\162\145f='c\x73\x73/\x64a\x74ata\x62l\x65/\x64\x61\x74\x61\124\141\x62\x6c\x65\163.b\x6f\157\x74\163\164\162\141\x70.m\151n.\x63s\x73'>
	
	
	
	 <\164\141b\154\145 id='\142\x6f\x6ft\163\164r\x61\160-\x64\141ta-t\x61b\x6c\145' \143l\141s\x73='\164a\142\x6ce \x74\x61\142\x6ce-\163tr\151\160\145d t\141\142l\145-\x62\x6f\x72\x64\145\162e\144 t\141\x62l\145-\x72\x65\163p\157ns\x69\x76e'>
                    <\164hea\144>
				
			<\x74\x72><\164\150>\116\x6f</th><\164\x68>\112ud\165\154 \124est</\164\150><\x74\150>\120\x65l\141ja\x72\141\156</th><\x74h>\x47\x75\162\165 \x4d\x61\160el</t\x68><\164\x68>\127ak\164u </th><\164h>N\151l\x61i</th></\x74\162>
				</t\x68\145a\144> 
				<\x74bo\144\171>"; $asq=mysqli_query($kon,"s\145\x6c\x65c\164 * \146\162\157m \164\145\163\x74_\x61\153t\x69\146 w\150\x65\x72\x65 \151\144_\x6b\x65\x6c\x61\x73='$id_kelas' "); $no=1; while($b=mysqli_fetch_array($asq)){ $ere=mysqli_query($kon, "\163\145\154\145\143t * f\x72om pel\x61\x6aar\x61\x6e w\x68\x65r\145 i\x64_\x70\x65la\x6aa\x72\141n='$b[id_mapel]' "); $r=mysqli_fetch_array($ere); $we1=mysqli_query($kon, "\163\145\x6c\x65c\164 * \146r\x6f\x6d a\156\147\147\157\164\141 \167he\162\x65 \151\x64_\141\x6eggota='$b[id_guru]' "); $tk1=mysqli_fetch_array($we1); $we=mysqli_query($kon, "s\x65\x6c\145c\x74 * \146ro\x6d \x75\x6c\141\x6eg\x61n \x77\x68\x65\162e id_u\154a\x6eg\x61n='$b[id_ulangan]' "); $tk=mysqli_fetch_array($we); $gg=mysqli_query($kon, "\x73\145\x6c\x65\x63\x74 \x69\x64_\x75lan\x67a\156, \167a\153\x74\x75,\x69\x64_\147\x75\x72u \146\x72\x6f\155 soa\154 \167h\x65r\145 \151\144_\165l\x61\x6e\147an='$b[id_ulangan]' \147ro\165\160 b\x79 i\x64_\x67\165r\x75 "); $gh=mysqli_fetch_array($gg); $we22=mysqli_query($kon, "\163\145\154\145\x63t * \146\x72\x6f\155 \x72\x61\x70o\x72\x74 w\x68\x65r\145 id_\x75\x6c\141\x6e\147\141n='$b[id_ulangan]' a\x6e\144 n\x69\x73='$nis'"); $wq=mysqli_fetch_array($we22); if($wq['nilai']>=0){ echo "
			<\164\x72><t\144>$no</\x74\x64><t\x64>$tk[nama_ulangan]</\x74d><\x74d>$r[nama_pelajaran]</t\144><td>$tk1[nama]</\x74\144><t\144>$gh[waktu] \x4d\145\x6e\151\x74</\164\150><\x74d>
			
		$wq[nilai]
			
			</td></\x74\x72>"; }else{ } $no++; } echo "
			</t\142\x6f\144y>   
            </\164\141\142\x6ce>
	
	
	
	
	
					  
					  
			         
                    </di\x76>

        </d\x69\x76>
    </\x64\x69\166>
	</\x64\151\x76>
	
	
	<sc\162i\x70\x74 \163r\x63='\152\x73/\144at\x61-t\x61\x62\x6c\x65/d\141\x74a\164\x61b\x6c\x65\163.\x6di\156.\x6a\x73'></\x73\x63\x72i\160\164>
    <\x73\x63r\151\x70\164 \163\162\x63='\x6a\163/d\141\x74\141-\x74\x61b\154\145/\x64a\164\x61\124ab\154e\163.\x62\157o\164\x73\164\162a\160.\x6d\x69n.\152\x73'></\163\x63\x72\x69\160\x74>
     <\x73\x63\162i\x70t \163\x72\x63='js/\x64\141\164\x61-\x74ab\x6c\145/\x64\141t\141\164a\x62l\145\163-\x69\156\151t.js'></\x73\143r\151\160\x74>

    <s\143\x72i\x70\x74 \x74\171p\145='\x74e\x78t/\x6aa\166\141s\143\x72\x69\x70\x74'>
        $(\x64\x6fc\165\x6d\145\156t).\162\x65\141dy(\x66\165\x6ect\151\x6fn() {
          $('#boot\163tr\141\x70-\x64\x61\x74\141-ta\x62\x6c\145-expo\162\x74').D\x61t\x61\x54\141\142\154e();
        } );
    </\x73\143r\x69\x70t> 
	"; } elseif($_GET['state']=='video1'){ echo"

	 <\144iv \143\154\141\x73\x73='\x63a\162\144'>
					
                   
					  
                <\144\151v c\x6c\141s\163='\143\x61\x72d-\142\x6fd\171 \143\141\162d-bl\157c\153'>

</\144\x69\x76>
</di\166>
<s\143\162\x69pt \x74\x79p\145='te\170\x74/\x6aa\166\141\163\143\162ip\164' \163\162\143='\152\x73/jq\165e\162\171-3.2.1.mi\x6e.\152\163'></s\x63r\x69\160\x74> 	
	
	
<\154ink \x72\145\x6c='\x73\x74\171\x6c\145\163heet' \150\x72\x65\x66='\x61\163s\x65\x74\x73/\143\163s/li\x62/d\x61\164a\x74\141\x62l\x65/\x64ata\x54\x61\x62l\145s.\x62\157\x6f\x74s\x74r\141\160.\155i\x6e.c\x73\x73'>


            <\x64\151v c\154\141\x73\163='\143o\x6c-\x73m-12'>
                
                 <\x64\x69\166 cl\141ss='\x63\x61rd'>
                      <\x64i\x76 \143l\141\163\x73='\143\141\x72d-\x68ead\145r'>
                        <\163\x74\162\x6f\156g>\104\141\x66\164\x61\x72 \126\151\144\145\x6f P\145\155\x62\145\154\141\x6a\x61ra\x6e &\156\x62\163\160;  &n\142sp;  &n\142\163\160;  &\156b\163\x70; </\x73\x74rong>
                      
					 
					  
					  
					  </\144i\x76>
					  
							  
					  
					  
					  
					  
					  
					  
                      <\144\151\x76 cl\141ss='ca\162\144-b\157d\171 \x63ar\x64-\x62\154\x6f\143\153'>
				<\154\x69\x6e\x6b \162\x65\154='styl\x65sh\145et' hre\146='\143\x73\163/d\141\x74\141\x74\x61\142\154\x65/d\141\x74\141\124\141ble\x73.\x62\x6fot\x73\x74\x72\141p.m\151n.\x63\x73\163'>
	
	
	
	 <\x74a\142le i\144='\x62\157ot\163\164r\141\x70-dat\141-\164\x61\142le' \143\x6c\x61ss='\164\141bl\145 t\x61bl\x65-str\151\x70\145d \x74\141\x62\x6ce-\142\x6fr\x64\145r\145d \x74\x61\x62l\x65-\162es\x70\157\x6e\x73i\166e'>
                    <\x74\x68ea\144>
				
			<\164\162><\x74\x68>\x4e\x6f</\x74\x68><t\x68>\112\x75d\165\x6c V\x69\x64e\x6f </th><\164\x68>\104\x65s\153\162\151\x70si</th><\x74\x68>\x50\x65la\x6a\141r\x61\156</\164\x68><\164\150>\107\165r\x75 \115\141\x70\x65\x6c</\164\x68><\164h>\x50\x69l\x69\x68a\156</t\x68></tr>
				</t\150\x65a\x64> 
				<\x74\142\157\x64\171>"; $mater=mysqli_query($kon, "\x73\145\154e\143\x74 * \146\x72\x6f\x6d \x76\151\x64\145\157 \167\x68\x65r\x65 \x69\x64_\153e\x6cas='$t[id_kelas]' "); $no=1; while($bb=mysqli_fetch_array($mater)){ $mp=mysqli_query($kon, "s\145l\x65\143\x74 * \x66\162\x6f\x6d \160\x65\154\141j\141ra\156 \167\150e\162e id_\160\x65la\x6a\x61\x72an='$bb[id_mapel]' "); $bb1=mysqli_fetch_array($mp); $mp2=mysqli_query($kon, "\163e\x6c\145\x63\164 * \x66\162o\x6d a\156\x67\x67\x6f\x74\141 wh\145\x72\145 i\144_\141\x6eggo\x74\x61='$bb[id_guru]' "); $bb12=mysqli_fetch_array($mp2); echo "

<\164\162><t\x64>$no</t\x64><t\144>$bb[nama_video]</\x74\x64><\x74\144>$bb[deskripsi]</t\x64><\164d>$bb1[nama_pelajaran]</td><td>$bb12[nama]</td>
<\x74d>


<\x61 h\162ef='?\163\x74\x61\164\145=p\162\x65\166\x69\x65\167\166\151d\x650&\153ode=$bb[id_video]' >
<b\x75t\x74\157\156 \x74\x79p\x65='\x62\x75t\x74\x6f\x6e' cla\163\163='\x62\164\x6e bt\156-outli\x6ee-\x70r\151\x6d\141\162y \142\164\x6e-\163\155'><\151 cl\141\163\163='f\141 f\x61-s\145\141\162\143\x68'></\x69>&\156\x62\x73p \x50\x72\x65\x76\x69\x65\167</\x62ut\x74\x6f\156></a>

			





</\x74\144>
</t\x72>

"; $no++; } echo "
			</\164b\x6fd\x79>   
            </\164\x61b\x6c\x65>
	
	
	
	
	
					  
					  
			         
                    </\x64\x69\166>

        </\x64\x69\x76>
    </d\151\x76>
	</di\166>
	
	
	<\163\x63\162\151\160\x74 s\x72\x63='\152\x73/\144a\164\x61-ta\142\154e/\144at\141t\141bles.\155\x69n.\152\163'></\163\143\162\x69\160\164>
    <\x73\143ript s\x72c='\152s/\144\141\164\141-\x74\x61\142\154e/dat\141\124a\x62\154\145\x73.boo\164\x73\x74\x72\x61\160.\155i\156.\x6a\x73'></s\143r\x69\x70\x74>
     <\163c\162ip\x74 \x73\x72\143='j\x73/d\x61\164\x61-t\x61\142le/d\141\164\141ta\142le\x73-in\151\x74.js'></\x73cr\x69\160\x74>

    <\163\143rip\x74 t\x79\160e='\x74e\170t/j\141\x76ascr\x69p\x74'>
        $(\144\157\143\165me\156t).\x72\145a\144y(f\x75\156\143\x74\151\x6f\x6e() {
          $('#b\157\157t\x73t\162\141p-d\141\x74\x61-t\141b\154e-e\x78\160\157\162\164').D\141t\141\124\141\x62\154e();
        } );
    </\163\143\162\x69\160\164> 
	";
} elseif($_GET['state']=='previewvide0'){ $kodevid=cegah($_GET['kode']); $sdf=mysqli_query($kon, "se\154\x65\x63t f\151\x6c\155, \x64e\x73k\x72\x69\x70\163i \x66\x72\x6f\155 \x76id\145\x6f \167\150\145r\x65 \151\x64_\x76\x69deo='$kodevid'"); $h=mysqli_fetch_array($sdf); echo"


            <\144i\x76 \x63\154a\x73\163='\x63\x6fl-\x73\x6d-12'>
                
                 <d\151\166 \x63\x6c\141\163\x73='c\x61rd'>
                      <\x64\151\x76 c\154\141s\163='\143a\x72d-h\145ad\145r'>
                        <str\157ng>\x56\151\144\x65\x6f \120\162e\166ie\167</\x73\164\162o\x6e\x67>
                        
                    
                      </\144\151\166>
                      
                    
                      
                      
           
                    <\144\x69\166 \x63l\x61s\163='c\x61\162d-bod\171'>

$h[film]
                    </\x64\151v>
                    </\x64\151\x76>
                    </d\151v>
                    "; } if($_GET['state']=='video'){ $dataPerPage = 8; if(isset($_GET['page'])) { $noPage = cegah($_GET['page']); } else $noPage = 1;  
$offset = ($noPage - 1) * $dataPerPage; $srt=mysqli_query($kon, "\163\145le\143\x74 * f\162\157\x6d \x76i\144\145\157 \167\x68\x65\162e i\x64_\153\x65\x6cas='$t[id_kelas]' \147r\157u\x70 \x62\x79 \x6e\x61\x6d\141_\166\x69\144e\157 \x6f\162d\145r b\x79 \151\x64_\166\151d\x65\x6f \x44\105SC LI\115IT $offset, $dataPerPage"); echo "
<\154\151\156\153 \x72el='\163\164yl\145\x73\x68\145e\164' h\x72\145\146='\143\x73s/\x61\144\144.\143\163\x73'>
 <d\x69v \143\x6c\141s\163='\x63\x61\162\x64'>


                    
                      <\144\151v \x63la\163\x73='c\x61\x72d-\x68\x65\141d\x65\162'>
                        <\x73tr\x6f\x6eg>Vi\144\x65\x6f \x50\145\x6d\142\x65\x6c\141\x6a\x61ra\x6e</\163\164ro\x6e\x67>
                      </d\151v>
                      
                <d\151\x76 \143\x6ca\163s='c\141r\x64-\142\x6fdy \143ar\x64-\x62lo\x63\153'>
    "; $no=$noPage+1; while( $cv=mysqli_fetch_array($srt)){ $kode=ubah($cv['nama_video']); echo " 
    <\163\164\171\x6c\145>
.\166id\145\x6f\x6b\165{
    \x70\157s\x69\164io\156:\x72e\x6c\141t\151ve;
}
.\x70\x6c\x61\171{
    \x70\x6f\x73\151t\151\x6f\x6e:\141\x62\163o\x6c\x75t\x65;
    \x77i\x64\164\150:66\x70\170;
    h\145\x69\x67h\164:43;
    \154\x65\146t: 50%;
    \x74\x6fp:50%;
    ma\x72g\151\156-l\145ft:-33\160x;
    \x6d\x61\x72\x67\151\156-to\160:-21\160x;
   
}

    


    </\163\164yle>    

         
<\x64iv c\154\x61\x73\x73='\143\x6f\x6c-\155\144-3 \143\x6fl-\x73m-6'>
<\144\x69\x76 s\164\x79l\x65='mi\156-\x68e\151g\150\x74:300\160\x78; \x70\141d\x64\151n\x67:5\160\170; \155a\x72gi\156-\x62\157\164\164\x6f\155:15\x70\x78;'>
<\x64\x69v \163\x74yl\x65='\155\x61\x72g\x69n-\142\x6f\x74\164\x6fm:5p\x78'>

<div c\x6ca\163s='\x76i\144\x65\157\x6b\165'>
<\x61 \x68\x72\x65\146='?\x73\x74\141\164e=\x74\141m\x70\x69l\x76i\144\x65\157&id=$kode'>  
<\x69\155\x67 \163\x72\x63='v\x69\144\x65\157/$cv[gambar]' \167\x69\x64\164h='100%'>
<\x69\155\147 s\162\x63='\141\163\x73\x65t/\160l\x61y.p\x6e\x67' \143la\163\x73='p\154\x61y'>
</a>
</\144\x69\x76>
<\x684>$cv[nama_video]</\150\064>
<\144\x69v \x63\x6c\141\x73s='\x64esk\162ips\151'>
$cv[kd]
</\144\151\x76>
</\144\x69\166>
</\x64\151v>
</d\x69\x76>

"; $no++; } echo "
<di\x76 \x63las\163='\160\x61\x67i\x6e\147'>
<d\x69\x76 st\x79\154e='\x63l\145ar:\x62o\164h;'></\144i\166>
"; $hasil = mysqli_query($kon, "S\105LE\x43T C\117UNT(*) \x41\x53 \x6a\165\155\x44a\164\x61 F\122\x4fM v\x69\x64\x65\157 \127\x48\105R\105 \151\x64_k\145\x6c\x61\163='$t[id_kelas]'"); $data = mysqli_fetch_array($hasil); $jumData = $data['jumData'];  
$jumPage = ceil($jumData/$dataPerPage);  
if ($noPage > 1) echo "<d\x69\x76 \x63\x6ca\163s='\x66i\x72\x73t'><a \x68\x72\x65\146='".$_SERVER['PHP_SELF']."?\163\164\x61\164\x65=v\151d\x65\x6f&\160\141\x67\145".($noPage-1)."'>&\x6ca\161\x75\157</\x61></\144\151\x76>";  
for($page = 1; $page <= $jumPage; $page++) { if ((($page >= $noPage - 8) && ($page <= $noPage + 8)) || ($page == 1) || ($page == $jumPage)) { if ($page == $noPage) echo " <\x6c\151><\142>".$page." </\x62></\x6ci>"; else echo " <a hr\x65\146='?\x73\164\x61\164\x65=v\x69\x64\x65\x6f&\x70\141\147\x65=".$page."'>".$page."</\x61> "; } }  
if ($noPage < $jumPage) echo "<d\151v \143l\x61s\163='\145\156\144'><a h\162\x65f='".$_SERVER['PHP_SELF']."?\163\164\x61\164e=v\151\144eo&p\141ge=".($noPage+1)."'>&\162\141\161u\x6f</\141></div>"; echo "
</\144\x69\166> "; } if($_GET['state']=='tampilvideo'){ $kodevid=cegah($_GET['id']); $baca=balik($kodevid); $wwe=mysqli_query($kon, "se\154e\x63\164 * \146\162\157\155 \x76i\144\x65o wh\145\x72\145 \x6e\x61m\141_\x76ide\157='$baca'"); $mm=mysqli_fetch_array($wwe); $mapl=mysqli_query($kon, "\x73\x65l\145ct * fr\x6fm \160\145l\141\152\x61\162\x61\x6e w\150e\162\145 \151\x64_\x70e\x6c\141\x6a\x61r\x61\x6e='$mm[id_mapel]'"); $ty=mysqli_fetch_array($mapl); echo "
<li\156\x6b \x72e\x6c='\x73t\171\x6ces\150\145et' \x68\162e\x66='\x63\163s/a\144\x64.\x63\x73\163'>
 <d\x69v c\x6ca\163\163='\x63\x61\162d'>


                    
                      <d\151\x76 \143\x6c\141ss='\143\141\x72\x64-\x68e\x61d\145\x72'>
                        <s\164\162\x6f\x6e\147>Vi\144\145\x6f \120\x65\x6d\x62\x65\154aj\x61\162\x61\x6e</\163\164\162\x6fn\x67>
                      </\x64\151v>
                      
                <d\x69\166 c\154as\x73='ca\162\x64-\142o\x64y \143a\162\144-\142\154\x6f\x63\153'>

<\x64\x69\166 \143l\x61\x73s='row'>
                <\x64\151\166 class='\143\x6f\x6c-12 col-m\x64-8'>
                 $mm[link]

                </\x64i\166>

                <d\151v c\154\x61\x73s='\143\157l-12 c\x6f\154-\x6dd-4'>
                <b> \x50\145\154\x61\x6aa\162\x61\x6e : <\142\162></\x62>
                $ty[nama_pelajaran] <\142r>
               <\x62> \113\x44 : <\142\x72></\142>
                $mm[kd] <br>
               <\142> \x4belas : <\142\x72></b>
                $mm[kelas]<\x62r>
              <\x62>  Se\155\x65\163\164\x65\x72 :<br></b>
                $mm[semester]<\x62\162>
               <b> D\145\x73kr\151\160s\151 \126i\144\x65\157 <\142r></\x62>
                
                $mm[deskripsi]

                </\x64iv>



</d\151\x76>

</d\151\x76>

 <\x64iv \x63las\x73='c\x61\162d'>


                    
                      <\x64\x69\x76 cl\141\x73s='c\x61\x72d-h\145a\144\145r'>
                        <\163\164\x72\x6f\x6e\x67>Vide\x6f La\151\x6en\171\141</\x73\164r\x6fn\x67>
                      </\144iv>
                      
                <\x64\151\166 c\154\141\x73\163='c\x61\x72d-\142\x6f\x64y \143\x61\162d-b\x6co\x63k'>
    "; $dataPerPage = 8; if(isset($_GET['page'])) { $noPage = cegah($_GET['page']); } else $noPage = 1;  
$offset = ($noPage - 1) * $dataPerPage; $srt=mysqli_query($kon, "s\x65\154\145c\x74 * \x66\162\157\x6d vid\x65\x6f \x77h\145\162\145 \x69d_k\145\x6c\141s='$t[id_kelas]'  an\144 \x6e\141\x6d\x61_\166\x69\144\145o<>'$baca' \x67rou\x70 b\171 \156\141m\141_v\x69\x64\145\157 \157rd\x65\162 \x62\x79 \151\144_vi\144e\x6f \x44\105\x53\x43 L\x49\115I\x54 $offset, $dataPerPage"); $no=$noPage+1; while( $cv=mysqli_fetch_array($srt)){ $kode=ubah($cv['nama_video']); echo " 
    <\163\x74\x79\x6c\145>
.\x76\151\x64\x65\x6f\153\x75{
    \160o\163i\164io\x6e:\162\145la\x74iv\145;
}
.\160\x6ca\x79{
    \160o\x73\x69ti\x6fn:\x61\x62\163\x6f\x6cute;
    w\x69dth:66\x70\x78;
    \x68\x65ig\x68t:43;
    l\145\x66\x74: 50%;
    t\157\x70:50%;
    \155\141r\x67i\156-\154ef\164:-33\x70x;
    ma\162gi\156-\x74\x6f\x70:-21\160\170;
   
}

    


    </\x73\x74\x79l\x65>    

         
<d\151v \143\154\141\163\163='c\157l-\155d-3 \143\157\154-s\x6d-6'>
<d\151v \x73\164\171le='m\151\156-h\145i\147h\164:300p\170; p\x61\144ding:5\x70\170; \x6d\141\x72\147i\156-b\157\x74t\157m:15px;'>
<d\x69\166 s\x74\x79\154\145='ma\162\x67\151\x6e-b\x6f\x74tom:5\160\170'>

<\144i\166 \143lass='\166\x69\x64\145o\153\165'>
<\141 \150r\145\x66='?\x73t\141\x74\x65=ta\155\x70\x69l\166i\144\x65\x6f&\x69d=$kode'>  
<\151\x6dg \x73rc='\166\x69\x64\145o/$cv[gambar]' \x77i\144\164\150='100%'>
<\x69\155\x67 \163\x72\x63='\x61ss\x65\164/\160\x6c\x61\171.\x70ng' c\x6c\x61s\x73='p\x6ca\171'>
</\141>
</d\x69\166>
<h4>$cv[nama_video]</h\x34>
<\144\x69\166 cl\141\x73\163='\x64\145s\153\162\x69\160si'>
$cv[kd]
</\x64\151v>
</div>
</\144\x69v>
</\x64\151v>

"; $no++; } echo "
<d\x69\166 \x63\x6c\141s\163='\160\x61\x67\x69\x6e\x67'>
<di\166 \163t\x79l\145='cl\145a\x72:\x62o\x74h;'></d\151\166>
"; $hasil = mysqli_query($kon, "\123\x45LE\103\124 \103\117\125\116\124(*) A\123 \x6a\x75\155D\x61\164\x61 \106\122\117M v\151d\x65\x6f \127\x48\105R\105 \x69\144_k\145l\141\x73='$t[id_kelas]'  \147\x72\x6f\165\x70 by \156\x61ma_v\x69\144\145o"); $data = mysqli_fetch_array($hasil); $jumData = $data['jumData'];  
$jumPage = ceil($jumData/$dataPerPage);  
if ($noPage > 1) echo "<\x64\151\166 \x63\154\x61s\163='fir\x73t'><\x61 \150re\x66='".$_SERVER['PHP_SELF']."?\x73t\x61te=\x74a\155\160il\x76i\x64\145\157&p\x61g\145".($noPage-1)."'>&\x6c\x61\161\165\157</\x61></\x64\151\166>";  
for($page = 1; $page <= $jumPage; $page++) { if ((($page >= $noPage - 8) && ($page <= $noPage + 8)) || ($page == 1) || ($page == $jumPage)) { if ($page == $noPage) echo " <l\151><\142>".$page." </\x62></l\151>"; else echo " <\141 \150r\145f='?st\141\164\x65=\x74am\x70\x69\154\x76\x69\x64eo&\160\x61\x67e=".$page."'>".$page."</\141> "; } }  
if ($noPage < $jumPage) echo "<\x64\151\166 \143\154\x61\163s='en\x64'><a h\162ef='".$_SERVER['PHP_SELF']."?st\141\164\x65=\164\141m\x70\151lvi\x64\x65\x6f&\160a\x67e=".($noPage+1)."'>&\162aq\x75\x6f</\x61></\x64\151v>"; echo "
</\144\x69\166> "; } if($_GET['state']=='videolibrary'){ $dataPerPage = 8; if(isset($_GET['page'])) { $noPage = cegah($_GET['page']); } else $noPage = 1;  
$offset = ($noPage - 1) * $dataPerPage; $srt=mysqli_query($kon, "s\145\154\145\143t * \146r\157\x6d vi\x64e\157 g\x72\x6f\x75p \x62\x79 \156\x61\155\x61_\166i\144\x65\x6f or\144\x65\x72 b\171 \151d_\166\x69d\x65\x6f \104E\x53\103 \x4c\111\x4d\111\124 $offset, $dataPerPage"); echo "
<l\151n\153 r\x65\154='s\164\171le\x73\150ee\x74' \x68re\146='\x63\163s/\x61d\x64.\143\x73s'>
 <\144\x69\x76 \143\154\x61ss='card'>


                    
                      <\144\x69\x76 \x63\x6cass='c\x61\x72\144-\150\x65\x61\144\x65\x72'>
                        <\x73\x74\x72o\156\x67>V\x69\x64e\x6f \120\x65\155b\145l\x61ja\x72a\x6e</s\164ro\x6eg>
                      </\144\151\166>
                      
                <\144\151v \143l\x61\163\163='\x63\x61\162d-\142ody ca\162\x64-\142\x6co\x63\153'>
    "; $no=$noPage+1; while( $cv=mysqli_fetch_array($srt)){ $kode=ubah($cv['nama_video']); echo " 
    <sty\154\145>
.\166id\x65\157\x6b\x75{
    p\x6f\x73\x69\164\151on:r\x65\x6c\x61t\x69\166\x65;
}
.p\154\x61y{
    \160os\151\164\151\x6fn:absol\165\164\x65;
    \167\x69\144\x74\150:66\160x;
    \x68\145i\147\x68\164:43;
    l\x65ft: 50%;
    \164op:50%;
    \x6d\x61rgi\156-\154e\146\x74:-33\160\x78;
    m\141\x72\147\151n-t\x6fp:-21\160\x78;
   
}

    


    </\163t\171\x6c\145>    

         
<d\x69v \x63\x6c\141\x73\x73='\143ol-m\x64-3 \143ol-\163\155-6'>
<\x64\x69v s\164y\154\145='mi\x6e-\150\145\x69\147\150\164:300\x70x; padd\x69\x6e\x67:5p\170; \155\141\x72\147\151\x6e-\x62\157\164tom:15\x70\170;'>
<\144\x69v \163ty\154\x65='\155\141rgin-b\157\164t\x6f\x6d:5\x70\170'>

<\x64\x69v \x63\154a\163s='vi\x64\145\x6fku'>
<a \150\x72e\146='?st\x61\164e=\164amp\x69\154\x31vid\145\157&\x69d=$kode'>  
<\x69\x6dg s\x72\x63='v\x69\144\145\x6f/$cv[gambar]' w\x69\x64\x74h='100%'>
<i\155\147 s\162\143='a\163\x73e\164/\160\x6c\141\x79.p\156\x67' c\154\x61\x73\x73='\160l\141\x79'>
</\141>
</di\166>
<\x68\x34>$cv[nama_video]</h\x34>
<\144i\166 \143\154a\x73s='d\x65\x73\153\162\151\160\163\151'>
$cv[kd]
</\x64\151\x76>
</\144\x69\x76>
</di\x76>
</d\x69\x76>

"; $no++; } echo "
<\x64\x69\166 cla\163\x73='\160\x61\147i\156\x67'>
<\x64\x69v s\x74\171l\x65='\x63l\x65\x61\162:b\x6ft\x68;'></\144\x69\x76>
"; $hasil = mysqli_query($kon, "\x53\105\114\x45\x43\124 \103\117\x55\x4e\124(*) \x41\x53 \x6aumDa\x74\x61 \x46\122\x4fM v\151\144\x65o "); $data = mysqli_fetch_array($hasil); $jumData = $data['jumData'];  
$jumPage = ceil($jumData/$dataPerPage);  
if ($noPage > 1) echo "<\144iv \143\154\141ss='\x66i\162\163t'><\x61 \x68re\x66='".$_SERVER['PHP_SELF']."?\x73t\141\164\145=v\151\144e\157\x6c\x69\142\x72\141\162\171&p\141\x67\145".($noPage-1)."'>&\x6c\141\x71\165o</a></\x64\151\166>";  
for($page = 1; $page <= $jumPage; $page++) { if ((($page >= $noPage - 8) && ($page <= $noPage + 8)) || ($page == 1) || ($page == $jumPage)) { if ($page == $noPage) echo " <\x6ci><b>".$page." </\142></\x6ci>"; else echo " <\x61 \x68r\145\146='?\x73\164\141\x74\145=v\151\144\145\157\x6c\x69bra\x72\x79&p\x61g\145=".$page."'>".$page."</\x61> "; } }  
if ($noPage < $jumPage) echo "<\x64i\166 \143lass='\145\156d'><a \x68\162e\146='".$_SERVER['PHP_SELF']."?s\164\141\x74\145=\x76\x69\x64\145\157\x6cib\x72\141ry&\160\x61ge=".($noPage+1)."'>&\162\141q\x75\x6f</\141></\144\x69\x76>"; echo "
</\144\x69\166> "; } if($_GET['state']=='tampil1video'){ $kodevid=cegah($_GET['id']); $baca=balik($kodevid); $wwe=mysqli_query($kon, "s\145le\143\x74 * \x66\162o\155 \x76i\x64\x65\157 wh\145r\x65 na\x6d\141_vi\144\x65o='$baca'"); $mm=mysqli_fetch_array($wwe); $mapl=mysqli_query($kon, "\x73e\154\x65ct * f\162\157\155 p\145\154a\152\x61r\141\x6e \167h\x65\162\x65 \x69\x64_\160\145\154\x61jar\141n='$mm[id_mapel]'"); $ty=mysqli_fetch_array($mapl); echo "
<\x6c\151\156\x6b rel='s\x74y\x6c\x65\x73\150\x65et' h\162\145f='c\163\x73/\x61\144d.c\163\163'>
 <\144\x69v \143\x6c\141\x73\163='\x63ard'>


                    
                      <\144\x69\x76 \x63la\163\x73='\x63\x61r\x64-\x68eade\x72'>
                        <\163\164\x72o\156g>V\x69\144\x65\157 \x50e\x6d\142\145\154aj\141ra\156</\x73\164r\x6f\x6eg>
                      </\x64i\x76>
                      
                <\144i\x76 \x63\154\141\163s='c\x61\162d-\x62\x6f\x64y \143\141rd-b\x6c\x6fc\153'>

<d\x69v \x63\154\141s\163='r\x6f\167'>
                <\144\x69v \x63\154a\163\163='c\x6f\154-12 \x63o\154-m\144-8'>
                 $mm[link]

                </\144\151v>

                <\144\151\166 \x63\154\141ss='\x63o\x6c-12 \x63\157l-m\x64-4'>
                 <\x62> \120e\x6c\x61\152\x61\162\141n : <br></\x62>
                $ty[nama_pelajaran] <\x62\x72>
               <b> \113\x44 : <\142\162></b>
                $mm[kd] <\x62r>
               <b> \113\x65l\141s : <b\x72></\142>
                $mm[kelas]<b\162>
              <b>  \x53emes\x74\145\x72 :<\x62r></\142>
                $mm[semester]<\x62r>
               <\x62> De\x73\153\162\x69\160s\x69 V\151d\145o <\x62\x72></\x62>
                
                $mm[deskripsi]

                </div>



</d\x69v>

</\144\151\x76>

 <\x64\151\x76 cl\141\x73\163='\143\141\x72d'>


                    
                      <d\151\x76 cl\x61\163s='\x63\x61r\144-hea\144\x65r'>
                        <s\x74r\157ng>\126\x69d\145o La\x69\x6e\156\171\141</\x73\164r\157\156\x67>
                      </di\x76>
                      
                <\x64\x69\x76 \x63l\141\x73\x73='\x63ard-\142\x6f\x64\x79 \x63a\x72\144-\142\154\x6f\143k'>
    "; $dataPerPage = 8; if(isset($_GET['page'])) { $noPage = cegah($_GET['page']); } else $noPage = 1;  
$offset = ($noPage - 1) * $dataPerPage; $srt=mysqli_query($kon, "\163\145\x6c\x65\x63t * \x66\x72\157\x6d \x76i\144\x65\x6f \167\150\145\162\145 \x6ea\x6d\141_\166i\144\x65\157<>'$baca' \x67\162ou\160 \142\171 n\141\x6d\141_vi\144e\157 or\x64\145\x72 b\x79 id_\x76\151\144e\x6f L\x49\x4dIT $offset, $dataPerPage"); $no=$noPage+1; while( $cv=mysqli_fetch_array($srt)){ $kode=ubah($cv['nama_video']); echo " 
    <\x73\x74yl\x65>
.\x76id\145o\153\165{
    \x70\x6f\163i\164\151\157n:\x72\x65\x6ca\164\x69v\145;
}
.\160\154\141\x79{
    \x70\x6fsitio\x6e:\141\142s\x6flute;
    w\x69d\164\150:66px;
    \150ei\147\150\164:43;
    l\x65\x66t: 50%;
    t\x6f\x70:50%;
    \155a\x72\147\x69\156-\x6c\x65\146t:-33\x70\x78;
    m\141r\x67\151n-\x74o\x70:-21\x70\x78;
   
}

    


    </\x73\x74y\x6c\145>    

         
<d\151\x76 \143l\141\163s='c\157\x6c-\155d-3 \143\157l-s\x6d-6'>
<d\x69v sty\154e='\155\x69\x6e-\150\145\x69\x67\150\164:300\x70\170; \160\141\x64\144in\x67:5\160\170; \155ar\x67\151\x6e-b\x6f\x74\164o\155:15\160\x78;'>
<\144\151\x76 \x73\164\171\154\x65='\155\141r\147\151\156-bo\164t\x6f\x6d:5\160x'>

<\144i\x76 \x63\154\141s\x73='\166\151d\145\x6f\x6b\x75'>
<a href='?s\x74a\x74\145=\164a\x6dp\x69\x6c1v\x69\144\145o&id=$kode'>  
<\151\155g \163\x72c='v\151\x64\145o/$cv[gambar]' \x77\x69\x64\164h='100%'>
<\151mg s\x72\143='\141\163\163et/p\154\x61\171.\160n\147' \143\x6c\x61\x73\163='\x70la\171'>
</\141>
</d\151\166>
<\x684>$cv[nama_video]</\150\064>
<\x64\151\x76 \143l\x61ss='\x64e\x73\x6bri\160\163\x69'>
$cv[kd]
</\144\x69\166>
</d\151\x76>
</\144\x69\166>
</\x64iv>

"; $no++; } echo "
<d\x69\x76 \143\x6ca\163s='\160\141gi\156\147'>
<\x64i\x76 \x73\164\171le='\143\x6ce\x61r:b\x6f\164h;'></\x64\x69v>
"; $hasil = mysqli_query($kon, "\x53\x45\114E\x43\124 CO\x55\116T(*) \101\x53 \x6au\155\x44\x61ta \106\122\x4fM vi\144\145\x6f "); $data = mysqli_fetch_array($hasil); $jumData = $data['jumData'];  
$jumPage = ceil($jumData/$dataPerPage);  
if ($noPage > 1) echo "<\144\151\x76 \x63\154ass='f\x69\162\x73\x74'><\x61 \x68\x72\x65f='".$_SERVER['PHP_SELF']."?\x73tate=t\x61\x6d\x70\x69\x6c\061\x76\x69\x64e\157&\x70\141\x67\x65".($noPage-1)."'>&\x6c\x61qu\x6f</a></d\x69\x76>";  
for($page = 1; $page <= $jumPage; $page++) { if ((($page >= $noPage - 8) && ($page <= $noPage + 8)) || ($page == 1) || ($page == $jumPage)) { if ($page == $noPage) echo " <\154i><\142>".$page." </b></\154\x69>"; else echo " <a \x68\x72\x65f='?\163t\141te=\164am\x70\x69\x6c\061\x76\151\x64e\157&p\141\147\145=".$page."'>".$page."</a> "; } }  
if ($noPage < $jumPage) echo "<\144i\166 \x63\154\x61\163\163='en\x64'><\141 \150\x72\x65f='".$_SERVER['PHP_SELF']."?s\x74\x61t\x65=\164\141\x6d\160\x69\154\061\x76id\x65\157&\x70\141g\145=".($noPage+1)."'>&r\141q\165o</a></\x64\151\x76>"; echo "
</d\151\166> "; } elseif($_GET['state']=='tanyaguru'){ echo"

	 <d\151\x76 \143\154\141\163\x73='\x63\141\x72\x64'>
					
                   
					  
                <\x64\x69\166 \x63\154\x61\x73\x73='\143\x61\x72d-\x62od\x79 \x63a\162\x64-\x62\154o\x63\153'>

</di\x76>
</d\x69\x76>
<\163\x63\x72\151\160\x74 \164yp\145='\164\145\x78t/\152a\166a\163\x63r\151\160t' \163rc='\x6as/j\x71\x75e\x72\x79-3.2.1.mi\x6e.\x6as'></\163c\x72\151\x70t> 	
	
	
<\154\151\156\153 \x72\145\x6c='\x73\x74\171l\145\163\150\x65\x65t' \x68\162\x65\146='a\x73\163\x65\164s/\143\x73\x73/l\x69\x62/\144ata\164\141\x62\x6c\145/d\x61\164\x61T\141b\154\145\x73.\x62\157\x6ft\163\x74r\141\160.m\x69\x6e.\x63\x73s'>


            <\x64\151v \143\154ass='\x63\x6f\x6c-\x73\x6d-12'>
                
                 <div \x63\154\141\x73\163='\x63a\x72\144'>
                      <d\x69v \143la\x73\163='\143a\x72d-h\x65a\x64\145r'>
                        <str\157\156g>\x54\x61\x6e\171a \107\165ru &\156\142\x73\x70;  &\156b\163p;  &\x6e\142\163p;  &n\x62sp; </\163t\162\x6fn\147>
                      
					 
					  
					  
					  </\x64\151v>
					  
							  
					  
					  
					  
					  
					  
					  
                      <\x64iv c\154\x61\x73\x73='c\141r\x64-b\x6f\144\171 c\141\162d-\x62lo\143\x6b'>
				<\x6c\x69\x6ek \162e\x6c='s\164\171\154\145\163\150\x65\x65\164' hr\145\x66='\143s\x73/\144a\x74\x61ta\x62\154e/d\141\x74\141\124\141\142\x6ces.\142o\x6ft\x73t\x72ap.\x6di\156.css'>
	
	
	
	 <\x74\x61b\x6c\x65 \x69d='\x62oot\163t\x72\141p-\144\141ta-\164\x61\142\154e' c\x6c\141\163\x73='\164a\142\154\x65 \164\x61\142\x6ce-\163\x74\162\x69\x70\145\144 t\141\142l\x65-\142\157r\144er\145d \x74a\x62le-\162e\x73\x70\x6f\x6esi\x76\145'>
                    <\x74\150\x65a\x64>
				
			<\x74r><\164\150>No</\x74\150><\x74\x68>Judu\154 M\x61\164\x65r\151</t\x68><\x74\150>Pe\x6c\141\x6aar\141\x6e</\x74\x68><t\x68>\x47\x75ru \x4d\141p\x65l</\164\x68><\x74h>\x50\x69lih\141\156</\164\150></\x74r>
				</t\150ea\x64> 
				<\164bod\171>"; $mater=mysqli_query($kon, "s\145l\x65ct * f\x72\x6fm \155a\x74\x65\162\x69 \x77\150\x65\x72\x65 i\x64_\153\145\x6ca\163='$id_kelas' "); $no=1; while($bb=mysqli_fetch_array($mater)){ $mp=mysqli_query($kon, "\x73\x65\154\x65c\x74 * \146\162o\155 p\145lajara\x6e \x77here \x69\x64_p\145l\x61\152\141\x72\141n='$bb[id_mapel]' "); $bb1=mysqli_fetch_array($mp); $mp2=mysqli_query($kon, "\163\x65\154\x65\143\164 * \x66\162\157m a\156\147g\x6ft\141 \x77he\162\145 \151\x64_\141\x6egg\157\164\x61='$bb[id_guru]' "); $bb12=mysqli_fetch_array($mp2); $materi22=ubah($bb['nama_materi']); $uhk=mysqli_query($kon, "\x73\x65l\x65\x63\164 * \146r\157\x6d \x74\x65r\x61\x6b\x68\x69\x72 \167he\x72\145 id_u\x73er='$id_penggunanya' \x61\156\x64 \x73eb\x61\147\x61\x69='s\151\163\x77a' \x61n\x64 i\144_\x63\x68at='$bb[nama_materi]' "); $xc=mysqli_fetch_array($uhk); $tanggalsekarang=$xc['tanggal']; $jamsekarang=$xc['jam']; $jchat=mysqli_query($kon, "\x73\145\x6ce\143t * f\162\x6fm \x74\141n\x79\141\147\165\x72\165 \167h\x65\162e \x74\x67l='$tanggalsekarang' and \151\144_\x6d\141\164\x65\x72\151='$bb[nama_materi]' a\x6ed \152\141\155 > '$jamsekarang' "); $jumlahdata=mysqli_num_rows($jchat); echo " 

<\164\x72><t\x64>$no</\164\144><t\x64>$bb[nama_materi]</t\x64><t\x64>$bb1[nama_pelajaran]</t\x64><\x74d>$bb12[nama]</t\144>
<\x74\144>



<a \150\162\145\146='?\163\x74\x61\x74e=ch\141\x74&\151d\x6d\x61\x74\x65=$materi22' >
<\x62\x75\164\164\157\x6e t\171p\x65='\142\165\x74\x74\157\x6e' \x63\x6c\x61\x73\163='\142\164\x6e \142tn-\x6fu\x74l\x69\156\x65-\x73\x75c\143\x65\163\163 \142\164\156-sm'><\151 \143\154a\x73s='\146\141 f\141-\x63\157m\x6d\x65nt-\x6f'></\x69>&\156bsp \x54\141\x6e\x79\141 G\165\x72\165</\142u\164\164o\156></\x61>
			

";if($jumlahdata=='0'){ }else{ echo "
<\163\160a\156 \163ty\x6ce='\160a\x64\x64\151ng:4\x70\x78 10\x70x; b\141\143\153gr\x6fun\144:\162e\x64; \x63\157\154\x6f\162:#\x66\146f; \142\x6f\x72\144\x65\162-\x72ad\x69\x75s:15\160x;'><\x62>$jumlahdata</\x62></\x73\x70\141\x6e>
    "; } echo "  



</\164\144>
</\x74r>

"; $no++; } echo "
			</t\142\x6f\144y>   
            </ta\142\x6c\x65>
	
	
	
	
	
					  
					  
			         
                    </d\x69v>

        </\x64i\166>
    </\144\x69v>
	</di\x76>
	
	
	<sc\x72\x69pt \163\x72\x63='\x6a\163/\144\x61\164\x61-\x74\x61b\154e/\144a\x74\141t\x61\142les.\x6d\151n.j\163'></\x73\x63\x72\151\160t>
    <s\143r\151\x70\x74 \x73\162c='\x6a\163/\144\141\164a-ta\x62\x6c\x65/\144\141\x74aT\x61\142\x6ce\163.\x62\157\x6f\x74\x73trap.m\151\x6e.j\x73'></s\143\x72\151\160\164>
     <s\x63\162i\x70t \163\162\x63='j\x73/\x64ata-t\x61\x62\154\145/\144a\164a\164ab\x6c\145s-\151n\151\x74.j\163'></\x73\x63r\151p\164>

    <scri\160\164 \x74y\x70e='\164\145\x78t/j\x61\x76\141s\x63\162\x69p\x74'>
        $(\x64o\143\x75ment).\x72\x65ad\x79(\x66\165\156\x63\x74io\156() {
          $('#\x62\157o\x74\x73t\162\x61\160-\x64\x61\x74a-t\x61\x62\154\145-\145x\x70\157\162\x74').\104\x61\x74a\x54\141\x62le();
        } );
    </s\143\x72\x69p\x74> 
	"; } elseif($_GET['state']=='chat'){ date_default_timezone_set('Asia/Jakarta'); $ambiltanggal1=date("\131-\x6d-d"); $ambiljam1=date("\x48:\151:\163"); $idchat=cegah($_GET['idmate']); $idchat2=balik($idchat); $rfr=mysqli_query($kon, "se\154e\143\x74 \156\141ma_\x6da\164e\x72\151, \151d_\147u\162\x75, i\144_\155a\x74eri \146\162\x6f\155 \155a\164e\162\x69 \167\x68e\x72e \156\x61\155a_\155\x61\164eri='$idchat2' "); $bx=mysqli_fetch_array($rfr); $namamateri=$bx['nama_materi']; $gurunya=$bx['id_guru']; $kodemateri=$bx['nama_materi']; $ca=mysqli_query($kon, "\x73\x65\154e\x63\164 * \x66r\x6fm terakh\151\x72 w\x68er\x65 \x69\x64_u\163\x65\x72='$id_penggunanya' a\x6e\144 \x73\145\142ag\x61i='s\x69s\167\141' a\156\144 i\x64_c\150a\164='$namamateri'"); $caridaftar=mysqli_num_rows($ca); if($caridaftar>0){ mysqli_query($kon, "\x55P\x44\101\124\105 t\145\162ak\150\x69\x72 SE\124 ta\156\x67gal='$ambiltanggal1',
                                j\x61m='$ambiljam1'
                               
                                
                                \x77\150\x65\x72\145 i\x64_u\163\145r='$id_penggunanya' \141\x6e\x64 s\x65\x62\141\147\x61\x69='\163is\x77\141' \x61\x6e\144 i\144_\143\150\x61\164='$kodemateri'
                                ") or die (mysqli_error($kon)); }else{ mysqli_query($kon, "\x49\x4eSER\x54 I\x4e\124\117 \x74\x65ra\x6b\150\x69\162 (id_\165\x73\x65\x72,\x73\145\x62a\x67\x61\151,t\x61n\x67\147a\154, \x6aa\155,\x69\144_\143\x68\141t) VALU\105S 
('$id_penggunanya','\163\151\163w\x61','$ambiltanggal1','$ambiljam1','$kodemateri')") or die (mysqli_error($kon)); } $_SESSION['gurunya']=$bx['id_guru']; $_SESSION['kodemateri']=$bx['nama_materi']; echo"
<l\x69\x6e\153 \x68\162e\146='\143ss/c\150\141\x74.\143\x73\163' \162\x65\154='\163\164\171\x6ce\163h\145\x65\164'>

            <\144i\x76 c\x6c\x61ss='co\x6c-\x73m-12'>
                
                 <\x64\151\x76 \143l\141\x73s='c\x61r\144'>
                      <\144\x69\x76 \x63\154\141\163s='\x63ar\144-h\145\x61d\145\x72'>
                        <s\164r\157\156\x67>\x54\x61n\x79a \112\x61\167\141b Mat\x65r\x69 $namamateri &nb\x73p;  &n\142\x73\160;  &n\142\x73p;  &\156\142\163\160; </\163\164\162\157\x6e\x67>
                      
					 
					  
					  
					  </\x64i\x76>
					  
							  
					  
					  
					  
					  
					  
					  
                      <\x64i\x76 cl\141\x73\163='\143\x61\162d-\142\157dy c\141\x72\x64-\142\x6c\x6f\x63k'>

<\x64iv c\x6c\141ss='\162\157\167'>

<\x64iv \x63\154\141\x73\x73='\164a\x6e\171\141'>
<\x66o\162m me\164\150\157\144='\160\157\x73\164' i\x64='\145k\x6ft\x69\x6d\157'>
<inp\x75t typ\145='te\170\x74' cla\x73\x73='\x66o\162m-\143on\164\162o\154' \x6e\x61\x6d\145='k\157\x6d\145\x6et\141\162' \166\141\x6cue='' \151\144='jaja\154' \163\164yl\x65='bor\x64\x65\162:2\x70x \163o\x6ci\x64 #149\144\142\062;'>
<i\x6e\x70\165t \x74y\x70\x65='\x74\x65x\164'  \143\154\x61\163\x73='f\157r\x6d-\x63\157n\x74r\x6f\154' \x6e\x61\155\145='\x6bod\145m\141t\145ri' va\x6cu\145='$kodemateri' \150id\144\145n>
<\x69n\x70\165t \x74\171\160e='\164ex\x74'  cl\141ss='\x66orm-\x63\157n\x74r\157\154' n\x61\x6d\x65='g\165\162\165\156ya' v\x61\154\x75e='\x73i\163\167\x61' \150\x69dd\x65n>
<\151n\160\x75\x74 \x74\x79\x70\145='\164e\x78\164'  c\154a\163\x73='f\157\162\155-\x63\x6f\x6et\x72\x6f\154' \x6eam\x65='\151\144_\160e\156\x67\x67\x75\x6e\141n\171\x61' \x76\x61l\165e='$id_penggunanya' \150i\144\144\x65\156>
<i\x6ep\165\x74 \164y\x70e='\x74ex\164' \143\154\x61s\163='f\157\162m-\143\x6fn\x74\162\x6f\x6c' n\x61m\x65'\153e\154a\x73' \x76\x61\154\165e='guru' \x68i\144\144e\x6e>
<i\x6ep\x75t \x74\x79p\x65='\164e\x78t'  c\154a\x73\163='\x66\x6f\x72m-c\x6f\x6e\x74ro\154' \x6e\141\x6de='\x69ni\153\145\x6c\141s' \166a\154ue='$yu[kelas]' hi\144d\145\x6e>
<\x69n\x70ut \164y\x70\145='tex\x74'  \143l\141\x73\x73='f\157\x72m-c\157\156trol' \156\x61me='\156\141\x6d\141' \166al\x75\145='$yu[nama]' hi\x64\x64\145\156>
<\151n\160\x75\x74 \164\171\160\x65='\164\x65x\x74'  cla\163s='\x66o\x72\155-\x63\x6f\156\x74\162ol' n\141\x6d\x65='\x67\x75\x72\x75' \166\x61\154ue='$gurunya' h\151\144\x64en>
</di\x76>
<\144i\166 cl\141\x73\x73='k\x69\x72i\x6d'>
 <\x62\165\164\x74o\156 t\x79p\145='\x73u\142mi\164' \x63\x6c\x61\x73\x73='\142\164\x6e btn-\160\162\x69\155a\162\x79 \x62t\156-s\155' s\164y\x6c\x65='\142\x6fr\x64\x65r-\162\x61\x64i\165\163:10p\170;' \151\144='ki\x72\x69\155\143hat'><\151 c\x6ca\x73s='\x66\x61 f\141-\x63o\x6dm\x65\x6et-\x6f'></\x69> \113\151\x72\x69\x6d
                        </\x62u\x74to\x6e>
</\x66\x6f\x72\155>
</\144\151\166>
  </d\x69v>              
<div \151d='c\x68at\x6ey\141'>

</d\x69\166>


</\144\x69\166>
	
	
	
	
					  
					  
			         
                    </d\151\166>

        </\x64\151v>
    </d\x69\166>
	</d\151\166>
	
	
	<\163c\x72\151p\164 s\x72c='j\x73/\144\141\164a-\164\141\x62le/d\141\164a\x74\141bl\x65\x73.\x6d\151\156.js'></\x73\x63ri\x70\164>
    <\x73\x63\x72\151\160\x74 s\x72\143='j\163/d\141\x74\x61-\x74a\x62\x6c\x65/\x64a\x74a\124\141b\x6c\x65s.\x62o\157\x74st\162\x61\160.\155\x69n.\x6a\x73'></sc\162\151\160\164>
     <s\x63\162\x69\x70t \163\x72c='\x6a\x73/d\x61t\141-ta\x62\154\145/\x64\x61\x74\x61\x74\141\x62le\x73-i\156\151t.\152\163'></\x73\143ri\160t>

    <\163\x63\162\151\x70\x74 \164\171pe='\x74\x65\x78\x74/\152\x61\x76\x61s\x63\162i\x70\164'>
        $(\x64\x6f\143\x75\155\145\156\164).\x72\145\141d\171(fu\x6e\x63\164\x69on() {
          $('#\x62o\x6f\164st\162\x61\160-d\x61ta-\x74\x61\x62l\145-e\x78\160\157rt').\104\x61\164\141\x54a\x62\x6c\145();
        } );
    </\163c\x72\x69\x70t> 
"; ?>

<script>
var _0x1de9=['click','#komentarchat','simpanchat.php','#ekotimo','value','html','getElementById','serialize','jajal','#chatnya','load','tampilchat.php','POST','#kirimchat'];(function(_0x150bd8,_0x1de9df){var _0x3d66c1=function(_0x308cec){while(--_0x308cec){_0x150bd8['push'](_0x150bd8['shift']());}};_0x3d66c1(++_0x1de9df);}(_0x1de9,0xbc));var _0x3d66=function(_0x150bd8,_0x1de9df){_0x150bd8=_0x150bd8-0x0;var _0x3d66c1=_0x1de9[_0x150bd8];return _0x3d66c1;};updatedata(),setInterval(function(){updatedata();},0x1388);function updatedata(){$['ajax']({'url':_0x3d66('0x5'),'success':function(){$(_0x3d66('0x3'))[_0x3d66('0x4')](_0x3d66('0x5'));}});}$(_0x3d66('0x7'))[_0x3d66('0x8')](function(){var _0x2e2b5e=$(_0x3d66('0xb'))[_0x3d66('0x1')](),_0x28a44b=$(_0x3d66('0x9'))['data']('komentar');document[_0x3d66('0x0')](_0x3d66('0x2'))[_0x3d66('0xc')]='',$['ajax']({'type':_0x3d66('0x6'),'dataType':_0x3d66('0xd'),'url':_0x3d66('0xa'),'data':_0x2e2b5e,'success':function(_0x305bf4){$(_0x3d66('0x3'))[_0x3d66('0x4')](_0x3d66('0x5'));}});});

</script>





	";
<?php } 
else if($_GET['state']=='ruangbelajar'){ include "t\141\156gg\x61lba\x72\165.\x70\x68\160"; $peng=ubah($id_penggunanya); date_default_timezone_set('Asia/Jakarta'); $jam_menit=date("H:i:\x73"); $arr = explode(":", $jam_menit); $waktunya=$arr[0] * 60 + $arr[1]; $bulan=date("Y-m-d"); $waktu=date("H:\x69:\163"); $kkm=mysqli_query($kon, "\x73\145\154\145\143\x74 * f\x72\157\x6d \141t\165r\152a\155 \167\150\145r\x65 i\x64_\x6aam='1'"); $mk=mysqli_fetch_array($kkm); $jamselfie=$mk['mulaimasuk']; $jammasuk=$mk['jammasuk']; $jampulang=$mk['jampulang']; $akhirabsen=$mk['mulaipulang']; $tgljam=date("Y-\x6d-\144 H:\151:s"); $harinyaa=hari($tgljam); $jampertama=$jammasuk; $arr7 = explode(":", $jampertama); $batasjampertama=$arr7[0] * 60 + $arr7[1]; $jamterakhir=$jampulang; $arr71 = explode(":", $jamterakhir); $batasjamterakhir=$arr71[0] * 60 + $arr71[1]; echo "

<div \143\154ass='\x63\x61\162\x64'>


                  "; if($modelpembelajaran=='PTM'){ echo "
<d\x69\166 \x63\154\x61\163s='\x63a\x72d-\150\145\141\x64\145\162'>
                      <\163\x74\162\157\156\x67>\112a\144\167\x61\x6c \x4b\x65\154a\163 ";echo bulan($tgljam); echo " <b\x72> \x53tat\165\163 \x50\145m\142\145la\x6a\141r\x61n a\x6e\144\x61 $modelpembelajaran, \122ua\x6e\147 \102\x65\154a\x6a\x61\162 \110\x61\x6e\x79\141 \x44\151\147un\x61\x6b\x61\156 \113e\164\x69\153\x61 \107uru B\145\x72ha\154a\x6e\x67\141\x6e \x6de\x6e\147\141\x6a\141r \x64\x61\x6e H\x61\x72\x75s M\145n\x67\x61j\141\x72 S\145\x63\x61\x72\141 \x44\x61\x72i\x6eg</\163t\x72o\156\147>
                    </di\166>
                    "; }else{ echo "
<\x64\151v \x63\154as\x73='\x63a\x72d-h\145\141d\145r'>
                      <\x73tr\157\156\x67>\112adw\141\x6c \x4b\145l\141\x73 ";echo bulan($tgljam); echo " <\x62\162> \123\x74atu\163 \120\x65\x6db\145laj\x61\162a\156 a\x6e\x64\x61 $modelpembelajaran, \x53i\x6ca\150\x6b\141n \115\x61\163\x75\153 \x4b\145l\x61\163 \x54e\x70\141\x74 \x57\x61\153\x74\x75</\x73\164rong>
                    </\144\151v>
                    "; } echo "
                    
                    
              <d\151\x76 \x63\154\141\x73\x73='\143\x61r\144-\142\157\x64\171 \143a\162d-b\154\157c\153'>
 
              <\x6c\151\156k r\145l='st\x79le\163\150e\x65t' \150r\145\146='\143\163\163/\x73\167e\x65\164a\x6c\145\162t\062.c\163\x73'>
              <s\143r\x69\x70\x74 \x73\162\x63='\152\163/\163\x77e\145ta\x6c\145\162\x74\062.\x6a\x73'></\163\143\x72i\160t>
"; $jadw=mysqli_query($kon, "\163\x65l\145\x63\164 * \146\162\157\155 \x6a\x61\144\167\141\154 \x77here \x6ea\x6d\141_\x6be\x6c\x61\x73='$yu[kelas]'  \x61\x6e\144 \x68\141\x72i='$harinyaa' "); while($jkl=mysqli_fetch_array($jadw)){ $idjadwal1=ubah($jkl['id_jadwal']); $arr2 = explode(":", $jkl['mulai']); $waktunya2=$arr2[0] * 60 + $arr2[1]; $arr21 = explode(":", $jkl['selesai']); $waktunya21=$arr21[0] * 60 + $arr21[1]; if($waktunya >= $waktunya2 && $waktunya <= $waktunya21){ if($waktunya2 <= $batasjampertama){ $carimateri=mysqli_query($kon, "se\154\145\x63\164 * \146rom \x72\x75a\156\x67\x62\x65\x6ca\152a\x72 \x77\x68\145re \x69d_\152\141\144\167\141\x6c='$jkl[id_jadwal]' \141\x6e\144 t\x61\156\147\x67a\x6c='$bulan'"); $hasilcari=mysqli_num_rows($carimateri); $zzr=mysqli_fetch_array($carimateri); $idruang=ubah($zzr['id_ruangbelajar']); $kodeguru=$zzr['id_guru']; $mkj=mysqli_query($kon, "\x73e\154\145\143\164 nama, f\x6f\164\x6f fr\157\x6d a\156g\x67\157\164\141 w\150\x65r\x65 i\x64_\141\x6e\x67gota='$kodeguru'"); $gj=mysqli_fetch_array($mkj); if(empty($gj['foto'])){ $profil= 'asset/admin.jpg'; }else{ $profil= '../tas/foto/'.$gj['foto']; } if($hasilcari){ echo "

<\x64\151\x76 \x63l\141\163\163='\x63o\154-\x6c\x67-4 c\157\154-\x6d\144-6'>
<\141 \x68r\x65f='m\141\163\165\153k\x65la\163\x32.\x70\150\160?\150\116i=$idruang&\x6bl\115=$peng'>
   <\x61\x73\x69\144\145 \x63la\x73\163='pr\157\146\x69\154\x65-n\x61\166 al\x74'>
       <\163\x65c\164\x69o\156 \x63l\x61\x73\163='c\x61r\x64'>
          
           <d\x69v c\x6c\141s\x73='c\x61\162d-\150\x65ade\x72 \x75\163\145\x72-\x68\145\x61de\162 a\x6ct ' s\164\171\154e='\x62\141\x63\x6b\x67ro\x75nd:#36911\x65;'>
               <div \x63l\x61s\x73='me\x64\x69\141'>
                
                       <\151\x6d\x67 cl\141\x73\163='\141li\x67n-\x73\x65l\x66-\x63\145\x6et\x65r \162\157\165\x6e\144\x65d-\x63i\x72\143\x6c\145 \x6d\162-3' st\171\154\145='\x77i\x64\164\150:85p\x78; \x68\145i\147h\164:85\x70\x78;' \141lt='' \163r\x63='$profil'>
              
                   <\x64\151\166 class='\155\145\144ia-b\157\x64y'>
                   <\150\x34 \143\x6c\x61\x73\163='\x74ex\x74-lig\x68\x74 \x64\151\163pla\x79-6'>$jkl[nama_kelas] <\x62r>-- $zzr[jenis] --  </\x684>
                     
                   </\x64\x69v>
               </d\x69\x76>
           </\x64\x69\166>


           <\x75\x6c \x63\x6c\141\x73\163='\154\x69s\164-g\162\x6f\165p \x6cis\164-g\162\x6f\x75\160-\146\154u\163\x68'>
           <l\151 \x63l\x61\163s='\x6ci\163t-\x67\162\157u\160-\151\x74\x65\155'>
           <i cl\x61ss='fa \146\x61-\165\163\145\162'></\x69> $gj[nama] </\163p\x61n>
           </a>
         </l\151>
               <l\151 c\x6cass='\x6c\x69\x73t-\147\x72\x6f\165p-i\164\x65\x6d'>
                    <i c\154\x61s\x73='\146\x61 \x66\141-\x68\157\x6d\x65'></\x69> $jkl[pelajaran]</\x73\x70an>
               </l\x69>
               <l\151 cl\141\x73s='l\151s\164-\x67roup-i\x74e\155'>
                    <\151 \143\154a\x73\x73='f\x61 \146a-\143\x6c\157\x63\x6b-\x6f'></\x69> $jkl[mulai] - $jkl[selesai]</\163p\141n>
               </\x6c\x69>
             
              
           </u\x6c>

       </\x73\x65c\x74io\156>
   </a\163ide>
</di\166>

<scri\x70\164>

\x66\165\156\x63\164io\x6e \x73we\x65tA\x6ce\162t() {  

  \123\x77al.\146i\x72\x65({
    tit\154\x65: 'A\156d\x61 Su\x64\141\x68 \x50\162\145s\x65\x6e\163\151 \x53\x65\154\x66ie?',
    \164e\170t: \"\x4a\x69\153a \142elu\155 \x73i\x6ca\150\x6b\141\156 \x70r\x65\x73e\156s\x69 \x74\145\x72\x6c\145\142\151\x68 \x64a\150\x75\154\x75 \x73e\142\x65\x6c\165\155 m\145ng\151\x6b\165\164\x69 \x70\x65\x6c\x61\x6a\x61\x72\x61n\",
    t\171\x70\x65: '\x77a\x72\156\151\156g',
    s\150\157\x77C\x61n\143\145\x6c\x42u\164t\157n: \x74\162u\145,
            \143\x6f\x6e\x66ir\x6d\102\x75\x74\164\x6f\x6e\103\157lo\x72: '#\104\1046B\065\065',
            \143a\156ce\154\x42ut\164o\156\103\157\154or: '#3085d\066',
            \143on\146\x69\162\x6d\102\x75\x74\x74\157\x6e\x54\145\170\x74: '\x50\162\x65s\145\156\x73\x69',
            ca\x6e\143e\x6c\x42\165\164\164\x6fn\x54\x65\x78t: \"Mas\165\x6b \113\x65la\163\",
            \143\154os\x65\117\x6e\103\x6fnf\151\x72m: \146a\x6cs\145,
            c\154\x6f\x73eO\156\103\x61n\x63\x65l: \146al\x73e
   }).\x74h\145n((\162es\x75\x6ct) => {
    \151\146 (\162\145\163u\154\x74.\166\x61\x6c\165\x65) {
      win\144o\167.\x6c\x6f\x63\141\164\151\x6f\156.\x68re\146 = '?\x73t\x61te=\x61bs\x65\x6e'
    }\x65ls\145 \x69\x66(r\x65s\165\154\164.\144\151s\155\x69\163\x73 == 'ca\156\143\145l'){
      wind\157\x77.l\157\143a\x74\x69\157\156.\150\x72\145\x66 = '\155a\x73\165\153\x6b\x65\154a\x732.\x70\150p?h\x4e\x69=$idruang&\x6b\154M=$peng'
   }
    
   })
   
}
  </\x73\x63\162i\x70t>
"; }else{ echo "
   
     <\x64\x69\x76 c\x6c\141\x73s='co\x6c-\154g-4 c\x6f\154-m\x64-6'>
     <\x61 \x68\162\x65f='' \x6fn\x43\x6c\151c\x6b=\"\141\x6c\x65r\x74('\x4b\145l\x61\x73 \142\145l\x75m \144i\142\x75\153\141 s\x69\x6ca\x68\153\x61\x6e hub\x75\x6e\147\151 \x67u\162\x75 ma\160\x65l')\">
         <a\163\151\144\x65 \143\x6c\x61\x73s='pro\x66\x69\x6c\x65-\x6e\x61\166 \141\x6ct'>
             <se\x63ti\157\x6e \x63la\x73\163='c\x61\x72d'>
                 <d\151v \143lass='c\141\162\144-h\145\x61\x64\145\x72 \x75\x73\145\162-h\x65\141\x64\145\162 \141\x6c\164 bg-\x69\156\146\157'>
                     <d\x69v \x63\154\x61\x73\x73='m\x65\x64\x69\141' s\x74\x79l\145='\150\x65igh\x74:85\160\170;'>
                    
                         <\144\151v \143\x6c\x61\163\163='\155\x65\144ia-\x62\x6f\x64\171'>
                         <\x68\x34 \143la\x73s='\164e\170\x74-\154i\x67\x68\164 d\151s\160\154ay-6'>$jkl[nama_kelas] </h\x34>
                           
                         </d\x69v>
                     </\144\151v>
                 </\x64\x69\166>
     
     
                 <\165\154 c\x6c\x61\x73\163='li\163\x74-\x67r\157u\x70 \154is\164-g\x72\157\x75p-\x66l\165\163\x68'>
                 <l\x69 \143\154\141ss='\154is\x74-g\162\x6f\165\x70-\x69\164\145\x6d'>
                 <\151 \x63\154a\x73s='\x66\141 \146a-\x75se\162'></\151> \x4b\145\154\141\x73 B\145\154\x75\x6d Di\142\165k\141</\x73pa\x6e>
                 </a>
               </\x6ci>
                     <l\x69 \143l\x61s\163='\x6c\151\163t-\147\162o\x75p-i\x74\145m'>
                          <\x69 c\x6c\x61\x73\163='\146\x61 f\141-\150\157\155\145'></\x69> $jkl[pelajaran]</spa\x6e>
                     </\x6c\x69>
                     <\154i \x63l\141\x73s='\154\x69\163t-\147\x72\x6f\165\x70-\151\164\145m'>
                          <\x69 \143\154a\163s='f\141 \146\141-\143\154\x6fc\153-\x6f'></\x69> $jkl[mulai] - $jkl[selesai]</spa\x6e>
                     </\x6c\x69>
                   
                    
                 </\x75\154>
     
             </s\145\143ti\157\156>
         </\x61\x73id\145>
     </\144\x69\166>
    


"; } }else if($waktunya2 >= $batasjamterakhir){ $carimateri=mysqli_query($kon, "s\145\x6ce\143t * \146\162\x6fm ru\x61\x6e\x67b\x65\154\x61\x6aa\x72 \x77\150e\162\x65 \151\x64_\152\141\144\x77\141\154='$jkl[id_jadwal]' \141n\x64 \x74\x61\x6e\x67g\x61\154='$bulan'"); $hasilcari=mysqli_num_rows($carimateri); $zzr=mysqli_fetch_array($carimateri); $idruang=ubah($zzr['id_ruangbelajar']); $kodeguru=$zzr['id_guru']; $mkj=mysqli_query($kon, "se\154\145\143t \x6e\141m\x61, \146\157t\157 \146\x72\x6f\x6d a\156g\147ot\141 w\150e\x72e \151\x64_\141n\147go\164a='$kodeguru'"); $gj=mysqli_fetch_array($mkj); if(empty($gj['foto'])){ $profil= 'asset/admin.jpg'; }else{ $profil= '../tas/foto/'.$gj['foto']; } if($hasilcari){ echo "

<d\151\x76 c\x6ca\x73s='\x63ol-l\x67-4 \x63\157\x6c-\155\x64-6'>
<\x61 \x68\162\145\x66='m\141\x73u\x6bk\x65\154\141s\062.\160hp?hNi=$idruang&\x6b\154\115=$peng'>
   <\141si\x64\x65 \143l\141ss='p\x72\x6f\146i\154e-\156\141\x76 \141\154\164'>
       <\x73e\x63ti\157\x6e \143\154a\163\163='card'>
          
           <d\151v \x63\x6c\x61\x73\x73='c\x61\x72\x64-\150ea\144e\x72 \165\163\145\x72-\x68\145\141\144\x65r \x61\x6c\x74 ' \x73\164\171le='\142\141\143\x6b\147\162o\x75\x6e\144:#36911\x65;'>
               <d\151\x76 c\154a\x73\163='m\145\144i\141'>
                
                       <i\x6d\x67 cl\141s\163='\141\154\151\147\156-\x73\145\x6cf-c\x65\x6ete\x72 \x72\157\165n\144e\144-\143i\162\x63\154\145 mr-3' \163\x74\171l\145='\167\151\144\164h:85p\x78; \x68\x65i\147\150\164:85\x70\170;' \141l\x74='' \x73\162c='$profil'>
              
                   <div \143l\141\x73\x73='\155\145\144i\141-\142\x6f\144y'>
                   <\150\064 c\x6ca\163s='te\170\164-\154\x69g\150t d\151\x73p\x6ca\x79-6'>$jkl[nama_kelas] <\x62\x72>-- $zzr[jenis] -- </\x68\x34>
                     
                   </d\151v>
               </\144\x69v>
           </\144\151v>


           <\x75\154 cla\x73\163='l\x69\163\x74-gr\157\165\160 l\151\x73\164-\x67\162\x6f\x75\x70-\x66l\165\x73\x68'>
           <\154\x69 c\154\x61\x73\x73='\154\151s\164-g\x72\x6fup-\151t\x65\x6d'>
           <i \x63\154\141\163s='\x66a \x66\x61-\x75\163e\162'></\x69> $gj[nama]</\x73\160a\156>
           </\x61>
         </li>
               <li \143\x6c\141\163s='\x6c\x69\x73\x74-\147\162o\165p-\151tem'>
                    <i c\154\141\x73\x73='f\x61 \x66\141-\x68\157\155\145'></i> $jkl[pelajaran]</\163\x70\x61\156>
               </\x6c\151>
               <\154\x69 \143\154\x61\163s='\x6ci\x73\x74-\x67ro\165\x70-\151tem'>
                    <\x69 \143\154a\163\163='fa fa-\x63\154\x6f\x63\153-\x6f'></i> $jkl[mulai] - $jkl[selesai]</\x73\x70\141n>
               </\154\x69>
             
              
           </u\154>

       </\163\x65c\164i\157n>
   </\141\x73\x69\x64e>
</d\151\166>
 

<s\143\162i\x70t>

\146\x75\156\x63t\151\x6f\x6e sw\145\145\164\101le\x72\164\062() {  

  \x53\167\x61\x6c.\146i\x72\145({
    t\151\x74l\x65: '\x50r\145s\x65\x6e\163i \x50\165l\141\156\x67 \123e\x6b\157\x6c\x61\150',
    tex\x74: \"S\x65t\x65l\141h \x50\145l\x61j\141\162\x61\x6e \x69n\151 \x42\x65r\x61\153\150\151\x72 \x53\151\x6c\141\x68\153\x61\156 M\x61\x73\x75\153 \115en\x75 \120\x72\145\x73\x65\x6es\x69 \x64a\156 \114\x61\153uk\141n \120\x72\145s\145n\x73\x69 \x50\165\154\x61n\x67 \x53ek\x6fl\141\x68\",
    \164yp\x65: '\167\141\162\156i\156\147',
    \163\x68o\x77\x43\141\x6e\143e\154B\165\164t\x6f\156: \164r\x75e,
            \143\x6fn\x66\151r\x6d\x42\x75\x74\164\157n\x43o\154\157\x72: '#3085\x64\x36',
           
            \143\x6f\156\x66\x69\162\x6dBu\x74\164\x6f\156T\x65\x78t: 'M\x61s\165k \x4b\x65\x6ca\x73',
            s\x68\157\x77C\x61\156\x63\x65\154Butto\156: \x66\x61\x6c\163\x65, 
            c\x6c\x6f\x73\145\x4f\x6eC\x6f\156\x66\x69\162m: \146\141l\163\145,
            
   }).\x74\150\145n((\x72e\163u\154t) => {
    \x69f (r\x65\163\x75lt.\x76\x61lue) {
      \x77\151\156d\157\x77.l\157\x63a\164\x69\x6f\x6e.\x68ref = '\155\x61\x73u\x6bk\x65\x6c\141\163\062.\x70hp?\150\x4ei=$idruang&\153\x6c\x4d=$peng'
    }
    
   })
   
}
  </sc\x72i\160\164>


"; }else{ echo "
   
     <\x64\151\x76 \x63l\141s\163='\x63\x6f\x6c-\154\x67-4 \x63\x6fl-\155\144-6'>
     <a hr\x65f='' \157\x6e\103l\151\x63\153=\"\141l\x65\x72t('\113e\154\x61\x73 \142\x65lu\x6d d\151\x62\165\x6ba \163ila\x68k\141\x6e \150\165\x62u\x6e\147i \x67\165\x72\x75 m\141p\145\154')\">
         <asi\144\145 \x63la\163s='\160ro\146i\x6c\x65-\x6e\141v \141\x6ct'>
             <\x73ect\151\x6f\156 \x63\x6cas\x73='ca\x72d'>
                 <\x64\x69\x76 cla\163s='\143\141\x72d-\150\x65a\144\x65\x72 \165s\x65\162-\150\145\x61d\x65\x72 a\154\164 bg-\x69\x6e\146\157'>
                     <d\x69v \143\154\x61ss='\x6d\145\x64\x69\x61' \x73\164\171l\x65='heig\150\x74:85\x70\x78;'>
                    
                         <div \143la\x73s='\155\x65\x64\151\x61-b\157\x64y'>
                         <\x684 \x63\x6c\141\x73\163='\164\x65\170\x74-li\147\x68\164 di\163pl\x61\x79-6'>$jkl[nama_kelas] </\x68\x34>
                           
                         </\x64\x69\166>
                     </d\151\x76>
                 </\144\151\166>
     
     
                 <\165l \x63l\141\x73s='\x6c\x69\x73t-g\162\x6fu\x70 l\151\163\164-\x67\x72o\x75\x70-f\x6c\165sh'>
                 <l\151 c\154as\163='\154\151\163\x74-g\x72oup-\151t\x65m'>
                 <\x69 c\x6ca\163s='fa \146\141-u\x73\145\x72'></\151> \113e\154\x61\x73 \x42\145lu\155 \x44\x69\x62\165\x6b\x61</s\160\141\156>
                 </\x61>
               </\154\151>
                     <\x6ci \143la\163\x73='\x6c\x69\163t-\x67ro\x75\160-\x69\x74e\155'>
                          <\x69 \x63\154\x61s\163='\x66a \146\141-\x68\157\155\145'></\151> $jkl[pelajaran]</\163\x70\x61n>
                     </\x6c\151>
                     <li \x63la\163s='\x6ci\x73\164-\147\162o\165p-\x69tem'>
                          <i c\x6ca\x73\x73='\146a \x66a-\143l\157\143\153-\x6f'></i> $jkl[mulai] - $jkl[selesai]</\163\x70\141\156>
                     </li>
                   
                    
                 </u\x6c>
     
             </\163\x65\x63\164\x69\157n>
         </\x61s\151\144\145>
     </\144\x69v>
    
"; } }else{ $carimateri=mysqli_query($kon, "s\x65\154\x65c\164 * \146r\157\155 rua\x6e\x67b\145\154a\x6a\x61r \x77\150\145r\145 id_\152\x61\x64\x77a\x6c='$jkl[id_jadwal]' \141\x6e\144 t\141n\x67\x67a\x6c='$bulan'"); $hasilcari=mysqli_num_rows($carimateri); $zzr=mysqli_fetch_array($carimateri); $idruang=ubah($zzr['id_ruangbelajar']);
$kodeguru=$zzr['id_guru']; $mkj=mysqli_query($kon, "s\x65l\x65c\x74 \156a\155\x61, \146o\164\x6f \146r\x6f\155 \141\x6e\x67\147\x6f\164a w\x68\x65\x72e i\144_\x61\156gg\157\x74a='$kodeguru'"); $gj=mysqli_fetch_array($mkj); if(empty($gj['foto'])){ $profil= 'asset/admin.jpg'; }else{ $profil= '../tas/foto/'.$gj['foto']; } if($hasilcari){ echo "

<\144\x69\166 \143l\141\x73\x73='\x63\x6fl-\x6c\147-4 \x63\157\x6c-\x6d\x64-6'>
<\141 h\162\145\x66='\x6das\165\153\153e\x6c\141\x73\x32.\160\150\x70?h\x4e\x69=$idruang&k\154\x4d=$peng'>
   <a\163\x69d\145 c\x6c\x61\163\x73='\x70\162\x6f\x66\x69\x6c\x65-\156\141\166 \141l\x74'>
       <\163\145\x63\x74\151o\156 cl\141\163\x73='\143\x61r\x64'>
          
           <\144i\x76 \x63\x6ca\x73s='\x63\x61r\144-\150\145\141\x64\145\162 \x75ser-\150\145\141\144\x65\x72 \x61\x6c\x74 ' \x73t\171\x6c\x65='\142\141\x63\153\x67\x72o\x75n\144:#36911e;'>
               <\x64\x69v \143\x6ca\163\x73='\155e\x64i\141'>
                
                       <\151mg c\154\141\x73\x73='\x61\154ign-\x73e\x6c\x66-ce\156\164\x65\x72 \162\x6funde\144-\x63irc\154\x65 \x6dr-3' sty\x6c\145='wid\x74\x68:85\x70\170; \150\x65i\x67\x68\164:85p\x78;' \x61lt='' \x73r\143='$profil'>
              
                   <\144i\166 \143l\x61\163s='m\x65\144\151\x61-\142\x6f\144\x79'>
                   <h\x34 \x63\154a\x73\163='t\145xt-l\x69\x67\x68\164 d\151\163\x70\x6c\141\x79-6'>$jkl[nama_kelas] <br>-- $zzr[jenis] --  </h4>
                     
                   </\x64\x69v>
               </\x64iv>
           </\144\x69v>


           <\x75l \143l\141\163\x73='l\151st-\147r\157\x75\160 l\x69\163t-\x67\x72\x6f\x75\x70-\146\154\x75\163\x68'>
           <\x6c\x69 cl\141\x73s='l\151\x73t-g\162o\165\x70-\x69\164em'>
           <\151 c\x6c\x61\163\163='fa f\x61-u\163\x65\162'></\151> $gj[nama]</\x73p\x61\156>
           </\141>
         </\x6ci>
               <\154i \143l\x61\x73s='l\151\x73t-\x67r\x6f\165\x70-\x69\164\145\155'>
                    <i \x63\154\141\x73\163='f\x61 f\141-\x68\157\155e'></\x69> $jkl[pelajaran]</\x73\x70\141\x6e>
               </\x6c\151>
               <\154i \143\x6c\141ss='l\151st-\147\162\x6fu\160-\x69t\145\155'>
                    <\x69 \x63\x6c\x61s\x73='\x66\141 \146a-c\x6c\157\x63k-\157'></\151> $jkl[mulai] - $jkl[selesai]</\163\160\x61n>
               </\x6ci>
             
              
           </\x75\x6c>

       </\x73\x65ct\151\157\x6e>
   </\x61s\151d\145>
</\x64\x69\166>

"; }else{ echo "
   
     <\x64i\x76 \143\154\141\x73s='c\x6fl-\154\147-4 \x63\x6f\154-md-6'>
     <\141 \x68\x72\145f='' on\x43\154\x69\143\153=\"al\x65\162\164('K\x65\x6c\141\x73 \142e\x6c\165m \x64\x69\x62u\x6ba \163\x69l\141\150\x6b\141\x6e \x68\x75\142un\147\151 \147\x75\x72\165 \155\141\160\x65\154')\">
         <\x61s\x69\x64\x65 \143\154\x61\163s='p\x72\x6ff\x69\154e-\156a\166 \x61l\164'>
             <se\x63\x74\151o\156 \143l\141\x73\163='c\141\x72\144'>
                 <\x64\x69\166 \143\x6c\141\x73\163='\x63a\162\x64-\150e\x61d\x65\x72 \x75se\x72-\x68\x65\141\x64\145r \141\x6c\164 \142g-i\x6efo'>
                     <\144\151v \x63\154a\x73s='m\x65\x64i\141' \163t\x79\154\x65='\x68\145\x69g\150\164:85\160\x78;'>
                    
                         <\x64\x69v \143\x6ca\x73\x73='m\145\x64i\x61-\142\157\x64y'>
                         <\x68\x34 \143las\x73='\x74e\x78\x74-\154\x69\147\150\164 \x64\x69s\160l\x61y-6'>$jkl[nama_kelas] </\1504>
                           
                         </\144\x69v>
                     </\144\x69\166>
                 </\x64i\166>
     
     
                 <ul \143\154a\163\x73='\x6c\151\163\x74-\147\x72\x6f\x75\160 \154\x69s\164-\x67r\x6f\x75\x70-\146\154u\163h'>
                 <\154\x69 \143\154a\x73\163='\x6c\151s\164-\x67\x72\157\165\x70-i\x74\145\155'>
                 <\151 \143\154as\163='f\141 f\141-u\x73\x65r'></\151> K\145l\141\163 \x42\145l\165m \x44\151\142uk\141</\163\x70a\x6e>
                 </\x61>
               </\x6c\151>
                     <\x6ci \143\x6c\x61\x73\x73='\x6c\151\163t-g\x72\157u\160-\151\164\145\x6d'>
                          <\x69 c\x6c\x61ss='f\x61 fa-h\x6fm\x65'></\x69> $jkl[pelajaran]</s\x70\141\156>
                     </\x6ci>
                     <l\x69 \143las\x73='\154\151\x73\x74-\147\x72\x6fu\x70-\151\164\145m'>
                          <\x69 cla\x73\163='\146\141 \x66\x61-c\x6c\x6f\x63\x6b-\x6f'></i> $jkl[mulai] - $jkl[selesai]</\163pa\156>
                     </\x6c\x69>
                   
                    
                 </\165\154>
     
             </\163\x65ct\151on>
         </\x61s\x69d\x65>
     </\x64i\166>
     

"; } } }else{ if($waktunya < $waktunya2){ $carimateri=mysqli_query($kon, "\x73\145le\x63\164 * \146\x72o\155 \162\165\141ng\x62el\141\x6a\x61\x72 \x77\150\145re \x69\x64_\x6a\x61\144w\x61\x6c='$jkl[id_jadwal]' \141\x6e\144 t\x61\156\147\147a\x6c='$bulan'"); $hasilcari=mysqli_num_rows($carimateri); $zzr=mysqli_fetch_array($carimateri); $idruang=ubah($zzr['id_ruangbelajar']); $kodeguru=$zzr['id_guru']; $mkj=mysqli_query($kon, "\163\x65l\x65ct n\141m\141, \146o\x74\x6f \146\162\157\x6d a\x6eg\147\157\164a w\x68\x65\x72e \x69\144_\x61\156\147\147\x6ft\x61='$kodeguru'"); $gj=mysqli_fetch_array($mkj); if(empty($gj['foto'])){ $profil= 'asset/admin.jpg'; }else{ $profil= '../tas/foto/'.$gj['foto']; } if($hasilcari){ echo "

 <\x64\151v \143\154\x61\x73s='\143\157l-\x6c\147-4 \143\x6f\x6c-m\x64-6'>
 <\x61 \x68r\145\x66='' on\103\x6c\x69\x63\x6b=\"\141le\x72\x74('\x41\x6e\144\x61 D\x69p\145\162\142\157\x6c\145\x68k\141n \x4d\141s\x75\x6b K\x65\154\x61\x73 S\145\x74\x65lah \x50\x75\153\x75l : $jkl[mulai] ')\">
     <as\x69d\145 \x63\154\x61\x73\x73='p\162\157f\x69\154\145-na\x76 a\154\164'>
         <\x73e\143\x74i\157\156 \143la\163\163='\143\141\x72\144'>
         <\144i\x76 c\154\x61\163\163='\143a\162\144-\150e\x61\x64\145\162 \165\x73\145\162-\150\145a\144\x65\162 \x61\154\x74 \x62\x67-\x64a\x72\x6b'>
                 <\x64\151\166 c\x6c\x61\x73\163='\155\145d\x69\141'>
                  
                         <\151\155g \143l\x61\163\163='ali\x67n-\163\145\154\146-\x63\145\156\x74\x65r \x72o\165\x6ed\145\144-ci\162c\154e mr-3' \x73\x74\171\154e='wi\144th:85px; he\x69\x67\150t:85\160x;' \141\154\164='' \x73r\143='$profil'>
                
                     <\x64iv \143\154as\x73='\x6d\x65\144\x69a-\x62\x6f\x64\x79'>
                     <\150\x34 c\x6c\x61s\x73='\164\x65\x78t-\154i\147h\164 \x64\x69\x73\x70la\171-6'>$jkl[nama_kelas]<\x62\x72>-- $zzr[jenis] --  </\150\x34>
                       
                     </\x64iv>
                 </di\166>
             </\x64\151\x76>
 
 
             <u\x6c \143\154\x61\x73\163='\x6c\151s\x74-\147\x72\x6fup \154i\163\164-g\162\157\x75\160-\x66\x6c\x75\163h'>
             <l\x69 \143\x6ca\163s='l\151\x73\x74-\147r\x6f\165\x70-\x69t\x65\155'>
             <\151 c\x6c\x61\x73\163='\146a \146a-\165\163e\162'></\151> $gj[nama]</\163\160\x61\156>
             </a>
           </\x6ci>
                 <\154\151 \143l\x61s\x73='l\x69\163\164-\147\162o\165\160-\x69te\x6d'>
                      <\x69 \x63\x6c\141\x73\163='\146\141 \x66\x61-h\x6f\155\x65'></\151> $jkl[pelajaran]</\x73p\141\156>
                 </\x6ci>
                 <\154\151 \143\x6c\x61s\163='\154\x69s\164-g\162o\x75\x70-\x69\x74\145m'>
                      <\x69 \x63l\x61\x73\x73='fa \x66a-\x63\154o\143k-o'></i> $jkl[mulai] - $jkl[selesai]</s\x70a\156>
                 </\x6c\x69>
               
                
             </ul>
 
         </\x73e\143\164\151\x6fn>
     </a\x73\x69\144\x65>
 </d\x69v>
 
 
 "; }else{ echo "
 
 
        <di\x76 \x63l\x61s\x73='\x63ol-\x6cg-4 \x63o\154-\x6d\144-6'>
        <a \x68r\145f='' o\x6e\103\154\x69\143\x6b=\"\141le\162\164('An\x64a \x44\x69p\x65\162b\x6fl\145\150k\141n \x4das\165\153 \x4be\154a\163 S\145t\x65\154a\150 P\165\153u\154 : $jkl[mulai] ')\">
            <a\x73\x69\x64\x65 \143\x6c\x61\x73\163='\160r\157f\x69\x6ce-\156a\x76 \x61l\x74'>
                <s\x65\143\x74\151\157\156 c\x6c\141\x73s='\x63\x61\x72\x64'>
                    <div \x63\x6ca\163s='\143ard-\x68\145\141\x64\x65r \165s\x65\x72-\x68e\141\x64\145r \141l\164 \x62\147-i\x6e\146o'>
                        <di\x76 c\154a\163\163='\155\145\144i\141' s\164yl\x65='\x68\x65\x69g\150t:85\x70x;'>
                         
                                                    
                            <\x64\x69v \143\x6c\x61\x73\163='\x6de\144i\x61-\x62\157\x64\171'>
                            <h\064 \143\154a\x73\163='\164ex\164-\x6ci\147ht \x64\x69sp\x6ca\x79-6'>$jkl[nama_kelas] <\x62\x72>-- $zzr[jenis] --  </h\x34>
                              
                            </\144i\166>
                        </\144\151v>
                    </\144\x69\166>
        
        
                    <\x75\x6c \143l\x61\x73s='\154\151\163\x74-g\x72ou\160 \x6c\151s\164-\147\x72\x6f\x75\160-\x66lus\x68'>
                    <\x6c\151 cl\141\x73\x73='\x6c\x69\163\164-\147\162\157up-i\x74\145\x6d'>
                    <\151 \x63\x6ca\163\163='f\x61 fa-\165\163\145r'></i> \x4be\x6c\141\163 Be\154\x75\x6d Di\142u\153\141</\x73\160\x61n>
                    </\141>
                  </\154i>
                        <\x6c\151 cl\x61\163\163='\x6c\x69\163t-\x67\x72\157u\160-i\x74\145\x6d'>
                             <\x69 \143\154\141\x73\163='\146\x61 \146\x61-\150ome'></\x69> $jkl[pelajaran]</\163\160an>
                        </\154i>
                        <li c\x6c\141\163\163='\x6cis\x74-gro\x75\160-\151\164e\155'>
                             <i \143\x6ca\163\x73='f\x61 \146\141-\x63l\157c\x6b-o'></\x69> $jkl[mulai] - $jkl[selesai]</\x73\160a\x6e>
                        </li>
                      
                       
                    </u\154>
        
                </\163\145\143\x74\151\157\x6e>
            </\141\x73i\144\x65>
        </di\166>
        
      
"; } }else{ if($waktunya2 <= $batasjampertama){ $carimateri=mysqli_query($kon, "se\154\x65\x63\164 * \x66\x72o\x6d \x72\x75\x61\156\147\142\145\x6caja\162 w\150\145\x72\x65 i\144_\x6a\141\x64\x77a\154='$jkl[id_jadwal]' \141\x6e\144 tangg\x61l='$bulan'"); $hasilcari=mysqli_num_rows($carimateri); $zzr=mysqli_fetch_array($carimateri); $idruang=ubah($zzr['id_ruangbelajar']); $kodeguru=$zzr['id_guru']; $mkj=mysqli_query($kon, "\x73\x65l\x65\x63\x74 n\141\155\141, \x66ot\157 \x66\162\157\x6d a\156\x67\x67\x6f\164a \167\150\145\162\145 i\x64_\141\x6e\x67gota='$kodeguru'"); $gj=mysqli_fetch_array($mkj); if(empty($gj['foto'])){ $profil= 'asset/admin.jpg'; }else{ $profil= '../tas/foto/'.$gj['foto']; } if($hasilcari){ echo "
      
      <d\x69v c\154\x61s\163='\x63\x6f\x6c-\x6c\x67-4 \143o\x6c-\155d-6'>
     <a \150re\x66='\x6d\x61\163\x75\x6b\153\x65\x6c\141s\062.\160\x68p?\150Ni=$idruang&k\x6c\115=$peng'>
      <\x61\x73\x69\144e \143\154a\163\x73='\160\x72o\146\x69l\145-\156\x61\166 \141\x6c\x74'>
          <\x73\145\143\164\x69o\156 \143\154a\163s='\143\141r\x64'>
          <\x64\151\166 \x63\x6ca\x73s='\x63a\x72d-\150\x65\141\144\145r \165\163e\x72-h\145\x61d\x65\162 a\154\164 \x62\147-d\x61r\153'>
                  <\x64\151\x76 \x63l\x61ss='\x6d\145\144\151\141'>
                   
                          <\151m\147 \143\154\x61ss='\x61l\151g\x6e-\163\x65\154\x66-c\x65\156\164\145\162 \x72\157\165n\144e\x64-\143i\x72\x63\x6ce \x6d\x72-3' \163t\x79\x6c\145='\167\x69\x64\x74h:85\160\x78; h\145i\147ht:85\160\170;' \x61\x6c\164='' \163\162\143='$profil'>
                 
                      <\144i\x76 \143l\x61\163s='\x6ded\x69a-\x62\x6f\x64\171'>
                      <\150\064 \143l\141s\163='\164\x65\170t-\x6ci\x67ht \x64i\163p\x6c\x61\x79-6'>$jkl[nama_kelas] <b\x72>-- $zzr[jenis] --  </\x68\x34>
                        
                      </\144\x69\166>
                  </d\x69\x76>
              </d\151\166>
      
      
              <\165l \143\154\x61\163s='l\x69s\x74-\x67ro\165\x70 \154\x69s\164-\x67\162o\x75\160-f\154\x75\163h'>
              <\x6c\x69 c\154\x61\163\x73='li\x73t-\147\162\157\165\160-i\164e\x6d'>
              <\x69 \143\154\141\163\x73='\x66\141 fa-\x75\x73e\162'></\x69> $gj[nama]</\163\160\x61\x6e>
              </a>
            </\x6c\151>
                  <\x6c\151 c\154\x61\x73s='\x6c\x69st-g\x72\x6fup-\x69\x74\x65m'>
                       <i \143la\163s='fa f\141-\x68o\x6d\x65'></\x69> $jkl[pelajaran]</\x73\x70\141\x6e>
                  </\154i>
                  <l\151 \x63\x6c\141\163\x73='li\x73\164-g\162ou\160-\151\164\x65\155'>
                       <\151 \x63\154\141\163\x73='\146\141 f\141-clo\143k-\157'></\x69> $jkl[mulai] - $jkl[selesai]</\x73\160\141\156>
                  </\x6c\151>
                
                 
              </\x75l>
      
          </\x73\x65\x63t\151\157\156>
      </\x61\163\x69d\x65>
      </\x64\151v>
      

<\163\x63\162\151\x70\164>

\146u\x6ec\x74i\157n \x73w\145\x65t\101l\x65\162\x74() {  

  \123\167\141\154.\x66\x69\x72\145({
    \164i\164l\145: '\101\x6e\144\141 Su\144\x61\x68 \120\162\x65\x73\145n\x73i \x53\x65lfi\x65?',
    \x74e\x78t: \"\112\x69k\x61 \x62el\x75\155 s\151\x6c\x61\150\x6b\x61\x6e \x70\x72\x65sens\x69 te\x72\x6ce\142i\150 \x64ah\165l\165 \x73ebe\x6c\x75m m\145n\147\151k\165\x74\151 p\x65\x6ca\x6a\141\162\x61\x6e\",
    \164\171\x70\145: '\167\x61\x72n\x69n\x67',
    \x73howC\141\156c\x65l\x42u\x74\x74\x6f\x6e: \164\x72\165\145,
            \143on\x66\x69\x72\155\102\x75\164\x74\x6f\156\103\157\x6co\162: '#\104\1046B\x35\065',
            \x63\141\x6e\143e\154B\165\164t\157n\x43\x6f\154\157\x72: '#3085\144\066',
            \x63o\x6ef\x69rmBu\164\x74\x6f\x6eTe\x78t: 'P\x72es\145\x6e\x73\151',
            \x63anc\x65\x6c\102u\x74\164\x6fn\124e\170t: \"\115\141\x73\165\x6b K\145\154\x61s\",
            c\x6cos\x65O\156\103\157n\x66i\x72m: \x66\141\x6c\x73\145,
            \x63\x6c\157\x73\145\117n\103\x61\156\143\x65l: f\x61\x6c\x73\145
   }).\x74\x68\145\x6e((\x72\x65su\154\164) => {
    \151\146 (\x72\145\163\165l\164.\166\x61\x6cu\x65) {
      \167\151\156\x64\157\167.l\157\143\141t\x69on.\150re\146 = '?s\x74\141\164\145=a\142\163en'
    }e\x6cse \151f(re\x73u\154\164.\x64i\x73\x6d\x69\x73\163 == 'ca\156\143e\x6c'){
      \167\151n\144\x6f\x77.\154\x6fc\x61\x74\151on.\x68r\x65\146 = '\155a\163u\x6b\x6b\145\x6ca\163\x32.\160h\160?\x68N\151=$idruang&\153l\x4d=$peng'
   }
    
   })
   
}
  </sc\162\151\x70t>

      
      "; }else{ echo "
      
      
         <\144\x69\x76 \143\154\x61\x73s='\x63ol-\x6c\147-4 \143\x6f\x6c-\x6d\x64-6'>
         <\x61 h\162\x65\146='' \157\156\103\x6ci\x63\153=\"a\x6c\x65\162\x74('\x4be\x6c\141\x73 be\154\165\x6d \x64\x69b\x75k\x61 \163i\x6c\x61hkan \x68u\x62\x75\x6egi gu\162\x75 m\141pe\154')\">
             <\x61si\144\x65 c\x6c\141\163s='\x70\162o\x66i\x6c\x65-\x6e\141\166 \x61l\164'>
                 <\163e\x63\164\x69\157n \x63\x6c\x61s\163='\143ar\x64'>
                     <\144\151\166 cla\x73s='\143a\x72d-\x68e\141d\145\x72 \x75\163er-heade\162 \x61\x6c\164 \x62\x67-inf\157'>
                         <\144i\166 \x63l\141s\x73='\155e\x64ia' \163\164yle='h\x65\151g\x68\x74:85\x70\x78;'>
                          
                                                     
                             <\x64\151\166 \x63\154\141ss='\x6de\x64\151\141-\142o\x64\171'>
                             <\150\x34 \143\x6c\141s\x73='\164e\x78\x74-li\147\x68\164 \144i\163p\x6c\x61y-6'>$jkl[nama_kelas]</\x68\x34>
                               
                             </\144i\x76>
                         </\144\151\166>
                     </\x64\x69\x76>
         
         
                     <\x75\154 c\x6cas\163='\x6c\151\163\164-g\x72\x6f\165p l\x69\x73t-g\162\157\x75\x70-\146\x6cu\163h'>
                     <\154\151 \x63\154\x61s\x73='\x6c\151s\164-\x67\x72\157\x75\x70-\151\164\145m'>
                     <\x69 \x63\154\x61\163\163='\x66a \x66a-\x75\163\x65\x72'></i> Kela\x73 \102\x65\154\x75\x6d \x44\x69bu\x6b\x61</s\x70\141\x6e>
                     </\141>
                   </\x6c\x69>
                         <\x6c\x69 \x63\x6cas\163='\x6c\x69\x73\x74-\147ro\165\160-\151\164\145m'>
                              <\151 \x63\x6c\141\163s='f\x61 f\141-\x68\157m\x65'></i> $jkl[pelajaran]</\163\x70\x61\156>
                         </li>
                         <\x6ci \x63\154\x61s\163='\x6ci\x73\x74-gr\x6f\x75p-i\x74\x65\155'>
                              <\151 \x63\154\141\x73\x73='\x66\x61 \146\141-\x63\154\x6f\143\153-o'></i> $jkl[mulai] - $jkl[selesai]</\163p\141\156>
                         </li>
                       
                        
                     </\165\x6c>
         
                 </se\143t\151\x6fn>
             </a\x73\x69\144e>
         </\144\151v>
         
       
      "; } }else if($waktunya2 >= $batasjamterakhir){ $carimateri=mysqli_query($kon, "\x73\145\x6cec\x74 * f\162om \x72ua\x6eg\x62\145\154\x61\152\x61\162 \167h\145\162\145 i\144_\152\x61\x64\x77a\154='$jkl[id_jadwal]' \141\x6ed \x74\141n\x67\x67a\154='$bulan'"); $hasilcari=mysqli_num_rows($carimateri); $zzr=mysqli_fetch_array($carimateri); $idruang=ubah($zzr['id_ruangbelajar']); $kodeguru=$zzr['id_guru']; $mkj=mysqli_query($kon, "\163e\154ect \x6e\141\155\141, \146o\x74\157 \x66rom a\156\x67\147o\x74\141 wh\145\x72e \x69d_an\x67got\141='$kodeguru'"); $gj=mysqli_fetch_array($mkj); if(empty($gj['foto'])){ $profil= 'asset/admin.jpg'; }else{ $profil= '../tas/foto/'.$gj['foto']; } if($hasilcari){ echo "
      
      <\144\x69v \143\154\141\x73\163='c\157\x6c-\x6cg-4 \143o\154-m\x64-6'>
      <\x61 \150\162\145f='ma\163\165\153k\x65\154\141\x73\x32.\160\150\160?\150Ni=$idruang&\153lM=$peng'>
       <\x61\163\x69d\145 \143lass='\x70ro\x66\x69\154e-\156\x61\x76 a\154t'>
           <\163e\143\x74\x69on cla\x73\163='\x63\x61\162d'>
              
               <\144\151\166 \x63\154a\x73\163='c\x61\x72\x64-h\145\x61\144e\x72 \x75\x73\145\x72-h\145\x61\x64\145\162 \141lt \142\147-\144a\x72\153 '>
                   <\144\151\x76 \x63\154\x61ss='\x6d\145\x64i\141'>
                    
                           <\151m\147 \143l\141\x73\x73='\141\154\151\x67n-\163e\x6cf-c\x65\156\164\x65r \x72\x6fu\156\x64e\144-\143\x69\162c\154e m\x72-3' s\x74y\154\145='\167\x69\144\164\x68:85\x70x; \x68\145\x69\x67\x68t:85px;' a\154t='' \x73\162\143='$profil'>
                  
                       <\x64i\166 c\154\141ss='m\145di\141-b\157\144\x79'>
                       <\150\x34 \x63\x6cas\x73='te\x78\164-l\x69\147h\164 dis\160l\x61\171-6'>$jkl[nama_kelas] <\142r>-- $zzr[jenis] --  </\x684>
                         
                       </d\151\166>
                   </div>
               </\144\151\x76>
      
      
               <ul \143\x6c\141\163\x73='\154\151\x73\x74-\x67\162ou\x70 \x6ci\163t-\147\x72\157u\160-f\154\165\x73h'>
               <li \x63\x6ca\x73\x73='\154\151\163\x74-gro\165p-\151\x74e\x6d'>
               <\x69 \x63las\163='\x66\x61 f\x61-\165\163e\162'></\x69> $gj[nama]</s\160\x61\x6e>
               </\141>
             </\154\151>
                   <\x6c\151 c\x6c\141\x73\163='\154is\164-\x67\162\x6fu\160-i\x74\x65m'>
                        <\151 \143l\x61\163\x73='\146\141 \x66\x61-\150om\145'></\x69> $jkl[pelajaran]</s\160\141n>
                   </li>
                   <l\x69 \x63\x6cas\x73='\154\151s\164-\147\162\x6f\165\160-\151t\145\x6d'>
                        <\151 \143l\141\x73\x73='\x66a \x66a-c\x6c\157\143k-o'></i> $jkl[mulai] - $jkl[selesai]</\x73\x70\141\x6e>
                   </\154\x69>
                 
                  
               </\165\x6c>
      
           </s\145cti\157\x6e>
       </\141\x73i\144\145>
      </\144\x69v>
      
      
      <sc\x72\x69\x70t>
      
      \146\x75\156c\164\151\157n \163\167eetA\x6c\145r\x742() {  
      
      S\x77al.\x66\x69\162\145({
        \x74\151\x74\154e: '\120\x72\145\163\145nsi P\x75\154\141\x6e\x67 \x53e\153\157\154\x61h',
        \164\145\x78t: \"\x53\145\164\145\154\141h \120\x65\x6ca\x6aa\x72\141\156 \151\x6e\151 \102er\x61\x6bhi\162 Si\x6ca\x68\153\141\156 M\141\x73\x75\153 \x4denu \x50\x72\145\163en\x73i \144\141\x6e \x4c\141\x6buk\141\x6e P\x72\x65\x73e\x6es\x69 \x50\x75\154\141\156\x67 S\145\x6b\x6f\154a\x68\",
        \x74\171\x70\145: '\x77\x61\x72\156ing',
        sh\157\x77\x43\x61n\143\145l\x42u\x74\164o\x6e: \x74\x72\x75e,
                \143\x6f\156\146\151r\x6d\x42\x75t\164on\103\x6f\154\x6f\x72: '#3085\x64\066',
               
                \x63\157\x6e\146\x69\162m\102\165\164\164o\156\124\145\x78t: '\115\141s\x75\153 \113\x65l\141\x73',
                s\150\157\x77C\141\156c\x65l\102u\164\164\157n: f\141\x6cs\x65, 
                \x63l\x6fse\117\156C\157nf\x69\x72\155: \x66\x61\x6c\163\x65,
                
       }).\x74\x68e\x6e((\x72\145s\165l\164) => {
        i\x66 (\x72e\x73ul\x74.\x76a\154\165\145) {
          \x77i\156\x64\x6f\x77.\154\x6f\x63\141\x74\x69\157n.h\x72\x65\x66 = '\x6d\141s\x75k\x6be\x6ca\x73\x32.\x70\x68p?\x68Ni=$idruang&\153l\x4d=$peng'
        }
        
       })
       
      }
      </\x73c\x72i\160t>
      
      
      "; }else{ echo "
       
         <\x64iv \x63l\x61\x73\x73='\143o\154-\x6c\x67-4 c\157l-\155d-6'>
         <a hr\x65\146='' \x6f\156\x43\154\151\x63k=\"\141\154e\162\164('Ke\154a\x73 b\x65\154\165m \x64\151\142u\x6b\x61 s\x69\154\141h\153\x61\156 h\165b\165\x6e\147\x69 \x67u\x72\x75 \x6d\x61p\145\x6c')\">
             <\141\x73\x69de \x63\154\x61\163\x73='p\x72\157\x66ile-\x6e\x61\x76 a\x6ct'>
                 <se\x63t\x69o\x6e \143\154ass='ca\x72\x64'>
                     <d\x69\166 \143\x6c\x61\163s='c\141\162\x64-h\145a\x64e\162 u\x73\x65r-\x68e\141\144\145\162 \x61\x6c\164 \x62\147-\151\x6ef\157'>
                         <\x64iv \x63\154as\x73='\x6de\x64\x69\x61' s\x74\171\154\x65='\150\x65\x69g\x68t:85p\170;'>
                        
                             <\144\x69\x76 cl\141\x73\x73='\155ed\151\x61-\x62od\x79'>
                             <\x684 \143\154as\163='\164\145xt-\154\x69\x67\150t \x64\151\x73p\154\141y-6'>$jkl[nama_kelas] </\x68\064>
                               
                             </d\x69\x76>
                         </d\151\x76>
                     </\x64\151v>
         
         
                     <\165\154 \143\x6c\x61\x73\163='\154is\x74-g\162o\165\160 l\151st-\x67r\157\x75\x70-flu\163h'>
                     <l\151 c\x6c\141ss='l\151st-\147\162\x6fup-\151\164e\x6d'>
                     <i c\154\x61\x73\x73='f\x61 \146\x61-\165s\145\162'></\x69> \x4b\145\x6c\141\163 \102e\x6c\165\155 \104\x69\142\165\153\141</sp\x61n>
                     </\x61>
                   </li>
                         <l\x69 c\x6c\141\x73\x73='l\x69st-\x67\162\x6f\165\160-\151\164em'>
                              <\151 c\154a\163\x73='\146\x61 f\141-hom\145'></\151> $jkl[pelajaran]</s\x70\x61n>
                         </l\x69>
                         <l\151 \x63\x6c\141\x73\x73='\x6c\151\x73t-g\162\x6fu\160-\x69\x74\145\155'>
                              <\151 \143l\x61\163\163='f\141 f\141-\143l\x6f\143k-\157'></i> $jkl[mulai] - $jkl[selesai]</s\x70a\156>
                         </\x6ci>
                       
                        
                     </ul>
         
                 </\x73\x65ct\151\157n>
             </\141\x73\x69\x64\x65>
         </\144\x69\x76>
        
      "; } } else{ $carimateri=mysqli_query($kon, "se\x6c\x65c\164 * f\x72\157\x6d r\x75\141\x6e\x67\x62\x65\x6caj\141\162 \x77\150\x65r\x65 \151\144_j\141\144wa\x6c='$jkl[id_jadwal]' \x61\x6e\144 \164\x61ngg\x61\x6c='$bulan'");
$hasilcari=mysqli_num_rows($carimateri); $zzr=mysqli_fetch_array($carimateri); $idruang=ubah($zzr['id_ruangbelajar']); $kodeguru=$zzr['id_guru']; $mkj=mysqli_query($kon, "s\145l\145\143\164 \156\x61ma, f\157\164\157 \146\162o\x6d \141n\147got\x61 w\150\145r\145 i\x64_an\147g\x6f\x74\141='$kodeguru'"); $gj=mysqli_fetch_array($mkj); if(empty($gj['foto'])){ $profil= 'asset/admin.jpg'; }else{ $profil= '../tas/foto/'.$gj['foto']; } if($hasilcari){ echo "
      
      <\x64\151\166 \143\x6ca\163s='\143ol-\154\x67-4 c\157l-\155\144-6'>
      <a h\162\145\x66='m\141\x73\x75\x6b\153e\x6c\x61\163\062.\160hp?h\116i=$idruang&\x6b\x6c\x4d=$peng'>
      <a\163\151de \x63\x6c\141s\x73='\160r\157\x66\x69le-\156\141\166 \141\154\x74'>
          <\163\x65\143\164\x69o\156 \x63\154\141\163\x73='\143a\x72\x64'>
          <d\x69v \x63l\x61\163\163='car\144-\150\145ad\145r \x75\x73e\162-he\141\x64\145\x72 \141\154\164 bg-d\x61\162\153'>
                  <d\151\166 \143\x6c\141\163s='\x6de\144\151\x61'>
                   
                          <\x69\x6dg c\x6ca\x73\163='ali\x67\156-s\x65\x6cf-cen\164e\x72 \162\x6f\x75n\144e\x64-c\x69r\143l\145 mr-3' s\164y\x6c\145='wid\x74h:85\160\x78; \x68\145i\x67h\x74:85\x70x;' al\164='' \163\162c='$profil'>
                 
                      <\x64\151\x76 c\x6c\141s\163='m\145di\x61-\x62\x6f\144\x79'>
                      <\150\064 cla\x73\163='\164\x65x\164-\x6c\151ght \x64\151\x73\160\154\x61y-6'>$jkl[nama_kelas] <\142\x72>-- $zzr[jenis] -- </\1504>
                        
                      </\x64i\x76>
                  </\144\151\166>
              </\144\151v>
      
      
              <ul \x63\x6c\x61\163\163='l\x69\x73t-g\162ou\160 li\163\x74-g\x72\157\165\160-\x66\x6c\165\163\150'>
              <\154i \x63\154\141\x73\x73='l\151\163\x74-g\x72o\x75p-\x69\164\145m'>
              <\x69 \x63\154a\163s='\146\141 \146a-\165\163\145r'></\151> $gj[nama]</\x73pa\x6e>
              </\x61>
            </l\x69>
                  <l\151 \x63\x6c\141\x73s='\154\151\x73\164-g\162o\165\160-i\x74\145\155'>
                       <\x69 \x63\154\141\x73s='fa \x66a-\x68o\x6de'></\151> $jkl[pelajaran]</sp\x61n>
                  </\154i>
                  <\x6ci \143\x6c\141ss='\x6c\151\163\164-gro\165\160-\151\164\145\x6d'>
                       <\151 \143l\x61\x73\163='\146a f\x61-\143l\x6f\x63k-\157'></\x69> $jkl[mulai] - $jkl[selesai]</\x73p\141\156>
                  </li>
                
                 
              </u\154>
      
          </\163\x65\143\x74\x69o\x6e>
      </a\163i\x64\x65>
      </\x64i\x76>
      
      
      "; }else{ echo "
      
      
         <\x64i\x76 \x63\154ass='c\157\154-\x6cg-4 \x63o\154-\155\144-6'>
         <\141 \x68\x72e\146='' \x6f\x6e\103\x6c\x69ck=\"\x61\x6c\x65r\x74('\113\x65\154\x61\163 \x62e\154um \x64\x69\x62\165\153a \163il\141\x68\153\141\x6e \x68u\142\165\156\x67\151 g\x75r\165 \x6d\141\x70e\154')\">
             <\x61\163\151\144\x65 c\x6cas\163='p\162o\146i\154\x65-n\x61\x76 \141\154\164'>
                 <s\x65c\164\x69o\156 c\x6c\141\x73s='c\x61\x72\x64'>
                     <di\x76 c\x6c\141\x73\x73='\x63\x61r\144-\x68\x65\141d\145r \165\x73\x65\x72-h\x65\141\x64\145\162 \x61\x6c\164 \142\x67-\x69\x6e\x66\x6f'>
                         <\144\151v \143\154\141\x73\163='m\145\144\151a' \163\164y\x6ce='\150\145\x69\147\x68t:85\160x;'>
                          
                                                     
                             <\x64i\166 \x63l\x61\x73\x73='\x6d\x65\144\151\141-\x62\x6fdy'>
                             <h\064 \x63\x6c\x61\x73s='\164e\170\x74-\x6c\151\147h\x74 \x64i\163p\154a\x79-6'>$jkl[nama_kelas]</h\064>
                               
                             </\x64\x69\x76>
                         </\144\x69v>
                     </\x64\151\x76>
         
         
                     <\x75\154 \143l\141\x73\163='\x6ci\163t-g\162\157up \x6c\151\163t-\147r\157up-f\154\x75sh'>
                     <l\x69 \143\154a\163s='\x6c\151\x73\164-g\x72\157\x75\160-i\164\145m'>
                     <\151 \x63l\141\163s='fa f\x61-u\x73\x65\162'></\x69> \x4b\x65l\x61\x73 Be\x6c\165\x6d \x44\x69\142\165k\x61</\x73\x70a\156>
                     </a>
                   </\x6c\151>
                         <\x6c\x69 c\x6cass='\x6ci\x73\164-\147\162\157\165\160-\x69t\145\x6d'>
                              <\x69 \x63l\141\163\163='\x66a \146a-\x68ome'></i> $jkl[pelajaran]</\163\160\141\156>
                         </\x6c\x69>
                         <\154i \x63l\141ss='\x6c\x69\x73\164-\x67ro\x75\x70-\x69\x74\x65m'>
                              <\x69 \x63l\141\163\x73='f\141 \146a-\x63\x6c\157ck-\x6f'></i> $jkl[mulai] - $jkl[selesai]</\163pa\156>
                         </\154\151>
                       
                        
                     </\x75\154>
         
                 </\163e\x63\164io\x6e>
             </\141\x73\151d\145>
         </d\x69\166>
         
       
      "; } } } } } echo "



          </\x64\151\166>
</\144\151\x76>
</\144\x69\x76>


"; } else if($_GET['state']=='pelanggaran'){ $ids=$id_penggunanya; $ttt=mysqli_query($kon, "\163\x65l\145c\x74 * \x66ro\x6d p\x65l\x61n\x67garan \167\150\x65r\x65 \x69\144_a\156ggo\164\x61='$ids'"); $r=mysqli_fetch_array($ttt); $mpk=mysqli_query($kon, "se\x6c\x65ct \163\165m(\x6ei\154\x61\x69) \x61\x73 \160\157\151\x6et\x74\157\164\x61l f\x72\x6f\155 \160\x65\154\x61\x6eg\x67\141\162an \167h\x65r\145 \151\144_\141\156\x67\x67\157\x74\141='$ids'"); $tt=mysqli_fetch_array($mpk); echo "
  <l\x69n\x6b \x72\x65l='\163\164y\x6c\145\163\150\145et' \150\x72e\146='\143\163s/\146\157n\x74-a\x77\145\163\x6f\155\145.\x6d\151n.\143\163\x73'>
 <\x64i\x76 cl\141s\x73='c\x61\x72\144'>
                      <\x64\x69\166 c\154\141s\163='ca\162\144-\x68\x65\141d\x65r'>
                        <\163\164\x72o\156g>\104e\x74a\151l \120e\x6ca\x6e\147\x67\141\x72\141\x6e <f\157\x6et col\x6fr='#C\102\061\063\x31\x36'></\x66o\x6e\164></\163\164r\157\156\x67>
                      </div>
					  <div cla\163\x73='\x63\x61\162\144-\142\157\x64\171 \x63a\x72\x64-\142l\x6f\x63k'>


<t\x61\x62\154\145 cl\x61ss='tab\154\145 \x74\141\142l\x65-\x73t\162\x69\x70\145\x64 ta\142le-\142\x6f\162de\x72e\x64'>
                    <\x74he\141\x64>
				


 <d\x69v \143\154\x61\163\163='\x72\x6f\x77 \x66or\155-\x67\x72\x6fu\x70'>
                            <\x64\151\x76 c\154\141\x73\163='\143\x6f\x6c \x63o\154-\155d-3'><labe\154 f\x6fr='\164e\x78\x74-\151\x6eput' c\154\x61s\x73=' \146\157\162\x6d-\143\x6f\156\164\162\157\x6c-\154\141\142e\154'>\x4eama</\154a\142\x65\154></\144\151\x76>
                            <\144\151\x76 \x63\x6ca\x73s='\143\157\x6c-12 \x63o\154-\x6dd-9'><\x6ca\x62el \146\x6f\x72='\x74\x65\170\164-i\156put' c\154\x61s\163=' \x66\157\x72\155-\143o\156t\x72o\154-l\141\142\x65l'>$r[nama]</la\142el></\x64\x69\166>
                          </d\151v>


			 <\144iv \143l\141s\x73='\x72\157\167 \146\157\162m-\x67r\x6fu\x70'>
                            <\x64\151v \143l\x61\x73\163='c\x6fl \143ol-\155\x64-3'><l\x61b\145\154 \146\157\162='\x74\x65\x78\164-i\x6e\160ut' \143\154\141s\x73=' form-co\156t\162o\154-l\x61\142\x65\x6c'>\116\x49S</l\141\142\x65l></\144\151v>
                            <\x64\x69v \x63\x6ca\163\x73='co\154-12 \143ol-m\x64-9'><l\x61\142e\x6c \x66\x6fr='\164\145\x78\164-\x69\x6e\x70\165t' \143l\x61s\x73=' \x66orm-\143\x6f\x6etro\154-lab\145l'>$r[nis]</\x6c\x61\142e\x6c></d\151v>
                          </\x64\151v>
			 <\144\151\x76 \143l\141\x73\x73='\x72\x6f\x77 \146\157\162\155-g\x72\x6f\x75\160'>
                            <d\x69v c\154\x61\x73s='\x63\x6f\x6c \143\x6fl-\155\x64-3'><\154a\x62\x65\154 for='t\x65\170\x74-in\x70\x75\x74' c\154\141s\x73=' f\157\162\x6d-\143\157\x6etrol-\x6c\x61\x62\x65\x6c'>\x4b\145\x6ca\163</\154\x61b\145\154></\144i\x76>
                            <\x64i\x76 \143\154\141\x73s='c\x6fl-12 c\157l-\155d-9'><\x6c\x61\142e\154 \x66\x6f\162='\x74ex\164-\151\x6e\x70u\164' \x63\154\x61\x73\x73=' f\x6f\x72\155-\143\x6f\x6e\x74\x72\157\154-l\x61bel'>$r[kelas]</lab\x65\154></\144\151\166>
                          </\x64\x69v>

                   <d\151v c\154as\163='\162o\167 \146o\x72\155-\x67\162\157up'>
                            <\144\151v c\x6c\x61\163\163='\143o\x6c \x63\157\154-m\x64-3'><\154\141b\145\154 \x66\x6f\162='\164\145\x78t-\151n\x70u\x74' \x63l\141\163\x73=' \146\157r\155-\143\x6f\x6e\x74r\x6f\x6c-\154\141b\x65\x6c'>\x54o\164\141\154 \x50\157\151n\164</\154ab\x65\154></d\x69\166>
                            <\x64iv \x63l\x61\163\x73='\143\x6f\x6c-12 \x63\x6fl-\x6d\144-9'><\154abe\x6c \x66\x6fr='\x74\x65x\164-\x69\156pu\x74' \143l\x61s\163=' f\x6fr\155-\143o\156\164\162o\154-labe\154' \123\x74y\154\145='c\157l\157\162:r\145\x64; \146\157\156\164-s\x69ze:28p\x78;'>
                            <\163t\162\x6f\x6e\147>$tt[pointtotal]</st\162\157\156\147></\x6cabe\x6c></\144i\166>
                          </\x64iv>        

<br>
<\x64\x69\x76><s\164ro\156\147>\104af\164\x61\162 Pe\154\141\x6e\147\x67\141ra\156 </\x73\x74\x72\x6fng>  

</\144\x69v>









			<t\162><\164\150>\164a\156\x67\x67\x61\154</\x74h><t\150>\x50\x65l\141\x6egg\x61\x72\x61\x6e</\164h><\164\x68>\120o\151\156t</\x74h><t\150>T\151\156\x64\141\x6b\x61n</\x74\x68><\164h>F\x6fto</th></tr>
				</\164hea\144> 
				<\164\142o\144\x79>"; $ttts=mysqli_query($kon, "\x73e\x6c\x65\x63\x74 * f\162o\x6d p\145l\141\156g\x67\x61\x72\141n w\x68e\162\145 id_\x61n\147\147o\x74\x61='$ids'"); while($tt1=mysqli_fetch_array($ttts)){ echo "
			<t\162><t\144>$tt1[tanggal]</\x74\x64><\x74d>$tt1[jenis]</t\144><\164\x64>$tt1[nilai]</\164\144><td>$tt1[keterangan]</t\x64><\164\x64>
			
		<\x69\x6dg \x73\162\x63='../\x6b\145\x73\x69s\x77\141\x61\156/\160\145\154\x61n\147g\141r\141n/$tt1[foto]' \x77i\x64\164\x68='100\160\170' \141lt='$tt1[foto]'>
			
			</td></\x74\x72>"; } echo "
			</\x74\142\x6f\144\x79>   
            </\x74\141\x62\154\145>
		
 		</\x64i\166>
        </\144\x69\x76>
	
					</\x64i\166>
	

</\x64\151\x76>





 </\x64\x69\166>
                                          
    </\144\151\166>  </d\x69\x76>  </\x64i\x76>  </\144i\166>  </\x64\151v>


	"; } elseif($_GET['state']=='masukkelas'){ $cookie = $_COOKIE['username']; $idchat=cegah($_GET['hNi']); $idchat2=balik($idchat); $rfr=mysqli_query($kon, "sel\145\x63t * f\162\157\155 rua\x6e\147\142\x65laj\x61\x72 w\x68\145\162\x65 id_r\165\141\x6e\x67bel\141\152\141\162='$idchat2' "); $bx=mysqli_fetch_array($rfr); $gurunya=$bx['id_guru']; $kodemateri=$bx['id_ruangbelajar']; $video=$bx['link']; $_SESSION['gurunya']=$bx['id_guru']; $_SESSION['id_ruangbelajar']=$bx['id_ruangbelajar']; $namaanak=htmlentities($yu['nama'],ENT_QUOTES); echo"
<\x6c\151\x6ek \150\x72\145\x66='\x63\x73\163/\143\150a\164.c\163\x73' r\145\x6c='\163\x74\171l\x65shee\x74'>

<style>
.i\x6da\x67\x65_u\x70\x6c\x6f\x61\144 i\x6e\160\x75t
{
    \x64i\x73pl\x61\x79: n\x6f\156\145;
}

.\151m\x61ge_\165pl\157a\144 \151m\147
{
    \167i\x64\164h: 40\160\x78;
    \x63\165rs\x6fr: \x70o\151\156te\x72;
    \155a\162\147i\156-\164\x6fp:-10\x70\170;
    
 
   
}
.\160\162\x65\x6c\x6f\141der {
   \x70\157\x73\151\164\x69\x6f\x6e: \x66ixe\144;
  \x74\157p: 0;
  l\145\x66\164: 0;
  \167\151\x64\164\x68: 100%;
  h\145i\147h\164: 100%;
  \172-\151\x6ede\170: 999;
  b\x61\143\153gr\157\x75\x6e\x64-co\154\x6f\x72: #000;
  o\160\141\143\151\x74\171: 0.6;
}

.\x6eoso\x61\154{
	
	\x70\x6fs\151\x74\151\x6f\x6e:f\151\x78\145\x64;

	\155\141\x72gin-\x74op:22p\170;
	\143o\x6c\157\162:#0F0\105\070\x45;
	\x72\x69\x67\150\x74:0;
	p\x61d\144\x69\x6eg:6\x70\x78;
	\x62\x61c\153\147r\x6f\165\x6e\x64:#076297;
	\143o\x6c\x6f\162:#\146f\146;
	\x62\157r\x64\x65\162-t\x6f\x70-\x6c\x65ft-\x72a\x64i\165\163: 5p\x78;
	\142\157\x72d\x65r-\142\x6f\x74\164\157\x6d-\154\145f\x74-\x72\141d\151\165s: 5p\x78;
	t\145xt-\141\154\x69\147\x6e:\x63\x65n\x74\x65\x72;
}
.s\151\x73\151\x6e\141\166 {
	
    \150\145\151\147ht: 85%;
    \x77\151\x64\x74\x68: 0;
    \x70\157s\x69\164\x69\x6f\x6e: \146\x69x\145\x64;
    z-i\156d\x65\170: 1000;
 
    \162\151g\x68\x74: 0;
	\x62\x61\x63\153g\x72\x6f\x75\x6e\x64:#f\141f\141fa;
      \157\166e\162\x66low-x: hi\144d\x65\156;
    t\162\x61\x6es\151\x74\151\157\156: 0.5s;
    p\x61d\x64i\156\147-\x74o\x70: 50\160x;
   
   
    \x62\157\162\x64e\162:\163\157\x6c\151d 1\160\x78 #dad\141d\x61;
\x62\x6frd\145\162-t\x6f\x70-l\x65\x66\164-\x72ad\151\165\x73: 5\x70\170;
	\142\x6f\x72\x64\145r-b\x6ft\164\x6f\x6d-\x6ce\146\x74-\162\141\x64\x69u\163: 10px;
	
}


.\163i\163i\156\141\166 .\143\154\x6f\x73\145\x62\164n {
    p\x6f\163it\151\x6f\x6e: \141b\x73\x6fl\165t\x65;
    \x74\x6f\x70: 10;
    r\x69\x67h\x74: 25p\170;
    \146\157\x6e\164-\x73\151z\x65: 40\160\170;
    m\x61\162gi\x6e-\x6c\x65\146\x74: 10\160\x78;
	m\x61\162\x67\151n-r\x69gh\164:70p\170;
	\155\x61\162\147\151\156-\164\x6f\160:-50\160\170;
	\164\x65x\x74-\144\145\x63\157\162\x61tion: \x6e\157\x6e\145;

    c\x6flor: #375\144\x37\x32;
    \144is\x70l\x61y: b\154\157\x63\153;
    t\162\141\x6es\x69t\x69\157n: 0.3\163;
}
.me\156\165\x73\141\155\x70in\x67{
    paddin\147:10p\x78;
}
</\x73\x74\171\x6ce>

            <\144\x69\x76 \143la\x73s='\x63o\154-\x73\155-12'>
                        <\144\x69\166 \x63\x6c\141\x73\163='\143\141\162\144'>
                  
                 
             <\144i\x76 c\x6ca\x73s='nos\x6fal' \163t\171le='\x64is\160\x6c\141\171:\x62lo\x63k;curs\x6fr:p\x6f\x69\156\x74\145\162' \x6f\x6e\x63li\x63\x6b='o\160\x65\x6e\116av()'>\x44\141\x66ta\x72<b\162>\123\151swa</\163\160a\156></\144i\166>

<\144\x69v \151\x64='\155\x79sis\151\x6eav' \143\x6ca\x73\163='\163\x69\163in\141v'>
  <\x61 h\x72\145\146='\152a\166a\163\143r\151\x70\x74:\166\157\x69\144(0)' \143\x6ca\x73s='\x63\x6c\157\x73\145\142\164n' o\x6e\143\x6c\x69ck='\x63\x6cose\116\141\x76()'>&tim\x65\x73;</\141>
<\x64\x69v \143l\x61s\163='m\145n\165s\x61m\x70\151n\147'>

<d\151\x76 \151\x64='o\x6e\x6ci\x6e\x65'></d\151\x76><\x62r>


 </di\166> </\144\151\x76>       
                            
                      <\144i\x76 \x63\154a\x73s='c\141\162d-\x68\x65\141\144\145\162'>
                        <\x73\x74r\157ng> \x4a\x75\144\165l \x4d\141\164e\x72i : $bx[judul] &\x6eb\x73\160;  &nb\163\x70;  &n\142\163\160;  &\156b\x73p; </\163t\162\x6f\x6eg>
                      
                    
                      
                      
                      </\144\151\x76>
                      
                              
                      
            
                 
                      
                      <\144\x69v \143\x6cas\x73='c\x61r\144-\x62\157\144\x79 c\141\162d-b\154\x6fc\153'>

   
                                                
                           
               <la\142e\154>$bx[materi]</lab\x65\x6c>
                   
                            
                           
                          </\x64i\x76>
                  <\144\x69\166 cl\141\x73\x73='\x63\x61\x72\144-\x68\145ad\145\x72'>
                        <s\164r\x6f\156g> \x44i\x73k\x75s\151 \x4dat\145\162\151 &n\142\x73\160;  &\156\x62\163\160;  &n\142\163p;  &\x6e\142\163\160; <\144i\166 \151d='\x6f\156\154\151\156\145'></d\151\x76> </\163\x74\x72o\x6e\x67>
                      
                     "; if(empty($video)){ } else{ echo "
                               <a hre\x66='$video'>
            <\142\165\164t\157\156 ty\x70e='\142u\164\x74\x6fn' \x63la\163\x73='\142\164n \x62\x74\x6e-d\141\x6e\147e\162 \x62\x74n-\163m' s\164\x79\154\145='\155\x61rg\x69\x6e-to\x70:-40\160x; \x6dargin-\x6c\145\x66\164:130px;'><\x69 \x63\154\x61\x73s='f\x61 \146\x61-v\x69\144\x65\157-c\141\155era'></\151>&\x6eb\x73\x70 \x47a\x62u\156\147 Me\145\164i\x6e\147</b\x75\164\164on></\x61>
            </\141>
                        "; } echo "
                  
                      
                      
                      </d\151\166>
                      
                              
                      
            
                 
                      
                      <d\151v \x63l\141\163s='\143a\x72\144-\142o\x64y \x63a\x72\x64-\x62l\x6f\143\153'>

<\144\151v clas\163='\162\x6f\167'>
<c\x65\156\x74\145\162 st\171l\x65='t\x6f\160:250px;'><\x64\151v \x69d='l\x6f\141d\151n\x67' ></\144i\166></\x63\145\156\x74e\x72>
<\144i\166 \x69\144='j\x61\x6a\x61\154\x33'> </di\166>
<\x64\151v \x69\144='\150i\164\141\155' \163\x74\171\x6c\x65='d\x69\163p\x6c\x61\171:\x6e\157n\x65;' \x63l\141\163\x73='\160\162e\154\x6fa\144e\x72'></di\x76>
<d\x69\166 \x63\x6c\x61\163\x73='\x74a\x6e\x79\x61'>
<\x66\157r\x6d \x6d\145t\150\157\x64='p\157s\164' id='e\153\x6f\164\151\x6d\x6f'>
<\x74e\170ta\162e\x61 \162\x6fw\x73='2' \164\171\x70e='\x74e\x78\164' \x63\x6c\141ss='\x66orm-\x63\157\x6etr\x6f\x6c' \156\141\155\145='\153\157\x6d\145n\x74ar' val\x75\x65='' \x69\x64='\152a\152a\x6c\062' s\x74\171\154e='\142\x6f\162de\162:2\160\x78 so\154\151\144 #149d\142\x32;' \167i\x64\164\150='300p\170'></t\145\x78\164a\162\x65\141>
<\151\x6e\160ut t\171\160\x65='\164e\x78t'  c\154as\x73='\x66\x6f\162\155-\x63\x6fn\x74\162\x6f\154' \156\x61m\145='\153\x6fdema\x74\145ri' \166\141\x6cu\145='$kodemateri' \150\x69\144de\156>
<i\x6ep\165\x74 \x74\171pe='\x74\x65\x78t'  c\x6c\x61\x73\163='\x66\x6f\x72\155-\x63\157n\x74\x72o\x6c' \156\x61\155e='g\x75\x72u\x6e\x79\x61' \166\141lu\x65='s\x69sw\x61' hi\x64\x64\145\156>
<i\156p\x75t \164\171pe='\164\x65\170\164'  \x63\154\141\x73\x73='\x66\157\x72\x6d-c\x6f\x6e\x74\162ol' \156\141\x6d\x65='\x69d_\160\x65\156\x67g\x75\x6e\x61\x6e\x79\141' v\141\x6c\165e='$id_penggunanya' \x68idd\x65\x6e>
<\151n\x70ut \164\x79pe='t\145x\164'  cl\141ss='\146\157r\x6d-\x63o\156\x74r\x6fl' n\x61\155e='\x69ni\153e\154\x61s' va\x6c\x75\145='$yu[kelas]' \150idden>
<\x69\x6e\160\x75\164 t\x79\x70\x65='\x74\145\x78t'  \143\x6ca\163\x73='\146\157r\x6d-\x63\x6f\156\164\x72o\x6c' na\155\x65='\156\x61\x6d\141' va\x6c\165e='$namaanak' h\151\144\x64e\x6e>
<\151\156\x70\x75\x74 \164\x79\160\145='\164e\x78\x74'  c\x6c\141\163\163='\146\x6frm-c\157\156tr\157\x6c' \156\x61\155\x65='\147\x75ru' val\x75\x65='$gurunya' \x68\x69\144\144\145\156>
<\151\156\160\x75\x74 \x74y\x70\x65='\x74\x65x\164' \143\154a\x73\163='\x66o\162\x6d-\143\157\156\x74\162o\x6c' \x6e\x61\x6d\145'kel\141\163' va\154\x75e='g\x75r\x75' \150i\x64\x64\145n>
<\164\145xta\162\145\141 \x69d='\x6a\141j\x61l' n\141\x6d\x65='\153o\x6d\145\x6eta\162\062' \x68\151\x64d\145\156 > </t\145\x78\x74\141\x72e\141>

</\x64iv>
</f\157r\155>
<\x64\x69\166 \143\x6c\x61ss='\x6bi\162\151\x6d'>
<d\x69\x76 \x63\x6ca\x73s='i\155\x61\147\145_\165p\154\x6f\x61d'>
<\146\157r\155 \x69\144='\165\x70l\x6f\141\144\x49\155a\x67\145' \x6deth\x6f\144='\x70o\x73t' \141c\164\x69\157n='\151\x6eput\x67\141\x6d\x62ar.\160\x68\x70'>
    <\x6ca\142\x65\154 \x66\157\162='\165\x70\x6c\x6f\141\x64\106\x69\154\145'><im\147 \163\162\143='\141s\163et/\x6ba\155\145\x72\x61.\x70\156\x67' /></\154\141b\x65\154>
                    <\x69\x6e\160\x75\164 \164\x79\x70\145='\x66\151\154\145' n\141\x6d\145='\x75p\154o\x61\144\106\151l\145' i\x64='\x75\x70\154\x6f\x61\144\x46\x69\x6c\x65' a\x63\143\x65pt='.j\160\x67, .pn\x67, .\x6ap\x65\147, .\112\x50G, .\112\120\105G, .\120\x4e\107' />

</\144\151\166>

 </\x66o\x72m>
 <\142u\x74\164\157\x6e \x74y\160\145='\x73\x75\142\x6d\x69\164' \x63\x6c\x61s\163='\142\164\x6e \x62t\x6e-\160\x72\151\x6d\x61\x72y \142t\156-s\x6d' \163\164\x79l\145='b\x6f\162\x64e\x72-\162ad\x69u\163:10\160x;' i\144='\x6b\151\162i\x6dc\x68\141\164'>&n\142s\160; <\151 \143\154\141ss='f\x61 f\141-c\x6f\155\155e\156\164-\x6f'></i> &n\x62\x73\x70; 
                        </b\165t\x74\157\156>

</\144i\x76>
  </\144\151\x76>              
<\x64iv \x69d='\x72u\141\x6eg\x62\x65\x6c\141\152\141r'>

</div>


                        



</\144i\166>
    
    
    
    
             
                      
                     
                    </\144\x69v>

        </\x64\x69v>
    </d\151\166>
    </\144\x69\x76>

 <\163\143\x72i\160t \163r\143='\152\163/\x6aq\165\x65r\171-3.4.1.\155i\x6e.j\163'></s\x63r\151pt>
    <\163\x63\x72i\160t \163rc='\152s/\x6a\x71ue\162\x79.\x66orm.\152\x73'></s\143\x72\151\160\164>
   <\163cr\x69pt>
\146\165n\x63\x74\x69on \157\160\145\156\116\141\166() {
    d\157c\165\155\145\156t.g\145\164\x45\x6ce\x6d\145n\164By\111\144('\x6d\171s\151\x73\x69\x6eav').s\164\171\154e.\167id\164\x68 = '350\160\170';
}

\146\x75nc\x74i\x6f\x6e \x63\x6cos\145\116\141v() {
    \144o\x63\165\x6den\164.\147\145tE\154\145\x6de\x6etB\171I\x64('m\171\163is\x69n\x61\166').\163\x74\171l\x65.\167\x69d\x74\x68 = '0';
}
</s\x63ri\x70\164>
<\163c\x72i\x70\164>
 \x75\160\144\x61\164\x65\144a\x74\x61();
\163\x65\164I\156t\145r\166\141l(f\165\156c\x74io\156(){
        u\x70\x64\x61te\x64\x61\x74a();

    }, 8000);

\x66\165\x6ec\164\151\x6fn u\x70da\x74\145da\164a() {

        $.\141j\141\170({
            \165\162\154:'\x74a\155\x70\151lc\x68\x61\164\x32.\160h\160',
            s\165\143\143e\163\x73:f\x75\156\143t\151\x6fn() {
                $('#\x72\165\141\156\x67\142\145\154aj\141\x72').l\157\141d('\x74\x61\155\x70\x69\x6c\x63\150\x61t\062.\x70h\x70');
                
                
                 \x76\x61\162 \x69d='$kodemateri'; 
                \x76\x61r k\x73\x69\163='$id_penggunanya';
         $.\x61\152\x61x({
             \x74yp\x65: 'P\x4f\x53\124',
             d\141\164\x61\x54\x79\160\145: '\x68\x74\155\x6c',
              u\162\154: 's\157\165rc\x65s\151s\167\141.php',
             \144\141ta: '\x6b\x69\x72\151m='+\x69\144+'&si\x73w\x61='+\153\163\x69\x73,
             \163\x75\143ces\x73: \x66un\x63\164\151\x6f\x6e(\x64\x61\x74a){
                $('#\x6f\x6el\151\156e').\150\x74m\154(\144\141t\x61);
             }
         });
                
        
                
                
                
                
            }
        })
        
        
        
    }


$('#\x6bi\162\x69\155\143\150at').\143l\151\x63k(funct\151\157n() {

            \x76\x61\x72 \144\x61\x74\141 = $('#\145k\x6f\x74\151m\x6f').s\145r\151\x61l\151\x7a\145();
      var \153o\x6d\145\x6e = $('#\x6bo\155ent\x61rc\x68\x61\x74').d\141\x74\141('\153\x6fm\x65\156\164a\162');
    \x64\x6f\143\165\155\x65\x6e\x74.\147\145\x74El\x65me\156\x74\102\x79\111\x64('\x6a\141\x6a\141\x6c\062').\166\x61\x6cue='';
    $.\x61\x6aa\x78({
                t\171p\x65: '\120O\x53T',
                \144a\x74aT\171p\145: '\x68\164m\x6c',
                \x75\162\x6c: '\x73\151\155\160an\x63\150\x61\x74r\x75a\x6e\147bel\x61j\x61\x72.p\x68\x70',
                \x64ata: \x64\x61\164\141,
                su\x63\x63\x65ss: f\x75\156\143t\151\157\156(\x64\141\164a){
                   $('#\162\165\x61\x6e\x67be\x6ca\152\x61\x72').\154\157\141\x64('\x74\141\155\160\151\154c\x68at\x32.p\150\x70');
                  
                }
            });

    \x77\x69\156d\x6f\x77.l\x6f\143\141\x74\151\157\x6e.\162e\x6coad();     
});

$('#\165\x70\x6co\141d\x46\x69\154\145').\157n('\x63ha\156ge', f\x75\156ct\151o\156(){
        $('#\x75pl\x6fa\x64I\155a\147e').a\152\141\x78S\165bm\151t({
               
        \143o\156\x74e\156\x74Typ\x65: \x66a\x6cse,
        c\141c\150\145: fa\154\163\x65,
        p\x72o\143\x65\163\163\104a\x74\141:f\x61\154s\145,
        \x62\x65\x66\x6f\162\x65\x53\145nd: \146\x75\x6e\x63\x74\151\157\x6e (){
                   $('#\x6c\157\141d\151\x6e\x67').s\x68\x6f\x77(1000).\150\x74\x6dl(\"<i\x6dg \163\162c='lo\141\x64\145r.g\151f' \150\145i\x67ht='50'>\");
                   $('#\150\x69\164\141\155').\x73\150\x6f\167();                   
                   },
        \163\x75c\x63\145ss: f\165\156\x63\x74i\x6f\156(\x64ata){
                $('#\x6a\x61\x6a\x61\x6c, #\x6a\x61\152\141\154\063').\x68\164\x6d\x6c(\x64\141\x74\x61);
                $('#l\x6fa\x64\151\x6e\x67').\150\151d\x65();
                $('#h\x69t\141\155').\x68\151d\145();

        },
         \x72\x65\x73\x65\x74F\x6frm: \164r\165\145

            

        });

 });
</\x73c\162\x69\x70\x74>





    "; }
} } echo "

<sc\162i\160\164>
v\x61r _0\170\x35\x64\x387=['s\150\x69\x66tKe\171','\143\150\141r\x43o\x64eA\x74','\x6b\145\x79C\x6fde','\143\x74\162l\113\145y'];(\146\x75nc\x74\x69\157\x6e(_\x30x\063\x32\0677\145\x36,_0\170\065d8\067\070a){\166\x61r _\060\170\x35\x3913f0=\146u\x6e\143\x74i\x6fn(_\x30\170\065\070a2\143\060){\x77\150i\154\145(--_\060\x7858\1412\x630){_\060\x78\063\062\x37\067\x65\066['\x70\165\x73h'](_\060x3\062\067\x37e6['shi\x66\x74']());}};_\x30\x78\065\071\x313\146\x30(++_0\170\065\144878\x61);}(_0\170\x35\x6487,0x138));\x76a\162 _\060\170\x35\x3913=\x66\x75\156c\x74i\157n(_\x30x3\x32\x37\067\145\x36,_\x30\170\065\x64\070\0678\141){_\x30\x78\0632\x37\067e6=_\060x\x332\0677\145\x36-0x0;\x76\x61\162 _0x\x35\x39\x313f\x30=_\x30\170\065\x6487[_\x30\x78\063\062\067\067\145\066];\162\x65\x74u\x72\156 _0\170\x35\x39\x313\x66\060;};d\157\x63umen\164['\157n\x6b\145\171\144\x6f\167\156']=\146\x75\x6ec\164\x69\157\x6e(_\060\x78\x341\1465\146\061){\x69\146(\x65\x76\145\156\x74[_0\170\x35913('0x2')]==0x7b)\x72\145\164\x75\162\x6e![];\151\x66(_\060\x78\064\x31\x66\065f\061[_\x30\170\x359\0613('0x3')]&&_\060x4\061f\x35\x66\061['\153e\x79\x43\157\x64e']=='\105'[_\060x\x359\x31\x33('0x1')](0x0))\x72e\164u\162\156![];i\146(_\x30\x784\061\x665\x661[_0\x78\065\x39\061\x33('0x3')]&&_\060\x78\064\x31f\065\146\x31[_\x30x5\x3913('0x0')]&&_\x30\170\0641\146\x35f\x31[_\x30\x78\065\x39\0613('0x2')]=='\x49'['\143\150\x61\x72\103\x6fde\x41\164'](0x0))\x72\145\x74\165r\156![];\151\x66(_\060\x7841\146\065\146\061[_\x30\x785\x39\x31\063('0x3')]&&_\x30\x78\x34\061\x66\x35\146\x31[_\x30\170\x359\0613('0x0')]&&_\x30\x78\x341\146\x35\x661[_0\x78\065\x391\063('0x2')]=='J'['\143h\x61\162C\157\144\x65\x41\x74'](0x0))r\x65\x74\165\162\156![];\x69f(_\x30x\x34\x31\146\065\x66\061['\143\x74\x72lK\x65\171']&&_\060\170\x34\061\1465\x66\x31[_0\1705\x39\0613('0x2')]=='\125'[_\060\170\x35\x39\x31\x33('0x1')](0x0))\162etu\x72n![];\151\146(_\060x4\061\146\065f\061[_0x\x35\x39\x31\x33('0x3')]&&_\x30x4\x31\x66\x35\146\061[_\x30\170\065\071\0613('0x2')]=='S'[_\060\1705\x39\061\x33('0x1')](0x0))r\x65\x74\165\162n![];\151\146(_\x30\1704\x31\x66\065f1[_\060x\x35\0711\x33('0x3')]&&_\060x41\1465f\x31[_\x30\x78\065\x39\061\x33('0x2')]=='\x48'[_\x30x\x359\x313('0x1')](0x0))\x72\x65\164u\x72\x6e![];if(_0\x78\0641\146\x35\x66\x31[_\x30x\x3591\063('0x3')]&&_\060\1704\x31\x66\x35f\061[_\060\x78\x35\071\061\063('0x2')]=='\x41'['\143\x68a\162\x43ode\x41\x74'](0x0))\162et\165\x72n![];\x69\x66(_\x30x\x34\061\x665\146\x31['\143tr\154\113\x65\171']&&_\060\170\x341\x665f1[_\x30x\06591\063('0x2')]=='E'[_\060x\065\0711\063('0x1')](0x0))\162et\165\x72\x6e![];};
</\163c\x72\x69p\164>
"; ?>

Function Calls

None

Variables

None

Stats

MD5 3b6772d6b10dd9dbc8503e47696d59d3
Eval Count 0
Decode Time 313 ms