Hello,
I am using the following code to group menu items with categories and subcategories, this one being entrees. This code works great, but since there are 6 entree groups, there are too many columns spread across. What I need is to take the following code one step further and split the whole thing up into three across, i.e. if there are 9 strTypes which there are in other menu groups, I need to split the whole shmere into 3 groups of three. Any thoughts how I can do this? Thanks in advance for your input.
Code:
<%
set rsEntrees=objConn.execute("select * from qyEntrees")
Response.Write "<tr><td colspan=5 align=center valign=top>" & rsEntrees("entree_notes") & "<tr><td colspan=5 valign=top align=center><table width='100%' cellpadding=5 align=center><tr>"
'entrees
do While NOT rsEntrees.EOF
strType = rsEntrees("entree_name")
If strType <> strOldType Then
Response.Write "<td width=" & width & " valign=top class=timesit18><U>" & strType & "</U><br>"
End If
strName=rsEntrees("entrees_items_name")
if strName <> strOldName then
Response.Write "<br><div class=timesit14>" & strName & "</div>"
end if
if rsEntrees("entrees_items_notes")>"" then
Response.Write "<div class=timesit12>" & rsEntrees("entrees_items_notes") & "</div>"
end if
strOldName = strName
strOldType = strType
rsEntrees.MoveNext
loop
Response.Write "</table></table>"