Subversion Repositories svn1

Rev

Rev 1 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1 Rev 13
Line 70... Line 70...
70
    { '4', "Print final results", pri_final },
70
    { '4', "Print final results", pri_final },
71
    { '5', "Print final results(All-HTML)", pri_final_html },
71
    { '5', "Print final results(All-HTML)", pri_final_html },
72
    { '6', "Print Interim results", pri_interim },
72
    { '6', "Print Interim results", pri_interim },
73
    { '7', "Update event and class placings", srt_place },
73
    { '7', "Update event and class placings", srt_place },
74
    { '8', "Display summary information", display_summary },
74
    { '8', "Display summary information", display_summary },
-
 
75
    { '9', "Print summary information", pri_summary },
75
    { 'a', "Print Awards only", pri_awards },
76
    { 'a', "Print Awards only", pri_awards },
76
    { 'b', "Print Master Index only", pri_master_index },
77
    { 'b', "Print Master Index only", pri_master_index },
77
 
78
 
78
#if defined(HI_TECH_C) || defined(__TURBOC__)
79
#if defined(HI_TECH_C) || defined(__TURBOC__)
79
    { 'S', "MS-DOS system", ms_system },
80
    { 'S', "MS-DOS system", ms_system },
Line 767... Line 768...
767
        **      - Leg place
768
        **      - Leg place
768
        **      - End place
769
        **      - End place
769
        */
770
        */
770
        for( j = 1; j <= config.num_legs; j++ )
771
        for( j = 1; j <= config.num_legs; j++ )
771
        {
772
        {
-
 
773
            /*
-
 
774
            **  Ensure that non-equestrian leg data is not displayed
-
 
775
            */
-
 
776
            if ( j == config.equestrian_leg && team_buf.flags.non_equestrian )
-
 
777
            {
-
 
778
                print( "  %-8s %4.4s %4.4s", "-- NE --", "-","-");
-
 
779
            }
-
 
780
            else
-
 
781
            {
772
            print( "  %-8s %4.4s %4.4s",
782
                print( "  %-8s %4.4s %4.4s",
773
                    time_a( team_buf.leg[j].elapsed ),
783
                    time_a( team_buf.leg[j].elapsed ),
774
                    pr_place( team_buf.leg[j].l_place, ptr->flags.bad_times ),
784
                    pr_place( team_buf.leg[j].l_place, ptr->flags.bad_times ),
775
                    pr_place( team_buf.leg[j].le_place,ptr->flags.bad_times )
785
                    pr_place( team_buf.leg[j].le_place,ptr->flags.bad_times )
776
                  );
786
                  );
-
 
787
            }
777
        }
788
        }
778
 
789
 
779
        /*
790
        /*
780
        **  Print the trailer
791
        **  Print the trailer
781
        **      - Total time
792
        **      - Total time
Line 861... Line 872...
861
            /*
872
            /*
862
            **  Ensure that non-equestrian leg data is not displayed
873
            **  Ensure that non-equestrian leg data is not displayed
863
            */
874
            */
864
            if ( j == config.equestrian_leg && ptr->class == config.nonequestrian_class)
875
            if ( j == config.equestrian_leg && ptr->class == config.nonequestrian_class)
865
            {
876
            {
866
                print( "  %-8s %4.4s %4.4s", "-- -- --", "-","-");
877
                print( "  %-8s %4.4s %4.4s", "-- NE --", "-","-");
867
            }
878
            }
868
            else
879
            else
869
            {
880
            {
870
                print( "  %-8s %4.4s %4.4s", time_a( team_buf.leg[j].elapsed ),
881
                print( "  %-8s %4.4s %4.4s", time_a( team_buf.leg[j].elapsed ),
871
                       pr_place( team_buf.leg[j].lc_place, ptr->flags.bad_times ),
882
                       pr_place( team_buf.leg[j].lc_place, ptr->flags.bad_times ),
Line 1928... Line 1939...
1928
                ptr->class[team_buf.class].non_equestrian++;
1939
                ptr->class[team_buf.class].non_equestrian++;
1929
                ptr->total.non_equestrian++;
1940
                ptr->total.non_equestrian++;
1930
            }
1941
            }
1931
        }
1942
        }
1932
    }
1943
    }
-
 
1944
 
-
 
1945
    /*
-
 
1946
    **  Fix up the totals for the non equestrians
-
 
1947
    **  This is not a real category but a summary of the others.
-
 
1948
    */
-
 
1949
    if ( config.nonequestrian_class  )
-
 
1950
    {
-
 
1951
        ptr->class[config.nonequestrian_class].total += ptr->total.non_equestrian;
-
 
1952
    }
1933
}
1953
}
1934
 
1954
 
1935
/*========================================================================
1955
/*========================================================================
1936
 *
1956
 *
1937
 *  Display summary information
1957
 *  Display summary information
Line 1997... Line 2017...
1997
 
2017
 
1998
    printf( "\nAny key to continue " );
2018
    printf( "\nAny key to continue " );
1999
    getinp();
2019
    getinp();
2000
}
2020
}
2001
 
2021
 
-
 
2022
/*========================================================================
-
 
2023
 *
-
 
2024
 *  Print summary information
-
 
2025
 *
-
 
2026
 *  Purpose:
-
 
2027
 *      This function is called to print summary information
-
 
2028
 *
-
 
2029
 *  Parameters:
-
 
2030
 *      None
-
 
2031
 *
-
 
2032
 *  Returns:
-
 
2033
 *      Nothing
-
 
2034
 *
-
 
2035
 *========================================================================*/
-
 
2036
 
-
 
2037
void pri_summary (void)
-
 
2038
{
-
 
2039
 
-
 
2040
    t_class_summary data;
-
 
2041
    int         i;
-
 
2042
    int         line = 2;
-
 
2043
 
-
 
2044
 
-
 
2045
    if( !open_printer( "", "summary", 132, 0, "Summary Information" ) )
-
 
2046
        return;
-
 
2047
    
-
 
2048
    cur( 0, line );
-
 
2049
    printf( "Generating Summary Information" );
-
 
2050
    calc_class_summary( & data );
-
 
2051
 
-
 
2052
 
-
 
2053
    /*
-
 
2054
    **  Display summary stats
-
 
2055
    */
-
 
2056
 
-
 
2057
    print( "%*s : %-7s %-7s%-7s\n", LEN_CLASS_NAME,
-
 
2058
                                      "Category",
-
 
2059
                                      "Total",
-
 
2060
                                      "Disq",
-
 
2061
                                      "NonEq" );
-
 
2062
 
-
 
2063
    for( i = 0; i < config.num_class; i++ )
-
 
2064
    {
-
 
2065
        /*
-
 
2066
        **  The non-equestrian leg does not have any data
-
 
2067
        **  Supress the display
-
 
2068
        */
-
 
2069
        if ( config.nonequestrian_class == i+1  )
-
 
2070
            continue;
-
 
2071
 
-
 
2072
        print( "%*s : %-7d %-7d %-7d\n", LEN_CLASS_NAME,
-
 
2073
                                          config.team_class[i].full_name,
-
 
2074
                                          data.class[i+1].total,
-
 
2075
                                          data.class[i+1].disqualified,
-
 
2076
                                          data.class[i+1].non_equestrian );
-
 
2077
    }
-
 
2078
 
-
 
2079
    print( "\n" );
-
 
2080
    print( "%*s : %-7d %-7d %-7d\n", LEN_CLASS_NAME,
-
 
2081
                                      "Totals",
-
 
2082
                                      data.total.total,
-
 
2083
                                      data.total.disqualified,
-
 
2084
                                      data.total.non_equestrian );
-
 
2085
 
-
 
2086
    close_printer();
-
 
2087
    printf( "\nAny key to continue " );
-
 
2088
    getinp();
-
 
2089
}
-
 
2090
 
-
 
2091
 
2002
 
2092
 
2003
/*========================================================================
2093
/*========================================================================
2004
 *
2094
 *
2005
 *  Main sort routine for final data
2095
 *  Main sort routine for final data
2006
 *
2096
 *