The problem isn't calling the IDs of everything, it's doing the correct math to fit the images into a table xD For example if we have an adoptable and two parents:
<tr>
<td rowspan="2">Adoptable</td>
<td>Mother</td>
</tr>
<tr>
<td>Father</td>
</tr>
With an adoptable, the parents and the grandparents:
<tr>
<td rowspan="4">Adoptable</td>
<td rowspan="2">Mother</td>
<td>Mother'sMother</td>
</tr>
<tr>
<td>Mother'sFather</td>
</tr>
<tr><td rowspan="2">Father</td>
<td>Father'sMother</td></tr>
<tr><td>Father'sFather</td></tr>
And we'd probably have to use recursion, which is something I don't exactly exactly know how to stop.
I hope there's another way of doing it, instead of being hard-coded.
__________________
asp.net stole my soul.
|