Sh3ll
OdayForums


Server : Apache
System : Linux profile 3.10.0-1160.88.1.el7.x86_64 #1 SMP Tue Mar 7 15:41:52 UTC 2023 x86_64
User : apache ( 48)
PHP Version : 8.0.28
Disable Function : NONE
Directory :  /var/www/html/mmishra/erp-21-08-2019/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //var/www/html/mmishra/erp-21-08-2019/zz.php
<?php
include("views/erp_view.php");

		$pdf 		= new Receipt($institute, 'P', 'mm', 'A4');
		$pdf->SetDisplayMode(real, 'default');
		// create first page
		$pdf->AddPage();
		$pdf->SetTitle('ERP PDF Generator');
		$pdf->SetAuthor('IIIT-A');
		$pdf->SetAutoPageBreak(0);

		$pdf->SetFont('Times', 'U', 13);
		$pdf->Cell(0, 0, 'Enrollment Receipt - ' .date("Y"), 0, 1, 'C');
		$pdf->SetFont('Times', 'I', 11);
		$pdf->Cell(0, 12, '( Under ' .str_repeat('.', 20). ' Category )', 0, 1, 'C');
		$pdf->Ln(5);

		$pdf->Image('https://erp.iiita.ac.in/uploads/dummy.jpg', 175, 48, 22, 28);
		
		$pdf->SetFont('Times', 'B', 11);
		$pdf->Write(5, "Official Details:\n");
		$pdf->Ln(1);

		$pdf->SetFont('Times', '', 10);
		$y = 72;
		$pdf->SetXY(20, $y);
		$pdf->Cell(50, 5, 'Program Name', 0, 0, 'L');
		$pdf->SetXY(50, $y);
		$pdf->Cell(65, 5, ': ' .str_repeat('.', 35), 0, 1, 'L');
			
		$y += 5;
		$pdf->SetXY(20, $y);
		$pdf->Cell(50, 5, 'Batch Year', 0, 0, 'L');
		$pdf->SetXY(50, $y);
		$pdf->Cell(65, 5, ': ' .date("Y"). ' - ' . str_repeat('.', 10), 0, 1, 'L');
	
		$y += 5;
		$pdf->SetXY(20, $y);
		$pdf->Cell(50, 5, 'Enrollment No.', 0, 0, 'L');
		$pdf->SetXY(50, $y);
		$pdf->Cell(25, 5, ': ' .str_repeat('.', 35), 1, 1, 'L');

		$pdf->Ln(4);
		$pdf->SetFont('Times', 'B', 11);
		$pdf->Write(5, "Personal Details:\n");
		$pdf->Ln(1);

		$pdf->SetFont('Times', '', 10);
		$y += 15;
		$pdf->SetXY(20, $y);
		$pdf->Cell(50, 5, 'Student Name', 0, 0, 'L');
		$pdf->SetXY(50, $y);
		$pdf->Cell(65, 5, ': ' .str_repeat('.', 35), 0, 1, 'L');
			
		$y += 5;
		$pdf->SetXY(20, $y);
		$pdf->Cell(50, 5, 'Date of Birth', 0, 0, 'L');
		$pdf->SetXY(50, $y);
		$pdf->Cell(65, 5, ': ' .'..../..../..........', 0, 1, 'L');
	
		$y += 5;
		$pdf->SetXY(20, $y);
		$pdf->Cell(50, 5, 'Gender', 0, 0, 'L');
		$pdf->SetXY(50, $y);
		$pdf->Cell(65, 5, ': ' .str_repeat('.', 35), 0, 1, 'L');
	
		$y += 5;
		$pdf->SetXY(20, $y);
		$pdf->Cell(50, 5, 'Blood Group', 0, 0, 'L');
		$pdf->SetXY(50, $y);
		$pdf->Cell(65, 5, ': ' .str_repeat('.', 35), 0, 1, 'L');
	
		$y += 5;
		$pdf->SetXY(20, $y);
		$pdf->Cell(50, 5, 'Pwd Status', 0, 0, 'L');
		$pdf->SetXY(50, $y);
		$pdf->Cell(65, 5, ': ' .str_repeat('.', 35), 0, 1, 'L');
	
		$y += 5;
		$pdf->SetXY(20, $y);
		$pdf->Cell(50, 5, 'Category', 0, 0, 'L');
		$pdf->SetXY(50, $y);
		$pdf->Cell(65, 5, ': ' .str_repeat('.', 35), 0, 1, 'L');
	
		$y += 5;
		$pdf->SetXY(20, $y);
		$pdf->Cell(50, 5, 'Marital Status', 0, 0, 'L');
		$pdf->SetXY(50, $y);
		$pdf->Cell(65, 5, ': ' .str_repeat('.', 35), 0, 1, 'L');
	
		$y += 5;
		$pdf->SetXY(20, $y);
		$pdf->Cell(50, 5, 'Religion', 0, 0, 'L');
		$pdf->SetXY(50, $y);
		$pdf->Cell(65, 5, ': ' .str_repeat('.', 35), 0, 1, 'L');
	
		$y += 5;
		$pdf->SetXY(20, $y);
		$pdf->Cell(50, 5, 'Nationality', 0, 0, 'L');
		$pdf->SetXY(50, $y);
		$pdf->Cell(65, 5, ': ' .str_repeat('.', 35), 0, 1, 'L');

		$y += 5;
		$pdf->SetXY(20, $y);
		$pdf->Cell(50, 5, 'Aadhar No.', 0, 0, 'L');
		$pdf->SetXY(50, $y);
		$pdf->Cell(65, 5, ': ' .str_repeat('.', 35), 0, 1, 'L');

		$pdf->Ln(4);
		$pdf->SetFont('Times', 'B', 11);
		$pdf->Write(5, "Contact Details:\n");
		$pdf->Ln(1);

		$pdf->SetFont('Times', '', 10);
		$y += 15;
		$pdf->SetXY(20, $y);
		$pdf->Cell(50, 5, 'Phone No.', 0, 0, 'L');
		$pdf->SetXY(50, $y);
		$pdf->Cell(65, 5, ': ' .str_repeat('.', 35), 0, 1, 'L');
	
		$y += 5;
		$pdf->SetXY(20, $y);
		$pdf->Cell(50, 5, 'Email', 0, 0, 'L');
		$pdf->SetXY(50, $y);
		$pdf->Cell(65, 5, ': ' .str_repeat('.', 35), 0, 1, 'L');
	
		$y += 5;
		$pdf->SetXY(20, $y);
		$pdf->Cell(50, 5, 'Police Station', 0, 0, 'L');
		$pdf->SetXY(50, $y);
		$pdf->Cell(65, 5, ': ' .str_repeat('.', 35), 0, 1, 'L');
			
		$y += 5;
		$pdf->SetFont('Times', '', 9.5);
		$pdf->SetXY(20, $y);
		$pdf->Cell(50, 5, 'Communic. Address', 0, 0, 'L');
		$pdf->SetXY(50, $y);
		$pdf->Cell(65, 5, ': ' .str_repeat('.', 35), 0, 1, 'L');
	
		$y += 5;
		$pdf->SetXY(20, $y);
		$pdf->Cell(50, 5, 'Permanent Address', 0, 0, 'L');
		$pdf->SetXY(50, $y);
		$pdf->Cell(65, 5, ': ' .str_repeat('.', 35), 0, 1, 'L');

		$y += 5;
		$pdf->SetXY(50, $y);
		$pdf->Cell(65, 5, ' ' .str_repeat('.', 35), 0, 1, 'L');
	
		$pdf->Ln(4);
		$pdf->SetFont('Times', 'B', 11);
		$pdf->Write(5, "Parent's / Guardian's Details:\n");
		$pdf->Ln(1);

		$pdf->SetFont('Times', '', 9.5);
		$y += 15;
		$pdf->SetXY(20, $y);
		$pdf->Cell(50, 5, "Father's Name", 0, 0, 'L');
		$pdf->SetXY(50, $y);
		$pdf->Cell(65, 5, ': ' .str_repeat('.', 35). ' (Profession: ' .str_repeat('.', 20). ') Email: ' .str_repeat('.', 25), 0, 1, 'L');
	
		$y += 5;
		$pdf->SetXY(20, $y);
		$pdf->Cell(50, 5, 'Contact', 0, 0, 'L');
		$pdf->SetXY(50, $y);
		$pdf->Cell(65, 5, ': ' .str_repeat('.', 35). ', Phone: ' .str_repeat('.', 35), 0, 1, 'L');
	
		$y += 5;
		$pdf->SetXY(20, $y);
		$pdf->Cell(50, 5, "Mother's Name", 0, 0, 'L');
		$pdf->SetXY(50, $y);
		$pdf->Cell(65, 5, ': ' .str_repeat('.', 35). ' (Profession: ' .str_repeat('.', 20). '), Email: ' .str_repeat('.', 25), 0, 1, 'L');
	
		$y += 5;
		$pdf->SetXY(20, $y);
		$pdf->Cell(50, 5, 'Contact', 0, 0, 'L');
		$pdf->SetXY(50, $y);
		$pdf->Cell(65, 5, ': ' .str_repeat('.', 35). ', Phone: ' .str_repeat('.', 35), 0, 1, 'L');

		$y += 5;
		$pdf->SetXY(20, $y);
		$pdf->Cell(50, 5, "Guardian's Name", 0, 0, 'L');
		$pdf->SetXY(50, $y);
		$pdf->Cell(65, 5, ': ' .str_repeat('.', 35). ' (Profession: ' .str_repeat('.', 20). ') Relation: ' .str_repeat('.', 25). ', Email: ' .$data['guardianEmail'], 0, 1, 'L');
	
		$y += 5;
		$pdf->SetXY(20, $y);
		$pdf->Cell(50, 5, 'Contact', 0, 0, 'L');
		$pdf->SetXY(50, $y);
		$pdf->Cell(65, 5, ': ' .str_repeat('.', 35). ', Phone: ' .str_repeat('.', 35), 0, 1, 'L');

		$pdf->Ln(4);
		$pdf->SetFont('Times', 'B', 11);
		$pdf->Write(5, "Academic Details:\n");
		$pdf->Ln(1);

		$pdf->SetFont('Times', '', 10);
		$y += 15;
		$pdf->SetXY(20, $y);
		$pdf->Cell(180, 5, '[ X Grade/% - ' .str_repeat('.', 15). ', Year - ' .str_repeat('.', 15). ', Board - ' .str_repeat('.', 35). ' ]', 0, 1, 'L');
		$y += 5;
		$pdf->SetXY(20, $y);
		$pdf->Cell(180, 5, '[ XII Grade/% - ' .str_repeat('.', 15). ', Year - ' .str_repeat('.', 15). ', Board - ' .str_repeat('.', 35). ' ]', 0, 1, 'L');
		$y += 5;
		if ($program['degreeLevel'] != 'UG') {
			$pdf->SetXY(20, $y);
			$pdf->Cell(180, 5, '[ UG Grade/% - ' .str_repeat('.', 15). ', Year - ' .str_repeat('.', 15). ', Institute - ' .str_repeat('.', 35). ' ] ', 0, 1, 'L');
			if ($data['pgYear']) {
				$y += 5;
				$pdf->SetXY(20, $y);
				$pdf->Cell(180, 5, '[ PG Grade/% - ' .str_repeat('.', 15). ', Year - ' .str_repeat('.', 15). ', Institute - ' .str_repeat('.', 35). ' ]', 0, 1, 'L');
			}
		}
		$pdf->SetFont('Times', 'B', 11);
		$pdf->SetXY(110, 75);
		$pdf->Cell(20, 5, "Documents Submitted:\n", 0, 0, 'L');

		for($i =0; $i < 20; $i++) {
			$i++;
			$docs .= ($i < 10 ? "0$i" : "$i") .") " .str_repeat('.', 35). "\n";
		}
		$pdf->SetFont('Times', '', 8.5);
		$pdf->SetXY(110, 80);
		$pdf->MultiCell(87, 4, $docs, 1, 'L');

		$pdf->SetFont('Times', 'B', 10);
		$pdf->SetXY(10, 267);
		$pdf->Cell(0, 10, '[ Seal & Signatures ]', 0, 1, 'C');
		$pdf->Line(0, 275, 500, 275);

		$pdf->SetFont('Helvetica', 'B', 9);
		$pdf->SetXY(20, 280);
		$pdf->Write(9, '(Student)');
		$pdf->SetXY(90, 280);
		$pdf->Write(9, '(Parent/Guardian)');
		$pdf->SetXY(165, 280);
		$pdf->Write(9, '(AAA Office)');
		$pdf->Line(0, 288, 500, 288);

		$pdf->SetFont('Helvetica', 'I', 6.5);
		$pdf->SetXY(150, 288);
		$pdf->Cell(0, 5, 'Processed by: ' .str_repeat('.', 35). ' (dated: ..../..../..........)', 0, 1, 'R');
		
		$filename = __DIR__ ."uploads/enrollment-format-" .date("Y"). ".pdf";
		$pdf->Output($filename, 'F');

		$str .= "<div align='center'>
		<object data='uploads/enrollment-format-" .date("Y"). ".pdf#page=1' type='application/pdf' title='Enrollment Receipt' width='100%' height='650px'>
			<embed src='uploads/enrollment-format-" .date("Y"). ".pdf#page=1' width='100%' height='650' type='application/pdf'>
				<p>This browser does not support PDFs. Please download the PDF to view it:<br><br><a href='../uploads/receipt-" .$enrolmentNo. ".pdf'>Download PDF</a></p>
			</embed>
		</object>
		</div>";


?>

ZeroDay Forums Mini