| Server IP : 172.67.187.206 / Your IP : 172.71.28.155 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 : /Inetpub/www/myschool/triamudom/check/webadmin/ |
Upload File : |
<?php
session_start();
$path = "../";
include ($path.'include/config_db.php');
include ($path.'include/class_db.php');
include ($path.'include/class_display.php');
include ($path.'include/function.php');
include ($path.'include/permission_denied.php');
$CLASS['db'] = new db();
$CLASS['db']->connect();
$CLASS['disp'] = new display();
$db = $CLASS['db'];
$disp = $CLASS['disp'];
$tb_ramie_id = $_REQUEST['tb_ramie_id'];
function thainumDigit($num){
return str_replace(array( '0' , '1' , '2' , '3' , '4' , '5' , '6' ,'7' , '8' , '9' ),
array( "o" , "๑" , "๒" , "๓" , "๔" , "๕" , "๖" , "๗" , "๘" , "๙" ),
$num);
};
include('fpdf.php');
define('FPDF_FONTPATH','font/');
$pdf=new FPDF( 'P' , 'mm' ,'A4');
$pdf->AddFont('THSarabun','B','THSarabun Bold.php');
$pdf->AddFont('THSarabun','','THSarabun.php');
//$query_dist = mysql_query("SELECT * FROM tb_ramie where tb_ramie_id='".$tb_ramie_id."' ");
//$fetch_dist=mysql_fetch_array($query_dist);
$pdf->AddPage();
//$pdf->Image("images/cardok.jpg",0,0,298,0,'','');
$pdf->SetTextColor(0,0,127);
//$pdf->SetFont('THSarabun','',16);
//$pdf->Cell(250, 20 , "NUMBER ".$row[cc_no]." " .("".$total)." / " .("".$row[cc_year])." " , 0 , 1 , 'R' );
//$pdf->SetXY(10,58);
$pdf->SetFont('THSarabun','B',30);
$pdf->Cell( 0 , 30 ,iconv( 'UTF-8','cp874' , 'สรุปผลการประเมินชุมนุมประจำปี 2559' ), 0 , 1 , 'C' );
//$pdf->Cell( 0 , 30 ,'xxxxxxxxxxxฟฟฟฟฟฟฟ', 0 , 1 , 'C' );
$pdf->SetXY(10,63);
$pdf->SetFont('THSarabun','B',30);
//$pdf->Cell( 0 , 52 ,iconv( 'UTF-8','cp874' , 'มีจิตศรัทธาบริจาคทรัพย์ เป็นจำนวนเงิน '.thainumDigit(number_format($fetch_dist['tb_ramie_money'])).' บาท' ), 0 , 1 , 'C' );
$pdf->Output();
?>