[ Mini Kiebo ]
Server: Windows NT DESKTOP-5B8S0D4 6.2 build 9200 (Windows 8 Professional Edition) i586
Path:
D:
/
Backup
/
14082024
/
Data
/
htdocs
/
htdocs
/
siakad
/
akademik
/
ajax
/
[
Home
]
File: 2015raport_na456.php
<?php require_once("configure_first.php"); $nmForm = "rapor_lampiran.php"; $nmTable = "p_nilai_siswa"; $formnama = "r-lampiran"; if($_GET["id_ta"]) $id_ta = $_GET["id_ta"]; if($_GET["id_sem"]) $id_sem = $_GET["id_sem"]; if($_GET["siswa_id"]) { $siswa_id = $_GET["siswa_id"]; $query = "select siswa_id,siswa_nis,siswa_nisn,siswa_nama,kelas_nama,substr(kelas_kode,1,2) as kode,siswa_jk,pgw_nama,pgw_gelar_awal,pgw_gelar_akhir,ortu_nama from m_siswa a left join m_kelas b on a.siswa_kelas_skr = b.kelas_id left join m_wali_kelas c on a.siswa_kelas_skr = c.id_kelas left join m_pegawai d on c.id_pgw = d.pgw_id left join m_siswa_ortu e on a.siswa_id = e.id_siswa where e.ortu_jenis = 'Bapak' and siswa_id = ".$siswa_id; // echo $query; $iData=sAllData($query); for($a=0,$b=count($iData);$a<$b;$a++) { $siswa_id = $iData[$a]["siswa_id"]; $siswa_nis = $iData[$a]["siswa_nis"]; $siswa_nisn = $iData[$a]["siswa_nisn"]; $siswa_nama = $iData[$a]["siswa_nama"]; if($iData[$a]["siswa_jk"] == "L") $siswa_jk = "Laki-laki"; else $siswa_jk = "Perempuan"; $kelas_nama = $iData[$a]["kelas_nama"]; $kelas_kode = $iData[$a]["kode"]; // echo $kelas_nama; $array_kls = explode(".",$kelas_nama); $kelasup = $array_kls[0]; $pgw_nama = $iData[$a]["pgw_gelar_awal"]." ".strtoupper($iData[$a]["pgw_nama"])." ".$iData[$a]["pgw_gelar_akhir"]; $ortu_nama = $iData[$a]["ortu_nama"]; } } $query = "select * from m_wali_kelas a left join m_pegawai b on a.id_pgw = b.pgw_id where id_kelas = ".$_GET["id_kelas"]; // echo $query; $iData=sAllData($query); for($a=0,$b=count($iData);$a<$b;$a++) { $pgw_nama = $iData[$a]["pgw_gelar_awal"]." ".strtoupper($iData[$a]["pgw_nama"])." ".$iData[$a]["pgw_gelar_akhir"]; } $query = "select sem_nama from m_semester where sem_id = ".$id_sem; $iData=sAllData($query); for($a=0,$b=count($iData);$a<$b;$a++) { $sem_nama = $iData[$a]["sem_nama"]; } $query = "select ta_nama from m_tahun_ajaran where ta_id = ".$id_ta; $iData=sAllData($query); for($a=0,$b=count($iData);$a<$b;$a++) { $ta_nama = $iData[$a]["ta_nama"]; } $query = "select b.* from m_pjb_penandatangan a left join m_pegawai b on a.id_pgw = b.pgw_id where pjb_sbg = 'Kepala Sekolah'"; $iData=sAllData($query); for($a=0,$b=count($iData);$a<$b;$a++) { $pjb_nama = $iData[$a]["pgw_gelar_awal"]." ".strtoupper($iData[$a]["pgw_nama"])." ".$iData[$a]["pgw_gelar_akhir"]; } if($_GET["id_kelas"]) { $id_kelas = $_GET["id_kelas"]; $query = "select a.*,substr(kelas_kode,1,2) as kode from m_kelas a where kelas_id = ".$id_kelas; // echo $query."<br>"; $iData=sAllData($query); for($a=0,$b=count($iData);$a<$b;$a++) { $kelas_nama = $iData[$a]["kelas_nama"]; // echo $kelas_nama; $kelas_kode = $iData[$a]["kode"]; } } //array tema subtema // $temaKodeArray = array(54,55,56,57); // $temaKodeArray = array(92,93,95,96,97); // $temaKodeArray = array(92,93,95,96); $query = "SELECT * FROM sab_set_tema WHERE tema_nama <> 'UTS' and tema_nama <> 'UAS' and tema_nama <> 'UKK' and tema_nama <> 'UTS SEMESTER 2' and length(tema_kode) < 4 and id_sem = ".$id_sem." and id_ta = ".$id_ta; // echo $query."<br>"; $iData=sAllData($query); for($a=0,$b=count($iData);$a<$b;$a++) { $temaKodeArray[] = $iData[$a]["tema_id"]; $temaNamaArray[] = $iData[$a]["tema_nama"]; } for($a=0,$b=count($temaKodeArray);$a<$b;$a++) { // $query = "SELECT * FROM `sab_set_tema` WHERE length(tema_kode) >= 4 and substr(tema_kode,1,2) = ".$temaKodeArray[$a]; $query = "SELECT * FROM `sab_set_tema` WHERE length(tema_kode) >= 4 and id_sem = ".$id_sem." and id_ta = ".$id_ta." and (substr(tema_kode,1,2) = ".$temaKodeArray[$a]." or substr(tema_kode,1,3) = ".$temaKodeArray[$a].")"; // echo $query."<br>"; $iData=sAllData($query); for($a1=0,$b1=count($iData);$a1<$b1;$a1++) { $tema_nama[$temaKodeArray[$a]][$a1] = $iData[$a1]["tema_nama"]; $tema_id[$temaKodeArray[$a]][$a1] = $iData[$a1]["tema_id"]; // echo $a1."=".$temaKodeArray[$a]."=".$tema_id[$temaKodeArray[$a]][$a1]."|".$tema_nama[$temaKodeArray[$a]][$a1]."<br>"; } } //array tema subtema khusus uts uas // $temaKodeArray2 = array(84,85); // $temaKodeArray2 = array(94,98); $query = "SELECT * FROM sab_set_tema WHERE (tema_nama = 'UTS' or tema_nama = 'UAS' or tema_nama = 'UKK' or tema_nama = 'UTS SEMESTER 2') and length(tema_kode) < 4 and id_sem = ".$id_sem." and id_ta = ".$id_ta; // echo $query."<br>"; $iData=sAllData($query); for($a=0,$b=count($iData);$a<$b;$a++) { $temaKodeArray2[] = $iData[$a]["tema_id"]; $temaNamaArray2[] = $iData[$a]["tema_nama"]; } $urut = 0; for($a=0,$b=count($temaKodeArray2);$a<$b;$a++) { // $query = "SELECT tema_id FROM `sab_set_tema` WHERE length(tema_kode) >= 4 and substr(tema_kode,1,2) = ".$temaKodeArray2[$a]; $query = "SELECT tema_id,tema_nama FROM `sab_set_tema` WHERE length(tema_kode) >= 4 and id_sem = ".$id_sem." and id_ta = ".$id_ta." and (substr(tema_kode,1,2) = ".$temaKodeArray2[$a]." or substr(tema_kode,1,3) = ".$temaKodeArray2[$a].")"; // echo $query."<br>"; $iData=sAllData($query); for($a1=0,$b1=count($iData);$a1<$b1;$a1++) { $tema_id2[$urut] = $iData[$a1]["tema_id"]; $tema_nama2[$urut] = $iData[$a1]["tema_nama"]; // echo $urut."=".$tema_id2[$urut]."=".$tema_nama2[$urut]." <br>"; $urut = $urut+1; } } ?> <link rel="stylesheet" href="../../metrosapp/mdk-lib/StyleReport.css" media="screen"> <title>Raport NA Baru</title> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tr> <td rowspan="8" width="3%"> </td> <td width="10%" valign="top"><img src="http://103.5.50.154/sabilillah/akademik14/mediamanager/logosabilillah.jpg" width="95px"></td> <td align="left" width="84%"><font face="Times New Roman" size="2"><b>TAMAN PENDIDIKAN ISLAM SABILILLAH<br>SD ISLAM SABILILLAH FULL DAY SCHOOL</b><br><font face="Times New Roman" size="2">Perumahan Gading Fajar II Blok B1-B3 Sidoarjo 61214<br>Phone : TK : (031) 8052492, SD : (031) 8064124, (031) 8064207<br>Email : info@sabilillahsidoarjo.sch.id</td> <td rowspan="8" width="3%"> </td> </tr> <tr> <td align="center" colspan="2"><br><font face="Times New Roman" size="3"><b>LAMPIRAN HASIL BELAJAR PESERTA DIDIK</b><br><b>TAHUN PELAJARAN <?php echo $ta_nama;?></b></td> </tr> <tr> <td colspan="2"><br> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tr> <td width="15%"><b><font face="Times New Roman" size="2">Nama Peserta Didik</b></td> <td width="2%"><b><font face="Times New Roman" size="2">:</b></td> <td width="41%"><b><font face="Times New Roman" size="2"><?php echo strtoupper($siswa_nama);?></b></td> <td width="17%"><b><font face="Times New Roman" size="2">Kelas / Semester</b></td> <td width="2%"><b><font face="Times New Roman" size="2">:</b></td> <td width="23%"><b><font face="Times New Roman" size="2"><?php echo $kelas_nama;?> / <?php echo $sem_nama;?></b></td> </tr> <tr> <td><b><font face="Times New Roman" size="2">Jenis Kelamin</b></td> <td><b><font face="Times New Roman" size="2">:</b></td> <td><b><font face="Times New Roman" size="2"><?php echo $siswa_jk;?></b></td> <td><b><font face="Times New Roman" size="2">Nama Orang Tua</b></td> <td><b><font face="Times New Roman" size="2">:</b></td> <td><b><font face="Times New Roman" size="2"><?php echo $ortu_nama;?></b></td> </tr> <tr> <td><b><font face="Times New Roman" size="2">Nomor Induk</b></td> <td><b><font face="Times New Roman" size="2">:</b></td> <td><b><font face="Times New Roman" size="2"><?php echo $siswa_nis;?></b></td> <td><b><font face="Times New Roman" size="2">NISN</b></td> <td><b><font face="Times New Roman" size="2">:</b></td> <td><b><font face="Times New Roman" size="2"><?php echo $siswa_nisn;?></b></td> </tr> </table> </td> </tr> <tr> <td colspan="2"> <br> <font face="Times New Roman" size="2"><b>A. ASPEK PENGETAHUAN<BR> <?php $query1 = "select * from m_matapelajaran where mp_status = 1 order by mp_urut asc"; $iData1=sAllData($query1); for($a1=0,$b1=count($iData1);$a1<$b1;$a1++) { ?> <b>1.<?php echo ($a1+1);?>. <?php echo $iData1[$a1]["mp_nama"];?></b> <table border="1" cellspacing="0" cellpadding="1" width="100%"> <tr> <td width="3%" rowspan="3" align="center"><font face="Times New Roman" size="2"><b>NO<br>KD</b></td> <td width="30%" rowspan="3" align="center"><font face="Times New Roman" size="2"><b>KOMPETENSI<br>DASAR</b></td> <td width="10%" align="center" colspan="<?php echo (count($temaNamaArray)+count($tema_nama2));?>"><font face="Times New Roman" size="2"><b>JENIS PENILAIAN</b></td> <td width="10%" rowspan="3" align="center"><font face="Times New Roman" size="2"><b>RATA-<br>RATA</b></td> <td width="10%" rowspan="3" align="center"><font face="Times New Roman" size="2"><b>SKALA<br>(1 - 4)</b></td> <td width="10%" rowspan="3" align="center"><font face="Times New Roman" size="2"><b>PREDIKAT</b></td> </tr> <tr> <td colspan="<?php echo count($temaNamaArray);?>" align="center"><font face="Times New Roman" size="2"><b>Rata-Rata Ulangan Harian (UH)</b></td> <!--td colspan="2" align="center"><font face="Times New Roman" size="2"><b>UTS</b></td> <td colspan="<?php echo (count($tema_nama2)-2);?>" align="center"><font face="Times New Roman" size="2"><b>UAS</b></td--> </tr> <tr> <?php for($a=0,$b=count($temaNamaArray); $a<$b; $a++) { ?> <td align="center" width="7%"><font face="Times New Roman" size="2"><b><?php echo $temaNamaArray[$a];?></b></td> <?php } ?> <?php for($a=0,$b=count($tema_nama2); $a<$b; $a++) { ?> <td align="center" width="7%"><font face="Times New Roman" size="2"><b><?php echo $tema_nama2[$a];?></b></td> <?php } ?> </tr> <?php $query = "select * from m_kd where id_ta = ".$id_ta." and id_sem = ".$id_sem." and id_mp = ".$iData1[$a1]["mp_id"]." and kd_jns_penilaian = 'PENGETAHUAN' and id_kelas = ".$kelas_kode." order by abs(kd_kode) asc"; $iData=sAllData($query); // echo $query."<br>"; for($a=0,$b=count($iData);$a<$b;$a++) { ?> <tr> <td align="center"><font face="Times New Roman" size="2"><?php echo $iData[$a]["kd_kode"];?></td> <td><font face="Times New Roman" size="2"><?php echo $iData[$a]["kd_nama"];?></td> <?php //untuk UH1 for($aa=0,$bb=count($temaKodeArray);$aa<$bb;$aa++) { if($tema_id[$temaKodeArray[$aa]][3] == "") $tema_id[$temaKodeArray[$aa]][3] = 0; if($tema_id[$temaKodeArray[$aa]][4] == "") $tema_id[$temaKodeArray[$aa]][4] = 0; $sql = "select sum(nilai_akhir) as ntotal, count(nilai_akhir) as njumlah, (sum(nilai_akhir)/count(nilai_akhir)) as rata from sab_p_nilai where id_sem = ".$id_sem." and id_ta = ".$id_ta." and id_siswa = ".$siswa_id." and id_mp = ".$iData1[$a1]["mp_id"]." and nilai_jenis = 'Pengetahuan' and (nilai_id_kd = '@".$iData[$a]["kd_id"]."' or nilai_id_kd = '0@".$iData[$a]["kd_id"]."') and (id_tema = ".$tema_id[$temaKodeArray[$aa]][0]." or id_tema = ".$tema_id[$temaKodeArray[$aa]][1]." or id_tema = ".$tema_id[$temaKodeArray[$aa]][2]." or id_tema = ".$tema_id[$temaKodeArray[$aa]][3]." or id_tema = ".$tema_id[$temaKodeArray[$aa]][4].")"; // echo $iData[$a]["kd_kode"]."=".$temaKodeArray[$aa]."=".$sql."<br>"; $iNilai=sAllData($sql); for($x=0,$y=count($iNilai);$x<$y;$x++) { if($iNilai[$x]["rata"] != 0) $jumlahNilai = ($jumlahNilai+1); $nilaiTotal = ($nilaiTotal+$iNilai[$x]["rata"]); // echo $iData[$a]["kd_kode"]."=>".$iNilai[$x]["rata"]."=>".$nilaiTotal."<br>"; if($iNilai[$x]["rata"] == null) {?> <td align="center"><font face="Times New Roman" size="2"><b>-</b></td> <?php }else{ ?> <td align="center"><font face="Times New Roman" size="2"><b><?php echo round($iNilai[$x]["rata"],2);?> (<?php echo $iNilai[$x]["ntotal"];?>/<?php echo $iNilai[$x]["njumlah"];?>)</b></td> <?php } ?> <?php } ?> <?php } ?> <?php //untuk UTS, UAS for($aa=0,$bb=count($tema_id2);$aa<$bb;$aa++) { $sql = "select sum(nilai_akhir) as ntotal, count(nilai_akhir) as njumlah, (sum(nilai_akhir)/count(nilai_akhir)) as rata from sab_p_nilai where id_sem = ".$id_sem." and id_ta = ".$id_ta." and id_siswa = ".$siswa_id." and id_mp = ".$iData1[$a1]["mp_id"]." and nilai_jenis = 'Pengetahuan' and (nilai_id_kd = '@".$iData[$a]["kd_id"]."' or nilai_id_kd = '0@".$iData[$a]["kd_id"]."') and id_tema = ".$tema_id2[$aa]; // echo $temaKodeArray[$aa]."=".$sql."<br>"; $iNilai=sAllData($sql); for($x=0,$y=count($iNilai);$x<$y;$x++) { if($iNilai[$x]["rata"] != 0) $jumlahNilai = ($jumlahNilai+1); $nilaiTotal = ($nilaiTotal+$iNilai[$x]["rata"]); // echo $iData[$a]["kd_kode"]."=>".$nilaiTotal."<br>"; if($iNilai[$x]["rata"] == null) {?> <td align="center"><font face="Times New Roman" size="2"><b>-</b></td> <?php }else{ ?> <td align="center"><font face="Times New Roman" size="2"><b><?php echo round($iNilai[$x]["rata"],2);?> (<?php echo $iNilai[$x]["ntotal"];?>/<?php echo $iNilai[$x]["njumlah"];?>)</b></td> <?php } ?> <?php } ?> <?php } ?> <?php $NA = ($NA+$nilaiTotal); $TNA = ($TNA+$jumlahNilai); $RATAAN = round(($nilaiTotal/$jumlahNilai),2); $tRATAAN = ($tRATAAN+$RATAAN); if($RATAAN != 0) $jumRATAAN = ($jumRATAAN+1); ?> <td align="center"><font face="Times New Roman" size="1"><b><?php echo $RATAAN;?><br> (<?php echo round($nilaiTotal,2);$nilaiTotal=0;?>/<?php echo $jumlahNilai;$jumlahNilai=0;?>)</b></td> <td align="center"><font face="Times New Roman" size="2"><b>-</b></td> <td align="center"><font face="Times New Roman" size="2"><b>-</b></td> </tr> <?php } ?> <tr> <td colspan="<?php echo (count($temaNamaArray)+count($tema_nama2)+2);?>" align="right"><font face="Times New Roman" size="2"><b>Nilai Akhir (NA) Muatan</b></td> <td align="center" width="7%"><font face="Times New Roman" size="2"><b><?php echo round(($tRATAAN/$jumRATAAN),2);?></b></td> <td align="center" width="7%"><font face="Times New Roman" size="2"><b>0</b></td> <td align="center" width="7%"><font face="Times New Roman" size="2"><b>0</b></td> </tr> </table><br> <?php $NA = 0; $TNA = 0; $tRATAAN = 0; $jumRATAAN = 0; } ?> </td> </tr> <tr> <td colspan="2"> <br> <font face="Times New Roman" size="2"><b>B. ASPEK KETRAMPILAN<BR> <?php $query1 = "select * from m_matapelajaran where mp_status = 1 order by mp_urut asc"; $iData1=sAllData($query1); for($a1=0,$b1=count($iData1);$a1<$b1;$a1++) { ?> <b>2.<?php echo ($a1+1);?>. <?php echo $iData1[$a1]["mp_nama"];?></b> <table border="1" cellspacing="0" cellpadding="1" width="100%"> <tr> <td width="3%" rowspan="3" align="center"><font face="Times New Roman" size="2"><b>NO<br>KD</b></td> <td width="30%" rowspan="3" align="center"><font face="Times New Roman" size="2"><b>KOMPETENSI<br>DASAR</b></td> <td width="10%" align="center" colspan="<?php echo (count($temaNamaArray)+count($tema_nama2));?>"><font face="Times New Roman" size="2"><b>JENIS PENILAIAN</b></td> <td width="10%" rowspan="3" align="center"><font face="Times New Roman" size="2"><b>RATA-<br>RATA</b></td> <td width="10%" rowspan="3" align="center"><font face="Times New Roman" size="2"><b>SKALA<br>(1 - 4)</b></td> <td width="10%" rowspan="3" align="center"><font face="Times New Roman" size="2"><b>PREDIKAT</b></td> </tr> <tr> <td colspan="<?php echo count($temaNamaArray);?>" align="center"><font face="Times New Roman" size="2"><b>Rata-Rata Ulangan Harian (UH)</b></td> <!--td colspan="2" align="center"><font face="Times New Roman" size="2"><b>UTS</b></td> <td colspan="<?php echo (count($tema_nama2)-2);?>" align="center"><font face="Times New Roman" size="2"><b>UAS</b></td--> </tr> <tr> <?php for($a=0,$b=count($temaNamaArray); $a<$b; $a++) { ?> <td align="center" width="7%"><font face="Times New Roman" size="2"><b><?php echo $temaNamaArray[$a];?></b></td> <?php } ?> <?php for($a=0,$b=count($tema_nama2); $a<$b; $a++) { ?> <td align="center" width="7%"><font face="Times New Roman" size="2"><b><?php echo $tema_nama2[$a];?></b></td> <?php } ?> </tr> <?php $query = "select * from m_kd where id_ta = ".$id_ta." and id_sem = ".$id_sem." and id_mp = ".$iData1[$a1]["mp_id"]." and kd_jns_penilaian = 'KETRAMPILAN' and id_kelas = ".$kelas_kode." order by abs(kd_kode) asc"; $iData=sAllData($query); // echo $query."<br>"; for($a=0,$b=count($iData);$a<$b;$a++) { ?> <tr> <td align="center"><font face="Times New Roman" size="2"><?php echo $iData[$a]["kd_kode"];?></td> <td><font face="Times New Roman" size="2"><?php echo $iData[$a]["kd_nama"];?></td> <?php //untuk UH1 for($aa=0,$bb=count($temaKodeArray);$aa<$bb;$aa++) { if($tema_id[$temaKodeArray[$aa]][3] == "") $tema_id[$temaKodeArray[$aa]][3] = 0; if($tema_id[$temaKodeArray[$aa]][4] == "") $tema_id[$temaKodeArray[$aa]][4] = 0; $sql = "select sum(nilai_akhir) as ntotal, count(nilai_akhir) as njumlah, (sum(nilai_akhir)/count(nilai_akhir)) as rata from sab_p_nilai where id_sem = ".$id_sem." and id_ta = ".$id_ta." and id_siswa = ".$siswa_id." and id_mp = ".$iData1[$a1]["mp_id"]." and nilai_jenis = 'Ketrampilan' and (nilai_id_kd = '@".$iData[$a]["kd_id"]."' or nilai_id_kd = '0@".$iData[$a]["kd_id"]."') and (id_tema = ".$tema_id[$temaKodeArray[$aa]][0]." or id_tema = ".$tema_id[$temaKodeArray[$aa]][1]." or id_tema = ".$tema_id[$temaKodeArray[$aa]][2]." or id_tema = ".$tema_id[$temaKodeArray[$aa]][3]." or id_tema = ".$tema_id[$temaKodeArray[$aa]][4].")"; // echo $iData[$a]["kd_kode"]."=".$temaKodeArray[$aa]."=".$sql."<br>"; $iNilai=sAllData($sql); for($x=0,$y=count($iNilai);$x<$y;$x++) { if($iNilai[$x]["rata"] != 0) $jumlahNilai = ($jumlahNilai+1); $nilaiTotal = ($nilaiTotal+$iNilai[$x]["rata"]); // echo $iData[$a]["kd_kode"]."=>".$iNilai[$x]["rata"]."=>".$nilaiTotal."<br>"; if($iNilai[$x]["rata"] == null) {?> <td align="center"><font face="Times New Roman" size="2"><b>-</b></td> <?php }else{ ?> <td align="center"><font face="Times New Roman" size="2"><b><?php echo round($iNilai[$x]["rata"],2);?> (<?php echo $iNilai[$x]["ntotal"];?>/<?php echo $iNilai[$x]["njumlah"];?>)</b></td> <?php } ?> <?php } ?> <?php } ?> <?php //untuk UTS, UAS for($aa=0,$bb=count($tema_id2);$aa<$bb;$aa++) { $sql = "select sum(nilai_akhir) as ntotal, count(nilai_akhir) as njumlah, (sum(nilai_akhir)/count(nilai_akhir)) as rata from sab_p_nilai where id_sem = ".$id_sem." and id_ta = ".$id_ta." and id_siswa = ".$siswa_id." and id_mp = ".$iData1[$a1]["mp_id"]." and nilai_jenis = 'Ketrampilan' and (nilai_id_kd = '@".$iData[$a]["kd_id"]."' or nilai_id_kd = '0@".$iData[$a]["kd_id"]."') and id_tema = ".$tema_id2[$aa]; // echo $temaKodeArray[$aa]."=".$sql."<br>"; $iNilai=sAllData($sql); for($x=0,$y=count($iNilai);$x<$y;$x++) { if($iNilai[$x]["rata"] != 0) $jumlahNilai = ($jumlahNilai+1); $nilaiTotal = ($nilaiTotal+$iNilai[$x]["rata"]); // echo $iData[$a]["kd_kode"]."=>".$nilaiTotal."<br>"; if($iNilai[$x]["rata"] == null) {?> <td align="center"><font face="Times New Roman" size="2"><b>-</b></td> <?php }else{ ?> <td align="center"><font face="Times New Roman" size="2"><b><?php echo round($iNilai[$x]["rata"],2);?> (<?php echo $iNilai[$x]["ntotal"];?>/<?php echo $iNilai[$x]["njumlah"];?>)</b></td> <?php } ?> <?php } ?> <?php } ?> <?php $NA = ($NA+$nilaiTotal); $TNA = ($TNA+$jumlahNilai); $RATAAN = round(($nilaiTotal/$jumlahNilai),2); $tRATAAN = ($tRATAAN+$RATAAN); if($RATAAN != 0) $jumRATAAN = ($jumRATAAN+1); ?> <td align="center"><font face="Times New Roman" size="1"><b><?php echo $RATAAN;?><br> (<?php echo round($nilaiTotal,2);$nilaiTotal=0;?>/<?php echo $jumlahNilai;$jumlahNilai=0;?>)</b></td> <td align="center"><font face="Times New Roman" size="2"><b>-</b></td> <td align="center"><font face="Times New Roman" size="2"><b>-</b></td> </tr> <?php } ?> <tr> <td colspan="<?php echo (count($temaNamaArray)+count($tema_nama2)+2);?>" align="right"><font face="Times New Roman" size="2"><b>Nilai Akhir (NA) Muatan</b></td> <td align="center" width="7%"><font face="Times New Roman" size="2"><b><?php echo round(($tRATAAN/$jumRATAAN),2);?></b></td> <td align="center" width="7%"><font face="Times New Roman" size="2"><b>0</b></td> <td align="center" width="7%"><font face="Times New Roman" size="2"><b>0</b></td> </tr> </table><br> <?php $NA = 0; $TNA = 0; $tRATAAN = 0; $jumRATAAN = 0; } ?> </td> </tr> </table>