[ 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: rekap_nilai13all.php
<?php require_once("configure_first.php"); $nmForm = "rekap_uas.php"; $nmTable = "p_nilai_siswa2"; $formnama = "rekap_uas"; $huruf = "<font face=\"Times New Roman\" size=\"2\">"; if($_GET["id_ta"]) $id_ta = $_GET["id_ta"]; if($_GET["id_sem"]) $id_sem = $_GET["id_sem"]; if($_GET["id_mp"]) $id_mp = $_GET["id_mp"]; if($_GET["id_kelas"]) $id_kelas = $_GET["id_kelas"]; if($_GET["nilai_jenis"]) $nilai_jenis = $_GET["nilai_jenis"]; if($_GET["id_tema"]) $id_tema = $_GET["id_tema"]; $query = "select upper(sem_nama) as 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 upper(mp_nama) as mp from m_matapelajaran where mp_id = ".$id_mp; $iData=sAllData($query); for($a=0,$b=count($iData);$a<$b;$a++) { $mp_nama = $iData[$a]["mp"]; } */ // if($_GET["id_kelas"]) { // $id_kelas = $_GET["id_kelas"]; // $query = "select a.*,substr(kelas_kode,1,2) as kode, upper(kelas_nama) as kelas_nama from m_kelas a where kelas_id = ".$id_kelas; // $iData=sAllData($query); // for($a=0,$b=count($iData);$a<$b;$a++) { // $kelas_nama = $iData[$a]["kelas_nama"]; // $kelas_kode = $iData[$a]["kode"]; // } // } // $query="select * from sab_set_tema where length(tema_kode) = 2 and tema_id = ".$id_tema." and id_sem = ".$id_sem." and id_ta = ".$id_ta." order by tema_kode asc"; // $iDataArray=sAllData($query); // for($a=0,$b=count($iDataArray);$a<$b;$a++) { // $tema_kode = $iDataArray[$a]["tema_kode"]; // $tema_header = $iDataArray[$a]["tema_nama"]; // } ?> <title>Cetak Rekap Nilai</title> <table border="0" cellspacing="0" cellpadding="1" width="100%"> <tr> <td width="8%" valign="top"><img src="http://103.5.50.154/sabilillah/akademik14/mediamanager/logosabilillah.jpg" width="95px"></td> <td align="left" width="32%"><font face="Times New Roman" size="2"><b>TAMAN PENDIDIKAN ISLAM SABILILLAH<br>SD ISLAM SABILILLAH FULL DAY SCHOOL</b><br><?php echo $huruf;?>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 width="60%"> </td> </tr> <tr> <td align="left" colspan="3"> </td> </tr> <tr> <td align="center" colspan="3"><font face="Times New Roman" size="3"><b>REKAPITULASI NILAI AKHIR KELAS <?php echo $kelas_nama;?> <?php echo $tema_header;?></b><br><b>SEMESTER <?php echo $sem_nama;?> TAHUN PELAJARAN <?php echo $ta_nama;?></b></td> </tr> </table> <?php // $querymp = "select * from m_matapelajaran a where mp_status = 1 order by mp_urut asc limit ".$nilaike.",1"; // $iDatamp=sAllData($querymp); // for($x=0,$n=count($iDatamp);$x<$n;$x++) { echo "<table class=\"art-article\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\" style=\" margin: 0; width: 100%;\">"; echo "<tr>"; echo "<td width=10 align=center valign=middle>".$huruf."<b>No.</b></td>"; echo "<td width=200 align=center valign=middle>".$huruf."<b>Kelas</b></td>"; $queryJN="select * from m_matapelajaran where mp_status = 1 order by mp_urut_k13 asc"; $MP=sAllData($queryJN); for($a=0,$b=count($MP);$a<$b;$a++) { echo "<td width=20 align=center>".$huruf."<b>".$MP[$a]["mp_nama"]."</b></td>"; } echo "</tr>"; //isi // $query = "select * from m_kelas order by kelas_kode asc"; $query="select a.*,length(kelas_kode) as pjg from m_kelas a order by kelas_kode asc"; $iData=sAllData($query); $totalNilai = 0; $rata2 = 0; for($a=0,$b=count($iData);$a<$b;$a++) { echo "<tr>"; echo "<td align=center>".$huruf."".($a+1).".</td>"; if($iData[$a]["pjg"] == 2) echo "<td colspan=".(count($MP)+1).">".$huruf."<b> Kelas ".$iData[$a]["kelas_nama"]."</b></td>"; else { echo "<td>".$huruf."- ".$iData[$a]["kelas_nama"]."</td>"; for($a4=0,$b4=count($MP);$a4<$b4;$a4++) { $query2="select * from sab_posting_na where id_mp = ".$MP[$a4]["mp_id"]." and id_kelas = ".$iData[$a]["kelas_id"]." and id_sem = ".$id_sem." and id_ta = ".$id_ta; $iDataArray2=sAllData($query2); for($a2=0,$b2=count($iDataArray2);$a2<$b2;$a2++) { $rata2 = $iDataArray2[$a2]["na_nilai"]; } echo "<td width=5% align=center>".$huruf."".$rata2."</td>"; $rata2 = 0; } } echo "</tr>"; } echo "<tr>"; echo "<td colspan=3 align=center>".$huruf."NA</td>"; for($a4=0,$b4=count($MP);$a4<$b4;$a4++) { echo "<td align=center>".$huruf."".round($NAA[$MP[$a4]["mp_id"]]/count($iData))."</td>"; } echo "</tr>"; echo "</table>"; echo "</form>"; // } ?>