<?php

//include_once 'includes/functions.php';

//include authenticator
//include_once 'includes/auth.php';
 if (!session_start()) 
 {
    session_start();
}

if(isset($_GET['pt']))
{
	$pt = $_GET['pt'];
}

if(isset($_GET['yId']))
{
	$p = $_GET['yId'];
 	$_SESSION['p'] = $p;
  	$_SESSION['type'] = 'nce';

}




  
//include functions
include ('includes/includes.php');


//include functions
include ('do.php');
  $pty = get_user_programme_type($p);
  if ($pty == 1) {
        $path = '../prence/uploads/';
        $sign =   $path.'signature/'.get_user_sign($p);
        $image =  $path.get_user_image($p);
        $level = get_user_level($p);

     }else{
        $path = '../nce/uploads/';
        $sign =   $path.'signature/'.get_user_sign($p);
        $image =  $path.get_user_image($p);
        $level = get_user_level($p);
     }

?>
<body body bgcolor="#ffffff">
	<header class="navbar" role="banner">
			
            <!-- call the header -->
            <?php include 'includes/header.php'; ?>
				
		 <div style="border-bottom:green solid 2px"></div>
    
    </header>



	<div class="container">
			<div class="row">
            
                <div style="height:10px; display: block;"> .</div>





<?php /*?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0014)about:internet -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>id card template.png</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">td img {display: block;}</style>
<!--Fireworks CS6 Dreamweaver CS6 target.  Created Wed Apr 11 12:55:51 GMT+0100 2018-->
</head>
<body bgcolor="#ffffff">
<table style="display: inline-table;" border="0" cellpadding="0" cellspacing="0" width="360">
<!-- fwtable fwsrc="id card template   2 for empty fill up 2.png" fwpage="Page 1" fwbase="id card template.png" fwstyle="Dreamweaver" fwdocid = "143612080" fwnested="0" --><?php */?>

<div class="text-center" id=""><!-- centralized -->

<table style="display: inline-table;" border="0" cellpadding="0" cellspacing="0" width="360">
  <!-- fwtable fwsrc="id card template   2 for empty fill up 2.png" fwpage="Page 1" fwbase="id card template.png" fwstyle="Dreamweaver" fwdocid = "143612080" fwnested="0" -->

    <tr>
    <td><img src="card_template/spacer.gif" width="1" height="1" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="5" height="1" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="2" height="1" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="1" height="1" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="7" height="1" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="5" height="1" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="14" height="1" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="2" height="1" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="15" height="1" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="4" height="1" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="14" height="1" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="1" height="1" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="2" height="1" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="7" height="1" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="9" height="1" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="15" height="1" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="3" height="1" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="5" height="1" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="12" height="1" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="10" height="1" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="48" height="1" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="5" height="1" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="17" height="1" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="21" height="1" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="10" height="1" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="17" height="1" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="2" height="1" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="3" height="1" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="5" height="1" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="2" height="1" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="1" height="1" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="13" height="1" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="3" height="1" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="54" height="1" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="2" height="1" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="9" height="1" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="14" height="1" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="1" height="1" alt="" /></td>
    </tr>

    <tr>
    <td colspan="37"><img name="idcardtemplate_r1_c1" src="card_template/id%20card%20template_r1_c1.png" width="360" height="11" id="idcardtemplate_r1_c1" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="1" height="11" alt="" /></td>
    </tr>
    <tr>
    <td rowspan="3" colspan="20"><img name="idcardtemplate_r2_c1" src="card_template/id%20card%20template_r2_c1.png" width="134" height="84" id="idcardtemplate_r2_c1" alt="" /></td>
    <td rowspan="2" colspan="5"><img name="idcardtemplate_r2_c21" src="card_template/id%20card%20template_r2_c21.png" width="101" height="79" id="idcardtemplate_r2_c21" alt="" /></td>
    <td rowspan="3" colspan="12"><img name="idcardtemplate_r2_c26" src="card_template/id%20card%20template_r2_c26.png" width="125" height="84" id="idcardtemplate_r2_c26" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="1" height="48" alt="" /></td>
    </tr>
    <tr>
    <td><img src="card_template/spacer.gif" width="1" height="31" alt="" /></td>
    </tr>
    <tr>
    <td colspan="5"><img name="idcardtemplate_r4_c21" src="card_template/id%20card%20template_r4_c21.png" width="101" height="5" id="idcardtemplate_r4_c21" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="1" height="5" alt="" /></td>
    </tr>
    <tr>
    <td rowspan="10" colspan="6"><img name="idcardtemplate_r5_c1" src="card_template/id%20card%20template_r5_c1.png" width="21" height="163" id="idcardtemplate_r5_c1" alt="" /></td>
    <td colspan="30"><img name="idcardtemplate_r5_c7" src="card_template/id%20card%20template_r5_c7.png" width="325" height="16" id="idcardtemplate_r5_c7" alt="" /></td>
    <td rowspan="10"><img name="idcardtemplate_r5_c37" src="card_template/id%20card%20template_r5_c37.png" width="14" height="163" id="idcardtemplate_r5_c37" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="1" height="16" alt="" /></td>
    </tr>
    <tr>
    <td colspan="30"><img name="idcardtemplate_r6_c7" src="card_template/id%20card%20template_r6_c7.png" width="325" height="6" id="idcardtemplate_r6_c7" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="1" height="6" alt="" /></td>
    </tr>
    <tr>
    <td rowspan="2" colspan="12"><img name="idcardtemplate_r7_c7" src="card_template/id%20card%20template_r7_c7.png" width="91" height="19" id="idcardtemplate_r7_c7" alt="" /></td>
    <td colspan="11"><img name="idcardtemplate_r7_c19" src="card_template/id%20card%20template_r7_c19.png" width="150" height="14" id="idcardtemplate_r7_c19" alt="" /></td>
    <td rowspan="2" colspan="7"><img name="idcardtemplate_r7_c30" src="card_template/id%20card%20template_r7_c30.png" width="84" height="19" id="idcardtemplate_r7_c30" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="1" height="14" alt="" /></td>
    </tr>
    <tr>
    <td colspan="11"><img name="idcardtemplate_r8_c19" src="card_template/id%20card%20template_r8_c19.png" width="150" height="5" id="idcardtemplate_r8_c19" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="1" height="5" alt="" /></td>
    </tr>
    <tr>
    <td rowspan="6"><img name="idcardtemplate_r9_c7" src="card_template/id%20card%20template_r9_c7.png" width="14" height="122" id="idcardtemplate_r9_c7" alt="" /></td>
    <td rowspan="2" colspan="7"><img name="idcardtemplate_r9_c8" src="card_template/id%20card%20template_r9_c8.png" width="45" height="16" id="idcardtemplate_r9_c8" alt="" /></td>
    <td colspan="19"><img name="idcardtemplate_r9_c15" src="card_template/id%20card%20template_r9_c15.png" width="201" height="15" id="idcardtemplate_r9_c15" alt="" /></td>
    <td rowspan="2"><img name="idcardtemplate_r9_c34" src="card_template/id%20card%20template_r9_c34.png" width="54" height="16" id="idcardtemplate_r9_c34" alt="" /></td>
    <td rowspan="6" colspan="2"><img name="idcardtemplate_r9_c35" src="card_template/id%20card%20template_r9_c35.png" width="11" height="122" id="idcardtemplate_r9_c35" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="1" height="15" alt="" /></td>
    </tr>
    <tr>
    <td colspan="19"><img name="idcardtemplate_r10_c15" src="card_template/id%20card%20template_r10_c15.png" width="201" height="1" id="idcardtemplate_r10_c15" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="1" height="1" alt="" /></td>
    </tr>
    <tr>
    <td colspan="27"><img name="idcardtemplate_r11_c8" src="card_template/id%20card%20template_r11_c8.png" width="300" height="21" id="idcardtemplate_r11_c8" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="1" height="21" alt="" /></td>
    </tr>
    <tr>
    <td rowspan="3" colspan="9"><img name="idcardtemplate_r12_c8" src="card_template/id%20card%20template_r12_c8.png" width="69" height="85" id="idcardtemplate_r12_c8" alt="" /></td>
    <td colspan="12"><img name="idcardtemplate_r12_c17" src="card_template/id%20card%20template_r12_c17.png" width="153" height="3" id="idcardtemplate_r12_c17" alt="" /></td>
    <td rowspan="3" colspan="6"><img name="idcardtemplate_r12_c29" src="card_template/id%20card%20template_r12_c29.png" width="78" height="85" id="idcardtemplate_r12_c29" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="1" height="3" alt="" /></td>
    </tr>
    <tr>
    <td rowspan="6"><img name="idcardtemplate_r13_c17" src="card_template/id%20card%20template_r13_c17.png" width="3" height="167" id="idcardtemplate_r13_c17" alt="" /></td>
    <td rowspan="5" colspan="10">
    <!-- passport place holder -->
    <!--<img name="idcardtemplate_r13_c18" src="card_template/id%20card%20template_r13_c18.png" width="147" height="163" id="idcardtemplate_r13_c18" alt="" />--><img name="idcardtemplate_r13_c18" src="<?php echo $image; ?>" width="147" height="163" id="idcardtemplate_r13_c18" alt="" />
    
    </td>
    <td rowspan="6"><img name="idcardtemplate_r13_c28" src="card_template/id%20card%20template_r13_c28.png" width="3" height="167" id="idcardtemplate_r13_c28" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="1" height="44" alt="" /></td>
    </tr>
    <tr>
    <td><img src="card_template/spacer.gif" width="1" height="38" alt="" /></td>
    </tr>
    <tr>
    <td colspan="16"><img name="idcardtemplate_r15_c1" src="card_template/id%20card%20template_r15_c1.png" width="104" height="11" id="idcardtemplate_r15_c1" alt="" /></td>
    <td colspan="9"><img name="idcardtemplate_r15_c29" src="card_template/id%20card%20template_r15_c29.png" width="103" height="11" id="idcardtemplate_r15_c29" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="1" height="11" alt="" /></td>
    </tr>
    <tr>
    <td colspan="16"><img name="idcardtemplate_r16_c1" src="card_template/id%20card%20template_r16_c1.png" width="104" height="6" id="idcardtemplate_r16_c1" alt="" /></td>
    <td colspan="9"><img name="idcardtemplate_r16_c29" src="card_template/id%20card%20template_r16_c29.png" width="103" height="6" id="idcardtemplate_r16_c29" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="1" height="6" alt="" /></td>
    </tr>
    <tr>
    <td rowspan="3" colspan="16"><img name="idcardtemplate_r17_c1" src="card_template/id%20card%20template_r17_c1.png" width="104" height="76" id="idcardtemplate_r17_c1" alt="" /></td>
    <td rowspan="6" colspan="9"><img name="idcardtemplate_r17_c29" src="card_template/id%20card%20template_r17_c29.png" width="103" height="123" id="idcardtemplate_r17_c29" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="1" height="64" alt="" /></td>
    </tr>
    <tr>
    <td colspan="10"><img name="idcardtemplate_r18_c18" src="card_template/id%20card%20template_r18_c18.png" width="147" height="4" id="idcardtemplate_r18_c18" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="1" height="4" alt="" /></td>
    </tr>
    <tr>
    <td colspan="12"><img name="idcardtemplate_r19_c17" src="card_template/id%20card%20template_r19_c17.png" width="153" height="8" id="idcardtemplate_r19_c17" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="1" height="8" alt="" /></td>
    </tr>
    <tr>
    <td colspan="24"><img name="idcardtemplate_r20_c1" src="card_template/id%20card%20template_r20_c1.png" width="225" height="13" id="idcardtemplate_r20_c1" alt="" /></td>
    <td rowspan="3" colspan="4"><img name="idcardtemplate_r20_c25" src="card_template/id%20card%20template_r20_c25.png" width="32" height="47" id="idcardtemplate_r20_c25" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="1" height="13" alt="" /></td>
    </tr>
    <tr>
    <td rowspan="2" colspan="2"><img name="idcardtemplate_r21_c1" src="card_template/id%20card%20template_r21_c1.png" width="6" height="34" id="idcardtemplate_r21_c1" alt="" /></td>
    <td colspan="21" style="background-image:url(card_template/id%20card%20template_r21_c3.png); background-repeat:no-repeat; width:100%; height:23px; font-weight:bold; font-size: 12px; color:#FFF;">
    <!-- name place holder -->
    
    <!--<img name="idcardtemplate_r21_c3" src="card_template/id%20card%20template_r21_c3.png" width="198" height="23" id="idcardtemplate_r21_c3" alt="" />-->
    <?php echo strtoupper(get_user_fullname($p)); ?>
    </td>
    <td rowspan="2"><img name="idcardtemplate_r21_c24" src="card_template/id%20card%20template_r21_c24.png" width="21" height="34" id="idcardtemplate_r21_c24" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="1" height="23" alt="" /></td>
    </tr>
    <tr>
    <td colspan="21"><img name="idcardtemplate_r22_c3" src="card_template/id%20card%20template_r22_c3.png" width="198" height="11" id="idcardtemplate_r22_c3" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="1" height="11" alt="" /></td>
    </tr>
    <tr>
    <td rowspan="4" colspan="20"><img name="idcardtemplate_r23_c1" src="card_template/id%20card%20template_r23_c1.png" width="134" height="45" id="idcardtemplate_r23_c1" alt="" /></td>
    <td colspan="17"><img name="idcardtemplate_r23_c21" src="card_template/id%20card%20template_r23_c21.png" width="226" height="17" id="idcardtemplate_r23_c21" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="1" height="17" alt="" /></td>
    </tr>
    <tr>
    <td rowspan="2"><img name="idcardtemplate_r24_c21" src="card_template/id%20card%20template_r24_c21.png" width="48" height="25" id="idcardtemplate_r24_c21" alt="" /></td>
    <td colspan="5"><img name="idcardtemplate_r24_c22" src="card_template/id%20card%20template_r24_c22.png" width="70" height="13" id="idcardtemplate_r24_c22" alt="" /></td>
    <td rowspan="2" colspan="11"><img name="idcardtemplate_r24_c27" src="card_template/id%20card%20template_r24_c27.png" width="108" height="25" id="idcardtemplate_r24_c27" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="1" height="13" alt="" /></td>
    </tr>
    <tr>
    <td colspan="5"><img name="idcardtemplate_r25_c22" src="card_template/id%20card%20template_r25_c22.png" width="70" height="12" id="idcardtemplate_r25_c22" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="1" height="12" alt="" /></td>
    </tr>
    <tr>
    <td colspan="17"><img name="idcardtemplate_r26_c21" src="card_template/id%20card%20template_r26_c21.png" width="226" height="3" id="idcardtemplate_r26_c21" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="1" height="3" alt="" /></td>
    </tr>
    <tr>
    <td colspan="13"><img name="idcardtemplate_r27_c1" src="card_template/id%20card%20template_r27_c1.png" width="73" height="10" id="idcardtemplate_r27_c1" alt="" /></td>
    
    <!-- reg no placeholder -->
    <td rowspan="3" colspan="18" style="background-image:url(card_template/id%20card%20template_r27_c14.png); background-repeat:no-repeat; width:100%; font-weight:bold;color:#000;">
    <!--<img name="idcardtemplate_r27_c14" src="card_template/id%20card%20template_r27_c14.png" width="192" height="23" id="idcardtemplate_r27_c14" alt="" />-->
      <?php echo strtoupper(get_user_mat_no($p)); ?>
    </td>
    
    
    <td rowspan="7" colspan="6"><img name="idcardtemplate_r27_c32" src="card_template/id%20card%20template_r27_c32.png" width="95" height="28" id="idcardtemplate_r27_c32" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="1" height="10" alt="" /></td>
    </tr>
    <tr>
    <td rowspan="3" colspan="4"><img name="idcardtemplate_r28_c1" src="card_template/id%20card%20template_r28_c1.png" width="9" height="15" id="idcardtemplate_r28_c1" alt="" /></td>
    <td colspan="8"><img name="idcardtemplate_r28_c5" src="card_template/id%20card%20template_r28_c5.png" width="62" height="12" id="idcardtemplate_r28_c5" alt="" /></td>
    <td rowspan="4"><img name="idcardtemplate_r28_c13" src="card_template/id%20card%20template_r28_c13.png" width="2" height="16" id="idcardtemplate_r28_c13" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="1" height="12" alt="" /></td>
    </tr>
    <tr>
    <td rowspan="3" colspan="8"><img name="idcardtemplate_r29_c5" src="card_template/id%20card%20template_r29_c5.png" width="62" height="4" id="idcardtemplate_r29_c5" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="1" height="1" alt="" /></td>
    </tr>
    <tr>
    <td rowspan="2" colspan="18"><img name="idcardtemplate_r30_c14" src="card_template/id%20card%20template_r30_c14.png" width="192" height="3" id="idcardtemplate_r30_c14" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="1" height="2" alt="" /></td>
    </tr>
    <tr>
    <td><img name="idcardtemplate_r31_c1" src="card_template/id%20card%20template_r31_c1.png" width="1" height="1" id="idcardtemplate_r31_c1" alt="" /></td>
    <td colspan="3"><img name="idcardtemplate_r31_c2" src="card_template/id%20card%20template_r31_c2.png" width="8" height="1" id="idcardtemplate_r31_c2" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="1" height="1" alt="" /></td>
    </tr>
    <tr>
    <td colspan="30"><img name="idcardtemplate_r32_c1" src="card_template/id%20card%20template_r32_c1.png" width="264" height="1" id="idcardtemplate_r32_c1" alt="" /></td>
    <td rowspan="6"><img name="idcardtemplate_r32_c31" src="card_template/id%20card%20template_r32_c31.png" width="1" height="26" id="idcardtemplate_r32_c31" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="1" height="1" alt="" /></td>
    </tr>
    <tr>
    <td rowspan="2" colspan="30"><img name="idcardtemplate_r33_c1" src="card_template/id%20card%20template_r33_c1.png" width="264" height="6" id="idcardtemplate_r33_c1" alt="" /></td>
    <td><img src="card_template/spacer.gif" width="1" height="1" alt="" /></td>
    </tr>
    <tr>
    <td rowspan="15"><img name="idcardtemplate_r34_c32" src="card_template/id%20card%20template_r34_c32.png" width="13" height="79" id="idcardtemplate_r34_c32" alt="" /></td>
    <td rowspan="10" colspan="2">
    <!-- qr code place holder -->
    <!-- <img name="idcardtemplate_r34_c33" src="card_template/id%20card%20template_r34_c33.png" width="57" height="57" id="idcardtemplate_r34_c33" alt="" />-->
    <img name="idcardtemplate_r34_c33" src="<?php echo $sign.' ';?>" width="57" height="57" id="idcardtemplate_r34_c33" alt="" />
    </td>
    <td rowspan="15" colspan="3">
  <!--   <img name="idcardtemplate_r34_c35" src="<?php //echo 'codes/'.$fileName.' ';?>" width="25" height="79" id="idcardtemplate_r34_c35" alt="" />
  -->   <img name="idcardtemplate_r34_c35" src="card_template/id%20card%20template_r34_c35.png" width="25" height="79" id="idcardtemplate_r34_c35" alt="" /></td>
   <td><img src="card_template/spacer.gif" width="1" height="5" alt="" /></td>
  </tr>
  <tr>
   <td rowspan="2" colspan="3"><img name="idcardtemplate_r35_c1" src="card_template/id%20card%20template_r35_c1.png" width="8" height="18" id="idcardtemplate_r35_c1" alt="" /></td>
   <td colspan="8"><img name="idcardtemplate_r35_c4" src="card_template/id%20card%20template_r35_c4.png" width="62" height="12" id="idcardtemplate_r35_c4" alt="" /></td>
   <!-- school placeholder -->
   <td rowspan="2" colspan="19" style="background-image:url(card_template/id%20card%20template_r35_c12.png); background-repeat:no-repeat; width:100%; font-weight:bold;color:#000;font-size:10px;">
   <!--<img name="idcardtemplate_r35_c12" src="card_template/id%20card%20template_r35_c12.png" width="194" height="18" id="idcardtemplate_r35_c12" alt="" />-->
   <?php echo strtoupper(get_school_title(get_user_school_id($p))); ?>
  </td>
   <td><img src="card_template/spacer.gif" width="1" height="12" alt="" /></td>
  </tr>
  <tr>
   <td colspan="8"><img name="idcardtemplate_r36_c4" src="card_template/id%20card%20template_r36_c4.png" width="62" height="6" id="idcardtemplate_r36_c4" alt="" /></td>
   <td><img src="card_template/spacer.gif" width="1" height="6" alt="" /></td>
  </tr>
  <tr>
   <td colspan="30"><img name="idcardtemplate_r37_c1" src="card_template/id%20card%20template_r37_c1.png" width="264" height="1" id="idcardtemplate_r37_c1" alt="" /></td>
   <td><img src="card_template/spacer.gif" width="1" height="1" alt="" /></td>
  </tr>
  <tr>
   <td colspan="13"><img name="idcardtemplate_r38_c1" src="card_template/id%20card%20template_r38_c1.png" width="73" height="5" id="idcardtemplate_r38_c1" alt="" /></td>
   <!-- Programme placeholder -->
   <td rowspan="3" colspan="18" style="background-image:url(card_template/id%20card%20template_r38_c14.png); background-repeat:no-repeat; width:100%; font-weight:bold;color:#000;"><!--<img name="idcardtemplate_r38_c14" src="card_template/id%20card%20template_r38_c14.png" width="192" height="23" id="idcardtemplate_r38_c14" alt="" />-->
   <?php echo strtoupper(get_programme_code(get_user_programme_id($p))); ?>
   </td>
   <td><img src="card_template/spacer.gif" width="1" height="5" alt="" /></td>
  </tr>
  <tr>
   <td rowspan="2" colspan="4"><img name="idcardtemplate_r39_c1" src="card_template/id%20card%20template_r39_c1.png" width="9" height="18" id="idcardtemplate_r39_c1" alt="" /></td>
   <td colspan="6"><img name="idcardtemplate_r39_c5" src="card_template/id%20card%20template_r39_c5.png" width="47" height="12" id="idcardtemplate_r39_c5" alt="" /></td>
   <td rowspan="2" colspan="3"><img name="idcardtemplate_r39_c11" src="card_template/id%20card%20template_r39_c11.png" width="17" height="18" id="idcardtemplate_r39_c11" alt="" /></td>
   <td><img src="card_template/spacer.gif" width="1" height="12" alt="" /></td>
  </tr>
  <tr>
   <td colspan="6"><img name="idcardtemplate_r40_c5" src="card_template/id%20card%20template_r40_c5.png" width="47" height="6" id="idcardtemplate_r40_c5" alt="" /></td>
   <td><img src="card_template/spacer.gif" width="1" height="6" alt="" /></td>
  </tr>
  <tr>
   <td colspan="30"><img name="idcardtemplate_r41_c1" src="card_template/id%20card%20template_r41_c1.png" width="264" height="1" id="idcardtemplate_r41_c1" alt="" /></td>
   <td><img name="idcardtemplate_r41_c31" src="card_template/id%20card%20template_r41_c31.png" width="1" height="1" id="idcardtemplate_r41_c31" alt="" /></td>
   <td><img src="card_template/spacer.gif" width="1" height="1" alt="" /></td>
  </tr>
  <tr>
   <td colspan="13"><img name="idcardtemplate_r42_c1" src="card_template/id%20card%20template_r42_c1.png" width="73" height="4" id="idcardtemplate_r42_c1" alt="" /></td>
   <!-- level placeholder -->
   <td  align="left" rowspan="4" colspan="18" style="background-image:url(card_template/id%20card%20template_r42_c14.png); background-repeat:no-repeat; width:100%;font-weight:bold;color:#000;"><!--<img name="idcardtemplate_r42_c14" src="card_template/id%20card%20template_r42_c14.png" width="192" height="23" id="idcardtemplate_r42_c14" alt="" />-->
     <?php echo strtoupper(get_user_level($p)); ?>
   </td>
   <td><img src="card_template/spacer.gif" width="1" height="4" alt="" /></td>
  </tr>
  <tr>
   <td rowspan="4" colspan="4"><img name="idcardtemplate_r43_c1" src="card_template/id%20card%20template_r43_c1.png" width="9" height="21" id="idcardtemplate_r43_c1" alt="" /></td>
   <td rowspan="2" colspan="5"><img name="idcardtemplate_r43_c5" src="card_template/id%20card%20template_r43_c5.png" width="43" height="12" id="idcardtemplate_r43_c5" alt="" /></td>
   <td rowspan="4" colspan="4"><img name="idcardtemplate_r43_c10" src="card_template/id%20card%20template_r43_c10.png" width="21" height="21" id="idcardtemplate_r43_c10" alt="" /></td>
   <td><img src="card_template/spacer.gif" width="1" height="5" alt="" /></td>
  </tr>
  <tr>
   <td rowspan="5" colspan="2"><img name="idcardtemplate_r44_c33" src="card_template/id%20card%20template_r44_c33.png" width="57" height="22" id="idcardtemplate_r44_c33" alt="" /></td>
   <td><img src="card_template/spacer.gif" width="1" height="7" alt="" /></td>
  </tr>
  <tr>
   <td rowspan="2" colspan="5"><img name="idcardtemplate_r45_c5" src="card_template/id%20card%20template_r45_c5.png" width="43" height="9" id="idcardtemplate_r45_c5" alt="" /></td>
   <td><img src="card_template/spacer.gif" width="1" height="7" alt="" /></td>
  </tr>
  <tr>
   <td colspan="18"><img name="idcardtemplate_r46_c14" src="card_template/id%20card%20template_r46_c14.png" width="192" height="2" id="idcardtemplate_r46_c14" alt="" /></td>
   <td><img src="card_template/spacer.gif" width="1" height="2" alt="" /></td>
  </tr>
  <tr>
   <td colspan="30"><img name="idcardtemplate_r47_c1" src="card_template/id%20card%20template_r47_c1.png" width="264" height="1" id="idcardtemplate_r47_c1" alt="" /></td>
   <td rowspan="2"><img name="idcardtemplate_r47_c31" src="card_template/id%20card%20template_r47_c31.png" width="1" height="6" id="idcardtemplate_r47_c31" alt="" /></td>
   <td><img src="card_template/spacer.gif" width="1" height="1" alt="" /></td>
  </tr>
  <tr>
   <td colspan="30"><img name="idcardtemplate_r48_c1" src="card_template/id%20card%20template_r48_c1.png" width="264" height="5" id="idcardtemplate_r48_c1" alt="" /></td>
   <td><img src="card_template/spacer.gif" width="1" height="5" alt="" /></td>
  </tr>
  <tr>
   <td rowspan="4" colspan="8"><img name="idcardtemplate_r49_c1" src="card_template/id%20card%20template_r49_c1.png" width="37" height="23" id="idcardtemplate_r49_c1" alt="" /></td>
   <td colspan="14"><img name="idcardtemplate_r49_c9" src="card_template/id%20card%20template_r49_c9.png" width="150" height="4" id="idcardtemplate_r49_c9" alt="" /></td>
   <!-- phone number -->
   <td rowspan="3" colspan="13" style="background-image:url(card_template/id%20card%20template_r49_c23.png); background-repeat:no-repeat; width:100%;font-weight:bold;color:#FFF; font-size:10px;">
    <?php echo strtoupper(get_user_phone_no($p)); ?>
   <!--<img name="idcardtemplate_r49_c23" src="card_template/id%20card%20template_r49_c23.png" width="150" height="16" id="idcardtemplate_r49_c23" alt="" />--></td>
   <td rowspan="4" colspan="2"><img name="idcardtemplate_r49_c36" src="card_template/id%20card%20template_r49_c36.png" width="23" height="23" id="idcardtemplate_r49_c36" alt="" /></td>
   <td><img src="card_template/spacer.gif" width="1" height="4" alt="" /></td>
  </tr>
  <tr>
   <td rowspan="2" colspan="7"><img name="idcardtemplate_r50_c9" src="card_template/id%20card%20template_r50_c9.png" width="52" height="12" id="idcardtemplate_r50_c9" alt="" /></td>
   <td colspan="4"><img name="idcardtemplate_r50_c16" src="card_template/id%20card%20template_r50_c16.png" width="35" height="9" id="idcardtemplate_r50_c16" alt="" /></td>
   <!-- valid date -->
   <td rowspan="2" colspan="3" style="background-image:url(card_template/id%20card%20template_r50_c20.png); background-repeat:no-repeat; width:100%;color:#FFF; font-size:8px;width:63px; height:12px;">
  <?php if($level == 'III'){echo "DEC,2020";}else if($level == 'II'){echo "DEC,2021"; }else if($level == 'I'){echo "DEC,2022";}else{"";} ?>
   <!--<img name="idcardtemplate_r50_c20" src="card_template/id%20card%20template_r50_c20.png" width="63" height="12" id="idcardtemplate_r50_c20" alt="" />--></td>
   <td><img src="card_template/spacer.gif" width="1" height="9" alt="" /></td>
  </tr>
  <tr>
   <td colspan="4"><img name="idcardtemplate_r51_c16" src="card_template/id%20card%20template_r51_c16.png" width="35" height="3" id="idcardtemplate_r51_c16" alt="" /></td>
   <td><img src="card_template/spacer.gif" width="1" height="3" alt="" /></td>
  </tr>
  <tr>
   <td colspan="27"><img name="idcardtemplate_r52_c9" src="card_template/id%20card%20template_r52_c9.png" width="300" height="7" id="idcardtemplate_r52_c9" alt="" /></td>
   <td><img src="card_template/spacer.gif" width="1" height="7" alt="" /></td>
  </tr>
</table>
</div><!-- / centralized printready -->


  <br/>
                <div class="text-center">
                	
                		<a href="generate.php" class="btn btn-sm btn-info" >
                                <span><img src="images/printer.png"></img>
                                  Print Card
                                </span>
                        
                        </a>
                </div>
                
                




</div><!-- /.row -->
</div><!-- container -->
<!-- continer for the copied templates ends ---->
</body>
</html>
