~rmwenyekheri/sarisiae/trunk

« back to all changes in this revision

Viewing changes to academics/includes/udsmtemplate.php

  • Committer: NDIMBOJr
  • Date: 2015-08-13 10:09:13 UTC
  • Revision ID: rmwenyekheri@gmail.com-20150813100913-wa5o4k7vvarmzl4n
initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
        if ($userFaculty<>'44'){
 
3
        //echo '<span class="style1"><br><b>Privilege Violation Error!</b><br>You have no Rights to Print a <b>Candidate Trascript</b><br>-ZALONGWA DATABASE ADMINISTRATOR</span>';
 
4
        //echo '<meta http-equiv = "refresh" content ="4; url = lecturerTranscript.php">';
 
5
        //exit;
 
6
        }
 
7
        #signatory
 
8
        $signatory = 'Registrar                                           Date                                          Director of Studies';
 
9
 
 
10
        $pdf->image('images/logo.jpg', 280, 50);   
 
11
        $pdf->setFont('Arial', 'I', 8);     
 
12
        $pdf->text(530.28, 820.89, 'Page '.$pg);   
 
13
        $pdf->setFont('Arial', 'B', 21);   
 
14
        //$pdf->text(66, 50, strtoupper($org));   
 
15
        $pdf->text(66, 50, 'THE INSTITUTE OF FINANCE MANAGEMENT');    
 
16
        $pdf->setFillColor('rgb', 0, 0, 0);  
 
17
        $pdf->setFont('Arial', 'I', 8);     
 
18
        $pdf->text(50, 820.89, 'Dar-es-Salaam, '.$today = date("d-m-Y H:i:s"));   
 
19
        $pdf->text(300, 820.89, $copycount);   
 
20
 
 
21
        $yadd=85;
 
22
        #University Addresses
 
23
        $post = 'P. O. Box 3918';
 
24
        $website = 'http://www.ifm.ac.tz';
 
25
        $pdf->setFont('Arial', '', 11.3);     
 
26
        $pdf->text(115, $yadd, 'Phone: +255-22-2112931/4');
 
27
        $pdf->text(115, $yadd+12, 'Fax: +255-22-2112935');    
 
28
        $pdf->text(115, $yadd+24, 'Email: principal@africaonline.co.tz');
 
29
        $pdf->text(350, $yadd, strtoupper($post));    
 
30
        $pdf->text(350, $yadd+12, strtoupper($city)); 
 
31
        $pdf->text(350, $yadd+24, $website);  
 
32
        
 
33
        #candidate photo box
 
34
        $pdf->line(490, 55, 490, 135);       // leftside. 
 
35
        $pdf->line(490, 55, 570, 55);        // upperside. 
 
36
        $pdf->line(570, 55, 570, 135);       // rightside. 
 
37
        $pdf->line(490, 135, 570, 135);       // bottom side. 
 
38
        if ($nophoto == 1){
 
39
                $pdf->text(450, 85, 'Invalid Without Photo: ');    
 
40
        }else{
 
41
                $pdf->image($imgfile, 490, 55);  
 
42
        }
 
43
?>