one of the things i'd like to include on my intranet site is an organisational chart - it would use the employees database, and construct the chart (using PHP) based on each employee having a "reports to" field.
I'm thinking that i should use a dynamically generated table (I think it's fairly tabular data, so i should be safe, and it's on an intranet so i know that everyone will be using IE 6), but was just wondering if anyone had tried something like this or knew of another solution out there. I did at one time think of dynamically generating a gif or something, but thought that mighnt be too sensible. Then again, it may be easier to do that than arrange the tables to get the right hierarchical structure....
The closest I have is the DOM Tree Viewer.
The tree structure is generated on the fly based on the document hierarchy. You can use a predefined array (or better set of objects) that is pulled from a js file. If you do not want to rely on js, same structure can be generated server side.
In my example the tree is initially collapsed. Simple change can make it show all expanded.
All the styles can be customized so you put borders to make it all look boxy as an org-chart would.