Subversion Repositories svn1-original

Rev

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

Rev 257 Rev 258
Line 55... Line 55...
55
#include    "structs.h"
55
#include    "structs.h"
56
#include    "proto.h"
56
#include    "proto.h"
57
#include    "mainwindow.h"
57
#include    "mainwindow.h"
58
 
58
 
59
void pri_awards_html(void);
59
void pri_awards_html(void);
-
 
60
void pri_summary_html(void);
60
void pri_awards(void);
61
void pri_awards(void);
61
void pri_master_index(void);
62
void pri_master_index(void);
62
char *placing ( int place );
63
char *placing ( int place );
63
void pri_name_index(void);
64
void pri_name_index(void);
64
void pri_name_index_body( void );
65
void pri_name_index_body( void );
Line 1648... Line 1649...
1648
    pri_master_index_entry( "finish", "Finishing Order for all Teams" );
1649
    pri_master_index_entry( "finish", "Finishing Order for all Teams" );
1649
    pri_master_index_entry( "awards", "Prizes and Awards" );
1650
    pri_master_index_entry( "awards", "Prizes and Awards" );
1650
    print( "<tr><td>\n" );
1651
    print( "<tr><td>\n" );
1651
 
1652
 
1652
    print( "\n" );
1653
    print( "\n" );
-
 
1654
    pri_master_index_entry( "summary", "Category Summary" );
1653
    for( j = 1; j <= config.num_class; j++ )
1655
    for( j = 1; j <= config.num_class; j++ )
1654
    {
1656
    {
1655
        pri_master_index_entry( config.team_class[j - 1].abr, tprintf("Category Results for: %s", config.team_class[j-1].full_name) );
1657
        pri_master_index_entry( config.team_class[j - 1].abr, tprintf("Category Results for: %s", config.team_class[j-1].full_name) );
1656
    }
1658
    }
1657
#endif
1659
#endif
Line 2046... Line 2048...
2046
    }
2048
    }
2047
 
2049
 
2048
    pri_final();
2050
    pri_final();
2049
    pri_final_html();
2051
    pri_final_html();
2050
    pri_csv_data();
2052
    pri_csv_data();
-
 
2053
    pri_summary_html();
2051
    pri_summary();
2054
    pri_summary();
2052
    pri_awards_html();
2055
    pri_awards_html();
2053
    pri_awards();
2056
    pri_awards();
2054
    pri_master_index();
2057
    pri_master_index();
2055
 
2058
 
Line 2609... Line 2612...
2609
    }
2612
    }
2610
}
2613
}
2611
 
2614
 
2612
/*========================================================================
2615
/*========================================================================
2613
 *
2616
 *
-
 
2617
 *  Print summary results
-
 
2618
 *
-
 
2619
 *  Purpose:
-
 
2620
 *      This function is called to Print summary results
-
 
2621
 *      Keep the page to 80 cols, so that it can be pronted on A4
-
 
2622
 *
-
 
2623
 *  Parameters:
-
 
2624
 *      None
-
 
2625
 *
-
 
2626
 *  Returns:
-
 
2627
 *      Nothing
-
 
2628
 *
-
 
2629
 *========================================================================*/
-
 
2630
void pri_summary_html(void)
-
 
2631
{
-
 
2632
    report_type saved = report_html;
-
 
2633
    /*
-
 
2634
    **  Generate ALL results with HTML tags
-
 
2635
    */
-
 
2636
    report_html = html;
-
 
2637
    pri_summary();
-
 
2638
    report_html = saved;
-
 
2639
}
-
 
2640
 
-
 
2641
/*========================================================================
-
 
2642
 *
2614
 *  Print summary information
2643
 *  Print summary information
2615
 *
2644
 *
2616
 *  Purpose:
2645
 *  Purpose:
2617
 *      This function is called to print summary information
2646
 *      This function is called to print summary information
2618
 *
2647
 *
Line 2628... Line 2657...
2628
{
2657
{
2629
 
2658
 
2630
    t_class_summary data;
2659
    t_class_summary data;
2631
    int         i;
2660
    int         i;
2632
 
2661
 
2633
    if( !open_printer( "", "summary", 132, text, "Summary Information" ) )
2662
    if( !open_printer( "", "summary", 80, report_html, "Summary Information" ) )
2634
        return;
2663
        return;
2635
    
2664
    
2636
    calc_class_summary( & data );
2665
    calc_class_summary( & data );
2637
 
2666
 
2638
 
2667
 
2639
    /*
2668
    /*
2640
    **  Display summary stats
2669
    **  Display summary stats
2641
    */
2670
    */
2642
 
2671
 
2643
    print( "%*s : %-7s %-7s%-7s%-7s%-7s\n", LEN_CLASS_NAME,
2672
    print( "%*s : %-7s %-7s%-7s%-7s%-7s\n",
2644
                                      "Category",
2673
                                      LEN_CLASS_NAME, "Category",
2645
                                      "Total",
2674
                                      "Total",
2646
                                      "Valid",
2675
                                      "Valid",
2647
                                      "Disq",
2676
                                      "Disq",
2648
                                      "NonEq",
2677
                                      "NonEq",
2649
                                      "VetChck"
2678
                                      "VetChck"
Line 2656... Line 2685...
2656
        **  Supress the display
2685
        **  Supress the display
2657
        */
2686
        */
2658
        if ( config.nonequestrian_class == i+1  )
2687
        if ( config.nonequestrian_class == i+1  )
2659
            continue;
2688
            continue;
2660
 
2689
 
2661
        print( "%*s : %-7d %-7d %-7d%-7d %-7d\n", LEN_CLASS_NAME,
2690
        if ( report_html == html ) print( "<A HREF=\"%s\">",url_encode(p_filename(filebase, config.team_class[i].abr ,"html")) );
2662
                                          config.team_class[i].full_name,
2691
        print( "%*s ", LEN_CLASS_NAME, config.team_class[i].full_name );
-
 
2692
        if ( report_html == html ) print( "</A>" );
-
 
2693
 
-
 
2694
        print( ": %-7d %-7d %-7d%-7d %-7d\n",
2663
                                          data.teamclass[i+1].total,
2695
                                          data.teamclass[i+1].total,
2664
                                          data.teamclass[i+1].valid,
2696
                                          data.teamclass[i+1].valid,
2665
                                          data.teamclass[i+1].disqualified,
2697
                                          data.teamclass[i+1].disqualified,
2666
                                          data.teamclass[i+1].non_equestrian,
2698
                                          data.teamclass[i+1].non_equestrian,
2667
                                          data.teamclass[i+1].vet_check
2699
                                          data.teamclass[i+1].vet_check
2668
                                          );
2700
                                          );
2669
    }
2701
    }
2670
 
2702
 
2671
    print( "\n" );
2703
    print( "\n" );
2672
    print( "%*s : %-7d %-7d %-7d%-7d %-7d\n", LEN_CLASS_NAME,
2704
    print( "%*s : %-7d %-7d %-7d%-7d %-7d\n",
2673
                                      "Totals",
2705
                                      LEN_CLASS_NAME, "Totals",
2674
                                      data.total.total,
2706
                                      data.total.total,
2675
                                      data.total.valid,
2707
                                      data.total.valid,
2676
                                      data.total.disqualified,
2708
                                      data.total.disqualified,
2677
                                      data.total.non_equestrian,
2709
                                      data.total.non_equestrian,
2678
                                      data.total.vet_check
2710
                                      data.total.vet_check