| 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 member 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);
}
//************************//
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->AddFont('angsa','','angsa.php');
$pdf->SetFont('angsa','',18);
//$pdf->Image('images/bb.png',6,10,100,70,'','http://gpa.klws.ac.th');
//$pdf->Image('images/bb2.png',104,10,100,68.5,'','http://gpa.klws.ac.th');
$pdf->Image('images/bbb.jpg',5,10,200,68.5,'','http://gpa.klws.ac.th');
//$pdf->Image('images/pic.PNG',30,14,20,20,'','http://gpa.klws.ac.th');
//$pdf->Image('images/head_02.GIF',98,16,15,15,'','http://gpa.klws.ac.th',"C");
//$pdf->Text(55,22,iconv( 'UTF-8','TIS-620','บัตรประจำตัวสอบ'),0,1,"C");
//$pdf->Text( 50, 27 , iconv( 'UTF-8','TIS-620','ประเภทที่สมัคร'),0,1,"C");
//$pdf->Text( 180 , 27 , iconv( 'UTF-8','TIS-620','ม. 4'),0,1,"C");
//$pdf->Text(55,27,$result["idtpy_name"],1);
//$pdf->Text( 35 , 20 , iconv( 'UTF-8','TIS-620','ร.ร.กันทรลักษ์วิทยาปีการศึกษา 2563'),0,1,"C");
//$pdf->Text( 120 , 20 , iconv( 'UTF-8','TIS-620','บัตรประจำตัวสอบ'),0,1,"C");
//$pdf->Text( 120 , 28 , iconv( 'UTF-8','TIS-620','โรงเรียนกันทรลักษ์วิทยา'),0,1,"C");
//$pdf->Text( 110 , 38 , iconv( 'UTF-8','TIS-620','คำแนะนำ'),0,1,"C");
//$pdf->Text( 115 , 45 , iconv( 'UTF-8','TIS-620','1.ตรวจสอบเลขที่นั่งสอบห้องสอบให้ถูกต้อง'),0,1,"C");
$pdf->Text( 55 , 62 , iconv( 'UTF-8','TIS-620','โรงเรียน'),0,1,"C");
//$pdf->Text( 133 , 57 , iconv( 'UTF-8','TIS-620','3.ตรวจสอบเลขที่นั่่งสอบห้องสอบ ก่อนวันสอบ'),0,1,"C");
$pdf->Text( 15 , 35 , iconv( 'UTF-8','TIS-620','ติดรูป 1X1 นิ้ว'),0,1,"C");
$pdf->Text( 80 , 38 , iconv( 'UTF-8','TIS-620','3 เมษายน 2564'),0,1,"C");
$pdf->AddFont('angsa','','angsa.php');
$pdf->SetFont('angsa','',14);
//$pdf->Text( 5 , 35 , iconv( 'UTF-8','TIS-620','ชื่อ'),0,1,"C");
//$pdf->Text( 5 , 42 , iconv( 'UTF-8','TIS-620','เลขประชาชน'),0,1,"C");
//$pdf->Text( 20 , 35 , 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( 35 , 105 , iconv( 'UTF-8','TIS-620','มารดา'),0,1,"C");
//$pdf->Text( 110 , 105 , iconv( 'UTF-8','TIS-620','อาชีพ'),0,1,"C");
//$pdf->Text( 25 , 60 , iconv( 'UTF-8','TIS-620','.............................'),0,1,"C");
//$pdf->Text( 30 , 65 , iconv( 'UTF-8','TIS-620','เจ้าหน้าที่'),0,1,"C");
//$pdf->Text( 25 , 70 , iconv( 'UTF-8','TIS-620','......../............./.............'),0,1,"C");
$pdf->Text( 13 , 65 , iconv( 'UTF-8','TIS-620','.............................'),0,1,"C");
$pdf->Text( 170 , 65 , iconv( 'UTF-8','TIS-620','.............................'),0,1,"C");
$pdf->Text( 15 , 70 , iconv( 'UTF-8','TIS-620','ชื่อผู้สมัคร'),0,1,"C");
$pdf->Text( 170 , 70 , iconv( 'UTF-8','TIS-620','เจ้าหน้าที่รับสมัคร'),0,1,"C");
//$pdf->Text( 115 , 160 , iconv( 'UTF-8','TIS-620','(..........................)'),0,1,"C");
//$pdf->Text( 30 , 180 , iconv( 'UTF-8','TIS-620','................................................................................................................................................................................'),0,1,"C");
$pdf->AddFont('angsa','','angsa.php');
$pdf->SetFont('angsa','',20);
//$pdf->Text( 30 , 42 , iconv( 'UTF-8','TIS-620','................................................................................................................................................................................'),0,1,"C");
//$pdf->Text( 120, 20 , iconv( 'UTF-8','TIS-620','สมัครภายในวันที่'),0,1,"C");
$pdf->SetFont('angsa','U');
//$pdf->Text(158,20,$result["signup"],1);
$pdf->AddFont('angsa','','angsa.php');
$pdf->SetFont('angsa','',18);
//$pdf->Text( 90 , 262 , iconv( 'UTF-8','TIS-620','วันที่......../ มีนาคม /2561'),0,1,"C");
//$pdf->Text( 95 , 68 , iconv( 'UTF-8','TIS-620','วัน/เดือน/ปี เกิด'),0,1,"C");
//$pdf->Text( 140 , 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( 80 , 55 , 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 , 205 , iconv( 'UTF-8','TIS-620','(.....)สำเนาบัตรประชาชนผู้สมัคร'),0,1,"C");
//$pdf->Text( 99 , 205 , iconv( 'UTF-8','TIS-620','(.....)สำเนาทะเบียนบ้านผู้สมัคร'),0,1,"C");
//$pdf->Text( 35 , 212 , iconv( 'UTF-8','TIS-620','(.....)ใบรับรองผลการเรียน ปพ.7'),0,1,"C");
//$pdf->Text( 99 , 212 , iconv( 'UTF-8','TIS-620','(.....)ระเบียนแสดงผลการเรียน ปพ1.ป (กรณีจบการศึกษา)'),0,1,"C");
//$pdf->Text( 35 , 219 , iconv( 'UTF-8','TIS-620','(.....)ผลการสอบ O-NET'),0,1,"C");
//$pdf->Text( 99 , 219 , iconv( //'UTF-8','TIS-620','(.....)อื่น...........................................................'),0,1,"C");
//$pdf->Text( 35 , 122 , iconv( 'UTF-8','TIS-620','1..........................................................'),0,1,"C");
//$pdf->Text( 35 , 130 , iconv( 'UTF-8','TIS-620','2..........................................................'),0,1,"C");
//$pdf->Text( 35 , 138 , iconv( 'UTF-8','TIS-620','3..........................................................'),0,1,"C");
$pdf->SetFont('angsa','U');
//$pdf->Text( 32 , 50 , iconv( 'UTF-8','TIS-620','ข้อมูลทั่วไปของนักเรียน'),0,1,"C");
//$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["distric"],1);
$pdf->Text(90,55,$result["phone"],1);
$pdf->Text( 50 , 50 , iconv( 'UTF-8','TIS-620','ชื่อ'),0,1,"C");
$pdf->Text( 100 , 50 , iconv( 'UTF-8','TIS-620','สกุล'),0,1,"C");
$pdf->Text(58,50,$result["name"],1);
$pdf->Text(110,50,$result["surname"],1);
$pdf->SetFont('angsa','',16);
$pdf->Text(55,55,$result["pin"],1);
$pdf->Text(70,62,$result["schoolout"],1);
$pdf->Text(75,68,$result["idtest"],1);
$pdf->Text(110 ,68,$result["room"],1);
$pdf->Text(130,68,$result["room2"],1);
//$pdf->Text( 32 , 90 , iconv( 'UTF-8','TIS-620','ข้อมูลทั่วไปผู้ปกครอง'),0,1,"C");
//$pdf->Text( 32 , 113 , iconv( 'UTF-8','TIS-620','ความสามารถพิเศษ'),0,1,"C");
//$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 , 190 , iconv( 'UTF-8','TIS-620','สำหรับเจ้าหน้าที่รับสมัคร'),0,1,"C");
$pdf->Text( 55 , 69 , iconv( 'UTF-8','TIS-620','เลขที่นั่่งสอบ...................'),0,1,"C");
//$pdf->Text( 40 , 100 , iconv( 'UTF-8','TIS-620','ติดรูปถ่ายและบัตรประจำตัวนี้ไปยื่นพร้อมใบสมัครในวันที่สมัครจริง'),0,1,"C");
//$pdf->Text( 35 , 50 , iconv( 'UTF-8','TIS-620','............................'),0,1,"C");
$pdf->Text(90 , 69, iconv( 'UTF-8','TIS-620','ห้องสอบที่......................'),0,1,"C");
//$pdf->Text( 75 , 50 , iconv( 'UTF-8','TIS-620','.............../...........'),0,1,"C");
$pdf->Text( 120 , 69 , iconv( 'UTF-8','TIS-620','ห้อง.................'),0,1,"C");
//$pdf->Text( 140 , 69 , iconv( 'UTF-8','TIS-620','อาคาร....................'),0,1,"C");
$pdf->Output("MyPDF/MyPDF.pdf","F");
?>
PDF Click <a href="MyPDF/MyPDF.pdf">download</a> to Download
</body>
</html>