Server IP : 103.191.208.50 / Your IP : 216.73.216.53 Web Server : LiteSpeed System : Linux orion.herosite.pro 4.18.0-553.53.1.lve.el8.x86_64 #1 SMP Wed May 28 17:01:02 UTC 2025 x86_64 User : celkcksm ( 1031) PHP Version : 7.4.33 Disable Function : show_source, system, shell_exec, passthru, popen, exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0750) : /home/celkcksm/websites/vtti.e-campus.co.in/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php include ("include/makeSession.php"); require('fpdf/fpdf.php'); $pdf = new FPDF(); $pdf->AddPage('P'); $course_id=$_POST['course_id']; $academic_session = $_POST['academicyear_id']; //get all records $allrs = mysqli_query($con,"select * from admission_enquiry_form where course='".$course_id."' and academicyear='".$academic_session."'"); //echo "select * from admission_enquiry_form where course='".$course_id."' and academicyear='".$academic_session."' order by id desc";exit; $i = 1; while($ressss = mysqli_fetch_array($allrs)){ //if(!empty($ressss['student_id'])){ $student_id = $ressss['student_id'] ; $studentQ=mysqli_query($con,"select admission_enquiry_form.photos,admission_enquiry_form.email,admission_enquiry_form.dob,admission_enquiry_form.address,admission_enquiry_form.name,admission_enquiry_form.fname, admission_enquiry_form.student_id, admission_enquiry_form.mobileno,course.c_name,commenacademicyear.academictitle,commenacademicyear.academicenddate from admission_enquiry_form left join course on course.id=admission_enquiry_form.course left join commenacademicyear on commenacademicyear.id=admission_enquiry_form.academicyear where student_id='".$student_id."'"); $studentR=mysqli_fetch_array($studentQ); $collage=mysqli_query($con,"select * from collageinfo" ); $collage=mysqli_fetch_array($collage); $addressss = explode(",",ucwords($collage['collageaddr'])); //print_r($ext); //echo "<br>"; //exit; if($i==1){ /*---------------------------1st BLOCK-------------------------- */ $pdf->SetDrawColor(17,12,162); $pdf->cell(89,51,"",1,0,'C'); $pdf->SetLineWidth(0.1); $pdf->SetFillColor(17,12,162); $pdf->RoundedRect(10,9,89, 12, 1.5,'12', 'DF'); $pdf->SetTextColor(255,255,255); $pdf->SetFont('Arial','B',10.5); $pdf->text(12,15,$collage['collagename'],'C'); $pdf->text(45,20,"ESTD: 2012",'C'); $pdf->SetTextColor(17,12,162); $pdf->SetFont('Arial','',6.7); $pdf->text(12,25.5,"AT: AKALPOUSH, P.O-AKALPOUSH, P.S-DEBRA, DIST-PASCHIM MEDINIPUR",'C'); $pdf->SetDrawColor(17,12,162); $pdf->SetFont('Arial','B',10); $pdf->SetLineWidth(0.3); $pdf->Line(10,27,99,27); $pdf->SetTextColor(216,88,14); $pdf->SetFont('Arial','B',10.5); $pdf->text(13,31.5,$studentR['name'],'L'); $pdf->ln(22.5); $pdf->SetTextColor(17,12,162); $pdf->SetDrawColor(255,255,255); $pdf->SetFont('Arial','B',8); $pdf->SetWidths(array(68)); $pdf->cell(2); $pdf->Row(array(trim($studentR['address']))); $pdf->SetFillColor(255,255,255); $pdf->SetDrawColor(17,12,162); $pdf->RoundedRect(79,32,20, 23, .5,'1234', 'DF'); $pdf->SetTextColor(216,88,14); $pdf->SetFont('Arial','B',7.5); //$pdf->text(10,31.5,$studentR['name'],'L'); $pdf->cell(2); $pdf->cell(20,3,"Date of Birth:".$studentR['dob'],0,1,'L'); $pdf->cell(2); $pdf->cell(20,3,"Course:".$studentR['c_name']."(".$studentR['academictitle'].")",0,1,'L'); $pdf->cell(2); $pdf->cell(20,3,"Student ID:".$studentR['student_id'],0,1,'L'); $pdf->cell(2); $pdf->cell(20,3,"Mob:".$studentR['mobileno'],0,1,'L'); //$pdf->cell(20,3,"Email:".$studentR['email'],0,1,'L'); $pdf->SetTextColor(17,12,162); $pdf->SetFont('Times','I',8); $pdf->text(11,57,"Candidate Signature"); $pdf->text(50,57,"Secretary Signature"); //$pdf->text(13,63,"Student Signature",'L'); $pdf->SetFillColor(17,12,162); $pdf->SetDrawColor(17,12,162); $pdf->RoundedRect(10,59,89, 5, 1.5,'34', 'DF'); /*---------------------------End of 1st BLOCK-------------------------- */ //$pdf->cell(10); } if($i == 2){ /*---------------------------2nd BLOCK-------------------------- */ //$pdf->cell(10); $pdf->SetDrawColor(17,12,162); $pdf->line(105,10,194,10); $pdf->line(105,10,105,61); $pdf->line(194,10,194,61); $pdf->line(194,10,194,61); $pdf->SetLineWidth(0.1); $pdf->SetFillColor(17,12,162); $pdf->RoundedRect(105,9,89, 12, 1.5,'12', 'DF'); $pdf->RoundedRect(105,59,89, 5, 1.5,'34', 'DF'); $pdf->SetTextColor(255,255,255); $pdf->SetFont('Arial','B',10.5); $pdf->text(106,15,$collage['collagename'],'C'); $pdf->text(138,20,"ESTD: 2012",'C'); $pdf->SetTextColor(17,12,162); $pdf->SetFont('Arial','',6.7); $pdf->text(106,25.5,"AT: AKALPOUSH, P.O-AKALPOUSH, P.S-DEBRA, DIST-PASCHIM MEDINIPUR",'C'); $pdf->SetDrawColor(17,12,162); $pdf->SetFont('Arial','B',10); $pdf->SetLineWidth(0.3); $pdf->Line(105,27,194,27); $pdf->SetTextColor(216,88,14); $pdf->SetFont('Arial','B',10.5); $pdf->text(108,31.5,$studentR['name'],'L'); //$pdf->ln(22.5); $pdf->SetTextColor(17,12,162); $pdf->SetDrawColor(255,255,255); $pdf->SetFont('Arial','B',8); $pdf->SetWidths(array(68)); $pdf->cell(120); //$pdf->Row(array(trim($studentR['address']))); $pdf->text(108,34.5,substr($studentR['address'],0,38),'L'); $pdf->text(108,37.5,substr($studentR['address'],38,44),'L'); if(strlen($studentR['address'])>130){ $pdf->text(108,40.5,substr($studentR['address'],89,43),'L'); } $pdf->SetFillColor(255,255,255); $pdf->SetDrawColor(17,12,162); $pdf->RoundedRect(174,32,20, 23, .5,'1234', 'DF'); if(strlen($studentR['address'])>130){ $pdf->SetTextColor(216,88,14); $pdf->SetFont('Arial','B',7.5); //$pdf->text(10,31.5,$studentR['name'],'L'); //$pdf->cell(2); $pdf->text(108,43.5,"Date of Birtha:".$studentR['dob']); //$pdf->cell(2); $pdf->text(108,45.5,"Course:".$studentR['c_name']."(".$studentR['academictitle'].")"); //$pdf->cell(2); $pdf->text(108,47.5,"Student ID:".$studentR['student_id']); //$pdf->cell(2); $pdf->text(108,49.5,"Mob:".$studentR['mobileno']); }else{ $pdf->SetTextColor(216,88,14); $pdf->SetFont('Arial','B',7.5); //$pdf->text(10,31.5,$studentR['name'],'L'); //$pdf->cell(2); $pdf->text(108,40.5,"Date of Birth:".$studentR['dob']); //$pdf->cell(2); $pdf->text(108,43.5,"Course:".$studentR['c_name']."(".$studentR['academictitle'].")"); //$pdf->cell(2); $pdf->text(108,46.5,"Student ID:".$studentR['student_id']); //$pdf->cell(2); $pdf->text(108,49.5,"Mob:".$studentR['mobileno']); } $pdf->SetTextColor(17,12,162); $pdf->SetFont('Times','I',8); $pdf->text(106,57,"Candidate Signature"); $pdf->text(145,57,"Secretary Signature"); $pdf->SetFillColor(255,255,255); $pdf->SetDrawColor(17,12,162); //$pdf->RoundedRect(79,32,20, 23, .5,'1234', 'DF'); } if($i==3){ $pdf->SetDrawColor(17,12,162); $pdf->line(10,71,10,129); $pdf->line(99,71,99,129); //$pdf->line(194,10,194,61); //$pdf->line(194,10,194,61); $pdf->SetLineWidth(0.1); $pdf->SetFillColor(17,12,162); $pdf->RoundedRect(10,70,89, 12, 1.5,'12', 'DF'); $pdf->RoundedRect(10,129,89, 5, 1.5,'34', 'DF'); $pdf->SetTextColor(255,255,255); $pdf->SetFont('Arial','B',10.5); $pdf->text(12,76,$collage['collagename'],'C'); $pdf->text(45,81,"ESTD: 2012",'C'); $pdf->SetTextColor(17,12,162); $pdf->SetFont('Arial','',6.7); $pdf->text(12,86.5,"AT: AKALPOUSH, P.O-AKALPOUSH, P.S-DEBRA, DIST-PASCHIM MEDINIPUR",'C'); $pdf->SetDrawColor(17,12,162); $pdf->SetFont('Arial','B',10); $pdf->SetLineWidth(0.3); $pdf->Line(10,88,99,88); $pdf->SetTextColor(216,88,14); $pdf->SetFont('Arial','B',10.5); $pdf->text(13,91.5,$studentR['name'],'L'); $pdf->SetTextColor(17,12,162); $pdf->SetDrawColor(255,255,255); $pdf->SetFont('Arial','B',8); $pdf->SetWidths(array(68)); $pdf->cell(120); //$pdf->Row(array(trim($studentR['address']))); $pdf->text(13,96.5,substr($studentR['address'],0,38),'L'); $pdf->text(13,99.5,substr($studentR['address'],38,44),'L'); if(strlen($studentR['address'])>130){ $pdf->text(13,102.5,substr($studentR['address'],89,43),'L'); } $pdf->SetFillColor(255,255,255); $pdf->SetDrawColor(17,12,162); //$pdf->RoundedRect(174,32,20, 23, .5,'1234', 'DF'); if(strlen($studentR['address'])>130){ $pdf->SetTextColor(216,88,14); $pdf->SetFont('Arial','B',7.5); //$pdf->text(10,31.5,$studentR['name'],'L'); //$pdf->cell(2); $pdf->text(13,105.5,"Date of Birtha:".$studentR['dob']); //$pdf->cell(2); $pdf->text(13,108.5,"Course:".$studentR['c_name']."(".$studentR['academictitle'].")"); //$pdf->cell(2); $pdf->text(13,111.5,"Student ID:".$studentR['student_id']); //$pdf->cell(2); $pdf->text(13,114.5,"Mob:".$studentR['mobileno']); }else{ $pdf->SetTextColor(216,88,14); $pdf->SetFont('Arial','B',7.5); //$pdf->text(10,31.5,$studentR['name'],'L'); //$pdf->cell(2); $pdf->text(13,105.5,"Date of Birth:".$studentR['dob']); //$pdf->cell(2); $pdf->text(13,108.5,"Course:".$studentR['c_name']."(".$studentR['academictitle'].")"); //$pdf->cell(2); $pdf->text(13,111.5,"Student ID:".$studentR['student_id']); //$pdf->cell(2); $pdf->text(13,114.5,"Mob:".$studentR['mobileno']); } $pdf->SetTextColor(17,12,162); $pdf->SetFont('Times','I',8); $pdf->text(12,127,"Candidate Signature"); $pdf->text(45,127,"Secretary Signature"); $pdf->SetFillColor(255,255,255); $pdf->SetDrawColor(17,12,162); $pdf->RoundedRect(79,100,20, 23, .5,'1234', 'DF'); } if($i==4){ $pdf->SetDrawColor(17,12,162); $pdf->line(105,71,105,129); $pdf->line(194,71,194,129); //$pdf->line(194,10,194,61); //$pdf->line(194,10,194,61); $pdf->SetLineWidth(0.1); $pdf->SetFillColor(17,12,162); $pdf->RoundedRect(105,70,89, 12, 1.5,'12', 'DF'); $pdf->RoundedRect(105,129,89, 5, 1.5,'34', 'DF'); $pdf->SetTextColor(255,255,255); $pdf->SetFont('Arial','B',10.5); $pdf->text(106,76,$collage['collagename'],'C'); $pdf->text(145,81,"ESTD: 2012",'C'); $pdf->SetTextColor(17,12,162); $pdf->SetFont('Arial','',6.7); $pdf->text(106,86.5,"AT: AKALPOUSH, P.O-AKALPOUSH, P.S-DEBRA, DIST-PASCHIM MEDINIPUR",'C'); $pdf->SetDrawColor(17,12,162); $pdf->SetFont('Arial','B',10); $pdf->SetLineWidth(0.3); $pdf->Line(105,88,194,88); $pdf->SetTextColor(216,88,14); $pdf->SetFont('Arial','B',10.5); $pdf->text(112,91.5,$studentR['name'],'L'); $pdf->SetTextColor(17,12,162); $pdf->SetDrawColor(255,255,255); $pdf->SetFont('Arial','B',8); $pdf->SetWidths(array(68)); $pdf->cell(120); //$pdf->Row(array(trim($studentR['address']))); $pdf->text(112,96.5,substr($studentR['address'],0,38),'L'); $pdf->text(112,99.5,substr($studentR['address'],38,44),'L'); if(strlen($studentR['address'])>130){ $pdf->text(112,102.5,substr($studentR['address'],89,43),'L'); } $pdf->SetFillColor(255,255,255); $pdf->SetDrawColor(17,12,162); $pdf->RoundedRect(174,100,20, 23, .5,'1234', 'DF'); if(strlen($studentR['address'])>130){ $pdf->SetTextColor(216,88,14); $pdf->SetFont('Arial','B',7.5); //$pdf->text(10,31.5,$studentR['name'],'L'); //$pdf->cell(2); $pdf->text(112,105.5,"Date of Birtha:".$studentR['dob']); //$pdf->cell(2); $pdf->text(112,108.5,"Course:".$studentR['c_name']."(".$studentR['academictitle'].")"); //$pdf->cell(2); $pdf->text(112,111.5,"Student ID:".$studentR['student_id']); //$pdf->cell(2); $pdf->text(112,114.5,"Mob:".$studentR['mobileno']); }else{ $pdf->SetTextColor(216,88,14); $pdf->SetFont('Arial','B',7.5); //$pdf->text(10,31.5,$studentR['name'],'L'); //$pdf->cell(2); $pdf->text(112,105.5,"Date of Birth:".$studentR['dob']); //$pdf->cell(2); $pdf->text(112,108.5,"Course:".$studentR['c_name']."(".$studentR['academictitle'].")"); //$pdf->cell(2); $pdf->text(112,111.5,"Student ID:".$studentR['student_id']); //$pdf->cell(2); $pdf->text(112,114.5,"Mob:".$studentR['mobileno']); } $pdf->SetTextColor(17,12,162); $pdf->SetFont('Times','I',8); $pdf->text(112,127,"Candidate Signature"); $pdf->text(145,127,"Secretary Signature"); $pdf->SetFillColor(255,255,255); $pdf->SetDrawColor(17,12,162); //$pdf->RoundedRect(100,100,20, 23, .5,'1234', 'DF'); } if($i == 5 ){ $pdf->SetDrawColor(17,12,162); $pdf->line(10,140,10,198); $pdf->line(99,140,99,198); //$pdf->line(194,10,194,61); //$pdf->line(194,10,194,61); $pdf->SetLineWidth(0.1); $pdf->SetFillColor(17,12,162); $pdf->RoundedRect(10,139,89, 12, 1.5,'12', 'DF'); $pdf->RoundedRect(10,198,89, 5, 1.5,'34', 'DF'); $pdf->SetTextColor(255,255,255); $pdf->SetFont('Arial','B',10.5); $pdf->text(12,145,$collage['collagename'],'C'); $pdf->text(45,150,"ESTD: 2012",'C'); $pdf->SetTextColor(17,12,162); $pdf->SetFont('Arial','',6.7); $pdf->text(12,155.5,"AT: AKALPOUSH, P.O-AKALPOUSH, P.S-DEBRA, DIST-PASCHIM MEDINIPUR",'C'); $pdf->SetDrawColor(17,12,162); $pdf->SetFont('Arial','B',10); $pdf->SetLineWidth(0.3); $pdf->Line(10,157,99,157); $pdf->SetTextColor(216,88,14); $pdf->SetFont('Arial','B',10.5); $pdf->SetTextColor(216,88,14); $pdf->SetFont('Arial','B',10.5); $pdf->text(13,162.5,$studentR['name'],'L'); $pdf->SetTextColor(17,12,162); $pdf->SetDrawColor(255,255,255); $pdf->SetFont('Arial','B',8); $pdf->SetWidths(array(68)); $pdf->cell(120); //$pdf->Row(array(trim($studentR['address']))); $pdf->text(13,168.5,substr($studentR['address'],0,38),'L'); $pdf->text(13,171.5,substr($studentR['address'],38,44),'L'); if(strlen($studentR['address'])>130){ $pdf->text(13,174.5,substr($studentR['address'],89,43),'L'); } $pdf->SetFillColor(255,255,255); $pdf->SetDrawColor(17,12,162); $pdf->RoundedRect(79,172,20, 23, .5,'1234', 'DF'); if(strlen($studentR['address'])>130){ $pdf->SetTextColor(216,88,14); $pdf->SetFont('Arial','B',7.5); //$pdf->text(10,31.5,$studentR['name'],'L'); //$pdf->cell(2); $pdf->text(13,177.5,"Date of Birtha:".$studentR['dob']); //$pdf->cell(2); $pdf->text(13,180.5,"Course:".$studentR['c_name']."(".$studentR['academictitle'].")"); //$pdf->cell(2); $pdf->text(13,183.5,"Student ID:".$studentR['student_id']); //$pdf->cell(2); $pdf->text(13,186.5,"Mob:".$studentR['mobileno']); }else{ $pdf->SetTextColor(216,88,14); $pdf->SetFont('Arial','B',7.5); //$pdf->text(10,31.5,$studentR['name'],'L'); //$pdf->cell(2); $pdf->text(13,174.5,"Date of Birth:".$studentR['dob']); //$pdf->cell(2); $pdf->text(13,177.5,"Course:".$studentR['c_name']."(".$studentR['academictitle'].")"); //$pdf->cell(2); $pdf->text(13,180.5,"Student ID:".$studentR['student_id']); //$pdf->cell(2); $pdf->text(13,183.5,"Mob:".$studentR['mobileno']); } $pdf->SetTextColor(17,12,162); $pdf->SetFont('Times','I',8); $pdf->text(12,196,"Candidate Signature"); $pdf->text(45,196,"Secretary Signature"); $pdf->SetFillColor(255,255,255); $pdf->SetDrawColor(17,12,162); //$pdf->RoundedRect(79,100,20, 23, .5,'1234', 'DF'); } if($i == 6 ){ // $i=0; $pdf->SetDrawColor(17,12,162); $pdf->line(105,140,105,198); $pdf->line(194,140,194,198); //$pdf->line(194,10,194,61); //$pdf->line(194,10,194,61); $pdf->SetLineWidth(0.1); $pdf->SetFillColor(17,12,162); $pdf->RoundedRect(105,139,89, 12, 1.5,'12', 'DF'); $pdf->RoundedRect(105,198,89, 5, 1.5,'34', 'DF'); $pdf->SetTextColor(255,255,255); $pdf->SetFont('Arial','B',10.5); $pdf->text(106,145,$collage['collagename'],'C'); $pdf->text(145,150,"ESTD: 2012",'C'); $pdf->SetTextColor(17,12,162); $pdf->SetFont('Arial','',6.7); $pdf->text(106,155.5,"AT: AKALPOUSH, P.O-AKALPOUSH, P.S-DEBRA, DIST-PASCHIM MEDINIPUR",'C'); $pdf->SetDrawColor(17,12,162); $pdf->SetFont('Arial','B',10); $pdf->SetLineWidth(0.3); $pdf->Line(105,157,194,157); $pdf->SetTextColor(216,88,14); $pdf->SetFont('Arial','B',10.5); $pdf->text(112,160.5,$studentR['name'],'L'); $pdf->SetTextColor(17,12,162); $pdf->SetDrawColor(255,255,255); $pdf->SetFont('Arial','B',8); $pdf->SetWidths(array(68)); $pdf->cell(120); //$pdf->Row(array(trim($studentR['address']))); $pdf->text(112,163.5,substr($studentR['address'],0,38),'L'); $pdf->text(112,166.5,substr($studentR['address'],38,50),'L'); if(strlen($studentR['address'])>130){ $pdf->text(112,169.5,substr($studentR['address'],89,43),'L'); } $pdf->SetFillColor(255,255,255); $pdf->SetDrawColor(17,12,162); $pdf->RoundedRect(174,170,20, 23, .5,'1234', 'DF'); if(strlen($studentR['address'])>130){ $pdf->SetTextColor(216,88,14); $pdf->SetFont('Arial','B',7.5); //$pdf->text(10,31.5,$studentR['name'],'L'); //$pdf->cell(2); $pdf->text(112,172.5,"Date of Birtha:".$studentR['dob']); //$pdf->cell(2); $pdf->text(112,175.5,"Course:".$studentR['c_name']."(".$studentR['academictitle'].")"); //$pdf->cell(2); $pdf->text(112,178.5,"Student ID:".$studentR['student_id']); //$pdf->cell(2); $pdf->text(112,181.5,"Mob:".$studentR['mobileno']); }else{ $pdf->SetTextColor(216,88,14); $pdf->SetFont('Arial','B',7.5); //$pdf->text(10,31.5,$studentR['name'],'L'); //$pdf->cell(2); $pdf->text(112,172.5,"Date of Birth:".$studentR['dob']); //$pdf->cell(2); $pdf->text(112,175.5,"Course:".$studentR['c_name']."(".$studentR['academictitle'].")"); //$pdf->cell(2); $pdf->text(112,178.5,"Student ID:".$studentR['student_id']); //$pdf->cell(2); $pdf->text(112,181.5,"Mob:".$studentR['mobileno']); } $pdf->SetTextColor(17,12,162); $pdf->SetFont('Times','I',8); $pdf->text(112,194,"Candidate Signature"); $pdf->text(145,194,"Secretary Signature"); $pdf->SetFillColor(255,255,255); $pdf->SetDrawColor(17,12,162); //$pdf->RoundedRect(100,100,20, 23, .5,'1234', 'DF'); } if($i == 7 ){ $pdf->SetDrawColor(17,12,162); $pdf->line(10,209,10,267); $pdf->line(99,209,99,267); //$pdf->line(194,10,194,61); //$pdf->line(194,10,194,61); $pdf->SetLineWidth(0.1); $pdf->SetFillColor(17,12,162); $pdf->RoundedRect(10,208,89, 12, 1.5,'12', 'DF'); $pdf->RoundedRect(10,267,89, 5, 1.5,'34', 'DF'); $pdf->SetTextColor(255,255,255); $pdf->SetFont('Arial','B',10.5); $pdf->text(12,214,$collage['collagename'],'C'); $pdf->text(45,219,"ESTD: 2012",'C'); $pdf->SetTextColor(17,12,162); $pdf->SetFont('Arial','',6.7); $pdf->text(12,224.5,"AT: AKALPOUSH, P.O-AKALPOUSH, P.S-DEBRA, DIST-PASCHIM MEDINIPUR",'C'); $pdf->SetDrawColor(17,12,162); $pdf->SetFont('Arial','B',10); $pdf->SetLineWidth(0.3); $pdf->Line(10,226,99,226); $pdf->SetTextColor(216,88,14); $pdf->SetFont('Arial','B',10.5); $pdf->text(13,231.5,$studentR['name'],'L'); $pdf->SetTextColor(17,12,162); $pdf->SetDrawColor(255,255,255); $pdf->SetFont('Arial','B',8); $pdf->SetWidths(array(68)); $pdf->cell(120); //$pdf->Row(array(trim($studentR['address']))); $pdf->text(13,236.5,substr($studentR['address'],0,38),'L'); $pdf->text(13,239.5,substr($studentR['address'],38,55),'L'); if(strlen($studentR['address'])>130){ $pdf->text(13,242.5,substr($studentR['address'],89,43),'L'); } $pdf->SetFillColor(255,255,255); $pdf->SetDrawColor(17,12,162); $pdf->RoundedRect(79,240,20, 23, .5,'1234', 'DF'); if(strlen($studentR['address'])>130){ $pdf->SetTextColor(216,88,14); $pdf->SetFont('Arial','B',7.5); //$pdf->text(10,31.5,$studentR['name'],'L'); //$pdf->cell(2); $pdf->text(13,245.5,"Date of Birtha:".$studentR['dob']); //$pdf->cell(2); $pdf->text(13,248.5,"Course:".$studentR['c_name']."(".$studentR['academictitle'].")"); //$pdf->cell(2); $pdf->text(13,251.5,"Student ID:".$studentR['student_id']); //$pdf->cell(2); $pdf->text(13,254.5,"Mob:".$studentR['mobileno']); }else{ $pdf->SetTextColor(216,88,14); $pdf->SetFont('Arial','B',7.5); //$pdf->text(10,31.5,$studentR['name'],'L'); //$pdf->cell(2); $pdf->text(13,242.5,"Date of Birth:".$studentR['dob']); //$pdf->cell(2); $pdf->text(13,245.5,"Course:".$studentR['c_name']."(".$studentR['academictitle'].")"); //$pdf->cell(2); $pdf->text(13,248.5,"Student ID:".$studentR['student_id']); //$pdf->cell(2); $pdf->text(13,251.5,"Mob:".$studentR['mobileno']); } $pdf->SetTextColor(17,12,162); $pdf->SetFont('Times','I',8); $pdf->text(12,264,"Candidate Signature"); $pdf->text(45,264,"Secretary Signature"); $pdf->SetFillColor(255,255,255); $pdf->SetDrawColor(17,12,162); //$pdf->RoundedRect(79,100,20, 23, .5,'1234', 'DF'); } if($i == 8 ){ // $i=0; $pdf->SetDrawColor(17,12,162); $pdf->line(105,209,105,267); $pdf->line(194,209,194,267); //$pdf->line(194,10,194,61); //$pdf->line(194,10,194,61); $pdf->SetLineWidth(0.1); $pdf->SetFillColor(17,12,162); $pdf->RoundedRect(105,208,89, 12, 1.5,'12', 'DF'); $pdf->RoundedRect(105,267,89, 5, 1.5,'34', 'DF'); $pdf->SetTextColor(255,255,255); $pdf->SetFont('Arial','B',10.5); $pdf->text(106,214,$collage['collagename'],'C'); $pdf->text(145,219,"ESTD: 2012",'C'); $pdf->SetTextColor(17,12,162); $pdf->SetFont('Arial','',6.7); $pdf->text(106,224.5,"AT: AKALPOUSH, P.O-AKALPOUSH, P.S-DEBRA, DIST-PASCHIM MEDINIPUR",'C'); $pdf->SetDrawColor(17,12,162); $pdf->SetFont('Arial','B',10); $pdf->SetLineWidth(0.3); $pdf->Line(105,226,194,226); $pdf->SetTextColor(216,88,14); $pdf->SetFont('Arial','B',10.5); $pdf->text(112,229.5,$studentR['name'],'L'); $pdf->SetTextColor(17,12,162); $pdf->SetDrawColor(255,255,255); $pdf->SetFont('Arial','B',8); $pdf->SetWidths(array(68)); $pdf->cell(120); //$pdf->Row(array(trim($studentR['address']))); $pdf->text(112,235.5,substr($studentR['address'],0,38),'L'); $pdf->text(112,238.5,substr($studentR['address'],38,44),'L'); if(strlen($studentR['address'])>130){ $pdf->text(112,241.5,substr($studentR['address'],89,43),'L'); } $pdf->SetFillColor(255,255,255); $pdf->SetDrawColor(17,12,162); $pdf->RoundedRect(174,239,20, 23, .5,'1234', 'DF'); if(strlen($studentR['address'])>130){ $pdf->SetTextColor(216,88,14); $pdf->SetFont('Arial','B',7.5); //$pdf->text(10,31.5,$studentR['name'],'L'); //$pdf->cell(2); $pdf->text(112,241.5,"Date of Birtha:".$studentR['dob']); //$pdf->cell(2); $pdf->text(112,244.5,"Course:".$studentR['c_name']."(".$studentR['academictitle'].")"); //$pdf->cell(2); $pdf->text(112,247.5,"Student ID:".$studentR['student_id']); //$pdf->cell(2); $pdf->text(112,250.5,"Mob:".$studentR['mobileno']); }else{ $pdf->SetTextColor(216,88,14); $pdf->SetFont('Arial','B',7.5); //$pdf->text(10,31.5,$studentR['name'],'L'); //$pdf->cell(2); $pdf->text(112,241.5,"Date of Birth:".$studentR['dob']); //$pdf->cell(2); $pdf->text(112,244.5,"Course:".$studentR['c_name']."(".$studentR['academictitle'].")"); //$pdf->cell(2); $pdf->text(112,247.5,"Student ID:".$studentR['student_id']); //$pdf->cell(2); $pdf->text(112,250.5,"Mob:".$studentR['mobileno']); } $pdf->SetTextColor(17,12,162); $pdf->SetFont('Times','I',8); $pdf->text(112,263,"Candidate Signature"); $pdf->text(145,263,"Secretary Signature"); $pdf->SetFillColor(255,255,255); $pdf->SetDrawColor(17,12,162); //$pdf->RoundedRect(100,100,20, 23, .5,'1234', 'DF'); $i=0; $pdf->AddPage('P'); } $i++; } $pdf->Output(); ?>