| Line 162... |
Line 162... |
| 162 |
push @mvpcounts, $h->li ("They could (in theory) sign up for ".$mvpcount*$class_limit." class spots.");
|
162 |
push @mvpcounts, $h->li ("They could (in theory) sign up for ".$mvpcount*$class_limit." class spots.");
|
| Line 163... |
Line 163... |
| 163 |
|
163 |
|
| Line -... |
Line 164... |
| - |
|
164 |
|
| 164 |
|
165 |
my ($signupcount, $total_class_count, $available_count) = $dbh->selectrow_array ("select sum(count), sum(capacity), sum(available) from v_class where year(date) = year(now())");
|
| 165 |
my ($signupcount, $total_class_count, $available_count) = $dbh->selectrow_array ("select sum(count), sum(capacity), sum(available) from v_class where year(date) = year(now())");
|
166 |
|
| 166 |
|
167 |
$total_class_count //= 0;
|
| Line 167... |
Line 168... |
| 167 |
push @mvpcounts, $h->li ($total_class_count." Total Class Spots");
|
168 |
push @mvpcounts, $h->li ($total_class_count." Total Class Spots");
|
| 168 |
push @mvpcounts, $h->li ($signupcount." Filled Class Spots (".sprintf("%.2f", ($signupcount / $total_class_count) * 100)."\%)");
|
169 |
push @mvpcounts, $h->li ($signupcount." Filled Class Spots (".sprintf("%.2f", ($signupcount / $total_class_count) * 100)."\%)") unless !$total_class_count;
|