403Webshell
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/gpa/print/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/gpa/print//indexp5.php
<?
require_once "../config/confiteacher.inc.php";
$teach=$objResult["teachcode"];
$teachname=$objResult["name"];
$lastname=$objResult["lastname"];


$grupsarat=$objResult["grupsara"];
?>
<?php
require('fpdf.php');
define('FPDF_FONTPATH','font/');
$pdf=new FPDF( 'P' , 'mm' , 'A4' );
	$pdf->AddPage();
	$pdf->AddFont('THSarabunNew','','THSarabunNew.php');
	$pdf->SetFont('THSarabunNew','',16);
	
 
class PDF extends FPDF
{


function TextWithDirection($x, $y, $txt, $direction='R')
{
    if ($direction=='R')
        $s=sprintf('BT %.2F %.2F %.2F %.2F %.2F %.2F Tm (%s) Tj ET',1,0,0,1,$x*$this->k,($this->h-$y)*$this->k,$this->_escape($txt));
    elseif ($direction=='L')
        $s=sprintf('BT %.2F %.2F %.2F %.2F %.2F %.2F Tm (%s) Tj ET',-1,0,0,-1,$x*$this->k,($this->h-$y)*$this->k,$this->_escape($txt));
    elseif ($direction=='U')
        $s=sprintf('BT %.2F %.2F %.2F %.2F %.2F %.2F Tm (%s) Tj ET',0,1,-1,0,$x*$this->k,($this->h-$y)*$this->k,$this->_escape($txt));
    elseif ($direction=='D')
        $s=sprintf('BT %.2F %.2F %.2F %.2F %.2F %.2F Tm (%s) Tj ET',0,-1,1,0,$x*$this->k,($this->h-$y)*$this->k,$this->_escape($txt));
    else
        $s=sprintf('BT %.2F %.2F Td (%s) Tj ET',$x*$this->k,($this->h-$y)*$this->k,$this->_escape($txt));
    if ($this->ColorFlag)
        $s='q '.$this->TextColor.' '.$s.' Q';
    $this->_out($s);
}

function TextWithRotation($x, $y, $txt, $txt_angle, $font_angle=0)
{
    $font_angle+=90+$txt_angle;
    $txt_angle*=M_PI/180;
    $font_angle*=M_PI/180;

    $txt_dx=cos($txt_angle);
    $txt_dy=sin($txt_angle);
    $font_dx=cos($font_angle);
    $font_dy=sin($font_angle);

    $s=sprintf('BT %.2F %.2F %.2F %.2F %.2F %.2F Tm (%s) Tj ET',$txt_dx,$txt_dy,$font_dx,$font_dy,$x*$this->k,($this->h-$y)*$this->k,$this->_escape($txt));
    if ($this->ColorFlag)
        $s='q '.$this->TextColor.' '.$s.' Q';
    $this->_out($s);


}


//Load data
function LoadData($file)
{
    //Read file lines
   $lines=file($file);
   $data=array();
    foreach($lines as $line)
      $data[]=explode(';',chop($line));
    return $data;
}









//Simple table
function BasicTable($header,$data)
{
   //Header
  $w1=array(10,15,50,8,8,8,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,5,5);
   //Header


   

   for($i=0;$i<count($header);$i++)
     $this->Cell($w1[$i],0,$header[$i],1,0,'C');
    $this->Ln();
  //Data
  $w2=3;
  $rang=1;
  
  
   
   
   foreach ($data as $eachResult)

	  
  {
	     $this->Cell(10,6,iconv('UTF-8','TIS-620',$rang),1); 
        $this->Cell(15,6,$eachResult["Username"],1,0,'C');
        $this->Cell(50,6,$eachResult["prefix"].$eachResult["Name"].'   '.$eachResult["surname"],1,0,'L');
       $this->Cell(8,6 ,$eachResult["cllass"],1,0,'C');
	   $this->Cell(8,6,$eachResult["room"],1,0,'C');
	   $this->Cell(8,6,$eachResult["ordinal"],1,0,'C');
	   $this->Cell($w2,6,$eachResult["day"],1,0,'C');
	   $this->Cell($w2,6,$eachResult["day"],1,0,'C');
	   $this->Cell($w2,6,$eachResult["day"],1,0,'C');
	   $this->Cell($w2,6,$eachResult["day"],1,0,'C');
	   $this->Cell($w2,6,$eachResult["day"],1,0,'C');

	   $this->Cell($w2,6,$eachResult["day"],1,0,'C');
	   $this->Cell($w2,6,$eachResult["day"],1,0,'C');
	   $this->Cell($w2,6,$eachResult["day"],1,0,'C');
	   $this->Cell($w2,6,$eachResult["day"],1,0,'C');
	   $this->Cell($w2,6,$eachResult["day"],1,0,'C');


	   $this->Cell($w2,6,$eachResult["day"],1,0,'C');
	   $this->Cell($w2,6,$eachResult["day"],1,0,'C');
	   $this->Cell($w2,6,$eachResult["day"],1,0,'C');
	   $this->Cell($w2,6,$eachResult["day"],1,0,'C');
	   $this->Cell($w2,6,$eachResult["day"],1,0,'C');


	   $this->Cell($w2,6,$eachResult["day"],1,0,'C');
	   $this->Cell($w2,6,$eachResult["day"],1,0,'C');
	   $this->Cell($w2,6,$eachResult["day"],1,0,'C');
	   $this->Cell($w2,6,$eachResult["day"],1,0,'C');
	   $this->Cell($w2,6,$eachResult["day"],1,0,'C');

	   $this->Cell($w2,6,$eachResult["day"],1,0,'C');
	   $this->Cell($w2,6,$eachResult["day"],1,0,'C');
	   $this->Cell($w2,6,$eachResult["day"],1,0,'C');
	   $this->Cell($w2,6,$eachResult["day"],1,0,'C');
	   $this->Cell($w2,6,$eachResult["day"],1,0,'C');



	   $this->Cell(5,6,$eachResult["day"],1,0,'C');
	   $this->Cell(5,6,$eachResult["day"],1,0,'C');
	   $this->Cell(5,6,$eachResult["gradeac"],1,0,'C');
	   $this->Cell(5,6,$eachResult["day"],1,0,'C');

      $this->Ln();
	  $rang++;
   }
}

//Better table
function ImprovedTable($header,$data)
{
  //Column widths
   $w=array(15,25,25,30,35,25,25);
    //Header
    for($i=0;$i<count($header);$i++)
        $this->Cell($w[$i],7,$header[$i],1,0,'C');
    $this->Ln();
   //Data
 
    foreach ($data as $eachResult)
    {
        $this->Cell(15,6,$eachResult["expose_id"],1,0,'C');
        $this->Cell(20,6,$eachResult["expose_product"],1,0,'C');
        $this->Cell(25,6,$eachResult["expose_number"],1,0,'C');
       $this->Cell(30,6 ,$eachResult["expose_name"],1,0,'C');
	   $this->Cell(35,6,$eachResult["expose_lastname"],1,0,'C');
	   $this->Cell(25,6,$eachResult["product_code"],1,0,'C');
        $this->Cell(25,6,number_format($eachResult["day"],2),1,0,'C');
       $this->Ln();
   }

 
  



    //Closure line
    $this->Cell(array_sum($w),0,'','T');
}
 
//Colored table
function FancyTable($header,$data)
{
    //Colors, line width and bold font
   $this->SetFillColor(255,0,0);
   $this->SetTextColor(255);
    $this->SetDrawColor(128,0,0);
    $this->SetLineWidth(.3);
    $this->SetFont('','B');
   //Header
    $w=array(15,20,25,10,10,10,5,5);
    for($i=0;$i<count($header);$i++)
        $this->Cell($w[$i],7,$header[$i],1,0,'C',true);
    $this->Ln();
    //Color and font restoration
   $this->SetFillColor(224,235,255);
    $this->SetTextColor(0);
    $this->SetFont('');
    //Data
   $fill=false;
   foreach($data as $row)
    {
        $this->Cell($w[0],6,$row[0],'LR',0,'L',$fill);
        $this->Cell($w[1],6,$row[1],'LR',0,'L',$fill);
        $this->Cell($w[2],6,$row[2],'LR',0,'L',$fill);
       $this->Cell($w[3],6,$row[3],'LR',0,'C',$fill);
      $this->Cell($w[4],6,number_format($row[4]),'LR',0,'R',$fill);
       $this->Cell($w[5],6,number_format($row[5]),'LR',0,'R',$fill);
       $this->Ln();
        $fill=!$fill;
   }
   $this->Cell(array_sum($w),0,'','T');
}
}
 
$pdf=new PDF('P' , 'mm' , 'A4' );

//Column titles

//$header=array('ที่','รหัสนร.','ชื่อ','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
//$header=array('','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
//Data loading
 
//*** Load MySQL Data ***//
$objConnect = mysql_connect("localhost","root","gpaklw+3322") or die("Error Connect to Database");
$objDB = mysql_select_db("klw");
mysql_query("set NAMES'tis620'");// set อักขระให้เป็น Utf8  เพิ่มตรงนี้เลยครับ   รับรองได้ชัวครับ
$strSQL = "SELECT * FROM  transcriptintall join klw on klw.Username=transcriptintall.idstin WHERE codin = '$_GET[id]' order by cllass asc,room+1 asc,ordinal+1 asc";
$objQuery = mysql_query($strSQL);
$resultData = array();
for ($i=0;$i<mysql_num_rows($objQuery);$i++) {
   $result = mysql_fetch_array($objQuery);
   array_push($resultData,$result);
   
}


$sub=$_GET[id];


$_month_name = array("01"=>"มกราคม",  "02"=>"กุมภาพันธ์",  "03"=>"มีนาคม",    
    "04"=>"เมษายน",  "05"=>"พฤษภาคม",  "06"=>"มิถุนายน",    
    "07"=>"กรกฎาคม",  "08"=>"สิงหาคม",  "09"=>"กันยายน",    
    "10"=>"ตุลาคม", "11"=>"พฤศจิกายน",  "12"=>"ธันวาคม"); 
 
 $vardate=date('Y-m-d');
 $yy=date('Y');
 $mm =date('m');$dd=date('d'); 
if ($dd<10){
    $dd=substr($dd,1,2);
}
 $date=$dd ." ".$_month_name[$mm]."  ".$yy+= 543;


 $crsql="SELECT (years) FROM config";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$years1=$dcrd[0];


$crsql="SELECT (termx) FROM config";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$termx1=$dcrd[0];	



$crsql="SELECT count( idstin ) FROM transcriptintall where codin='$_GET[id]' and teachin='$teach' and idgrupin='$_GET[dayin]' and yearsx='$years1'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$total=$dcrd[0];

$crsql="SELECT count( idstin ) FROM transcriptintall where codin='$_GET[id]' and teachin='$teach' and idgrupin='$_GET[dayin]' and grade2=4 and yearsx='$years1'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$g4=$dcrd[0];


$crsql="SELECT count( idstin ) FROM transcriptintall where codin='$_GET[id]' and teachin='$teach' and idgrupin='$_GET[dayin]' and grade2=3.5 and yearsx='$years1'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$g35=$dcrd[0];


$crsql="SELECT count( idstin ) FROM transcriptintall where codin='$_GET[id]' and teachin='$teach' and idgrupin='$_GET[dayin]' and grade2=3 and yearsx='$years1'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$g3=$dcrd[0];

$crsql="SELECT count( idstin ) FROM transcriptintall where codin='$_GET[id]' and teachin='$teach' and idgrupin='$_GET[dayin]' and grade2=2.5 and yearsx='$years1'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$g25=$dcrd[0];

$crsql="SELECT count( idstin ) FROM transcriptintall where codin='$_GET[id]' and teachin='$teach' and idgrupin='$_GET[dayin]' and grade2=2 and yearsx='$years1'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$g2=$dcrd[0];


$crsql="SELECT count( idstin ) FROM transcriptintall where codin='$_GET[id]' and teachin='$teach' and idgrupin='$_GET[dayin]' and grade2=1.5 and yearsx='$years1'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$g15=$dcrd[0];


$crsql="SELECT count( idstin ) FROM transcriptintall where codin='$_GET[id]' and teachin='$teach' and idgrupin='$_GET[dayin]' and grade2=1 and yearsx='$years1'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$g1=$dcrd[0];


$crsql="SELECT count( idstin ) FROM transcriptintall where codin='$_GET[id]' and teachin='$teach' and idgrupin='$_GET[dayin]' and grade2='0' and yearsx='$years1'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$g0=$dcrd[0];



$crsql="SELECT count( idstin ) FROM transcriptintall where codin='$_GET[id]' and teachin='$teach' and idgrupin='$_GET[dayin]' and grade2='ร' and yearsx='$years1'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$gi=$dcrd[0];


$crsql="SELECT count( idstin ) FROM transcriptintall where codin='$_GET[id]' and teachin='$teach' and idgrupin='$_GET[dayin]' and grade2='มส' and yearsx='$years1'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$gms=$dcrd[0];



/////ร้อยละ

$p4=($g4/$total)*100;
$p35=($g35/$total)*100;
$p3=($g3/$total)*100;
$p25=($g25/$total)*100;
$p2=($g2/$total)*100;
$p15=($g15/$total)*100;
$p1=($g1/$total)*100;
$p0=($g0/$total)*100;
$pi=($gi/$total)*100;
$pms=($gms/$total)*100;





$pass=$g4+$g35+$g3+$g25+$g2+$g15+$g1;
$nonpass=$g0+$gi+$gms;

$perpass=($pass/$total)*100;
$pernonpass=($nonpass/$total)*100;


$crsql="SELECT ( roomteach ) FROM registeacher where codeteach='$_GET[id]' and registeach='$teach'  and yearsxx='$_GET[xyy]' and codcod!=''";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$class=$dcrd[0];


$crsql="SELECT ( kab ) FROM registeacher where codeteach='$_GET[id]' and registeach='$teach'  and yearsxx='$_GET[xyy]' and kab!=''";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$kab=$dcrd[0];


$crsql="SELECT (unit) FROM registeacher where codeteach='$_GET[id]' and registeach='$teach'  and yearsxx='$_GET[xyy]' and unit!=''";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$unit=$dcrd[0];

//////////
$crsql="SELECT (sara) FROM registeacher where codeteach='$_GET[id]' and registeach='$teach'  and yearsxx='$_GET[xyy]'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$saracodex=$dcrd[0];


$crsql="SELECT ( post) FROM post where statt='$grupsarat'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$namesarateach=$dcrd[0];



								


//************************//
$pdf->AddFont('THSarabunNew','','THSarabunNew.php');
$pdf->SetFont('THSarabunNew','',16);


//*** Table 1 ***//

//$pdf->AddPage();
//$pdf->AddFont('angsana','B','angsab.php');
//$pdf->Image('logo.jpg',80,8,33);
//$pdf->Image('line.png',101,52,83);
//$pdf->Image('line.png',101,62,83);
//$pdf->Image('line.png',101,72,83);
//$pdf->TextWithRotation(188,80,'มา',90,-45);
//$pdf->TextWithRotation(192,80,'ขาด',90,-45);
//$pdf->TextWithRotation(198,80,'ประเมินผล',90,-45);
//$pdf->TextWithRotation(202,80,'ระดับคุณภาพ',90,-45);
//$pdf->Text(102,50,'เดือน',0,1);
//$pdf->Text(102,60,'วันที่',0,1);
//$pdf->Text(102,70,'คาบ',0,1);
//$pdf->Text(102,30,'วิชากิจกรรม'.$_GET[name],0,1);

//$pdf->Text(87,80,'ชั้น',0,1);
//$pdf->Text(94,80,'ห้อง',0,1);
//$pdf->Text(87,80,'ชั้น',0,1);
//$pdf->Text(102,80,'เลขที่',0,1);

$pdf->Text(180,290,$date,0,1);




$pdf->Ln(35);

//$pdf->BasicTable($header,$resultData);

	



 
//*** Table 2 ***//
//$pdf->AddPage();
//$pdf->Image('logo.png',80,8,33);
//$pdf->Ln(35);
//$pdf->ImprovedTable($header,$resultData);
 
//*** Table 3 ***//
$pdf->AddPage();
$pdf->Image('Card_Logo.jpg',85,7,33);
$pdf->Ln(35);
//$pdf->FancyTable($header,$resultData);
$pdf->AddFont('THSarabunNew','','THSarabunNew.php');
$pdf->SetFont('THSarabunNew','',20);
$pdf->Text(83,46,'แบบบันทึกผลการเรียน',0,1,'C');
$pdf->Text(82,54,'โรงเรียนกันทรลักษ์วิทยา',0,1,'C');
$pdf->Text(73,62,'อำเภอกันทรลักษ์ จังหวัดศรีสะเกษ',0,1,'C');
$pdf->Text(65,70,'ภาคเรียนที่..'.$_GET[term].'..ปีการศึกษา.'.$_GET[xyy].'.',0,1,'C');

$pdf->SetFont('THSarabunNew','',18);
$pdf->Cell(0,61,'รหัสวิชา'.'  '.$_GET[id],0 ,1,'C');
$pdf->Text(73,85,'กลุ่มสาระการเรียนรู้'.$namesarateach.'',0,1,'C');
$pdf->Text(44,95,'ระดับชั้น ม..'.$class.'...เวลาเรียน..'.$kab.'....คาบ/สัปดาห์ จำนวนหน่วยกิต...'.$unit.'...',0,1,'C');
$pdf->Text(75,105,'ครูประจำวิชา..'.$teachname.'  '.$lastname.'',0,1,'C');


$pdf->Text(90,190,'การอนุมัติผลการเรียน',0,1,'C');

$pdf->Text(85,245,'เรียนเสนอเพื่อโปรดพิจารณา',0,1,'C');
$pdf->Text(85,222,'การพิจารณาเห็นชอบ',0,1,'C');


$pdf->SetFont('THSarabunNew','',16);

$pdf->Text(80,128,'สรุปผลการประเมินผลการเรียน',0,1,'C');
$pdf->Text(73,138,'จำนวนนักเรียนในแต่ละระดับผลการเรียน',0,1,'C');
$pdf->Text(160,138,'ผลการเรียน',0,1,'C');
$pdf->Text(45,178,'รวมผ่าน',0,1,'C');
$pdf->Text(120,178,'รวมไม่ผ่าน',0,1,'C');
$pdf->Text(80,178,'ร้อยละ',0,1,'C');
$pdf->Text(150,178,'ร้อยละ',0,1,'C');
$pdf->Text(80,200,'ลงชื่อ...................................ครูผู้สอน',0,1,'C');
$pdf->Text(80,210,'ลงชื่อ...................................หัวหน้ากลุ่มสาระ',0,1,'C');
$pdf->Text(80,235,'ลงชื่อ...................................รองผู้อำนวยการฝ่ายบริหารงานวิชาการ',0,1,'C');
$pdf->Text(80,270,'ลงชื่อ...................................ผู้บริหารสถานศึกษา',0,1,'C');
$pdf->Text(85,280,'............/.............../..........',0,1,'C');

$pdf->Text(90,256,'อนุมัติ',0,1,'C');
$pdf->Text(130,256,'ไม่อนุมัติ',0,1,'C');


$pdf->Text(45,158,$total,0,1);
$pdf->Text(45,168,'ร้อยละ',0,1);
$pdf->Image('line.png',40,120,140);
$pdf->Image('line.png',60,130,97);
$pdf->Image('line.png',60,140,120);
$pdf->Image('line.png',40,150,140);
$pdf->Image('line.png',40,160,140);
$pdf->Image('line.png',40,170,140);
$pdf->Image('line.png',40,180,140);


$pdf->Image('linet.png',40,120,-85);
$pdf->Image('linet.png',180,120,-85);
$pdf->Image('linet.png',60,120,-102);
$pdf->Image('linet.png',73,140,-167);
$pdf->Image('linet.png',85,140,-167);
$pdf->Image('linet.png',97,140,-167);
$pdf->Image('linet.png',109,140,-167);
$pdf->Image('linet.png',121,140,-167);
$pdf->Image('linet.png',133,140,-167);
$pdf->Image('linet.png',145,140,-167);
$pdf->Image('linet.png',157,120,-102);
$pdf->Image('linet.png',169,140,-167);


/////////////////////////////////////$pdf->Text(64,148,$years,0,1);

$pdf->Text(43,140,'จำนวน',0,1);
$pdf->Text(43,145,'นักเรียน',0,1);


$pdf->Text(63,145,'4',0,1);

$pdf->Text(64,156,$g4,0,1);
$pdf->Text(61,168,number_format($p4,2,'.',''),0,1);


$pdf->Text(75,145,'3.5',0,1);
$pdf->Text(76,156,$g35,0,1);
$pdf->Text(74,168,number_format($p35,2,'.',''),0,1);

$pdf->Text(91,145,'3',0,1);
$pdf->Text(89,156,$g3,0,1);
$pdf->Text(86,168,number_format($p3,2,'.',''),0,1);

$pdf->Text(100,145,'2.5',0,1);
$pdf->Text(100,156,$g25,0,1);
$pdf->Text(98,168,number_format($p25,2,'.',''),0,1);


$pdf->Text(115,145,'2',0,1);
$pdf->Text(112,156,$g2,0,1);
$pdf->Text(110,168,number_format($p2,2,'.',''),0,1);  


$pdf->Text(125,145,'1.5',0,1);
$pdf->Text(124,156,$g15,0,1);
$pdf->Text(123,168,number_format($p15,2,'.',''),0,1);  

$pdf->Text(139,145,'1',0,1);
$pdf->Text(136,156,$g1,0,1);
$pdf->Text(135,168,number_format($p1,2,'.',''),0,1); 



$pdf->Text(149,145,'0',0,1);
$pdf->Text(147,156,$g0,0,1);
$pdf->Text(147,168,number_format($p0,2,'.',''),0,1); 


$pdf->Text(162,145,'ร',0,1);
$pdf->Text(160,156,$gi,0,1);
$pdf->Text(160,168,number_format($pi,2,'.',''),0,1);


$pdf->Text(171,145,'มส',0,1);
$pdf->Text(171,156,$gms,0,1);
$pdf->Text(171,168,number_format($pms,2,'.',''),0,1);


$pdf->Text(64,178,$pass,0,1);
$pdf->Text(94,178,number_format($perpass,2,'.',''),0,1);
$pdf->Text(140,178,$nonpass,0,1);
$pdf->Text(168,178,number_format($pernonpass,2,'.',''),0,1);


$pdf->Image('4.png',80,250,10);
$pdf->Image('4.png',120,250,10);

$pdf->Output("MyPDF/MyPDF.pdf","F");
?>

PDF Download Click <a href="MyPDF/MyPDF.pdf">here</a> to Download
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit