function DateThai($strDate)
{
$strYear = date("Y",strtotime($strDate))+543;
$strMonth= date("n",strtotime($strDate));
$strDay= date("j",strtotime($strDate));
$strHour= date("H",strtotime($strDate));
$strMinute= date("i",strtotime($strDate));
$strSeconds= date("s",strtotime($strDate));
$strMonthCut = Array("","ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค.");
$strMonthThai=$strMonthCut[$strMonth];
return "$strDay $strMonthThai $strYear";
}
$textid = $_GET['textid'];
$str1 = "SELECT * FROM tb_cus WHERE reg_pid ='$textid'";
$objQ1 = $mysqli->query($str1);
$num1=$objQ1->num_rows;
$b=1;
$i = 0;
if($textid==""){}elseif($num1<=0){?>
ไม่พบเลขประจำตัวประชาชนนี้ กรุณาตรวจสอบความถูกต้องอีกครั้ง
}else{
while($objR1 = $objQ1->fetch_object())
{
$i++;
$datt=$objR1->date_test;
$sexx=$objR1->reg_sex;
?>
 |
}else{?>
 |
}?>
| |
|
| วันที่ : |
| รอบที่ : | เวลา : |
$sat=$objR1->satantee;
if($sat=="หน่วยฝึก ศฝ.นศท.มทบ.21"){
$link="https://goo.gl/maps/SMCLgZND5uMjxQVE9";
}elseif($sat=="โรงเรียนโชคชัยสามัคคี"){
$link="https://goo.gl/maps/KyBzi95P9RPi2utF6";
}elseif($sat=="โรงเรียนประทาย"){
$link="https://goo.gl/maps/oURMLqG7J6kyBtNN8";
}elseif($sat=="โรงเรียนปากช่อง"){
$link="https://goo.gl/maps/4PGzPLX1CJgrEjHp9";
}elseif($sat=="โรงเรียนพิมายวิทยา"){
$link="https://goo.gl/maps/WMtFKu3eD5g4X4Rn9";
}elseif($sat=="โรงเรียนหนองบุญมากประสงค์วิทยา"){
$link="https://goo.gl/maps/yU78T8pK6Z86cahm6";
}
?>
| สถานที่ : |
คลิกลิงค์แผนที่ |
| ผลการตรวจหลักฐาน : |
| หมายเหตุ : |
}
}?>
นักเรียนจะต้องมีการบันทึกทามไลน์ย้อนหลังก่อนวันทดสอบ 14 วัน ถึงจะมีสิทธิ์เข้าทดสอบร่างกาย
ข้อมูลการบันทึก ประเมินความเสี่ยง
$str2 = "SELECT * FROM tb_timeline WHERE regpid ='$textid' ORDER BY dates_save";
$objQ2 = $mysqli->query($str2);
$b=1;
$i = 0;
$num2=$objQ2->num_rows;
if($num2==0){
?>
| ท่านยังไม่มีการบันทึกทามไลน์ |
}
while($objR2 = $objQ2->fetch_object())
{
$dat2=$objR2->dates_save;
$c1=$objR2->c1;
$c2=$objR2->c2;
$c3=$objR2->c3;
$c4=$objR2->c4;
$c5=$objR2->c5;
$c6=$objR2->c6;
$c7=$objR2->c7;
$c8=$objR2->c8;
$c9=$objR2->c9;
$totlatam=$c1+$c2+$c3+$c4+$c5+$c6+$c7+$c8+$c9;
?>
|
ท่านมีความเสี่ยง |
}else{?>
ปกติ |
}?>
}?>
คลิกที่นี้ เพื่อบันทึกทามไลน์
พิมพ์ข้อมูลทามไลน์
}?>