Subversion Repositories svn1

Rev

Rev 334 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 334 Rev 335
Line 770... Line 770...
770
    int         j, last_class;
770
    int         j, last_class;
771
    char        *report_title;
771
    char        *report_title;
772
    bool        class_done[MAX_CLASS+1];
772
    bool        class_done[MAX_CLASS+1];
773
    int         lcount;
773
    int         lcount;
774
    bool        isNeClass = false;
774
    bool        isNeClass = false;
-
 
775
    int         place;
775
 
776
 
776
 
777
 
777
    if( ck_data( -1, C_ELAPSED ) )
778
    if( ck_data( -1, C_ELAPSED ) )
778
        return;
779
        return;
779
    /*
780
    /*
Line 807... Line 808...
807
        /*
808
        /*
808
        ** If this is a NE team then dummy up some of the data that hasn't been stored in team_buf
809
        ** If this is a NE team then dummy up some of the data that hasn't been stored in team_buf
809
        */
810
        */
810
        if (ptr->flags.non_equestrian)
811
        if (ptr->flags.non_equestrian)
811
        {
812
        {
812
            team_buf.leg[0].l_place = sort_aux[ptr->team].lq_place[0];
813
            team_buf.leg[0].l_place = sort_aux[ptr->team].leq_place[0];
813
            team_buf.leg[0].lc_place = sort_aux[ptr->team].leq_place[0];;
814
            team_buf.leg[0].lc_place = sort_aux[ptr->team].lq_place[0];;
814
        }
815
        }
815
 
816
 
816
        /*
817
        /*
817
        **  If printing an HTML report then we need to mark
818
        **  If printing an HTML report then we need to mark
818
        **  the entry with a reference so that we can link to it
819
        **  the entry with a reference so that we can link to it
Line 870... Line 871...
870
        */
871
        */
871
//        print( "  %-8s ",  time_a( team_buf.leg[0].elapsed ) );
872
//        print( "  %-8s ",  time_a( team_buf.leg[0].elapsed ) );
872
        print( "  %-8s ", time_a( ptr->lege[0] ) );
873
        print( "  %-8s ", time_a( ptr->lege[0] ) );
873
        
874
        
874
        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 );
875
        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 );
875
        print( "%-4.4s", pn_place( team_buf.leg[0].lc_place, ptr->flags.bad_times, ptr->flags.non_equestrian ) );
876
        print( "%-4.4s", pn_place( team_buf.leg[0].lc_place, ptr->flags.bad_times, ptr->flags.non_equestrian && 0 ) );
876
        if ( report_html == html ) print( "</A>" );
877
        if ( report_html == html ) print( "</A>" );
877
        if ( report_html == printed && lcount %5 == 4 ) print_underline( FALSE );
878
        if ( report_html == printed && lcount %5 == 4 ) print_underline( FALSE );
878
        lcount++;
879
        lcount++;
879
        print( "\n" );
880
        print( "\n" );
880
    }
881
    }
Line 912... Line 913...
912
                print_legend( last_class, 1 );
913
                print_legend( last_class, 1 );
913
                close_printer();
914
                close_printer();
914
            }
915
            }
915
 
916
 
916
            /*
917
            /*
917
            ** Determine if this the crazy dummy Non-equestrian class
918
            ** Determine if this is the crazy dummy Non-equestrian class
918
            */
919
            */
919
            isNeClass = (ptr->teamclass == config.nonequestrian_class );
920
            isNeClass = (ptr->teamclass == config.nonequestrian_class );
-
 
921
            place = 1;
920
 
922
 
921
            report_title = tprintf( "Category results for : %-*s", LEN_CLASS_NAME, ptr->teamclass == 0 ? "" : config.team_class[ptr->teamclass - 1].full_name );
923
            report_title = tprintf( "Category results for : %-*s", LEN_CLASS_NAME, ptr->teamclass == 0 ? "" : config.team_class[ptr->teamclass - 1].full_name );
922
 
924
 
923
            if( !open_printer( "", config.team_class[ptr->teamclass - 1].abr, 132, report_html, report_title ) )
925
            if( !open_printer( "", config.team_class[ptr->teamclass - 1].abr, 132, report_html, report_title ) )
924
                continue;
926
                continue;
Line 952... Line 954...
952
        }
954
        }
953
        else
955
        else
954
        {
956
        {
955
            if (ptr->flags.non_equestrian)
957
            if (ptr->flags.non_equestrian)
956
            {
958
            {
957
                team_buf.leg[0].lc_place = sort_aux[ptr->team].lq_place[0];
959
                team_buf.leg[0].lc_place =  place++; //sort_aux[ptr->team].lq_place[0];
958
                team_buf.leg[0].lec_place = sort_aux[ptr->team].leq_place[0];
960
                team_buf.leg[0].lec_place = sort_aux[ptr->team].leq_place[0];
959
                //eflags = false;
961
                eflags = false;
960
            }
962
            }
961
        }
963
        }
962
 
964
 
963
 
965
 
964
        /*
966
        /*