
We basically display the person's name, position, department etc. and their picture, but what I like is the lines, how can I create them on PHP?
Thanks!
Moderator: General Moderators

It really doesn't matter if its an image or not, as long as it looks good.arborint wrote:Do you want to create everything in an image or do the lines and text in HTML? For all in one image, look into GD or Image Magick.
Here is a good library: http://code.google.com/p/php-image/
Doing it in HTML would be easier, probably faster, searchable, etc. You just need to think of the chart in terms of rows of photo blocks and rows of connecting lines.emmbec wrote:It really doesn't matter if its an image or not, as long as it looks good.
Thanks for the link, I'm going to read it right away!
That would be great! I just have no idea how to create the lines and all of that. With MySQL I have managed to get the list of people in the company, the hierarchy is something like the following:arborint wrote:Doing it in HTML would be easier, probably faster, searchable, etc. You just need to think of the chart in terms of rows of photo blocks and rows of connecting lines.emmbec wrote:It really doesn't matter if its an image or not, as long as it looks good.
Thanks for the link, I'm going to read it right away!
1) Find the number of photos in each row.
2) Determine the row with the max number of photos
3) Based on the photo width and desired spacing, calculate the width of the max row
4) Then center all the other rows using that width
You could do it all with div tags and borders. If you are interested in coding it here, we can walk through the design and implementation.
PS - onion, get to work!