hey people.
to simply summarize what i would like to do, have a look at ms outlook's calendar, add a few schedules/meetings/whatever, especially overlapping in times, so that they layout next to each other.
i need to do the same thing with <div> layers in html. i dont want to bring in javascript and do this after the page has been generated. for this reason, i have written a class object with properties $left, $right, $top, $bottom, $width, and $height. it has a draw() function which writes the layer based on the variables. these class objects are part of an array (ie, $object[1], $object[2], and so forth).
i have no problem getting the right height and top position, but i am having trouble setting the layers out horizontally, with the correct width and left position... if someone could help me.. that would be faaaaantastic.
this is the class:
class schedule
{
var $left;
var $right;
var $top;
// bottom is not needed....
var $width;
var $height;
var $starttime;
var $finishtime;
var $content;
function draw()
{
echo "<div id=\"Layer1\" style=\"position:absolute; left:".$this->left."px; top:".$this->top."px; width:".$this->width."px; height:".$this->height."px; z-index:1; background-color: #00CC00; layer-background-color: #00CC00; border: 1px none #000000\">";
$schedule_data = $this->content;
include("schedule.table.php");
echo "</div>";
} // end func
} // end class
daniel