开发者

PHP Org Chart image generation

开发者 https://www.devze.com 2023-01-17 01:40 出处:网络
I\'m trying to generate an organization chart in PHP; the classic \"box\" above another \"box\" connected by lines. I have all the employees in my organization saved in the following database structur

I'm trying to generate an organization chart in PHP; the classic "box" above another "box" connected by lines. I have all the employees in my organization saved in the following database structure...

repots_to_table

  • recordId (int)
  • staffId (int)
  • reports_to (int)
  • type (char(1))

Curr开发者_运维技巧ently, I recursively start at the top (#400 who reports to themself). I don't really care how "wide" the image will be since the idea is I want to generate a final "image" to print or save. Can anyone help me figure out a good way (ideally with built in PHP image libraries) to make this happen?


graphviz

0

精彩评论

暂无评论...
验证码 换一张
取 消