[ Mini Kiebo ]
Server: Windows NT DESKTOP-5B8S0D4 6.2 build 9200 (Windows 8 Professional Edition) i586
Path:
D:
/
Backup
/
05122024
/
htdocs
/
siakad
/
akademik
/
ajax
/
[
Home
]
File: save_nilaiher.php
<?php require_once("configure_first.php"); $nmTable = "sab_p_nilai"; $id_tema = $_GET["id_tema"]; $id_kelas = $_GET["id_kelas"]; $id_sem = $_GET["id_sem"]; $id_ta = $_GET["id_ta"]; $id_mp = $_GET["id_mp"]; $id_kd = $_GET["id_kd"]; $nilai_id_kd = "@".$id_kd; if(strlen($id_tema) == 1) $id_tema = "0".$id_tema; $query="select * from sab_set_tema a where length(tema_kode) = 4 and substring(tema_kode,1,2) = ".$id_tema." and id_ta = ".$id_ta." and id_sem = ".$id_sem." order by tema_kode asc"; // echo $query."<br>"; $iDataArray=sAllData($query); for($a=0,$b=count($iDataArray);$a<$b;$a++) { $id_tema = $iDataArray[$a]["tema_id"]; $namaTema[$id_tema] = $iDataArray[$a]["tema_nama"]; if($a == 0) $where = "id_tema = ".$id_tema; else $where = $where." or id_tema = ".$id_tema; } $query2 = "select * from ".$nmTable." a left join sab_set_tema b on a.id_tema = b.tema_id where (".$where.") and a.id_kelas = ".$id_kelas." and a.id_sem = ".$id_sem." and a.id_ta = ".$id_ta." and id_mp = ".$id_mp." and (nilai_id_kd = '".$nilai_id_kd."' or nilai_id_kd = '0".$nilai_id_kd."') and nilai_jenis = '".$nilai_jenis."' and id_siswa = ".$iData[$a]["siswa_id"]; // echo $query2."<br>"; $iData2=sAllData($query2); for($a2=0,$b2=count($iData2);$a2<$b2;$a2++) { } ?>