Just nu i M3-nätverket
Jump to content

Lite table problem


matza

Recommended Posts

http://img205.imageshack.us/img205/116/tablecv3.gif

Som ni ser, kommer inte texten under som den ovanför. Alltså lite inskjuten.

Har kollat igenom koden, men det kanske är lättare om någon som inte stirrat sig blind kan ta sig en liten titt :)

 

[log]

<table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td><img src="http://gfx.url.se/gfx/boxes/480/top_green2.gif" width="480" height="12"></td>

</tr>

<tr>

<td><table width="480" border="0" cellpadding="0" cellspacing="0" class="table_green_480">

<tr>

<td valign="top"><span class="headline_sub_black"><%=Global.Translate("LABEL_MyStartedShowjumpings").ToLower()%></span><br> <table width="100%" border="0" cellpadding="0" cellspacing="0" class="text">

<asp:Panel Runat="server" ID="MyExists">

<tr>

<td width="45%"><em><%=Global.Translate("LABEL_CompetitionName")%></em></td>

<td width="28%"><em><%=Global.Translate("LABEL_CompetitionFinishes")%></em></td>

<td width="13%"><em><%=Global.Translate("LABEL_Competititors")%></em></td>

<td width="12%"><em><%=Global.Translate("LABEL_PrizeSum")%></em></td>

<td width="2%"> </td>

</tr>

<asp:Repeater ID="startedRepeater" Runat="server" EnableViewState="False">

<ItemTemplate>

<tr bgcolor="#69AB00" onMouseOver="this.style.background='#FFFFFF';" onMouseOut="this.style.background='#69AB00';">

<td><a href="viewshowjumping.aspx?showId=<%# DataBinder.Eval(Container.DataItem, "ShowId")%>" style="font-weight: normal; color: #000000"><%# DataBinder.Eval(Container.DataItem, "Name")%></a></td>

<td><%# Ends(Container.DataItem) %></td>

<td><%# DataBinder.Eval(Container.DataItem, "CurrentNumberOfParticipants")%></td>

<td><%# PrizeMoney(Container.DataItem) %> <%=Global.Translate("COMMON_HorsePenniesShort")%></td>

<td align="right"><a href="javascript:Delete(<%# DataBinder.Eval(Container.DataItem, "ShowId")%>);" style="color: #dddddd">x</a></td>

</tr>

</ItemTemplate>

<AlternatingItemTemplate>

<tr onMouseOver="this.style.background='#FFFFFF';" onMouseOut="this.style.background='';">

<td><a href="viewshowjumping.aspx?showId=<%# DataBinder.Eval(Container.DataItem, "ShowId")%>" style="font-weight: normal; color: #000000"><%# DataBinder.Eval(Container.DataItem, "Name")%></a></td>

<td><%# Ends(Container.DataItem) %></td>

<td><%# DataBinder.Eval(Container.DataItem, "CurrentNumberOfParticipants")%></td>

<td><%# PrizeMoney(Container.DataItem) %> <%=Global.Translate("COMMON_HorsePenniesShort")%></td>

<td align="right"><a href="javascript:Delete(<%# DataBinder.Eval(Container.DataItem, "ShowId")%>);" style="color: #dddddd">x</a></td>

</tr>

</AlternatingItemTemplate>

</asp:Repeater>

</asp:Panel>

<asp:Panel Runat="server" ID="MyNotExists">

<tr>

<td width="100%"><%=Global.Translate("LABEL_YouHaventStartedCompetitions").ToLower()%></td>

</tr>

</asp:Panel>

</table></td>

</tr>

<tr>

<td valign="top" bgcolor="#76C100"><span class="headline_sub_black"> <%=Global.Translate("LABEL_ShowjumpingsImRegisteredIn").ToLower()%></span><br>

<table width="100%" border="0" cellpadding="0" cellspacing="0" class="text">

<asp:Panel Runat="server" ID="PartExists">

<tr>

<td width="45%"><em><%=Global.Translate("LABEL_CompetitionName")%></em></td>

<td width="35%"><em><%=Global.Translate("LABEL_RegisteredHorse")%></em></td>

<td width="20%"><em><%=Global.Translate("LABEL_CompetitionFinishes")%></em></td>

</tr>

<asp:Repeater ID="participantRepeater" Runat="server" EnableViewState="False">

<ItemTemplate>

<tr bgcolor="#69AB00" onMouseOver="this.style.background='#FFFFFF';" onMouseOut="this.style.background='#69AB00';">

<td><a href="viewshowjumping.aspx?showId=<%# DataBinder.Eval(Container.DataItem, "ShowId")%>" style="font-weight: normal; color: #000000"><%# DataBinder.Eval(Container.DataItem, "ShowName")%></a></td>

<td><a href="/studfarm/gotohorse.asp?userid=123&horseid=123" style="font-weight: normal; color: #000000"><%# DataBinder.Eval(Container.DataItem, "HorseName")%></a></td>

<td><%# Ends(Container.DataItem) %></td>

</tr>

</ItemTemplate>

<AlternatingItemTemplate>

<tr onMouseOver="this.style.background='#FFFFFF';" onMouseOut="this.style.background='';">

<td><a href="viewshowjumping.aspx?showId=<%# DataBinder.Eval(Container.DataItem, "ShowId")%>" style="font-weight: normal; color: #000000"><%# DataBinder.Eval(Container.DataItem, "ShowName")%></a></td>

<td><a href="/studfarm/gotohorse.asp?userid=123&horseid=123" style="font-weight: normal; color: #000000"><%# DataBinder.Eval(Container.DataItem, "HorseName")%></a></td>

<td><%# Ends(Container.DataItem) %></td>

</tr>

</AlternatingItemTemplate>

</asp:Repeater>

</asp:Panel>

<asp:Panel Runat="server" ID="PartNotExists">

<tr>

<td width="100%"><%=Global.Translate("LABEL_YouHaventRegisteredHorseShowjumping").ToLower()%>...</td>

</tr>

</asp:Panel>

</table></td>

</tr>

<tr>

<td valign="top" bgcolor="#76C100"><span class="headline_sub_black"><%=Global.Translate("LABEL_MyWins").ToLower()%></span><br>

<table width="100%" border="0" cellpadding="0" cellspacing="0" class="text">

<asp:Panel Runat="server" ID="GotWins">

<tr>

<td width="38%"><em><%=Global.Translate("LABEL_CompetitionName")%></em></td>

<td width="29%"><em><%=Global.Translate("LABEL_CompetingHorse")%></em></td>

<td width="23%"><em><%=Global.Translate("LABEL_Finished")%></em></td>

<td width="10%"><em><%=Global.Translate("LABEL_Place")%></em></td>

</tr>

<asp:Repeater ID="WinsList" Runat="server" EnableViewState="False">

<ItemTemplate>

<tr bgcolor="#69AB00" onMouseOver="this.style.background='#FFFFFF';" onMouseOut="this.style.background='#69AB00';">

<td><a href="viewshowjumping.aspx?showId=<%# DataBinder.Eval(Container.DataItem, "ShowId")%>" style="font-weight: normal; color: #000000"><%# DataBinder.Eval(Container.DataItem, "ShowName")%></a></td>

<td><a href="/studfarm/gotohorse.aspx?userid=<%# DataBinder.Eval(Container.DataItem, "UserId")%>&horseid=<%# DataBinder.Eval(Container.DataItem, "HorseId")%>" style="font-weight: normal; color: #000000"><%# DataBinder.Eval(Container.DataItem, "HorseName")%></a></td>

<td><%# EndsWins(Container.DataItem) %></td>

<td><%# DataBinder.Eval(Container.DataItem, "Pos")%></td>

</tr>

</ItemTemplate>

<AlternatingItemTemplate>

<tr onMouseOver="this.style.background='#FFFFFF';" onMouseOut="this.style.background='';">

<td><a href="viewshowjumping.aspx?showId=<%# DataBinder.Eval(Container.DataItem, "ShowId")%>" style="font-weight: normal; color: #000000"><%# DataBinder.Eval(Container.DataItem, "ShowName")%></a></td>

<td><a href="/studfarm/gotohorse.aspx?userid=<%# DataBinder.Eval(Container.DataItem, "UserId")%>&horseid=<%# DataBinder.Eval(Container.DataItem, "HorseId")%>" style="font-weight: normal; color: #000000"><%# DataBinder.Eval(Container.DataItem, "HorseName")%></a></td>

<td><%# EndsWins(Container.DataItem) %></td>

<td><%# DataBinder.Eval(Container.DataItem, "Pos")%></td>

</tr>

</AlternatingItemTemplate>

</asp:Repeater>

</asp:Panel>

<asp:Panel Runat="server" ID="NoWins">

<tr>

<td width="100%"><%=Global.Translate("LABEL_NoWins")%>...</td>

</tr>

</asp:Panel>

</table></td>

</tr>

</table></td>

</tr>

<tr>

<td><img src="http://gfx.url.se/gfx/boxes/480/bottom_green2.gif" width="480" height="13" align="top"></td>

</tr>

</table>

[/log]

 

Jag vet att det ser jävligt ut, så smalt :P

[inlägget ändrat 2006-11-01 10:40:39 av matza]

 

Lagt till LOG-tag. Mr Andersson, Moderator HTML

 

[inlägget ändrat 2006-11-01 19:52:27 av Mr Andersson]

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.



×
×
  • Create New...