-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathfaculty_list.php
110 lines (84 loc) · 2.31 KB
/
faculty_list.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<?php
require "php/config.php";
require_once "php/functions.php";
$user = new login_registration_class();
require('plugins/fpdf/fpdf.php');
require('plugins/fpdf/rotation.php');
class PDF extends PDF_Rotate
{
function Header()
{
//Put the watermark
//$this->SetFont('Arial','B',50);
//$this->SetTextColor(255,192,203);
//$this->RotatedText(65,190,'A p p r o v e d',45);
}
function RotatedText($x, $y, $txt, $angle)
{
//Text rotated around its origin
$this->Rotate($angle,$x,$y);
$this->Text($x,$y,$txt);
$this->Rotate(0);
}
}
//$pdf = new FPDF();
$pdf=new PDF();
$pdf->AddPage();
$iubat='Uni Management Sys:-)' ;
$pdf->Image('img/logo.png',10,9,17);
$pdf->Ln();
$pdf-> Cell(20);
$pdf->SetFont('Times','',14);
$pdf->Write(5, $iubat);
$pdf->Ln();
$pdf-> Cell(22);
$pdf->SetFont('Times','',10);
$pdf->Write(4,'Developed by Md Abul Kalam');
$pdf->Ln();
$pdf-> Cell(20);
$pdf->SetFont('Times','',8);
$pdf->Write(4, 'Sector 10, Uttara Model Town, Dhaka 1230, Bangladesh');
$pdf->Ln();
$pdf-> Cell(20);
$pdf->SetFont('Times','',8);
$pdf->Write(4,'Phone: 01837237303, Email: tipu4142@gmail.com');
$pdf->Ln();
$pdf-> Cell(20);
$pdf->SetFont('Times','',8);
$pdf->Write(4,'Web: www.ojkalam.com');
$pdf-> Cell(20);
$pdf->SetFont('Times','',8);
$pdf->Write(5, '__________________________________________________________________________________________________________________________________');
$pdf->Ln();
$pdf->Ln();
$pdf-> Cell(85);
$pdf->SetFont('Times','U',10);
$pdf->Write(5, 'Faculty List');
$pdf->Ln();
$pdf->Ln(2);
$pdf-> Cell(5);
$pdf->SetFont('Times','B',8);
$pdf->Cell(8,6,'SL',1);
$pdf->Cell(40,6,'Faculty Name',1);
$pdf->Cell(40,6,'Contact',1);
$pdf->Cell(40,6,'Email',1);
$pdf->Cell(40,6,'Education',1);
$pdf->Ln();
$qry = $user->get_faculty();
$sl=1;
while($rec = $qry->fetch_assoc())
{
$pdf-> Cell(5);
$pdf->SetFont('Times','',8);
$pdf->Cell(8,20,$sl,1);
$pdf->Cell(40,20,$rec['name'],1);
$pdf->Cell(40,20,$rec['contact'],1);
$pdf->Cell(40,20,$rec['email'],1);
$pdf->Cell(40,20,$rec['education'],1);
$sl++;
$pdf->Ln();
}
$pdf->Ln();
$pdf->Ln();
$pdf->Output();
?>