A custom method Binary Tree Class

已取消 已发布的 Jan 13, 2010 货到付款
已取消 货到付款

the problem is I am stuck with displaying the data in a table. In the file attached you can see what I am trying to achieve...

I would like to display the binary tree in a table. After lot of pain I managed to figure out how to deal with colspans.. but I don't know how to populate it correctly...The problem is with empty peers...

I would like to have a node's method: $tree->nodes[2]->to_table_array(4); Where the parameter is $depth -> how deep it should go

So I should get something like:

$arr = array(

---[0]=>array(1),

---[1]=>array(2,3),

---[2]=>array(4,null, null, 5),

---[3]=>array(6, null, null, null, null, null, 7, 8)

);

The key of the array is the table row or depth of the tree... each then, has an array of ids or null if there is no child there

I can set a desired depth (up to 10) and the array must populate for each "layer"/"row" even if it has only nulls!

I will nee also test case (with a table like in the attached file) and instead of icons there should be node ids or   for empty cell

PHP

项目ID: #588445

关于项目

7个方案 远程项目 活跃的Jan 13, 2010

有7名威客正在参与此工作的竞标,均价$86/小时

rockerstech

I can do it perfectly and provide you technical documentation as well as full programming guide line ....

$240 USD 在7天内
(77条评论)
7.6
MAST3R

You have PM

$60 USD 在0天内
(10条评论)
5.5
njdebugger

i have a cool working demo for you. Please check PMB for the demo url.

$80USD 在1天里
(31条评论)
5.4
pdah

Hi, please check PMB

$60USD 在1天里
(15条评论)
5.3
James1986

Hello sir, Your requirment: input a array of that type, and display a html table somelike the image? If right, please let us start. Regards, Aking

$50USD 在1天里
(2条评论)
4.1
az4software

i can do it!

$50USD 在1天里
(0条评论)
0.0
ajanur

Its a very simple project to me

$60USD 在1天里
(0条评论)
0.0