| Server IP : 172.67.187.206 / Your IP : 172.71.28.156 Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30 System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586 User : SYSTEM ( 0) PHP Version : 5.6.30 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : E:/Inetpub/www/training/ |
Upload File : |
<?php
$hostname = "localhost";
$username = "root";
$password = "P@ssw0rdMySQL0";
$dbname = "quiz67";
($link = mysqli_connect($hostname, $username, $password, $dbname)) or
die("เชื่อมต่อฐานข้อมูลไม่ได้");
mysqli_query($link, "set names utf8");
include "pdf1.84/fpdf.php";
$pdf = new FPDF("L", "mm", "A4");
$id = $_REQUEST["id"];
session_start();
$email = $_SESSION["email"];
$tel = $_SESSION["tel"];
$cer = "SELECT * FROM `quiz_pass` where id = '$id' AND email = '$email' AND tel = '$tel'";
$query_cer = mysqli_query($link, $cer);
$rs_cer = mysqli_fetch_assoc($query_cer);
if ($rs_cer["id"] == "") {
echo "<script>window.parent.location=\"download.php\"</script>";
} elseif (
$rs_cer["subject"] ==
"พื้นฐานความรู้เกี่ยวกับการวัดการประเมินผลตามแนวทาง PISA"
) {
//กลุ่มนิเทศ
$pdf->SetAutoPageBreak(false);
$pdf->AddPage();
$pdf->AddFont("sarabun", "", "THSarabun.php");
$pdf->AddFont("sarabunb", "", "THSarabunB.php");
$pdf->Image("img/supervision8.jpg", 0, 0, 297, 210);
$pdf->SetXY(48, 62);
$pdf->SetFont("sarabunb", "", 48);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["name"]), 0, 1, "C");
$pdf->SetXY(48, 92);
$pdf->SetFont("sarabunb", "", 24);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(
200,
28,
iconv("utf-8", "cp874", "เรื่อง " . $rs_cer["subject"]),
0,
1,
"C"
);
$pdf->SetXY(48, 112);
$pdf->SetFont("sarabunb", "", 30);
$pdf->SetTextColor(70, 70, 70);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["date"]), 0, 1, "C");
$pdf->SetXY(86, 102.5);
$pdf->SetFont("sarabun", "", 21);
$pdf->SetTextColor(80, 80, 80);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["percent"]), 0, 1, "C");
$pdf->SetXY(239, 195);
$pdf->SetFont("sarabun", "", 14);
$pdf->SetTextColor(0, 0, 0);
$pdf->Cell(
50,
10,
iconv(
"utf-8",
"cp874",
"เลขที่ พคศ.สพม.รบ. " . $rs_cer["id"] . "/2567"
),
0,
1,
"R"
);
$pdf->Output();
} elseif (
$rs_cer["subject"] ==
"การพัฒนาโรงเรียนนวัตกรรมพัฒนาผู้เรียนสู่การเป็นนวัตกร"
) {
//กลุ่มนิเทศ66
$pdf->SetAutoPageBreak(false);
$pdf->AddPage();
$pdf->AddFont("sarabun", "", "THSarabun.php");
$pdf->AddFont("sarabunb", "", "THSarabunB.php");
$pdf->Image("img/supervision8.jpg", 0, 0, 297, 210);
$pdf->SetXY(48, 62);
$pdf->SetFont("sarabunb", "", 48);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["name"]), 0, 1, "C");
$pdf->SetXY(48, 92);
$pdf->SetFont("sarabunb", "", 24);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(
200,
28,
iconv("utf-8", "cp874", "เรื่อง " . $rs_cer["subject"]),
0,
1,
"C"
);
$pdf->SetXY(48, 112);
$pdf->SetFont("sarabunb", "", 30);
$pdf->SetTextColor(70, 70, 70);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["date"]), 0, 1, "C");
$pdf->SetXY(86, 102.5);
$pdf->SetFont("sarabun", "", 21);
$pdf->SetTextColor(80, 80, 80);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["percent"]), 0, 1, "C");
$pdf->SetXY(239, 195);
$pdf->SetFont("sarabun", "", 14);
$pdf->SetTextColor(0, 0, 0);
$pdf->Cell(
50,
10,
iconv(
"utf-8",
"cp874",
"เลขที่ พคศ.สพม.รบ. " . $rs_cer["id"] . "/2567"
),
0,
1,
"R"
);
$pdf->Output();
} elseif (
$rs_cer["subject"] ==
"การปฏิบัติงานและการจัดทำหนังสือราชการตามระเบียบงานสารบรรณ"
) {
//กลุ่มอำนวยการ
$pdf->SetAutoPageBreak(false);
$pdf->AddPage();
$pdf->AddFont("sarabun", "", "THSarabun.php");
$pdf->AddFont("sarabunb", "", "THSarabunB.php");
$pdf->Image("img/administration8.jpg", 0, 0, 297, 210);
$pdf->SetXY(48, 62);
$pdf->SetFont("sarabunb", "", 48);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["name"]), 0, 1, "C");
$pdf->SetXY(48, 92);
$pdf->SetFont("sarabunb", "", 24);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(
200,
28,
iconv("utf-8", "cp874", "เรื่อง " . $rs_cer["subject"]),
0,
1,
"C"
);
$pdf->SetXY(48, 112);
$pdf->SetFont("sarabunb", "", 30);
$pdf->SetTextColor(70, 70, 70);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["date"]), 0, 1, "C");
$pdf->SetXY(86, 102.5);
$pdf->SetFont("sarabun", "", 21);
$pdf->SetTextColor(80, 80, 80);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["percent"]), 0, 1, "C");
$pdf->SetXY(239, 195);
$pdf->SetFont("sarabun", "", 14);
$pdf->SetTextColor(0, 0, 0);
$pdf->Cell(
50,
10,
iconv(
"utf-8",
"cp874",
"เลขที่ พคศ.สพม.รบ. " . $rs_cer["id"] . "/2567"
),
0,
1,
"R"
);
$pdf->Output();
} elseif ($rs_cer["subject"] == "โครงการลดการใช้พลังงานในภาครัฐ") {
//กลุ่มอำนวยการ66
$pdf->SetAutoPageBreak(false);
$pdf->AddPage();
$pdf->AddFont("sarabun", "", "THSarabun.php");
$pdf->AddFont("sarabunb", "", "THSarabunB.php");
$pdf->Image("img/administration8.jpg", 0, 0, 297, 210);
$pdf->SetXY(48, 62);
$pdf->SetFont("sarabunb", "", 48);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["name"]), 0, 1, "C");
$pdf->SetXY(48, 92);
$pdf->SetFont("sarabunb", "", 24);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(
200,
28,
iconv("utf-8", "cp874", "เรื่อง " . $rs_cer["subject"]),
0,
1,
"C"
);
$pdf->SetXY(48, 112);
$pdf->SetFont("sarabunb", "", 30);
$pdf->SetTextColor(70, 70, 70);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["date"]), 0, 1, "C");
$pdf->SetXY(86, 102.5);
$pdf->SetFont("sarabun", "", 21);
$pdf->SetTextColor(80, 80, 80);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["percent"]), 0, 1, "C");
$pdf->SetXY(239, 195);
$pdf->SetFont("sarabun", "", 14);
$pdf->SetTextColor(0, 0, 0);
$pdf->Cell(
50,
10,
iconv(
"utf-8",
"cp874",
"เลขที่ พคศ.สพม.รบ. " . $rs_cer["id"] . "/2567"
),
0,
1,
"R"
);
$pdf->Output();
} elseif (
$rs_cer["subject"] == "หลักเกณฑ์ปฏิบัติการตรวจสอบภายในสำหรับหน่วยงานของรัฐ"
) {
//หน่วยตรวจสอบภายใน
$pdf->SetAutoPageBreak(false);
$pdf->AddPage();
$pdf->AddFont("sarabun", "", "THSarabun.php");
$pdf->AddFont("sarabunb", "", "THSarabunB.php");
$pdf->Image("img/audit8.jpg", 0, 0, 297, 210);
$pdf->SetXY(48, 62);
$pdf->SetFont("sarabunb", "", 48);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["name"]), 0, 1, "C");
$pdf->SetXY(48, 92);
$pdf->SetFont("sarabunb", "", 24);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(
200,
28,
iconv("utf-8", "cp874", "เรื่อง " . $rs_cer["subject"]),
0,
1,
"C"
);
$pdf->SetXY(48, 112);
$pdf->SetFont("sarabunb", "", 30);
$pdf->SetTextColor(70, 70, 70);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["date"]), 0, 1, "C");
$pdf->SetXY(86, 102.5);
$pdf->SetFont("sarabun", "", 21);
$pdf->SetTextColor(80, 80, 80);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["percent"]), 0, 1, "C");
$pdf->SetXY(239, 195);
$pdf->SetFont("sarabun", "", 14);
$pdf->SetTextColor(0, 0, 0);
$pdf->Cell(
50,
10,
iconv(
"utf-8",
"cp874",
"เลขที่ พคศ.สพม.รบ. " . $rs_cer["id"] . "/2567"
),
0,
1,
"R"
);
$pdf->Output();
} elseif (
$rs_cer["subject"] == "ความรู้เกี่ยวกับการบริหารจัดการเงินรายได้สถานศึกษา"
) {
//หน่วยตรวจสอบภายใน66
$pdf->SetAutoPageBreak(false);
$pdf->AddPage();
$pdf->AddFont("sarabun", "", "THSarabun.php");
$pdf->AddFont("sarabunb", "", "THSarabunB.php");
$pdf->Image("img/audit8.jpg", 0, 0, 297, 210);
$pdf->SetXY(48, 62);
$pdf->SetFont("sarabunb", "", 48);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["name"]), 0, 1, "C");
$pdf->SetXY(48, 92);
$pdf->SetFont("sarabunb", "", 24);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(
200,
28,
iconv("utf-8", "cp874", "เรื่อง " . $rs_cer["subject"]),
0,
1,
"C"
);
$pdf->SetXY(48, 112);
$pdf->SetFont("sarabunb", "", 30);
$pdf->SetTextColor(70, 70, 70);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["date"]), 0, 1, "C");
$pdf->SetXY(86, 102.5);
$pdf->SetFont("sarabun", "", 21);
$pdf->SetTextColor(80, 80, 80);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["percent"]), 0, 1, "C");
$pdf->SetXY(239, 195);
$pdf->SetFont("sarabun", "", 14);
$pdf->SetTextColor(0, 0, 0);
$pdf->Cell(
50,
10,
iconv(
"utf-8",
"cp874",
"เลขที่ พคศ.สพม.รบ. " . $rs_cer["id"] . "/2567"
),
0,
1,
"R"
);
$pdf->Output();
} elseif ($rs_cer["subject"] == "การจัดทำข้อตกลงพัฒนางาน ว PA") {
//กลุ่มบุคคล
$pdf->SetAutoPageBreak(false);
$pdf->AddPage();
$pdf->AddFont("sarabun", "", "THSarabun.php");
$pdf->AddFont("sarabunb", "", "THSarabunB.php");
$pdf->Image("img/personal8.jpg", 0, 0, 297, 210);
$pdf->SetXY(48, 62);
$pdf->SetFont("sarabunb", "", 48);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["name"]), 0, 1, "C");
$pdf->SetXY(48, 92);
$pdf->SetFont("sarabunb", "", 24);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(
200,
28,
iconv("utf-8", "cp874", "เรื่อง " . $rs_cer["subject"]),
0,
1,
"C"
);
$pdf->SetXY(48, 112);
$pdf->SetFont("sarabunb", "", 30);
$pdf->SetTextColor(70, 70, 70);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["date"]), 0, 1, "C");
$pdf->SetXY(86, 102.5);
$pdf->SetFont("sarabun", "", 21);
$pdf->SetTextColor(80, 80, 80);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["percent"]), 0, 1, "C");
$pdf->SetXY(239, 195);
$pdf->SetFont("sarabun", "", 14);
$pdf->SetTextColor(0, 0, 0);
$pdf->Cell(
50,
10,
iconv(
"utf-8",
"cp874",
"เลขที่ พคศ.สพม.รบ. " . $rs_cer["id"] . "/2567"
),
0,
1,
"R"
);
$pdf->Output();
} elseif (
$rs_cer["subject"] ==
"หลักเกณฑ์และวิธีประเมินตำแหน่งและวิทยฐานะข้าราชการครูและบุคลากรทางการศึกษา"
) {
//กลุ่มบุคคล66
$pdf->SetAutoPageBreak(false);
$pdf->AddPage();
$pdf->AddFont("sarabun", "", "THSarabun.php");
$pdf->AddFont("sarabunb", "", "THSarabunB.php");
$pdf->Image("img/personal8.jpg", 0, 0, 297, 210);
$pdf->SetXY(48, 62);
$pdf->SetFont("sarabunb", "", 48);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["name"]), 0, 1, "C");
$pdf->SetXY(48, 92);
$pdf->SetFont("sarabunb", "", 24);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(
200,
28,
iconv("utf-8", "cp874", "เรื่อง " . $rs_cer["subject"]),
0,
1,
"C"
);
$pdf->SetXY(48, 112);
$pdf->SetFont("sarabunb", "", 30);
$pdf->SetTextColor(70, 70, 70);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["date"]), 0, 1, "C");
$pdf->SetXY(86, 102.5);
$pdf->SetFont("sarabun", "", 21);
$pdf->SetTextColor(80, 80, 80);
$pdf->Cell(
200,
28,
iconv("utf-8", "cp874", " " . $rs_cer["percent"]),
0,
1,
"C"
);
$pdf->SetXY(239, 195);
$pdf->SetFont("sarabun", "", 14);
$pdf->SetTextColor(0, 0, 0);
$pdf->Cell(
50,
10,
iconv(
"utf-8",
"cp874",
"เลขที่ พคศ.สพม.รบ. " . $rs_cer["id"] . "/2567"
),
0,
1,
"R"
);
$pdf->Output();
} elseif (
$rs_cer["subject"] == "ระบบการดูแลช่วยเหลือนักเรียน วิถีใหม่วิถีคุณภาพ"
) {
//กลุ่มส่งเสริม
$pdf->SetAutoPageBreak(false);
$pdf->AddPage();
$pdf->AddFont("sarabun", "", "THSarabun.php");
$pdf->AddFont("sarabunb", "", "THSarabunB.php");
$pdf->Image("img/promotion8.jpg", 0, 0, 297, 210);
$pdf->SetXY(48, 62);
$pdf->SetFont("sarabunb", "", 48);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["name"]), 0, 1, "C");
$pdf->SetXY(48, 92);
$pdf->SetFont("sarabunb", "", 24);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(
200,
28,
iconv("utf-8", "cp874", "เรื่อง " . $rs_cer["subject"]),
0,
1,
"C"
);
$pdf->SetXY(48, 112);
$pdf->SetFont("sarabunb", "", 30);
$pdf->SetTextColor(70, 70, 70);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["date"]), 0, 1, "C");
$pdf->SetXY(86, 102.5);
$pdf->SetFont("sarabun", "", 21);
$pdf->SetTextColor(80, 80, 80);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["percent"]), 0, 1, "C");
$pdf->SetXY(239, 195);
$pdf->SetFont("sarabun", "", 14);
$pdf->SetTextColor(0, 0, 0);
$pdf->Cell(
50,
10,
iconv(
"utf-8",
"cp874",
"เลขที่ พคศ.สพม.รบ. " . $rs_cer["id"] . "/2567"
),
0,
1,
"R"
);
$pdf->Output();
} elseif ($rs_cer["subject"] == "รู้คิด รู้ทัน ป้องกันยาเสพติด") {
//กลุ่มส่งเสริม66
$pdf->SetAutoPageBreak(false);
$pdf->AddPage();
$pdf->AddFont("sarabun", "", "THSarabun.php");
$pdf->AddFont("sarabunb", "", "THSarabunB.php");
$pdf->Image("img/promotion8.jpg", 0, 0, 297, 210);
$pdf->SetXY(48, 62);
$pdf->SetFont("sarabunb", "", 48);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["name"]), 0, 1, "C");
$pdf->SetXY(48, 92);
$pdf->SetFont("sarabunb", "", 24);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(
200,
28,
iconv("utf-8", "cp874", "เรื่อง " . $rs_cer["subject"]),
0,
1,
"C"
);
$pdf->SetXY(48, 112);
$pdf->SetFont("sarabunb", "", 30);
$pdf->SetTextColor(70, 70, 70);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["date"]), 0, 1, "C");
$pdf->SetXY(86, 102.5);
$pdf->SetFont("sarabun", "", 21);
$pdf->SetTextColor(80, 80, 80);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["percent"]), 0, 1, "C");
$pdf->SetXY(239, 195);
$pdf->SetFont("sarabun", "", 14);
$pdf->SetTextColor(0, 0, 0);
$pdf->Cell(
50,
10,
iconv(
"utf-8",
"cp874",
"เลขที่ พคศ.สพม.รบ. " . $rs_cer["id"] . "/2567"
),
0,
1,
"R"
);
$pdf->Output();
} elseif (
$rs_cer["subject"] ==
"การขับเคลื่อนแผนการศึกษาแห่งชาติ พ.ศ.2560-2579 สู่การปฏิบัติของสถานศึกษา"
) {
//กลุ่มแผน
$pdf->SetAutoPageBreak(false);
$pdf->AddPage();
$pdf->AddFont("sarabun", "", "THSarabun.php");
$pdf->AddFont("sarabunb", "", "THSarabunB.php");
$pdf->Image("img/plan8.jpg", 0, 0, 297, 210);
$pdf->SetXY(48, 62);
$pdf->SetFont("sarabunb", "", 48);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["name"]), 0, 1, "C");
$pdf->SetXY(48, 92);
$pdf->SetFont("sarabunb", "", 24);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(
200,
28,
iconv("utf-8", "cp874", "เรื่อง " . $rs_cer["subject"]),
0,
1,
"C"
);
$pdf->SetXY(48, 112);
$pdf->SetFont("sarabunb", "", 30);
$pdf->SetTextColor(70, 70, 70);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["date"]), 0, 1, "C");
$pdf->SetXY(86, 102.5);
$pdf->SetFont("sarabun", "", 21);
$pdf->SetTextColor(80, 80, 80);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["percent"]), 0, 1, "C");
$pdf->SetXY(239, 195);
$pdf->SetFont("sarabun", "", 14);
$pdf->SetTextColor(0, 0, 0);
$pdf->Cell(
50,
10,
iconv(
"utf-8",
"cp874",
"เลขที่ พคศ.สพม.รบ. " . $rs_cer["id"] . "/2567"
),
0,
1,
"R"
);
$pdf->Output();
} elseif (
$rs_cer["subject"] ==
"การสนับสนุนค่าใช้จ่ายในการจัดการศึกษาตั้งแต่ระดับอนุบาลจนจบการศึกษาขั้นพื้นฐาน"
) {
//กลุ่มแผน66
$pdf->SetAutoPageBreak(false);
$pdf->AddPage();
$pdf->AddFont("sarabun", "", "THSarabun.php");
$pdf->AddFont("sarabunb", "", "THSarabunB.php");
$pdf->Image("img/plan8.jpg", 0, 0, 297, 210);
$pdf->SetXY(48, 62);
$pdf->SetFont("sarabunb", "", 48);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["name"]), 0, 1, "C");
$pdf->SetXY(48, 92);
$pdf->SetFont("sarabunb", "", 24);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(
200,
28,
iconv("utf-8", "cp874", "เรื่อง " . $rs_cer["subject"]),
0,
1,
"C"
);
$pdf->SetXY(48, 112);
$pdf->SetFont("sarabunb", "", 30);
$pdf->SetTextColor(70, 70, 70);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["date"]), 0, 1, "C");
$pdf->SetXY(86, 102.5);
$pdf->SetFont("sarabun", "", 21);
$pdf->SetTextColor(80, 80, 80);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["percent"]), 0, 1, "C");
$pdf->SetXY(239, 195);
$pdf->SetFont("sarabun", "", 14);
$pdf->SetTextColor(0, 0, 0);
$pdf->Cell(
50,
10,
iconv(
"utf-8",
"cp874",
"เลขที่ พคศ.สพม.รบ. " . $rs_cer["id"] . "/2567"
),
0,
1,
"R"
);
$pdf->Output();
} elseif (
$rs_cer["subject"] ==
"การศึกษาต่อ ฝึกอบรม หรือปฏิบัติการวิจัย ภายในประเทศ ของข้าราชการครูและบุคลากรทางการศึกษา สังกัด สพฐ. พ.ศ. 2547 และการขออนุมัติเดินทางไปราชการ"
) {
//กลุ่มพัฒ
$pdf->SetAutoPageBreak(false);
$pdf->AddPage();
$pdf->AddFont("sarabun", "", "THSarabun.php");
$pdf->AddFont("sarabunb", "", "THSarabunB.php");
$pdf->Image("img/develop88.jpg", 0, 0, 297, 210);
$pdf->SetXY(48, 62);
$pdf->SetFont("sarabunb", "", 48);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["name"]), 0, 1, "C");
$pdf->SetXY(48, 126);
$pdf->SetFont("sarabunb", "", 30);
$pdf->SetTextColor(70, 70, 70);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["date"]), 0, 1, "C");
$pdf->SetXY(86, 102.5);
$pdf->SetFont("sarabun", "", 21);
$pdf->SetTextColor(80, 80, 80);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["percent"]), 0, 1, "C");
$pdf->SetXY(239, 195);
$pdf->SetFont("sarabun", "", 14);
$pdf->SetTextColor(0, 0, 0);
$pdf->Cell(
50,
10,
iconv(
"utf-8",
"cp874",
"เลขที่ พคศ.สพม.รบ. " . $rs_cer["id"] . "/2567"
),
0,
1,
"R"
);
$pdf->Output();
} elseif (
$rs_cer["subject"] ==
"การให้ข้าราชการไปศึกษา ฝึกอบรม ปฏิบัติการวิจัยและดูงาน ณ ต่างประเทศ"
) {
//กลุ่มพัฒ66
$pdf->SetAutoPageBreak(false);
$pdf->AddPage();
$pdf->AddFont("sarabun", "", "THSarabun.php");
$pdf->AddFont("sarabunb", "", "THSarabunB.php");
$pdf->Image("img/develop8.jpg", 0, 0, 297, 210);
$pdf->SetXY(48, 62);
$pdf->SetFont("sarabunb", "", 48);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["name"]), 0, 1, "C");
$pdf->SetXY(48, 92);
$pdf->SetFont("sarabunb", "", 24);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(
200,
28,
iconv("utf-8", "cp874", "เรื่อง " . $rs_cer["subject"]),
0,
1,
"C"
);
$pdf->SetXY(48, 112);
$pdf->SetFont("sarabunb", "", 30);
$pdf->SetTextColor(70, 70, 70);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["date"]), 0, 1, "C");
$pdf->SetXY(86, 102.5);
$pdf->SetFont("sarabun", "", 21);
$pdf->SetTextColor(80, 80, 80);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["percent"]), 0, 1, "C");
$pdf->SetXY(239, 195);
$pdf->SetFont("sarabun", "", 14);
$pdf->SetTextColor(0, 0, 0);
$pdf->Cell(
50,
10,
iconv(
"utf-8",
"cp874",
"เลขที่ พคศ.สพม.รบ. " . $rs_cer["id"] . "/2567"
),
0,
1,
"R"
);
$pdf->Output();
} elseif (
$rs_cer["subject"] ==
"การป้องกันการทุจริตและการคิดแยกแยะระหว่างผลประโยชน์ส่วนบุคคลและผลประโยชน์ส่วนรวม"
) {
//กลุ่มกฎหมาย
$pdf->SetAutoPageBreak(false);
$pdf->AddPage();
$pdf->AddFont("sarabun", "", "THSarabun.php");
$pdf->AddFont("sarabunb", "", "THSarabunB.php");
$pdf->Image("img/law8.jpg", 0, 0, 297, 210);
$pdf->SetXY(48, 62);
$pdf->SetFont("sarabunb", "", 48);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["name"]), 0, 1, "C");
$pdf->SetXY(48, 92);
$pdf->SetFont("sarabunb", "", 24);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(
200,
28,
iconv("utf-8", "cp874", "เรื่อง " . $rs_cer["subject"]),
0,
1,
"C"
);
$pdf->SetXY(48, 112);
$pdf->SetFont("sarabunb", "", 30);
$pdf->SetTextColor(70, 70, 70);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["date"]), 0, 1, "C");
$pdf->SetXY(86, 102.5);
$pdf->SetFont("sarabun", "", 21);
$pdf->SetTextColor(80, 80, 80);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["percent"]), 0, 1, "C");
$pdf->SetXY(239, 195);
$pdf->SetFont("sarabun", "", 14);
$pdf->SetTextColor(0, 0, 0);
$pdf->Cell(
50,
10,
iconv(
"utf-8",
"cp874",
"เลขที่ พคศ.สพม.รบ. " . $rs_cer["id"] . "/2567"
),
0,
1,
"R"
);
$pdf->Output();
} elseif (
$rs_cer["subject"] ==
"วินัยและการรักษาวินัยเบื้องต้นของข้าราชการครูและบุคลากรทางการศึกษา"
) {
//กลุ่มกฎหมาย66
$pdf->SetAutoPageBreak(false);
$pdf->AddPage();
$pdf->AddFont("sarabun", "", "THSarabun.php");
$pdf->AddFont("sarabunb", "", "THSarabunB.php");
$pdf->Image("img/law8.jpg", 0, 0, 297, 210);
$pdf->SetXY(48, 62);
$pdf->SetFont("sarabunb", "", 48);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["name"]), 0, 1, "C");
$pdf->SetXY(48, 92);
$pdf->SetFont("sarabunb", "", 24);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(
200,
28,
iconv("utf-8", "cp874", "เรื่อง " . $rs_cer["subject"]),
0,
1,
"C"
);
$pdf->SetXY(48, 112);
$pdf->SetFont("sarabunb", "", 30);
$pdf->SetTextColor(70, 70, 70);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["date"]), 0, 1, "C");
$pdf->SetXY(86, 102.5);
$pdf->SetFont("sarabun", "", 21);
$pdf->SetTextColor(80, 80, 80);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["percent"]), 0, 1, "C");
$pdf->SetXY(239, 195);
$pdf->SetFont("sarabun", "", 14);
$pdf->SetTextColor(0, 0, 0);
$pdf->Cell(
50,
10,
iconv(
"utf-8",
"cp874",
"เลขที่ พคศ.สพม.รบ. " . $rs_cer["id"] . "/2567"
),
0,
1,
"R"
);
$pdf->Output();
} elseif ($rs_cer["subject"] == "มาตรฐานทางจริยธรรมและประมวลจริยธรรม") {
//กลุ่มกฎหมาย662
$pdf->SetAutoPageBreak(false);
$pdf->AddPage();
$pdf->AddFont("sarabun", "", "THSarabun.php");
$pdf->AddFont("sarabunb", "", "THSarabunB.php");
$pdf->Image("img/law8.jpg", 0, 0, 297, 210);
$pdf->SetXY(48, 62);
$pdf->SetFont("sarabunb", "", 48);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["name"]), 0, 1, "C");
$pdf->SetXY(48, 92);
$pdf->SetFont("sarabunb", "", 24);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(
200,
28,
iconv("utf-8", "cp874", "เรื่อง " . $rs_cer["subject"]),
0,
1,
"C"
);
$pdf->SetXY(48, 112);
$pdf->SetFont("sarabunb", "", 30);
$pdf->SetTextColor(70, 70, 70);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["date"]), 0, 1, "C");
$pdf->SetXY(86, 102.5);
$pdf->SetFont("sarabun", "", 21);
$pdf->SetTextColor(80, 80, 80);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["percent"]), 0, 1, "C");
$pdf->SetXY(239, 195);
$pdf->SetFont("sarabun", "", 14);
$pdf->SetTextColor(0, 0, 0);
$pdf->Cell(
50,
10,
iconv(
"utf-8",
"cp874",
"เลขที่ พคศ.สพม.รบ. " . $rs_cer["id"] . "/2567"
),
0,
1,
"R"
);
$pdf->Output();
} elseif (
$rs_cer["subject"] ==
"การบริการจัดการหนี้อย่างมีประสิทธิภาพ และการเสริมสร้างวินัยทางการเงิน"
) {
//กลุ่มการเงิน
$pdf->SetAutoPageBreak(false);
$pdf->AddPage();
$pdf->AddFont("sarabun", "", "THSarabun.php");
$pdf->AddFont("sarabunb", "", "THSarabunB.php");
$pdf->Image("img/finance8.jpg", 0, 0, 297, 210);
$pdf->SetXY(48, 62);
$pdf->SetFont("sarabunb", "", 48);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["name"]), 0, 1, "C");
$pdf->SetXY(48, 92);
$pdf->SetFont("sarabunb", "", 24);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(
200,
28,
iconv("utf-8", "cp874", "เรื่อง " . $rs_cer["subject"]),
0,
1,
"C"
);
$pdf->SetXY(48, 112);
$pdf->SetFont("sarabunb", "", 30);
$pdf->SetTextColor(70, 70, 70);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["date"]), 0, 1, "C");
$pdf->SetXY(86, 102.5);
$pdf->SetFont("sarabun", "", 21);
$pdf->SetTextColor(80, 80, 80);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["percent"]), 0, 1, "C");
$pdf->SetXY(239, 195);
$pdf->SetFont("sarabun", "", 14);
$pdf->SetTextColor(0, 0, 0);
$pdf->Cell(
50,
10,
iconv(
"utf-8",
"cp874",
"เลขที่ พคศ.สพม.รบ. " . $rs_cer["id"] . "/2567"
),
0,
1,
"R"
);
$pdf->Output();
} elseif (
$rs_cer["subject"] ==
"การจัดซื้อจัดจ้างตามพระราชบัญญัติการจัดซื้อจัดจ้างและการบริหารพัสดุภาครัฐ พ.ศ.2560"
) {
//กลุ่มการเงิน66
$pdf->SetAutoPageBreak(false);
$pdf->AddPage();
$pdf->AddFont("sarabun", "", "THSarabun.php");
$pdf->AddFont("sarabunb", "", "THSarabunB.php");
$pdf->Image("img/finance8.jpg", 0, 0, 297, 210);
$pdf->SetXY(48, 62);
$pdf->SetFont("sarabunb", "", 48);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["name"]), 0, 1, "C");
$pdf->SetXY(48, 92);
$pdf->SetFont("sarabunb", "", 24);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(
200,
28,
iconv("utf-8", "cp874", "เรื่อง " . $rs_cer["subject"]),
0,
1,
"C"
);
$pdf->SetXY(48, 112);
$pdf->SetFont("sarabunb", "", 30);
$pdf->SetTextColor(70, 70, 70);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["date"]), 0, 1, "C");
$pdf->SetXY(86, 102.5);
$pdf->SetFont("sarabun", "", 21);
$pdf->SetTextColor(80, 80, 80);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["percent"]), 0, 1, "C");
$pdf->SetXY(239, 195);
$pdf->SetFont("sarabun", "", 14);
$pdf->SetTextColor(0, 0, 0);
$pdf->Cell(
50,
10,
iconv(
"utf-8",
"cp874",
"เลขที่ พคศ.สพม.รบ. " . $rs_cer["id"] . "/2567"
),
0,
1,
"R"
);
$pdf->Output();
} elseif (
$rs_cer["subject"] ==
"หลักสูตรทักษะความเข้าใจและใช้เทคโนโลยีดิจิทัล (Digital Literacy)"
) {
//กลุ่ม ICT
$pdf->SetAutoPageBreak(false);
$pdf->AddPage();
$pdf->AddFont("sarabun", "", "THSarabun.php");
$pdf->AddFont("sarabunb", "", "THSarabunB.php");
$pdf->Image("img/ict8.jpg", 0, 0, 297, 210);
$pdf->SetXY(48, 62);
$pdf->SetFont("sarabunb", "", 48);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["name"]), 0, 1, "C");
$pdf->SetXY(48, 92);
$pdf->SetFont("sarabunb", "", 24);
$pdf->SetTextColor(50, 50, 50);
$pdf->Cell(
200,
28,
iconv("utf-8", "cp874", "เรื่อง " . $rs_cer["subject"]),
0,
1,
"C"
);
$pdf->SetXY(48, 112);
$pdf->SetFont("sarabunb", "", 30);
$pdf->SetTextColor(70, 70, 70);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["date"]), 0, 1, "C");
$pdf->SetXY(86, 102.5);
$pdf->SetFont("sarabun", "", 21);
$pdf->SetTextColor(80, 80, 80);
$pdf->Cell(200, 28, iconv("utf-8", "cp874", $rs_cer["percent"]), 0, 1, "C");
$pdf->SetXY(239, 195);
$pdf->SetFont("sarabun", "", 14);
$pdf->SetTextColor(0, 0, 0);
$pdf->Cell(
50,
10,
iconv(
"utf-8",
"cp874",
"เลขที่ พคศ.สพม.รบ. " . $rs_cer["id"] . "/2567"
),
0,
1,
"R"
);
$pdf->Output();
}
?>