Example #1
0
function disp_rqd($a, $c, $d)
{
    global $b, $dpt_hal, $curdpt_no, $hall_no;
    // $totalb, $pdf, $height, $width, $printdpt, $curdpt, $curhal, $newpage, $print_hal;
    $k = $d - $c;
    if (!empty($b[$a])) {
        $curdpt = dpt($a);
        /*
        	if($printdpt == 0  && $newpage != 1)
        		$pdf->myCell($width[0], $height[1], '', 'LR');
        	if($printdpt == 0  && $newpage != 0 && ($d-$c) == 13)
        		$pdf->myCell($width[0], $height[1], '', 'LR');
        		$pdf->myCell($width[1], $height[1], $curdpt, 'LR');
        		$pdf->SetFont('Helvetica', '', 7);
        		$pdf->myCell($width[2], $height[1], '  '.$k, 'LR');
        		$pdf->SetFont('Helvetica', '', 14);*/
        $newpage = 0;
        $dpt_hal[$a][] = $hall_no;
        //echo $a.'is dept and hall is'.$hall_no.'<br>';
        $curdpt_no = count($dpt_hal[$a]);
        disp_dpt($b[$a], $c, $d, $a);
    }
}
Example #2
0
function disp_rqd($a, $c, $d)
{
    global $b, $totalb, $pdf, $height, $width, $printdpt, $curdpt, $curhal, $newpage;
    $k = $d - $c;
    if (!empty($b[$a])) {
        //ec1ho"<b>".dpt($a)." ".$k." Students</b><br>";
        $curdpt = dpt($a);
        /*if($newpage == 1)
        		{
        			$pdf->myCell($width[0], $height[1], $curhal, 'LR');
        			$pdf->myCell($width[1], $height[1], $curdpt, 'LR');
        			$pdf->SetFont('Arial', '', 7);
        			$pdf->myCell($width[2], $height[1], '  '.$k, 'LR');
        			$pdf->SetFont('Arial', '', 14);
        		}*/
        if ($printdpt == 0 && $newpage != 1) {
            $pdf->myCell($width[0], $height[1], '', 'LR');
        }
        if ($printdpt == 0 && $newpage != 0 && $d - $c == 13) {
            $pdf->myCell($width[0], $height[1], '', 'LR');
        }
        $pdf->myCell($width[1], $height[1], $curdpt, 'LR');
        $pdf->SetFont('Arial', '', 7);
        $pdf->myCell($width[2], $height[1], '  ' . $k, 'LR');
        $pdf->SetFont('Arial', '', 14);
        $newpage = 0;
        disp_dpt($b[$a], $c, $d);
        //ec1ho"<br><br>";
    }
}