<?php include('../../includes/print.php'); ?>
<?php $id = $_GET[id]; ?>
<?php $scheds = mysql_query("SELECT * FROM schedules WHERE sched_id = '$id'") or die(mysql_error());  ?>
<?php WHILE($sched = mysql_fetch_array($scheds)){
				$id = $sched['sched_id'];
				$activity = $sched['activity'];
				$date = $sched['date'];
				$time = $sched['time'];
				$street = $sched['street'];
				$city = $sched['city'];
				$province = $sched['province'];
				$clients = $sched['clients'];
				$persons = $sched['persons'];
}				
?>
<?php
$html = '
<h2>'.$activity.'</h2>
<table style="width: 638px;" cellspacing="0">
<tr><td style="background:#DCE4FF; border: 1px solid #fff;">Date</td>
<td style="border: 1px solid #fff;">'.$date.'</td>
</tr>
<tr>
		<td style="background:#DCE4FF; border: 1px solid #fff;">Time</td>
		<td style="border: 1px solid #fff;">'.$time.'</td>
		</tr>
		<tr>
		<td style="background:#DCE4FF; border: 1px solid #fff;">Street</td>
		<td style="border: 1px solid #fff;">'.$street.'</td>
		</tr>
		<tr>
		<td style="background:#DCE4FF; border: 1px solid #fff;">City</td>
		<td style="border: 1px solid #fff;">'.$city.'</td>
		</tr>
		<tr>
		<td style="background:#DCE4FF; border: 1px solid #fff;">Province</td>
		<td style="border: 1px solid #fff;">'.$province.'</td>
		</tr>
		<tr>
		<td style="background:#DCE4FF; border: 1px solid #fff;">Clients</td>
		<td style="border: 1px solid #fff;">'.$clients.'</td>
		</tr>
		<tr>
		<td style="background:#DCE4FF; border: 1px solid #fff;">Persons</td>
		<td style="border: 1px solid #fff;">'.$persons.'</td>
		</tr>

		
</table>
';
//==============================================================
//==============================================================
//==============================================================
include("../mpdf.php");

$mpdf=new mPDF('c','A4','','',32,25,27,25,16,13); 

$mpdf->list_indent_first_level = 0;	// 1 or 0 - whether to indent the first level of a list

// LOAD a stylesheet
$stylesheet = file_get_contents('mpdfstyletables.css');
$mpdf->WriteHTML($stylesheet,1);	// The parameter 1 tells that this is css/style only and no body/html/text

$mpdf->WriteHTML($html,2);

$mpdf->Output('mpdf.pdf','I');
exit;
//==============================================================
//==============================================================
//==============================================================
?>