Hi All...

I would like to askh you all , about how to create Dynamic
organization Diagram with PHP+MYSQL

Sample table:

Dept                  ID
President             1
DirMKT                2
DirProd               3
MGR MKT               21
MGR PROD              31
MGR TEC               32

contoh struktur organisasi

                       |-----------|
                       | President |
                       |-----|-----|
                             |
              |--------------|-----------------|
              |                                |
       |------|------|                  |------|-------|
       |  DirMKT     |                  | DirProd      |
       |------|------|                  |------|-------|
              |                                |
              |           |--------------------|------|
              |           |                           |
       |------|------|    |------|-------|     |------|-------|
       |  MGR MKT    |    | MGR TEC      |     |    MGR PROD  |
       |-------------|    |--------------|     |--------------|


but if the data is changed , for exsample MGR TEC are deleted ..

then the strucure should be like this :

                       |-----------|
                       | President |
                       |-----|-----|
                             |
              |--------------|-----------------|
              |                                |
       |------|------|                  |------|-------|
       |  DirMKT     |                  | DirProd      |
       |------|------|                  |------|-------|
              |                                |
              |                                |
              |                                |
       |------|------|                  |------|-------|
       |  MGR MKT    |                  |    MGR PROD  |
       |-------------|                  |--------------|


so guys,,... please help me How to create this scheme?
I'm New In PHP but My boss wan me to create this.. 
please.. Please help Me

regards,
setiawanthea



Reply via email to