Subversion Repositories VORC

Rev

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

Rev 252 Rev 269
Line 590... Line 590...
590
        $SIChecked,
590
        $SIChecked,
591
      ])
591
      ])
592
    ]);
592
    ]);
593
  }
593
  }
Line -... Line 594...
-
 
594
  
-
 
595
  if (url =~ /volhours_report\.pl$/) {
-
 
596
    #  warn "Display the tshirt report...";
-
 
597
    
-
 
598
    my %bysize = (
-
 
599
      MS  => 1,
-
 
600
      MM  => 2,
-
 
601
      ML  => 3,
-
 
602
      MXL => 4,
-
 
603
      M2X => 5,
-
 
604
      M3X => 6,
-
 
605
      UNK => 7
-
 
606
    );
-
 
607
    
-
 
608
    my %size_report = map { $_->[0] => $_->[1] } @{ $internalDBH->selectall_arrayref ("select * from v_tshirt_report") };
-
 
609
    
-
 
610
    use List::Util qw(sum0);
-
 
611
    my $total = sum0 values %size_report;
-
 
612
    
-
 
613
    my @sizes;
-
 
614
    
-
 
615
    push @sizes, $h->div ({ class=>"rTableHeading " }, [ $h->div ( { class=>'rTableHead', style=>"white-space:nowrap;padding:3px 5px 7px 5px;font-size:small;" }, "Size Summary", ' ') ]);
-
 
616
    push @sizes, map { $h->div ({ class=>"rTableRow shaded" },
-
 
617
                                 [$h->div ( { class=>'rTableCell', style=> $_ eq "UNK" ? "font-style:italic;" : undef  }, $_, $size_report{$_} )]
-
 
618
                               ) } sort { $bysize{$a} <=> $bysize{$b} } keys %size_report;
-
 
619
    
-
 
620
    
-
 
621
    print $h->ul ({ style=>"padding-inline-start:5px;" }, [$h->div ({ class=>"rTable", style=>"min-width:15%;" }, [ @sizes ]), $h->h5 ("($total Total:  1 shirt for 4.75+ hours; 2 shirts for 25+ hours)") ]);
-
 
622
  }
-
 
623
  
594
  
624
  
Line 595... Line 625...
595
  # Print the main table...............................................
625
  # Print the main table...............................................
Line 596... Line 626...
596
  
626