| Server IP : 61.19.30.66 / Your IP : 216.73.216.59 Web Server : Apache/2.2.22 (Ubuntu) System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 User : www-data ( 33) PHP Version : 5.3.10-1ubuntu3.48 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /var/www/admissions3/regis4/ |
Upload File : |
<html>
<head>
<title>klw</title>
</head>
<body>
<?php
$objConnect = mysql_connect("localhost","root","klw3322") or die("Error Connect to Database");
$objDB = mysql_select_db("jorjae_jorjaedb");
mysql_query("SET character_set_results=utf8");
mysql_query("SET character_set_results=tis620");
mysql_query("SET character_set_client=tis620");
mysql_query("SET character_set_connection=tis620");
$strSQL = "SELECT * FROM member4 where id='$_GET[id]'";
$objQuery = mysql_query($strSQL);
$resultData = array();
for ($i=0;$i<mysql_num_rows($objQuery);$i++) {
$result = mysql_fetch_array($objQuery);
array_push($resultData,$result);
$pan1=$result["pan"];
$pan2=$result["pan2"];
$pan3=$result["pan3"];
$typiset=$result["typiset"];
$school1=$result["school1"];
$school2=$result["school2"];
$idstudent=$result["idstudent"];
$signup=$result["signup"];
$signup2='ภายในวันที่ 27 เมษายน 2566';
$signup3 = date("Y")+543;
}
//************************//
////////////////
$crsql="SELECT count(idstudent) FROM member4";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$countdat=$dcrd[0];
$crsql="SELECT (tpy_report) FROM tpyroom where tpy_room='$pan1'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$planname1=$dcrd[0];
$crsql="SELECT (tpy_report) FROM tpyroom where tpy_room='$pan2'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$planname2=$dcrd[0];
$crsql="SELECT (tpy_report) FROM tpyroom where tpy_room='$pan3'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$planname3=$dcrd[0];
////////////////////
$crsql="SELECT (idtpy_name) FROM tpyad4 where idtpy_id='$idstudent'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$idtpy_name=$dcrd[0];
$crsql="SELECT (daytest1) FROM tpyad4 where idtpy_id='$idstudent'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$daytest1=$dcrd[0];
$crsql="SELECT (daytest2) FROM tpyad4 where idtpy_id='$idstudent'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$daytest2=$dcrd[0];
$crsql="SELECT (nametiset) FROM typiset where idtiset='$typiset'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$namepiset=$dcrd[0];
$crsql="SELECT (id_scho) FROM school28 where id_sch='$school1'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$namesc1=$dcrd[0];
$crsql="SELECT (id_scho) FROM school28 where id_sch='$school2'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$namesc2=$dcrd[0];
require('fpdf.php');
define('FPDF_FONTPATH','font/');
$pdf=new FPDF( 'P' , 'mm' , 'A4' );
$pdf->AddPage();
$pdf->AddFont('angsa','','angsa.php');
$pdf->SetFont('angsa','',16);
//$pdf->Text( 35 , 42 , iconv( 'UTF-8','TIS-620','1.(....) นักเรียนโรงเรียนเดิมคัดเลือกตามศักยภาพ'),0,1,"C");
//$pdf->Text( 35 , 52 , iconv( 'UTF-8','TIS-620','2.(....) โรงเรียนทั่วไปสอบคัดเลือก'),0,1,"C");
//$pdf->Text( 120 , 52 , iconv( 'UTF-8','TIS-620','3.(....) ความสามารถพิเศษ'),0,1,"C");
//$pdf->Text( 120 , 42 , iconv( 'UTF-8','TIS-620','4.(....) เงื่อนไขพิเศษ'),0,1,"C");
//$pdf->Text( 35 , 42 , iconv( 'UTF-8','TIS-620','1.(....) ห้องเรียนพิเศษวิทย์'),0,1,"C");
//$pdf->Text( 35 , 52 , iconv( 'UTF-8','TIS-620','2.(....) ห้องเรียนพิเศษภาษา'),0,1,"C");
$pdf->Text( 35 , 42 , iconv( 'UTF-8','TIS-620','ประเภท'),0,1,"C");
$pdf->Text(50,42,$idtpy_name,1);
//$pdf->Text(90,42,$namepiset,1);
$pdf->AddFont('angsa','','angsa.php');
$pdf->SetFont('angsa','',16);
$pdf->Image('images/school.png',90,3,25,25,'','http://gpa.klws.ac.th',"C");
$pdf->Image('images/pic.png',180,12,25,30,'','http://gpa.klws.ac.th');
//$pdf->Image('images/bbb.jpg',10,248,190,45,'','');
$pdf->Image('images/bbb.jpg',10,232,190,60,'','');
//$pdf->Image('images/li.png',10,5,5,290,'','http://gpa.klws.ac.th');
$pdf->Text( 185 , 25 , iconv( 'UTF-8','TIS-620','ติดรูป 1x1'),0,1,"C");
$pdf->AddFont('angsa','','angsa.php');
$pdf->SetFont('angsa','',16);
$pdf->Text( 15 , 10 , iconv( 'UTF-8','TIS-620','เลขที่เอกสาร'),0,1,"C");
$pdf->Text( 120 , 10 , iconv( 'UTF-8','TIS-620','ใบสมัครเข้าศึกษาต่อโรงเรียนกันทรลักษ์วิทยา'),0,1,"C");
$pdf->Text( 120 , 15 , iconv( 'UTF-8','TIS-620',' อ.กันทรลักษ์ จ.ศรีสะเกษ สพม. ศกยส'),0,1,"C");
$pdf->Text( 120 , 20 , iconv( 'UTF-8','TIS-620',' ประจำปีการศึกษา '),0,1,"C");
$pdf->Text(150,20,$signup3,1);
$pdf->Text(165,225,$signup3,1);
$pdf->Text( 35 , 60 , iconv( 'UTF-8','TIS-620','ชื่อ'),0,1,"C");
$pdf->Text( 100 , 60 , iconv( 'UTF-8','TIS-620','นามสกุล'),0,1,"C");
$pdf->Text( 35 , 98 , iconv( 'UTF-8','TIS-620','บิดา'),0,1,"C");
$pdf->Text( 110 , 98 , iconv( 'UTF-8','TIS-620','อาชีพ'),0,1,"C");
//$pdf->Text( 150 , 98 , iconv( 'UTF-8','TIS-620','รายได้ต่อปี'),0,1,"C");
$pdf->Text( 35 , 105 , iconv( 'UTF-8','TIS-620','มารดา'),0,1,"C");
$pdf->Text( 110 , 105 , iconv( 'UTF-8','TIS-620','อาชีพ'),0,1,"C");
//$pdf->Text( 150 , 105 , iconv( 'UTF-8','TIS-620','รายได้ต่อปี'),0,1,"C");
$pdf->Text( 109 , 165 , iconv( 'UTF-8','TIS-620','ลงชื่อ............................................ผู้สมัคร'),0,1,"C");
$pdf->Text( 35 , 165 , iconv( 'UTF-8','TIS-620','ลงชื่อ............................................ผู้ปกครอง'),0,1,"C");
$pdf->Text( 130 , 218 , iconv( 'UTF-8','TIS-620','ลงชื่อ............................................ผู้รับสมัคร'),0,1,"C");
$pdf->Text( 35 , 172 , iconv( 'UTF-8','TIS-620','(.........................................................)'),0,1,"C");
$pdf->Text( 110 , 172 , iconv( 'UTF-8','TIS-620','(........................................................)'),0,1,"C");
$pdf->Text( 30 , 178 , iconv( 'UTF-8','TIS-620','................................................................................................................................................................................'),0,1,"C");
$pdf->Text( 30 , 230 , iconv( 'UTF-8','TIS-620','................................................................................................................................................................................'),0,1,"C");
$pdf->AddFont('angsa','','angsa.php');
$pdf->SetFont('angsa','',16);
//$pdf->Text( 30 , 42 , iconv( 'UTF-8','TIS-620','................................................................................................................................................................................'),0,1,"C");
$pdf->Text( 120, 30 , iconv( 'UTF-8','TIS-620','วันที่'),0,1,"C");
$pdf->SetFont('angsa','U');
$pdf->Text(150,30,$result["signup"],1);
$pdf->AddFont('angsa','','angsa.php');
$pdf->SetFont('angsa','',16);
$pdf->Text( 138 , 225 , iconv( 'UTF-8','TIS-620','วันที่......../........ /'),0,1,"C");
$pdf->Text( 35 , 68 , iconv( 'UTF-8','TIS-620','เลขประชาชน'),0,1,"C");
$pdf->Text( 95 , 68 , iconv( 'UTF-8','TIS-620','วัน/เดือน/ปี เกิด'),0,1,"C");
//$pdf->Text( 170 , 68 , iconv( 'UTF-8','TIS-620','ศาสนา'),0,1,"C");
$pdf->Text( 35 , 75 , iconv( 'UTF-8','TIS-620','หมู่โลหิต'),0,1,"C");
$pdf->Text( 65 , 75 , iconv( 'UTF-8','TIS-620','บ้านเลขที่'),0,1,"C");
$pdf->Text( 120 , 75 , iconv( 'UTF-8','TIS-620','หมู่ที่'),0,1,"C");
$pdf->Text( 140 , 75 , iconv( 'UTF-8','TIS-620','ตำบล'),0,1,"C");
$pdf->Text( 35 , 82 , iconv( 'UTF-8','TIS-620','อำเภอ'),0,1,"C");
$pdf->Text( 95 , 82 , iconv( 'UTF-8','TIS-620','จังหวัด'),0,1,"C");
$pdf->Text( 150 , 82 , iconv( 'UTF-8','TIS-620','โทรศัพท์'),0,1,"C");
$pdf->Text( 35 , 155 , iconv( 'UTF-8','TIS-620','(.....)เห็นด้วย'),0,1,"C");
$pdf->Text( 60 , 155 , iconv( 'UTF-8','TIS-620','(.....)ไม่เห็นด้วย'),0,1,"C");
$pdf->Text( 100 , 155 , iconv( 'UTF-8','TIS-620','เพราะ..............................................................................'),0,1,"C");
$pdf->Text( 35 , 192 , iconv( 'UTF-8','TIS-620','(.....)ทะเบียนบ้านบิดา'),0,1,"C");
$pdf->Text( 99 , 192 , iconv( 'UTF-8','TIS-620','(.....)ทะเบียนบ้านมารดา'),0,1,"C");
$pdf->Text( 35 , 198 , iconv( 'UTF-8','TIS-620','(.....)บัตรประชาชนผู้สมัคร'),0,1,"C");
$pdf->Text( 99 , 198 , iconv( 'UTF-8','TIS-620','(.....)ทะเบียนบ้านผู้สมัคร'),0,1,"C");
$pdf->Text( 35 , 204 , iconv( 'UTF-8','TIS-620','(.....)ใบปพ.7 (ใบรับรองผลการเรียน)'),0,1,"C");
$pdf->Text( 99 , 204 , iconv( 'UTF-8','TIS-620','(.....)ระเบียนแสดงผลการเรียน ปพ1. : ต (กรณีจบการศึกษา)'),0,1,"C");
//$pdf->Text( 35 , 229 , iconv( 'UTF-8','TIS-620','(.....)ผลการสอบ O-NET'),0,1,"C");
$pdf->Text( 35 , 210 , iconv( 'UTF-8','TIS-620','(.....)อื่น...........................................................'),0,1,"C");
$pdf->Text( 35 , 122 , iconv( 'UTF-8','TIS-620','1 กำลังศึกษา/จบจากโรงเรียน'),0,1,"C");
$pdf->Text( 150 , 122 , iconv( 'UTF-8','TIS-620','จังหวัด'),0,1,"C");
$pdf->Text( 35 , 130 , iconv( 'UTF-8','TIS-620','2 มีผลการเรียนเฉลี่ยสะสม...............................'),0,1,"C");
$pdf->Text(80,129,$result["gpa"],1);
//$pdf->Text( 35 , 138 , iconv( 'UTF-8','TIS-620','3 ความสามารถพิเศษ......................................................................................'),0,1,"C");
$pdf->Text( 66 , 145 , iconv( 'UTF-8','TIS-620','ในการเลือกลำดับห้องเรียนตามความต้องการที่จะเรียนในความดูแล'),0,1,"C");
$pdf->SetFont('angsa','U');
//$pdf->Text( 32 , 52 , iconv( 'UTF-8','TIS-620','ข้อมูลทั่วไปของนักเรียน'),0,1,"C");
$pdf->Text(40,10,$result["id"],1);
$pdf->Text(120,68,$result["bird"],1);
$pdf->Text(85,75,$result["homeid"],1);
$pdf->Text(130,75,$result["muid"],1);
$pdf->Text(150,75,$result["tumbol"],1);
$pdf->Text(45,82,$result["ampher"],1);
$pdf->Text(110,82,$result["districs"],1);
$pdf->Text(170,82,$result["phone"],1);
$pdf->Text(45,60,$result["prefix"],1);
$pdf->Text(58,60,$result["name"],1);
$pdf->Text(120,60,$result["surname"],1);
$pdf->Text(65,68,$result["pin"],1);
$pdf->Text(52,75,$result["brood"],1);
$pdf->Text(171,122,$result["distric"],1);
$pdf->Text(80,122,$result["schoolout"],1);
//$pdf->Text(170,98,$result["fatherwm"],1);
//$pdf->Text(170,105,$result["matherwm"],1);
$pdf->Text(43,218,$result["idtest"],1);
$pdf->Text(80,218,$result["room"],1);
$pdf->Text(102,218,$result["room2"],1);
$pdf->Text(76,136,1,1);
$pdf->Text(80,136,$planname1,1);
//$pdf->Text(76,156,1,1);
//$pdf->Text(80,156,$namesc1,1);
//$pdf->Text(76,162,2,1);
//$pdf->Text(80,162,$namesc2,1);
//$pdf->Text(76,143,2,1);
//$pdf->Text(80,143,$planname2,1);
//$pdf->Text(76,160,3,1);
//$pdf->Text(80,160,$planname3,1);
$pdf->Text( 25 , 90 , iconv( 'UTF-8','TIS-620','ข้อมูลทั่วไปผู้ปกครอง'),0,1,"C");
$pdf->Text( 25 , 113 , iconv( 'UTF-8','TIS-620','ข้อมูลด้านการศึกษา'),0,1,"C");
$pdf->Text( 25 , 136 , iconv( 'UTF-8','TIS-620','ห้องที่ประสงค์เข้าเรียน'),0,1,"C");
//$pdf->Text( 25 , 150 , iconv( 'UTF-8','TIS-620','กรณีไม่ผ่านการคัดเลือก มีความประสงค์เข้าศึกษาในโรงเรียน'),0,1,"C");
$pdf->Text( 25 , 145, iconv( 'UTF-8','TIS-620','คำรับรองของผู้ปกครอง'),0,1,"C");
$pdf->Text(25,33,iconv( 'UTF-8','TIS-620','ประเภทที่สมัครเรียนระดับชั้น ม.4'),0,1,"C");
//$pdf->Text(25,50,iconv( 'UTF-8','TIS-620','นำเอกสารนี้มาสมัครด้วยตนเอง ภายในวันที่ 11-15 มีนาคม 2566'),0,1,"C");
$pdf->Text(25,50,$daytest1,1);
//$pdf->Text(90,266,$daytest2,1);
$pdf->Text(45,98,$result["father"],1);
$pdf->Text(120,98,$result["fatherw"],1);
$pdf->Text(45,105,$result["mather"],1);
$pdf->Text(120,105,$result["matherw"],1);
$pdf->Text( 95 , 185 , iconv( 'UTF-8','TIS-620','สำหรับเจ้าหน้าที่รับสมัคร'),0,1,"C");
$pdf->Text( 35 , 185 , iconv( 'UTF-8','TIS-620','เอกสารยื่นสมัคร/ฉบับจริงพร้อมสำเนา'),0,1,"C");
$pdf->Text( 20 , 218 , iconv( 'UTF-8','TIS-620','เลขที่นั่่งสอบ'),0,1,"C");
$pdf->Text( 20 , 230 , iconv( 'UTF-8','TIS-620','ฉีกตามรอยประ'),0,1,"C");
$pdf->Text( 38 , 218 , iconv( 'UTF-8','TIS-620','....................'),0,1,"C");
$pdf->Text( 60 , 218 , iconv( 'UTF-8','TIS-620','ห้องสอบที่'),0,1,"C");
$pdf->Text( 75 , 218 , iconv( 'UTF-8','TIS-620','....................'),0,1,"C");
$pdf->Text( 92 , 218 , iconv( 'UTF-8','TIS-620','ห้อง'),0,1,"C");
$pdf->Text( 100 , 218 , iconv( 'UTF-8','TIS-620','....................'),0,1,"C");
//$pdf->Text( 50 , 274 , iconv( 'UTF-8','TIS-620','ชื่อ'),0,1,"C");
//$pdf->Text( 100 , 274 , iconv( 'UTF-8','TIS-620','นามสกุล'),0,1,"C");
//$pdf->Text(50,280,$idtpy_name,1);
$pdf->Text( 45 , 283 , iconv( 'UTF-8','TIS-620','โทร'),0,1,"C");
$pdf->Text( 116 , 240 , iconv( 'UTF-8','TIS-620','ประเภทที่สมัครสอบ'),0,1,"C");
$pdf->Text(116,250,$idtpy_name,1);
$pdf->Text( 116 , 265 , iconv( 'UTF-8','TIS-620','เลขที่นั่่งสอบ.............................'),0,1,"C");
$pdf->Text( 116 , 272 , iconv( 'UTF-8','TIS-620','ห้องสอบที่.................................'),0,1,"C");
$pdf->Text( 116 , 280 , iconv( 'UTF-8','TIS-620','ห้อง............................................'),0,1,"C");
$pdf->Text( 116 , 288 , iconv( 'UTF-8','TIS-620','สอบวันที่....................................'),0,1,"C");
$pdf->Text( 30,240 , iconv( 'UTF-8','TIS-620','บัตรประจำตัวผู้สมัครสอบ โรงเรียนกันทรลักษ์วิทยา'),0,1,"C");
$pdf->Text( 50,245 , iconv( 'UTF-8','TIS-620','ระดับชั้น ม.1 ปีการศึกษา '),0,1,"C");
//$pdf->Text( 90 , 266 , iconv( 'UTF-8','TIS-620','18 ก.พ. 2567'),0,1,"C");
//$pdf->Text( 140 , 258 , iconv( 'UTF-8','TIS-620','2567'),0,1,"C");
$pdf->SetFont('angsa','');
$pdf->Text( 45 , 255 , iconv( 'UTF-8','TIS-620','ชื่อ'),0,1,"C");
$pdf->Text(55,255,$result["name"],1);
$pdf->Text( 45 , 265 , iconv( 'UTF-8','TIS-620','นามสกุล'),0,1,"C");
$pdf->Text( 45 , 275 , iconv( 'UTF-8','TIS-620','โรงเรียน'),0,1,"C");
$pdf->Text(59,275,$result["schoolout"],1);
$pdf->Text(60,265,$result["surname"],1);
$pdf->Text(150,264,$result["idtest"],1);
$pdf->Text(150,271,$result["room"],1);
$pdf->Text(150,279,$result["room2"],1);
$pdf->Text(90,245,$signup3,1);
$pdf->Text(133,287,$daytest2,1);
$pdf->Text( 22 ,285 , iconv( 'UTF-8','TIS-620','..................'),0,1,"C");
$pdf->Text( 22 ,289 , iconv( 'UTF-8','TIS-620','ชื่อผู้สมัคร'),0,1,"C");
$pdf->Text( 173 ,285 , iconv( 'UTF-8','TIS-620','.................................'),0,1,"C");
$pdf->Text( 175 , 289 , iconv( 'UTF-8','TIS-620','เจ้าหน้าที่รับสมัคร'),0,1,"C");
//$pdf->Text( 10 , 284 , iconv( 'UTF-8','TIS-620','เอกสารนี้ต้องนำไปยื่นสมัครจริงพร้อมกับบัตรประจำตัวผู้สมัครสอบ ในวันที่มาสอบคัดเลือก'),0,1,"C");
//$pdf->Text( 10 , 290 , iconv( 'UTF-8','TIS-620','และจะสมบูรณ์เมื่อได้รับเลขที่นั่งสอบ,ห้องสอบ และได้ลงนามจากเจ้าหน้าที่รับสมัคร'),0,1,"C");
$pdf->Output("MyPDF/MyPDF.pdf","F");
?>
PDF Click <a href="MyPDF/MyPDF.pdf">here</a> to Download
</body>
</html>