PHP Classes
elePHPant
Icontem

File: test.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Diogo Resende  >  Schedule  >  test.php  >  Download  
File: test.php
Role: Example script
Content type: text/plain
Description: Script to view test.xml
Class: Schedule
Render schedule time tables from XML definitions
Author: By
Last change:
Date: 10 years ago
Size: 563 bytes
 

Contents

Class file image Download
<?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 :)
   */
?>