View Single Post
  #2  
Old 02-21-2014, 12:48 PM
IntoRain's Avatar
IntoRain IntoRain is offline
Moderator
 
Join Date: Jul 2013
Location: Portugal
Posts: 461
Gender: Female
Credits: 19,409
IntoRain is on a distinguished road
Default

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.
Reply With Quote