nivini
Programmer
- Mar 24, 2004
- 64
hello all
I'm trying to create a table for a pedigree
i have this code. it looks only nice, i want it to look very acurate, the individual in the fourth table shoulb be exactly in the same line as the | mark in the fifth table,
can anyone find what makes it "move" down a beat , each loop?
help would be most appriciate
<table border=0 style=" HEIGHT:799px" bgcolor="00FF00" width="750px" align="center">
<tr valign="top">
<td >
<table border=0 style="WIDTH:150px; HEIGHT: 799px"><% 'table 1%>
<%for x=1 to 3%>
<tr><td bgcolor="00FF00" width="150px" height="17"></td></tr>
<%next%>
<tr>
<td bgcolor="silver" width=150px" align="left" height="17"><%Response.Write (Request.Form ("name"))%> </td>
</tr>
<%for x=1 to 3%>
<tr><td bgcolor="00FF00" width="150px" height="17"></td></tr>
<%next%>
</table>
</td>
<td>
<table border=0 style="WIDTH: 150px; HEIGHT:799px"><% 'table 2%>
<% for x=1 to 11%>
<tr><td bgcolor="00FF00" width="150px" align="left" nowrap height="17"></td></tr>
<%next%>
<%i=1%>
<tr><td align="left" nowrap height="17" width="150px"><font color="blue" size="4" ><%Response.Write arr(i,4)%></font><br>
<font color="black" size="2">
<%Response.Write arr(i,3)%><br>
<%Response.Write arr(i,2)%><br>
</font>
</td>
</tr>
<% for x=1 to 23%>
<tr><td bgcolor="00FF00" width="150px" align="left" height="17">|</td></tr>
<% next%>
<tr><%i=i+1%>
<td align="left" width="150px" height="17"><font color="red" size="4" height="17"><% Response.Write arr(i,4)%></font><br>
<font color="black" size="2">
<%Response.Write arr(i,3)%><br>
<%Response.Write arr(i,2)%><br>
</font>
</td>
</tr>
<% for x=1 to 11%>
<tr><td bgcolor="00FF00" width="150px" align="left" nowrap height="17px"></td></tr>
<%next%>
</table>
</td>
<td>
<table border=0 style="WIDTH: 150px; HEIGHT: 799px"> <%' table 3%>
<%for x=1 to 5%>
<tr><td bgcolor="00FF00" style="WIDTH:150px; HEIGHT: 17px"></td></tr>
<%next%>
<tr><%i=i+1%>
<td align="left" width="150px" nowrap height="17"><font size="3" color="blue"><%Response.Write arr(i,4)%><br></font> </td>
</tr>
<%for x=1 to 11%>
<tr><td bgcolor="00FF00" style="WIDTH:150px; HEIGHT: 17px">|</td></tr>
<%next%>
<tr><%i=i+1%>
<td align="left" width="150px" nowrap height="17"><font size="3" color="red"><%Response.Write arr(i,4)%><br></font> </td>
</tr>
<%for x=1 to 11%>
<tr><td bgcolor="00FF00" width="150px" nowrap height="17"></td></tr>
<%next%>
<tr><%i=i+1%>
<td align="left" width="150px" nowrap height="17"><font size="3" color="blue"><%Response.Write arr(i,4)%><br></font> </td>
</tr>
<%for x=1 to 11%>
<tr><td bgcolor="00FF00" width="150px" height="17">|</td></tr>
<%next%>
<tr><%i=i+1%>
<td align="left" width="150px" nowrap height="17"><font size="3" color="red"><%Response.Write arr(i,4)%><br></font> </td>
</tr>
<%for x=1 to 5%>
<tr><td bgcolor="00FF00" width="150px" height="17"></td></tr>
<%next%>
</table>
</td>
<td align="justify">
<table border=0 style="WIDTH:150px; HEIGHT: 799px"> <% 'table 4 %>
<tr><td bgcolor="00FF00" style="WIDTH:150px; HEIGHT: 17px"></td></tr>
<tr><td bgcolor="00FF00" style="WIDTH:150px; HEIGHT: 17px"></td></tr>
<%for parent=1 to 4%>
<tr><%i=i+1%>
<td align="left" style="WIDTH:150px; HEIGHT: 17px" bgcolor="yellow" nowrap><font size="2" color="blue"><%Response.Write arr(i,4)%></font> </td>
</tr>
<%
for x=1 to 5%>
<tr><td bgcolor="00FF00" style="WIDTH:150px; HEIGHT: 17px" align="left" >|</td></tr>
<%next%>
<tr><%i=i+1%>
<td align="left" style="WIDTH:150px; HEIGHT: 17px" bgcolor="yellow" nowrap><font size="2" color="red"><%Response.Write arr(i,4)%></font> </td>
</tr>
<%
if parent=4 then
exit for
else
for x=1 to 5%>
<tr><td bgcolor="00FF00" style="WIDTH:150px; HEIGHT: 17px" ></td></tr>
<%next%>
<%end if%>
<%next%>
<tr><td bgcolor="00FF00" style="WIDTH:150px; HEIGHT:17px" nowrap></td></tr>
<tr><td bgcolor="00FF00" style="WIDTH:150px; HEIGHT: 17px" nowrap></td></tr>
</table>
</td>
<td align="justify">
<table border=0 style="WIDTH:150px; HEIGHT: 799px">
<tr><td bgcolor="00FF00" style="WIDTH:150px; HEIGHT:17px"></td></tr>
<%for parent=1 to 8%>
<tr><%i=i+1%>
<td align="left" bgcolor="yellow" style="WIDTH:150px; HEIGHT: 17px" nowrap><font size="2" color="blue"><%Response.Write arr(i,4)%> </font> </td>
</tr>
<tr><td bgcolor="00FF00" style="WIDTH:150px; HEIGHT: 17px" align="left" >|</td></tr>
<tr><%i=i+1%>
<td align="left" bgcolor="yellow" align="left" style="WIDTH:150px; HEIGHT:17px" nowrap><font size="2" color="red"><%Response.Write arr(i,4)%></font> </td>
</tr>
<%if parent=8 then
exit for
else%>
<tr><td bgcolor="00FF00" style="WIDTH:150px; HEIGHT:17px"></td></tr>
<tr><td bgcolor="00FF00"style="WIDTH:150px; HEIGHT:17px"></td></tr>
<tr><td bgcolor="00FF00" style="WIDTH:150px; HEIGHT:17px"></td></tr>
<%end if
next%>
<tr><td bgcolor="00FF00" style="WIDTH:150px; HEIGHT:17px"></td></tr>
</table>
</td>
</tr>
</table>
<td align="left" height="17"><font size="1" color="blue"><%Response.Write arr(i,4)%></font> </td>
</tr>
<tr><td bgcolor="00FF00" width="20%" height="17" align="left">|</td></tr>
<tr><%i=i+1%>
<td align="left" height="17"><font size="1" color="red"><%Response.Write arr(i,4)%></font> </td>
</tr>
<tr><td bgcolor="00FF00" width="20%" height="17"></td></tr>
<tr><td bgcolor="00FF00" width="20%" height="17"></td></tr>
<tr><td bgcolor="00FF00" width="20%" height="17"></td></tr>
<tr><%i=i+1%>
<td align="left" height="17"><font size="1" color="blue"><%Response.Write arr(i,4)%></font> </td>
</tr>
<tr><td bgcolor="00FF00" width="20%" height="17" align="left">|</td></tr>
<tr><%i=i+1%>
<td align="left" height="17"><font size="1" color="red"><%Response.Write arr(i,4)%></font> </td>
</tr>
<tr><td bgcolor="00FF00" width="20%"></td></tr>
<tr><td bgcolor="00FF00" width="20%"></td></tr>
<tr><td bgcolor="00FF00" width="20%"></td></tr>
the code creates 1 table that contains 5 tables
pls your help, desperate
nivini
I'm trying to create a table for a pedigree
i have this code. it looks only nice, i want it to look very acurate, the individual in the fourth table shoulb be exactly in the same line as the | mark in the fifth table,
can anyone find what makes it "move" down a beat , each loop?
help would be most appriciate
<table border=0 style=" HEIGHT:799px" bgcolor="00FF00" width="750px" align="center">
<tr valign="top">
<td >
<table border=0 style="WIDTH:150px; HEIGHT: 799px"><% 'table 1%>
<%for x=1 to 3%>
<tr><td bgcolor="00FF00" width="150px" height="17"></td></tr>
<%next%>
<tr>
<td bgcolor="silver" width=150px" align="left" height="17"><%Response.Write (Request.Form ("name"))%> </td>
</tr>
<%for x=1 to 3%>
<tr><td bgcolor="00FF00" width="150px" height="17"></td></tr>
<%next%>
</table>
</td>
<td>
<table border=0 style="WIDTH: 150px; HEIGHT:799px"><% 'table 2%>
<% for x=1 to 11%>
<tr><td bgcolor="00FF00" width="150px" align="left" nowrap height="17"></td></tr>
<%next%>
<%i=1%>
<tr><td align="left" nowrap height="17" width="150px"><font color="blue" size="4" ><%Response.Write arr(i,4)%></font><br>
<font color="black" size="2">
<%Response.Write arr(i,3)%><br>
<%Response.Write arr(i,2)%><br>
</font>
</td>
</tr>
<% for x=1 to 23%>
<tr><td bgcolor="00FF00" width="150px" align="left" height="17">|</td></tr>
<% next%>
<tr><%i=i+1%>
<td align="left" width="150px" height="17"><font color="red" size="4" height="17"><% Response.Write arr(i,4)%></font><br>
<font color="black" size="2">
<%Response.Write arr(i,3)%><br>
<%Response.Write arr(i,2)%><br>
</font>
</td>
</tr>
<% for x=1 to 11%>
<tr><td bgcolor="00FF00" width="150px" align="left" nowrap height="17px"></td></tr>
<%next%>
</table>
</td>
<td>
<table border=0 style="WIDTH: 150px; HEIGHT: 799px"> <%' table 3%>
<%for x=1 to 5%>
<tr><td bgcolor="00FF00" style="WIDTH:150px; HEIGHT: 17px"></td></tr>
<%next%>
<tr><%i=i+1%>
<td align="left" width="150px" nowrap height="17"><font size="3" color="blue"><%Response.Write arr(i,4)%><br></font> </td>
</tr>
<%for x=1 to 11%>
<tr><td bgcolor="00FF00" style="WIDTH:150px; HEIGHT: 17px">|</td></tr>
<%next%>
<tr><%i=i+1%>
<td align="left" width="150px" nowrap height="17"><font size="3" color="red"><%Response.Write arr(i,4)%><br></font> </td>
</tr>
<%for x=1 to 11%>
<tr><td bgcolor="00FF00" width="150px" nowrap height="17"></td></tr>
<%next%>
<tr><%i=i+1%>
<td align="left" width="150px" nowrap height="17"><font size="3" color="blue"><%Response.Write arr(i,4)%><br></font> </td>
</tr>
<%for x=1 to 11%>
<tr><td bgcolor="00FF00" width="150px" height="17">|</td></tr>
<%next%>
<tr><%i=i+1%>
<td align="left" width="150px" nowrap height="17"><font size="3" color="red"><%Response.Write arr(i,4)%><br></font> </td>
</tr>
<%for x=1 to 5%>
<tr><td bgcolor="00FF00" width="150px" height="17"></td></tr>
<%next%>
</table>
</td>
<td align="justify">
<table border=0 style="WIDTH:150px; HEIGHT: 799px"> <% 'table 4 %>
<tr><td bgcolor="00FF00" style="WIDTH:150px; HEIGHT: 17px"></td></tr>
<tr><td bgcolor="00FF00" style="WIDTH:150px; HEIGHT: 17px"></td></tr>
<%for parent=1 to 4%>
<tr><%i=i+1%>
<td align="left" style="WIDTH:150px; HEIGHT: 17px" bgcolor="yellow" nowrap><font size="2" color="blue"><%Response.Write arr(i,4)%></font> </td>
</tr>
<%
for x=1 to 5%>
<tr><td bgcolor="00FF00" style="WIDTH:150px; HEIGHT: 17px" align="left" >|</td></tr>
<%next%>
<tr><%i=i+1%>
<td align="left" style="WIDTH:150px; HEIGHT: 17px" bgcolor="yellow" nowrap><font size="2" color="red"><%Response.Write arr(i,4)%></font> </td>
</tr>
<%
if parent=4 then
exit for
else
for x=1 to 5%>
<tr><td bgcolor="00FF00" style="WIDTH:150px; HEIGHT: 17px" ></td></tr>
<%next%>
<%end if%>
<%next%>
<tr><td bgcolor="00FF00" style="WIDTH:150px; HEIGHT:17px" nowrap></td></tr>
<tr><td bgcolor="00FF00" style="WIDTH:150px; HEIGHT: 17px" nowrap></td></tr>
</table>
</td>
<td align="justify">
<table border=0 style="WIDTH:150px; HEIGHT: 799px">
<tr><td bgcolor="00FF00" style="WIDTH:150px; HEIGHT:17px"></td></tr>
<%for parent=1 to 8%>
<tr><%i=i+1%>
<td align="left" bgcolor="yellow" style="WIDTH:150px; HEIGHT: 17px" nowrap><font size="2" color="blue"><%Response.Write arr(i,4)%> </font> </td>
</tr>
<tr><td bgcolor="00FF00" style="WIDTH:150px; HEIGHT: 17px" align="left" >|</td></tr>
<tr><%i=i+1%>
<td align="left" bgcolor="yellow" align="left" style="WIDTH:150px; HEIGHT:17px" nowrap><font size="2" color="red"><%Response.Write arr(i,4)%></font> </td>
</tr>
<%if parent=8 then
exit for
else%>
<tr><td bgcolor="00FF00" style="WIDTH:150px; HEIGHT:17px"></td></tr>
<tr><td bgcolor="00FF00"style="WIDTH:150px; HEIGHT:17px"></td></tr>
<tr><td bgcolor="00FF00" style="WIDTH:150px; HEIGHT:17px"></td></tr>
<%end if
next%>
<tr><td bgcolor="00FF00" style="WIDTH:150px; HEIGHT:17px"></td></tr>
</table>
</td>
</tr>
</table>
<td align="left" height="17"><font size="1" color="blue"><%Response.Write arr(i,4)%></font> </td>
</tr>
<tr><td bgcolor="00FF00" width="20%" height="17" align="left">|</td></tr>
<tr><%i=i+1%>
<td align="left" height="17"><font size="1" color="red"><%Response.Write arr(i,4)%></font> </td>
</tr>
<tr><td bgcolor="00FF00" width="20%" height="17"></td></tr>
<tr><td bgcolor="00FF00" width="20%" height="17"></td></tr>
<tr><td bgcolor="00FF00" width="20%" height="17"></td></tr>
<tr><%i=i+1%>
<td align="left" height="17"><font size="1" color="blue"><%Response.Write arr(i,4)%></font> </td>
</tr>
<tr><td bgcolor="00FF00" width="20%" height="17" align="left">|</td></tr>
<tr><%i=i+1%>
<td align="left" height="17"><font size="1" color="red"><%Response.Write arr(i,4)%></font> </td>
</tr>
<tr><td bgcolor="00FF00" width="20%"></td></tr>
<tr><td bgcolor="00FF00" width="20%"></td></tr>
<tr><td bgcolor="00FF00" width="20%"></td></tr>
the code creates 1 table that contains 5 tables
pls your help, desperate
nivini