| Line 854... |
Line 854... |
| 854 |
print( " %-8s %4.4s %4.4s", "-- NE --", "NE","NE");
|
854 |
print( " %-8s %4.4s %4.4s", "-- NE --", "NE","NE");
|
| 855 |
}
|
855 |
}
|
| 856 |
else
|
856 |
else
|
| 857 |
{
|
857 |
{
|
| 858 |
print( " %-8s", time_a( team_buf.leg[j].elapsed ));
|
858 |
print( " %-8s", time_a( team_buf.leg[j].elapsed ));
|
| 859 |
print( " %4.4s", px_place( j, team_buf.leg[j].l_place, false, false, ptr->flags ));
|
859 |
if ( config.num_legs != 1 ) print( " %4.4s", px_place( j, team_buf.leg[j].l_place, false, false, ptr->flags ));
|
| 860 |
if ( config.num_legs != 1 ) print( " %4.4s", px_place( j, team_buf.leg[j].le_place,true , true, ptr->flags ));
|
860 |
if ( config.num_legs != 1 ) print( " %4.4s", px_place( j, team_buf.leg[j].le_place,true , true, ptr->flags ));
|
| 861 |
if ( config.num_legs == 1 ) print( " %-*s ", MAX_TM_NAME, team_buf.name );
|
861 |
if ( config.num_legs == 1 ) print( " %-*s ", MAX_TM_NAME, team_buf.name );
|
| 862 |
}
|
862 |
}
|
| 863 |
}
|
863 |
}
|
| 864 |
|
864 |
|
| Line 993... |
Line 993... |
| 993 |
print( " %-8s %4.4s %4.4s", "-- NE --", "NE","NE");
|
993 |
print( " %-8s %4.4s %4.4s", "-- NE --", "NE","NE");
|
| 994 |
}
|
994 |
}
|
| 995 |
else
|
995 |
else
|
| 996 |
{
|
996 |
{
|
| 997 |
print( " %-8s", time_a( team_buf.leg[j].elapsed ));
|
997 |
print( " %-8s", time_a( team_buf.leg[j].elapsed ));
|
| 998 |
print( " %4.4s", px_place( j, team_buf.leg[j].lc_place, false, false, ptr->flags ));
|
998 |
if ( config.num_legs != 1 ) print( " %4.4s", px_place( j, team_buf.leg[j].lc_place, false, false, ptr->flags ));
|
| 999 |
if ( config.num_legs != 1 ) print( " %4.4s", px_place( j, team_buf.leg[j].lec_place, true , true, ptr->flags ) );
|
999 |
if ( config.num_legs != 1 ) print( " %4.4s", px_place( j, team_buf.leg[j].lec_place, true , true, ptr->flags ) );
|
| 1000 |
if ( config.num_legs == 1 ) print( " %-*s ", MAX_TM_NAME, team_buf.name );
|
1000 |
if ( config.num_legs == 1 ) print( " %-*s ", MAX_TM_NAME, team_buf.name );
|
| 1001 |
}
|
1001 |
}
|
| 1002 |
}
|
1002 |
}
|
| 1003 |
|
1003 |
|
| Line 1173... |
Line 1173... |
| 1173 |
print( " %-8s %4.4s %4.4s", "-- NE --", "NE","NE");
|
1173 |
print( " %-8s %4.4s %4.4s", "-- NE --", "NE","NE");
|
| 1174 |
}
|
1174 |
}
|
| 1175 |
else
|
1175 |
else
|
| 1176 |
{
|
1176 |
{
|
| 1177 |
print( " %-8s", time_a( team_buf.leg[j].elapsed ));
|
1177 |
print( " %-8s", time_a( team_buf.leg[j].elapsed ));
|
| 1178 |
print( " %4.4s", px_place(j, team_buf.leg[j].l_place, false, false, ptr->flags ));
|
1178 |
if ( config.num_legs != 1 ) print( " %4.4s", px_place(j, team_buf.leg[j].l_place, false, false, ptr->flags ));
|
| 1179 |
if ( config.num_legs != 1 ) print( " %4.4s", px_place(j, team_buf.leg[j].le_place,true, true, ptr->flags ) );
|
1179 |
if ( config.num_legs != 1 ) print( " %4.4s", px_place(j, team_buf.leg[j].le_place,true, true, ptr->flags ) );
|
| 1180 |
if ( config.num_legs == 1 ) print( " %-*s ", MAX_TM_NAME, team_buf.name );
|
1180 |
if ( config.num_legs == 1 ) print( " %-*s ", MAX_TM_NAME, team_buf.name );
|
| 1181 |
}
|
1181 |
}
|
| 1182 |
}
|
1182 |
}
|
| 1183 |
|
1183 |
|
| Line 1188... |
Line 1188... |
| 1188 |
** - Category place - with reference to category file
|
1188 |
** - Category place - with reference to category file
|
| 1189 |
*/
|
1189 |
*/
|
| 1190 |
if ( config.num_legs != 1 ) print( " %-8s ", time_a( ptr->lege[0] ) );
|
1190 |
if ( config.num_legs != 1 ) print( " %-8s ", time_a( ptr->lege[0] ) );
|
| 1191 |
|
1191 |
|
| 1192 |
if ( report_html == html ) print( "<A HREF=\"%s#Team_%04d\">",url_encode(p_filename(filebase, config.team_class[team_buf.teamclass - 1].abr ,"html")), team_buf.numb );
|
1192 |
if ( report_html == html ) print( "<A HREF=\"%s#Team_%04d\">",url_encode(p_filename(filebase, config.team_class[team_buf.teamclass - 1].abr ,"html")), team_buf.numb );
|
| 1193 |
print( "%-4.4s", px_place( 0, team_buf.leg[0].lc_place, false, false, ptr->flags ) );
|
1193 |
print( "%4.4s", px_place( 0, team_buf.leg[0].lc_place, false, false, ptr->flags ) );
|
| 1194 |
if ( report_html == html ) print( "</A>" );
|
1194 |
if ( report_html == html ) print( "</A>" );
|
| 1195 |
if ( report_html == printed && lcount %5 == 4 ) print_underline( FALSE );
|
1195 |
if ( report_html == printed && lcount %5 == 4 ) print_underline( FALSE );
|
| 1196 |
lcount++;
|
1196 |
lcount++;
|
| 1197 |
print( "\n" );
|
1197 |
print( "\n" );
|
| 1198 |
}
|
1198 |
}
|
| Line 2053... |
Line 2053... |
| 2053 |
team_buf.teamclass == 0 ? "" : config.team_class[team_buf.teamclass - 1].abr );
|
2053 |
team_buf.teamclass == 0 ? "" : config.team_class[team_buf.teamclass - 1].abr );
|
| 2054 |
|
2054 |
|
| 2055 |
for( j = 1; j <= config.num_legs; j++ )
|
2055 |
for( j = 1; j <= config.num_legs; j++ )
|
| 2056 |
{
|
2056 |
{
|
| 2057 |
print( " %-8s", time_fa( team_buf.leg[j].elapsed, ptr->flags.disqualified ));
|
2057 |
print( " %-8s", time_fa( team_buf.leg[j].elapsed, ptr->flags.disqualified ));
|
| 2058 |
print( " %4.4s", px_place(j, team_buf.leg[j].l_place, false, true, ptr->flags ));
|
2058 |
if ( config.num_legs != 1 ) print( " %4.4s", px_place(j, team_buf.leg[j].l_place, false, true, ptr->flags ));
|
| 2059 |
if ( config.num_legs != 1 ) print( " %4.4s", px_place(j, team_buf.leg[j].le_place, false, true, ptr->flags ));
|
2059 |
if ( config.num_legs != 1 ) print( " %4.4s", px_place(j, team_buf.leg[j].le_place, false, true, ptr->flags ));
|
| 2060 |
if ( config.num_legs == 1 ) print( " %-*s ", MAX_TM_NAME, team_buf.name );
|
2060 |
if ( config.num_legs == 1 ) print( " %-*s ", MAX_TM_NAME, team_buf.name );
|
| 2061 |
}
|
2061 |
}
|
| 2062 |
|
2062 |
|
| 2063 |
if ( config.num_legs != 1 ) print( " %-8s", time_fa( team_buf.leg[0].elapsed, ptr->flags.disqualified ));
|
2063 |
if ( config.num_legs != 1 ) print( " %-8s", time_fa( team_buf.leg[0].elapsed, ptr->flags.disqualified ));
|
| Line 2112... |
Line 2112... |
| 2112 |
team_buf.teamclass == 0 ? "" : config.team_class[team_buf.teamclass - 1].abr );
|
2112 |
team_buf.teamclass == 0 ? "" : config.team_class[team_buf.teamclass - 1].abr );
|
| 2113 |
|
2113 |
|
| 2114 |
for( j = 1; j <= config.num_legs; j++ )
|
2114 |
for( j = 1; j <= config.num_legs; j++ )
|
| 2115 |
{
|
2115 |
{
|
| 2116 |
print( " %-8s", time_fa( team_buf.leg[j].elapsed, ptr->flags.disqualified ));
|
2116 |
print( " %-8s", time_fa( team_buf.leg[j].elapsed, ptr->flags.disqualified ));
|
| 2117 |
print( " %4.4s", px_place(j, team_buf.leg[j].lc_place, false, true, ptr->flags ));
|
2117 |
if ( config.num_legs != 1 ) print( " %4.4s", px_place(j, team_buf.leg[j].lc_place, false, true, ptr->flags ));
|
| 2118 |
if ( config.num_legs != 1 ) print( " %4.4s", px_place(j, team_buf.leg[j].lec_place, false, true, ptr->flags ));
|
2118 |
if ( config.num_legs != 1 ) print( " %4.4s", px_place(j, team_buf.leg[j].lec_place, false, true, ptr->flags ));
|
| 2119 |
if ( config.num_legs == 1 ) print( " %-*s ", MAX_TM_NAME, team_buf.name );
|
2119 |
if ( config.num_legs == 1 ) print( " %-*s ", MAX_TM_NAME, team_buf.name );
|
| 2120 |
}
|
2120 |
}
|
| 2121 |
|
2121 |
|
| 2122 |
|
2122 |
|
| Line 2410... |
Line 2410... |
| 2410 |
**
|
2410 |
**
|
| 2411 |
** Line-1 Leg names
|
2411 |
** Line-1 Leg names
|
| 2412 |
*/
|
2412 |
*/
|
| 2413 |
|
2413 |
|
| 2414 |
if (config.num_legs == 1 ) {
|
2414 |
if (config.num_legs == 1 ) {
|
| 2415 |
print( "%-*s %-*s", 4, "", 4, "" );
|
2415 |
print( "%-*s", 4, "" );
|
| 2416 |
print( " %-*s", 18, config.leg_name[0] );
|
2416 |
print( " %-*s", 18, config.leg_name[0] );
|
| 2417 |
print( " %-*s", MAX_TM_NAME + 1, "" );
|
2417 |
print( " %-*s", MAX_TM_NAME + 1, "" );
|
| 2418 |
print( " %-4s\n", ( teamclass < 0 ) ? "Cat" : "Fin" );
|
2418 |
print( "%-4s\n", ( teamclass < 0 ) ? "Cat" : "Fin" );
|
| 2419 |
|
2419 |
|
| 2420 |
} else {
|
2420 |
} else {
|
| 2421 |
print( "%-*s %-*s %-*s", 4, "", 4, "", 3, "" );
|
2421 |
print( "%-*s %-*s %-*s", 4, "", 4, "", 3, "" );
|
| 2422 |
for( j = 1; j <= config.num_legs; j++ )
|
2422 |
for( j = 1; j <= config.num_legs; j++ )
|
| 2423 |
{
|
2423 |
{
|
| Line 2439... |
Line 2439... |
| 2439 |
4, final ? "Team" : "Plce",
|
2439 |
4, final ? "Team" : "Plce",
|
| 2440 |
3, "Cat" );
|
2440 |
3, "Cat" );
|
| 2441 |
|
2441 |
|
| 2442 |
|
2442 |
|
| 2443 |
if (config.num_legs == 1 ) {
|
2443 |
if (config.num_legs == 1 ) {
|
| 2444 |
print( " %-8s %-4s", "Time", " LP" );
|
2444 |
print( " %-8s", "Time" );
|
| 2445 |
print( " %-*s", MAX_TM_NAME + 1, "Team Name" );
|
2445 |
print( " %-*s", MAX_TM_NAME + 1, "Team Name" );
|
| 2446 |
print( " %-4s\n", "Plce" );
|
2446 |
print( "%-4s\n", "Plce" );
|
| 2447 |
|
2447 |
|
| 2448 |
} else {
|
2448 |
} else {
|
| 2449 |
for( j = 1; j <= config.num_legs; j++ )
|
2449 |
for( j = 1; j <= config.num_legs; j++ )
|
| 2450 |
print( " %-8s %-4s %-4s", "Time", " LP", " EP" );
|
2450 |
print( " %-8s %-4s %-4s", "Time", " LP", " EP" );
|
| 2451 |
print( " %-8s %-4s\n", "Time", "Plce" );
|
2451 |
print( " %-8s %-4s\n", "Time", "Plce" );
|
| Line 2636... |
Line 2636... |
| 2636 |
/*
|
2636 |
/*
|
| 2637 |
* Other comments
|
2637 |
* Other comments
|
| 2638 |
*/
|
2638 |
*/
|
| 2639 |
if ( full )
|
2639 |
if ( full )
|
| 2640 |
{
|
2640 |
{
|
| - |
|
2641 |
if ( config.num_legs != 1 ) {
|
| - |
|
2642 |
print( "\n" );
|
| - |
|
2643 |
if ( report_html ) print_underline(TRUE);
|
| 2641 |
print( "\nPlace numbers (LP and EP)\n" );
|
2644 |
print( "Place numbers (LP and EP)" );
|
| - |
|
2645 |
if ( report_html ) print_underline(FALSE);
|
| - |
|
2646 |
print( "\n" );
|
| 2642 |
print( "LP - Placing based on elapsed time within the leg. Cat Plce - Placing within the category.\n" );
|
2647 |
print( "LP - Placing based on elapsed time within the leg. Cat Plce - Placing within the category.\n" );
|
| 2643 |
print( "EP - Placing based on accumulated times to the end of that leg. Fin Plce - Overall placing within the event.\n" );
|
2648 |
print( "EP - Placing based on accumulated times to the end of that leg. Fin Plce - Overall placing within the event.\n" );
|
| 2644 |
print( "U - Placing not available. V - Failed Vet Check.\n" );
|
2649 |
print( "U - Placing not available.\n" );
|
| - |
|
2650 |
} else {
|
| - |
|
2651 |
print( "\n" );
|
| - |
|
2652 |
if ( report_html ) print_underline(TRUE);
|
| - |
|
2653 |
print( "Table Legend" );
|
| - |
|
2654 |
if ( report_html ) print_underline(FALSE);
|
| - |
|
2655 |
print( "\n" );
|
| - |
|
2656 |
|
| - |
|
2657 |
print( "Cat Plce - Placing within the category.\n");
|
| - |
|
2658 |
print ("Fin Plce - Overall placing within the event.\n" );
|
| - |
|
2659 |
print( "U - Placing not available.\n" );
|
| - |
|
2660 |
}
|
| 2645 |
}
|
2661 |
}
|
| 2646 |
|
2662 |
|
| 2647 |
/*
|
2663 |
/*
|
| 2648 |
* Insert the contents of the config.addendum file
|
2664 |
* Insert the contents of the config.addendum file
|
| 2649 |
* or a defualt message
|
2665 |
* or a defualt message
|