403Webshell
Server IP : 27.254.66.5  /  Your IP : 216.73.217.39
Web Server : Apache/2
System : Linux cs82.hostneverdie.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
User : technic2 ( 1951)
PHP Version : 7.4.30
Disable Function : apache_child_terminate, apache_setenv, define_syslog_variables, escapeshellarg, escapeshellcmd,exec, fp, fput, highlight_file, ini_alter, ini_restore, inject_code, passthru,phpAds_remoteInfo, phpAds_XmlRpc,phpAds_xmlrpcDecode, phpAds_xmlrpcEncode, popen, posix_getpwuid, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid,posix_setuid, posix_setuid, posix_uname,proc_open,proc_close, proc_get_status, proc_nice, proc_terminate, shell_exec, syslog, system, xmlrpc_entity_decode, show_source,sleep,pcntl_exec,virtual,suexec,dbmopen,dl,symlink,disk_free_space,diskfreespace,leak
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/technic2/domains/technicrayong.ac.th/public_html/old-website/vecsc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/technic2/domains/technicrayong.ac.th/public_html/old-website/vecsc/bill_other1.joe
<?php

// Create connection
require_once('config.php');
$i = 0;

// Check connection
if (!$conn) {
    die('Connection failed: ' . mysqli_connect_error());
}

mysqli_set_charset($conn,'utf8');

$sql1 = "SELECT college.college_id, college.college_name, tacsa_name.tacsa_id, tacsa_name.tacsa_name, tacsa_staff_position.position_id, tacsa_staff_position.position_name, tacsa_staff.tname, tacsa_staff.fname, tacsa_staff.lname, tacsa_staff.polo_size, tacsa_staff.amount FROM college, tacsa_name, tacsa_staff_position, tacsa_staff WHERE college.college_id = tacsa_staff.college_id AND tacsa_name.tacsa_id = tacsa_staff.tacsa_id AND tacsa_staff_position.position_id = tacsa_staff.position_id AND tacsa_staff.college_id = '" . $_GET["college_id"] . "' AND tacsa_staff.tacsa_id = '" . $_GET["tacsa_id"] . "' ORDER BY tacsa_staff.college_id, tacsa_staff.tacsa_id, tacsa_staff.position_id" ;


//echo $sql1;

$result1 = mysqli_query($conn, $sql1);

$total1 = 0;
$thai_total1 = 0;

if (mysqli_num_rows($result1) > 0) {
    // output data of each row
    while($row = mysqli_fetch_assoc($result1)) {
		$i = $i + 1;
        $position_name1[] = $row['position_name'];
		$tname1[] = $row['tname'];
		$fname1[] = $row['fname'];
		$lname1[] = $row['lname'];
		$amount1[] = $row['amount'];
		$college_name1[] = $row['college_name'];
		$tacsa_name1[] = $row['tacsa_name'];

		if ($row['amount'] <> '') {
			$amount_mask1[] = '-';
		}

		$total1 += $row['amount'];
    }
} else {
    echo '0 results';
}

mysqli_close($conn);


if ($total2 == 250) {
	$thai_total2 = 'สองร้อยห้าสิบบาทถ้วน';
} elseif ($total2 == 500) {
	$thai_total2 = 'ห้าร้อยบาทถ้วน';
} elseif ($total2 == 750) {
	$thai_total2 = 'เจ็ดร้อยห้าสิบบาทถ้วน';
} elseif ($total2 == 1000) {
	$thai_total2 = 'หนึ่งพันบาทถ้วน';
} elseif ($total2 == 1250) {
	$thai_total2 = 'หนึ่งพันสองร้อยห้าสิบบาทถ้วน';
} elseif ($total2 == 1500) {
	$thai_total2 = 'หนึ่งพันห้าร้อยบาทถ้วน';
} elseif ($total2 == 1750) {
	$thai_total2 = 'หนึ่งพันเจ็ดร้อยห้าสิบบาทถ้วน';
} elseif ($total2 == 2000) {
	$thai_total2 = 'สองพันบาทถ้วน';
} elseif ($total2 == 2250) {
	$thai_total2 = 'สองพันสองร้อยห้าสิบบาทถ้วน';
} elseif ($total2 == 2500) {
	$thai_total2 = 'สองพันห้าร้อยบาทถ้วน';
} elseif ($total2 == 2750) {
	$thai_total2 = 'สองพันเจ็ดร้อยห้าสินบาทถ้วน';
} elseif ($total2 == 3000) {
	$thai_total2 = 'สามพันบาทถ้วน';
} elseif ($total2 == 3250) {
	$thai_total2 = 'สามพันสองร้อยห้าสิบบาทถ้วน';
} elseif ($total2 == 3500) {
	$thai_total2 = 'สามพันห้าร้อยบาทถ้วน';
} elseif ($total2 == 3750) {
	$thai_total2 = 'สามพันเจ็ดร้อยห้าสิบบาทถ้วน';
} elseif ($total2 == 4000) {
	$thai_total2 = 'สี่พันบาทถ้วน';
} elseif ($total2 == 4250) {
	$thai_total2 = 'สี่พันสองร้อยห้าสิบบาทถ้วน';
} elseif ($total2 == 4500) {
	$thai_total2 = 'สี่พันห้าร้อยบาทถ้วน';
} elseif ($total2 == 4750) {
	$thai_total2 = 'สี่พันเจ็ดร้อยห้าสิบบาทถ้วน';
} elseif ($total2 == 5000) {
	$thai_total2 = 'ห้าพันบาทถ้วน';
} elseif ($total2 == 5250) {
	$thai_total2 = 'ห้าพันสองร้อยห้าสิบบาทถ้วน';
} elseif ($total2 == 5500) {
	$thai_total2 = 'ห้าพันห้าร้อยบาทถ้วน';
} elseif ($total2 == 5750) {
	$thai_total2 = 'ห้าพันเจ็ดร้อยห้าสิบบาทถ้วน';
} elseif ($total2 == 6000) {
	$thai_total2 = 'หกพันบาทถ้วน';
} elseif ($total2 == 6250) {
	$thai_total2 = 'หกพันสองร้อยห้าสิบบาทถ้วน';
} elseif ($total2 == 6500) {
	$thai_total2 = 'หกพันห้าร้อยบาทถ้วน';
} elseif ($total2 == 6750) {
	$thai_total2 = 'หกพันเจ็ดร้อยห้าสิบบาทถ้วน';
} elseif ($total2 == 7000) {
	$thai_total2 = 'เจ็ดพันบาทถ้วน';
} elseif ($total2 == 7250) {
	$thai_total2 = 'เจ็ดพันสองร้อยห้าสิบบาทถ้วน';
} elseif ($total2 == 7500) {
	$thai_total2 = 'เจ็ดพันห้าร้อยบาทถ้วน';
} elseif ($total2 == 7750) {
	$thai_total2 = 'เจ็ดพันเจ็ดร้อยห้าสิบบาทถ้วน';
} elseif ($total2 == 8000) {
	$thai_total2 = 'แปดพันบาทถ้วน';
} elseif ($total2 == 8250) {
	$thai_total2 = 'แปดพันสองร้อยห้าสิบบาทถ้วน';
} elseif ($total2 == 8500) {
	$thai_total2 = 'แปดพันห้าร้อยบาทถ้วน';
} elseif ($total2 == 8750) {
	$thai_total2 = 'แปดพันเจ็ดร้อยห้าสิบบาทถ้วน';
} elseif ($total2 == 9000) {
	$thai_total2 = 'เก้าพันบาทถ้วน';
} elseif ($total2 == 9250) {
	$thai_total2 = 'เก้าพันสองร้อยห้าสิบบาทถ้วน';
} elseif ($total2 == 9500) {
	$thai_total2 = 'เก้าพันห้าร้อยบาทถ้วน';
} elseif ($total2 == 9750) {
	$thai_total2 = 'เก้าพันเจ็ดร้อยห้าสิบบาทถ้วน';
} elseif ($total2 == 10000) {
	$thai_total2 = 'หนึ่งหมื่นบาทถ้วน';
} elseif ($total2 == 10250) {
	$thai_total2 = 'หนึ่งหมื่นสองร้อยห้าสิบบาทถ้วน';
} elseif ($total2 == 10500) {
	$thai_total2 = 'หนึ่งหมื่นห้าร้อยบาทถ้วน';
} elseif ($total2 == 10750) {
	$thai_total2 = 'หนึ่งหมื่นเจ็ดร้อยห้าสิบบาทถ้วน';
} elseif ($total2 == 11000) {
	$thai_total2 = 'หนึ่งหมื่นหนึ่งพันบาทถ้วน';
} elseif ($total2 == 11250) {
	$thai_total2 = 'หนึ่งหมื่นหนึ่งพันสองร้อยห้าสิบบาทถ้วน';
}

//echo $i . "<br>";

$p = $i / 8;

//echo $p . "<br>";

require('./fpdf/fpdf.php');

class PDF extends FPDF
{

function bill_header_p1($college_name, $tname, $fname, $lname, $amount, $amount_mask) {

$this->AddFont('THSarabun','','THSarabun.php');
$this->AddFont('THSarabun','b','THSarabun Bold.php');
$this->AddFont('THSarabun','i','THSarabun Italic.php');
$this->AddFont('THSarabun','bi','THSarabun BoldItalic.php');

$this->Image('./img/vec_logo.png',17,10, 30);
$this->Image('./img/vec_logo.png',17,159, 30);
$this->Line(0,149,210,149);

//หน้า 1 ครึ่งบน


$this->SetFont('THSarabun','b',20);
$this->SetY(55);
$this->SetX(18);
$this->Cell(0,0,iconv('UTF-8','cp874', 'ใบเสร็จรับเงิน'));

$this->SetFont('THSarabun', '',16);
$this->SetY(65);
$this->SetX(5);
$this->Cell(0,0,iconv('UTF-8','cp874', 'การประชุมวิชาการองค์การวิชาชีพ ฯ'));

$this->SetFont('THSarabun', '',16);
$this->SetY(72);
$this->SetX(23);
$this->Cell(0,0,iconv('UTF-8','cp874', 'ระดับชาติ'));

$this->SetFont('THSarabun', '',16);
$this->SetY(79);
$this->SetX(11);
$this->Cell(0,0,iconv('UTF-8','cp874', 'ครั้งที่ 26 ปีการศึกษา 2559'));

$this->SetFont('THSarabun', '',16);
$this->SetY(86);
$this->SetX(9);
$this->Cell(0,0,iconv('UTF-8','cp874', 'วันที่ 6 - 10 กุมภาพันธ์ 2560'));

$this->SetFont('THSarabun', '',16);
$this->SetY(93);
$this->SetX(13);
$this->Cell(0,0,iconv('UTF-8','cp874', 'ณ วิทยาลัยเทคนิคระยอง'));

//****

$this->SetFont('THSarabun', 'b',16);
$this->SetY(10);
$this->SetX(70);
$this->Cell(0,0,iconv('UTF-8','cp874', 'เล่มที่_____'));

$this->SetFont('THSarabun', 'b',16);
$this->SetY(10);
$this->SetX(183);
$this->Cell(0,0,iconv('UTF-8','cp874', 'เลขที่_____'));

$this->SetFont('THSarabun', '',16);
$this->SetY(20);
$this->SetX(125);
$this->Cell(0,0,iconv('UTF-8','cp874', 'สำนักงานคณะกรรมการองค์การนักวิชาชีพระดับชาติ'));

$this->SetFont('THSarabun', '',16);
$this->SetY(27);
$this->SetX(130);
$this->Cell(0,0,iconv('UTF-8','cp874', 'วันที่       เดือน  กุมภาพันธ์  พ.ศ. 2560'));

$this->SetFont('THSarabun', '',16);
$this->SetY(34);
$this->SetX(70);
$this->Cell(0,0,iconv('UTF-8','cp874', 'ได้รับเงินจาก  ' . $college_name));

$this->SetY(34);
$this->SetX(176);
$this->Cell(0,0,iconv('UTF-8','cp874', 'ตามรายการ  ดังนี้'));

$this->SetFont('THSarabun', '',16);
$this->SetY(41);
$this->SetX(70);
$this->Cell(110,7,iconv('UTF-8','cp874','รายการ'),1,0,'C',0);
$this->Cell(23,7,iconv('UTF-8','cp874','จำนวนเงิน'),1,1,'C',0);

//-----

//for ($i = 0; $i < count($fname1); $i++) {
	$this->SetFont('THSarabun', '',12);
	$this->SetX(70);
	$this->Cell(110,7,iconv('UTF-8','cp874', ''),1,0,'L',0);
	$this->Cell(18,7,iconv('UTF-8','cp874','aaa' . $amount1[0]),1,0,'R',0);
	$this->Cell(5,7,iconv('UTF-8','cp874', $amount_mask1[0]),1,1,'C',0);
//}


$this->SetFont('THSarabun', '',12);
$this->SetX(70);
$this->Cell(110,7,iconv('UTF-8','cp874',''),1,0,'C',0);
$this->Cell(18,7,iconv('UTF-8','cp874',''),1,0,'C',0);
$this->Cell(5,7,iconv('UTF-8','cp874',''),1,1,'C',0);

$this->SetFont('THSarabun', '',12);
$this->SetX(70);
$this->Cell(110,7,iconv('UTF-8','cp874', '$tacsa_name'),1,0,'L',0);
$this->Cell(18,7,iconv('UTF-8','cp874',''),1,0,'C',0);
$this->Cell(5,7,iconv('UTF-8','cp874',''),1,1,'C',0);

$this->SetFont('THSarabun', '',12);
$this->SetX(70);
$this->Cell(110,7,iconv('UTF-8','cp874', 'เป็นค่าลงทะเบียน'),1,0,'L',0);
$this->Cell(18,7,iconv('UTF-8','cp874',''),1,0,'C',0);
$this->Cell(5,7,iconv('UTF-8','cp874',''),1,1,'C',0);

$this->SetFont('THSarabun', '',12);
$this->SetX(70);
$this->Cell(110,7,iconv('UTF-8','cp874','รวม   บาท     '),0,0,'R',0);
$this->Cell(18,7,iconv('UTF-8','cp874', '$total'),1,0,'R',0);
$this->Cell(5,7,iconv('UTF-8','cp874','-'),1,1,'C',0);

$this->SetFont('THSarabun', '',12);
$this->SetY(48);



$this->SetFont('THSarabun', '',16);
$this->SetY(110);
$this->SetX(70);
$this->Cell(0,0,iconv('UTF-8','cp874', 'จำนวนเงิน  ' . '$thai_total'));

$this->SetFont('THSarabun', '',16);
$this->SetY(117);
$this->SetX(142);
$this->Cell(0,0,iconv('UTF-8','cp874', 'ลงชื่อ.............................................ผู้รับเงิน'));


$this->SetFont('THSarabun', '',16);
$this->SetY(124);
$this->SetX(151);
$this->Cell(0,0,iconv('UTF-8','cp874', 'ตำแหน่ง  เจ้าหน้าที่การเงิน'));





//หน้า 1 ครึ่งล่าง


$this->SetFont('THSarabun','b',20);
$this->SetY(154);
$this->SetX(25);
$this->Cell(0,0,iconv('UTF-8','cp874', 'สำเนา'));

$this->SetFont('THSarabun','b',20);
$this->SetY(204);
$this->SetX(18);
$this->Cell(0,0,iconv('UTF-8','cp874', 'ใบเสร็จรับเงิน'));

$this->SetFont('THSarabun', '',16);
$this->SetY(214);
$this->SetX(5);
$this->Cell(0,0,iconv('UTF-8','cp874', 'การประชุมวิชาการองค์การวิชาชีพ ฯ'));

$this->SetFont('THSarabun', '',16);
$this->SetY(221);
$this->SetX(23);
$this->Cell(0,0,iconv('UTF-8','cp874', 'ระดับชาติ'));

$this->SetFont('THSarabun', '',16);
$this->SetY(228);
$this->SetX(11);
$this->Cell(0,0,iconv('UTF-8','cp874', 'ครั้งที่ 26 ปีการศึกษา 2559'));

$this->SetFont('THSarabun', '',16);
$this->SetY(235);
$this->SetX(9);
$this->Cell(0,0,iconv('UTF-8','cp874', 'วันที่ 6 - 10 กุมภาพันธ์ 2560'));

$this->SetFont('THSarabun', '',16);
$this->SetY(242);
$this->SetX(13);
$this->Cell(0,0,iconv('UTF-8','cp874', 'ณ วิทยาลัยเทคนิคระยอง'));


//*****


$this->SetFont('THSarabun', 'b',16);
$this->SetY(159);
$this->SetX(70);
$this->Cell(0,0,iconv('UTF-8','cp874', 'เล่มที่_____'));

$this->SetFont('THSarabun', 'b',16);
$this->SetY(159);
$this->SetX(183);
$this->Cell(0,0,iconv('UTF-8','cp874', 'เลขที่_____'));

$this->SetFont('THSarabun', '',16);
$this->SetY(169);
$this->SetX(125);
$this->Cell(0,0,iconv('UTF-8','cp874', 'สำนักงานคณะกรรมการองค์การนักวิชาชีพระดับชาติ'));

$this->SetFont('THSarabun', '',16);
$this->SetY(176);
$this->SetX(130);
$this->Cell(0,0,iconv('UTF-8','cp874', 'วันที่       เดือน  กุมภาพันธ์  พ.ศ. 2560'));

$this->SetFont('THSarabun', '',16);
$this->SetY(183);
$this->SetX(70);
$this->Cell(0,0,iconv('UTF-8','cp874', 'ได้รับเงินจาก  ' . $college_name));

$this->SetY(183);
$this->SetX(176);
$this->Cell(0,0,iconv('UTF-8','cp874', 'ตามรายการ  ดังนี้'));

$this->SetFont('THSarabun', '',16);
$this->SetY(190);
$this->SetX(70);
$this->Cell(110,7,iconv('UTF-8','cp874','รายการ'),1,0,'C',0);
$this->Cell(23,7,iconv('UTF-8','cp874','จำนวนเงิน'),1,1,'C',0);

//-----


$this->SetFont('THSarabun', '',12);
$this->SetX(70);
$this->Cell(110,7,iconv('UTF-8','cp874',''),1,0,'C',0);
$this->Cell(18,7,iconv('UTF-8','cp874',''),1,0,'C',0);
$this->Cell(5,7,iconv('UTF-8','cp874',''),1,1,'C',0);

$this->SetFont('THSarabun', '',12);
$this->SetX(70);
$this->Cell(110,7,iconv('UTF-8','cp874', '$tacsa_name'),1,0,'L',0);
$this->Cell(18,7,iconv('UTF-8','cp874',''),1,0,'C',0);
$this->Cell(5,7,iconv('UTF-8','cp874',''),1,1,'C',0);

$this->SetFont('THSarabun', '',12);
$this->SetX(70);
$this->Cell(110,7,iconv('UTF-8','cp874','เป็นค่าลงทะเบียน'),1,0,'L',0);
$this->Cell(18,7,iconv('UTF-8','cp874',''),1,0,'C',0);
$this->Cell(5,7,iconv('UTF-8','cp874',''),1,1,'C',0);

$this->SetFont('THSarabun', '',12);
$this->SetX(70);
$this->Cell(110,7,iconv('UTF-8','cp874','รวม   บาท     '),0,0,'R',0);
$this->Cell(18,7,iconv('UTF-8','cp874', '$total'),1,0,'R',0);
$this->Cell(5,7,iconv('UTF-8','cp874','-'),1,1,'C',0);

$this->SetFont('THSarabun', '',12);
$this->SetY(197);



$this->SetFont('THSarabun', '',16);
$this->SetY(259);
$this->SetX(70);
$this->Cell(0,0,iconv('UTF-8','cp874', 'จำนวนเงิน  ' . '$thai_total'));

$this->SetFont('THSarabun', '',16);
$this->SetY(266);
$this->SetX(142);
$this->Cell(0,0,iconv('UTF-8','cp874', 'ลงชื่อ.............................................ผู้รับเงิน'));

$this->SetFont('THSarabun', '',16);
$this->SetY(273);
$this->SetX(151);
$this->Cell(0,0,iconv('UTF-8','cp874', 'ตำแหน่ง  เจ้าหน้าที่การเงิน'));



}

}


$pdf=new PDF();

if ($p <= 1) {

$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0], $tname1, $fname1, $lname1, $amount1, $amount_mask1);

$pdf->SetFont('THSarabun', '',12);
$pdf->SetY(48);

} elseif ($p > 1 and $p <= 2) {

$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);
$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);
		
} elseif ($p > 2 and $p <= 3) {

$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);
$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);
$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);

		
} elseif ($p > 3 and $p <= 4) {

$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);
$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);
$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);
$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);

		
} elseif ($p > 4 and $p <= 5) {

$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);
$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);
$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);
$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);
$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);

		
} elseif ($p > 5 and $p <= 6) {

$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);
$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);
$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);
$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);
$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);
$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);

		
} elseif ($p > 6 and $p <= 7) {

$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);
$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);
$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);
$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);
$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);
$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);
$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);

		
} elseif ($p > 7 and $p <= 8) {

$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);
$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);
$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);
$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);
$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);
$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);
$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);
$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);

		
} elseif ($p > 8 and $p <= 9) {

$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);
$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);
$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);
$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);
$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);
$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);
$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);
$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);
$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);

		
} elseif ($p > 9 and $p <= 10) {

$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);
$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);
$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);
$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);
$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);
$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);
$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);
$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);
$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);
$pdf->AddPage();
$pdf->bill_header_p1($college_name1[0]);

		
} 

$pdf->Output();


?>

Youez - 2016 - github.com/yon3zu
LinuXploit