| Line 816... |
Line 816... |
| 816 |
** - Place within complete field
|
816 |
** - Place within complete field
|
| 817 |
** - Team number - with HTML reference to team file
|
817 |
** - Team number - with HTML reference to team file
|
| 818 |
** - Class
|
818 |
** - Class
|
| 819 |
*/
|
819 |
*/
|
| 820 |
if ( report_html == printed && lcount %5 == 4 ) print_underline( TRUE );
|
820 |
if ( report_html == printed && lcount %5 == 4 ) print_underline( TRUE );
|
| 821 |
print( "%4.4s ", pr_place( team_buf.leg[0].l_place, ptr->flags.bad_times || ptr->flags.non_equestrian ) );
|
821 |
print( "%4.4s ", pn_place( team_buf.leg[0].l_place, ptr->flags.bad_times, ptr->flags.non_equestrian ) );
|
| 822 |
if ( report_html == html ) print( "<A HREF=\"%s#Team_%04d\">", url_encode(p_filename(filebase, "name" ,"html")), team_buf.numb );
|
822 |
if ( report_html == html ) print( "<A HREF=\"%s#Team_%04d\">", url_encode(p_filename(filebase, "name" ,"html")), team_buf.numb );
|
| 823 |
print( "%4d", team_buf.numb );
|
823 |
print( "%4d", team_buf.numb );
|
| 824 |
if ( report_html == html ) print( "</A>" );
|
824 |
if ( report_html == html ) print( "</A>" );
|
| 825 |
|
825 |
|
| 826 |
print( " %-*s", 3, team_buf.teamclass == 0 ? "" : config.team_class[team_buf.teamclass - 1].abr );
|
826 |
print( " %-*s", 3, team_buf.teamclass == 0 ? "" : config.team_class[team_buf.teamclass - 1].abr );
|
| Line 883... |
Line 883... |
| 883 |
|
883 |
|
| 884 |
|
884 |
|
| 885 |
for( ptr = sort_data, i = 0; i < sort_num; i++, ptr++ )
|
885 |
for( ptr = sort_data, i = 0; i < sort_num; i++, ptr++ )
|
| 886 |
{
|
886 |
{
|
| 887 |
int flags = 0;
|
887 |
int flags = 0;
|
| 888 |
int rflags = 0;
|
888 |
bool eflags;
|
| 889 |
|
889 |
|
| 890 |
/*
|
890 |
/*
|
| 891 |
** Detect a change in the "class"
|
891 |
** Detect a change in the "class"
|
| 892 |
** All data is within the one array of data
|
892 |
** All data is within the one array of data
|
| 893 |
** Use the in-memory class as this MAY differ from that stored
|
893 |
** Use the in-memory class as this MAY differ from that stored
|
| Line 917... |
Line 917... |
| 917 |
|
917 |
|
| 918 |
/*
|
918 |
/*
|
| 919 |
** Now read in the team record
|
919 |
** Now read in the team record
|
| 920 |
*/
|
920 |
*/
|
| 921 |
g_record( ptr->team, &team_buf );
|
921 |
g_record( ptr->team, &team_buf );
|
| 922 |
rflags = flags = ptr->flags.bad_times;
|
922 |
flags = ptr->flags.bad_times;
|
| 923 |
if ( ptr->teamclass != config.nonequestrian_class )
|
923 |
eflags = (ptr->teamclass != config.nonequestrian_class && ptr->flags.non_equestrian);
|
| 924 |
{
|
- |
|
| 925 |
rflags |= ptr->flags.non_equestrian;
|
- |
|
| 926 |
}
|
- |
|
| 927 |
|
924 |
|
| 928 |
/*
|
925 |
/*
|
| 929 |
** If printing an HTML report then we need to mark
|
926 |
** If printing an HTML report then we need to mark
|
| 930 |
** the entry with a reference so that we can link to it
|
927 |
** the entry with a reference so that we can link to it
|
| 931 |
*/
|
928 |
*/
|
| Line 938... |
Line 935... |
| 938 |
** - Team number - with HTML reference to team file
|
935 |
** - Team number - with HTML reference to team file
|
| 939 |
** - Class
|
936 |
** - Class
|
| 940 |
*/
|
937 |
*/
|
| 941 |
|
938 |
|
| 942 |
if ( report_html == printed && lcount %5 == 4 ) print_underline( TRUE );
|
939 |
if ( report_html == printed && lcount %5 == 4 ) print_underline( TRUE );
|
| 943 |
print( "%4.4s ", pr_place( team_buf.leg[0].lc_place, rflags ) );
|
940 |
print( "%4.4s ", pn_place( team_buf.leg[0].lc_place, flags , eflags ) );
|
| 944 |
if ( report_html == html ) print( "<A HREF=\"%s#Team_%04d\">", url_encode(p_filename(filebase, "name" ,"html")), team_buf.numb );
|
941 |
if ( report_html == html ) print( "<A HREF=\"%s#Team_%04d\">", url_encode(p_filename(filebase, "name" ,"html")), team_buf.numb );
|
| 945 |
print( "%4d", team_buf.numb );
|
942 |
print( "%4d", team_buf.numb );
|
| 946 |
if ( report_html == html ) print( "</A>" );
|
943 |
if ( report_html == html ) print( "</A>" );
|
| 947 |
print( " %-*s", 3, team_buf.teamclass == 0 ? "" : config.team_class[team_buf.teamclass - 1].abr );
|
944 |
print( " %-*s", 3, team_buf.teamclass == 0 ? "" : config.team_class[team_buf.teamclass - 1].abr );
|
| 948 |
|
945 |
|
| Line 973... |
Line 970... |
| 973 |
*/
|
970 |
*/
|
| 974 |
/* print( " %-8s ", time_a( team_buf.leg[0].elapsed ) ); */
|
971 |
/* print( " %-8s ", time_a( team_buf.leg[0].elapsed ) ); */
|
| 975 |
print( " %-8s ", time_a( ptr->lege[0] ) );
|
972 |
print( " %-8s ", time_a( ptr->lege[0] ) );
|
| 976 |
|
973 |
|
| 977 |
if ( report_html == html ) print( "<A HREF=\"%s#Team_%04d\">", url_encode(p_filename(filebase, "finish" ,"html")), team_buf.numb );
|
974 |
if ( report_html == html ) print( "<A HREF=\"%s#Team_%04d\">", url_encode(p_filename(filebase, "finish" ,"html")), team_buf.numb );
|
| 978 |
print( "%4.4s", pr_place( team_buf.leg[0].l_place, rflags || (ptr->teamclass == config.nonequestrian_class)));
|
975 |
print( "%4.4s", pn_place( team_buf.leg[0].l_place, flags , (ptr->teamclass == config.nonequestrian_class && ptr->flags.non_equestrian)));
|
| 979 |
if ( report_html == html ) print( "</A>" );
|
976 |
if ( report_html == html ) print( "</A>" );
|
| 980 |
|
977 |
|
| 981 |
if ( report_html == printed && lcount %5 == 4 ) print_underline( FALSE );
|
978 |
if ( report_html == printed && lcount %5 == 4 ) print_underline( FALSE );
|
| 982 |
lcount++;
|
979 |
lcount++;
|
| 983 |
print( "\n" );
|
980 |
print( "\n" );
|