Looking For Ideas
I am running in to an issue with the following:
List Page: After Records Processed
global $make1;
if($make1!=$data["judge"])
{
$make1=$data["judge"];
$row["showheader1"]=true;
$row["header1"]=$data["judge"];
}
global $make2;
if($make2!=$data["rep"])
{
$make2=$data["rep"];
$row["showheader2"]=true;
$row["header2"]=$data["rep"];
}
global $make3;
if($make3!=$data["show"])
{
$make3=$data["show"];
$row["showheader3"]=true;
$row["header3"]=$data["show"];
}
global $make4;
if($make4!=$data["breed"])
{
$make4=$data["breed"];
$row["showheader4"]=true;
$row["header4"]=$data["breed"];
}
global $make5;
if($make5!=$data["class"])
{
$make5=$data["class"];
$row["showheader5"]=true;
$row["header5"]=$data["class"];
}
global $make6;
if($make6!=$data["agegroup"])
{
$make6=$data["agegroup"];
$row["showheader6"]=true;
$row["header6"]=$data["agegroup"];
}
I am getting inconsistent display of headers
Sometimes it displays correctly and sometimes its mixed up.
Maybe the is an easier way to create the headers on the fly
this is my main goal:
To group the results by, Breed, Class, Age Group
separating the dogs by agegroup ( this is where it gets inconsistent - dogs are not always grouped under the agegroup )
HTML View on ListView
{BEGIN showheader1}
<TR>
<TD colspan="10">
<B>
<FONT color="#ffffff"><FONT
size="3">Judge:</FONT> <FONT size="3">{$header1}</FONT></FONT>
</B>
</TD>
</TR>
{END showheader1}
{BEGIN showheader2}
<TR>
<TD colspan="10">
<B>
<FONT color="#ffffff"><FONT
size="1">Rep: </FONT><FONT size="1">{$header2}</FONT></FONT>
</B>
</TD>
</TR>
{END showheader2}
{BEGIN showheader3}
<TR>
<TD colspan="10">
<B>
<FONT color="#ffffff"><FONT
size="1">Rep: </FONT><FONT size="1">{$header3}</FONT></FONT>
</B>
</TD>
</TR>
{END showheader3}
{BEGIN showheader4}
<TR>
<TD colspan="10">
<B>
<FONT color="yellow"> <FONT size="2">{$header4}</FONT></FONT>
</B>
</TD>
</TR>
{END showheader4}
{BEGIN showheader5}
<TR>
<TD colspan="10">
<B>
<FONT color="yellow"> <FONT size="2">{$header5}</FONT></FONT>
</B>
</TD>
</TR>
{END showheader5}
{BEGIN showheader6}
<TR>
<TD colspan="10">
<B>
<FONT color="white"> <FONT size="2">{$header6}</FONT></FONT>
</B>
</TD>
</TR>
{END showheader6}