<?php
include 'class.schedule.php';
$sch = new Schedule();
$sch->LoadXmlFile(realpath('test.xml'));
// change size of image
$sch->width = 800;
$sch->height = 400;
// now draw ;)
$sch->Draw();
/*
in this example I use dayspan,blockspan,dayoffset and blockoffset
to show you how you can position a block anywhere on the schedule
(it's a good way to create horizontal schedules instead of vert.)
you can see also that the order of the days in the xml file counts
for the z order :)
*/
?>
|