"; include('db_config.php'); $sql="select * from $_grp"; $result=mysql_query($sql); echo <<แยกกลุ่มสาระการเรียนรู้ $_title
TH; $rw=1; $tact=0; $tstd=0; while ($db=mysql_fetch_array($result)) { $sql0="select count(*) as nstd from $_data,$_act where kd_code=kp_id and kp_cd='$db[ef_grp]' "; $result0=mysql_query($sql0); $db0=mysql_fetch_array($result0); if (file_exists("docs/$db[desc_p]")) { $fl1="แข่งรวม"; } else { $fl1=''; } if (file_exists("docs/$db[desc_m]")) { $fl2="มัธยม"; } else { $fl2=''; } if (file_exists("docs/$db[com_p]")) { $fl3="คำสั่งรวม"; } else { $fl3=''; } if (file_exists("docs/$db[com_m]")) { $fl4="มัธยม"; } else { $fl4=''; } if (file_exists("docs/$db[plan]")) { $fl5="ผังห้อง"; } else { $fl5=''; } if (empty($db0[nstd])) { $std='-'; } else { $std=$db0[nstd]; } $sstd=number_format($std,2,'.',','); echo << TB; $rw++; $tact+=$db[ef_act]; $tstd+=$db0[nstd]; $treg+=$nreg; } $pc=number_format($treg*100/$tact,2,'.',','); $sstd=number_format($tstd,0,'.',','); echo <<
กลุ่มสาระการเรียนรู้ กิจกรรม
ทั้งหมด
จำนวน
นักเรียน
ส่งออก
Excel
ตารางแข่งขัน คำสั่ง ผังห้อง
$rw.$db[ef_group] $db[ef_act] $std ส่ง Excel $fl1 $fl2 $fl3 $fl4 $fl5
รวม $tact $sstd  
*** ให้ทุก รร. ตรวจสอบ ตัวแทนระดับเขตฯ พบปัญหา แจ้งทาง Line id: ttwanna
ต้องการเพิ่ม/แก้ไขรายชื่อนักเรียน/ครู ให้เลือกกลุ่มสาระ เลือกกิจกรรม เลือกชื่อ รร. แก้ไขได้เอง ***
TF; ?>