Subversion Repositories PEEPS

Rev

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

Rev 22 Rev 59
Line 52... Line 52...
52
  push @insurance, $h->li ($h->a ( { href=>"attestation?policy=4" }, "Purchase Insurance Coverage for RollerCon 2026." )) unless $user->{RCPolicy};
52
  push @insurance, $h->li ($h->a ( { href=>"attestation?policy=4" }, "Purchase Insurance Coverage for RollerCon 2026." )) unless $user->{RCPolicy};
53
}
53
}
Line 54... Line 54...
54
 
54
 
55
 
55
 
Line 56... Line 56...
56
my @policyhistory = ($h->div ({ class=>"rTableRow" },[ $h->div ({ class=>"rTableHead", style=>"font-size: smaller;" }, qw(ID Policy Start End) ) ]));
56
my @policyhistory = ($h->div ({ class=>"rTableRow" },[ $h->div ({ class=>"rTableHead", style=>"font-size: smaller;" }, qw(ID Policy Start End) ) ]));
57
my @policy_columns = qw(id person_id member_org_id policy_id policy_name fee created start end terminated active);
57
my @policy_columns = qw(id person_id member_org_id policy_id policy_name fee square_id created start end terminated active);
58
 
58
 
59
my @policies = @{ $dbh->selectall_arrayref ("select * from coverage where person_id = ? order by start desc, end", undef, $user->{id}) };
59
my @policies = @{ $dbh->selectall_arrayref ("select * from coverage where person_id = ? order by start desc, end", undef, $user->{id}) };
60
my $active_policy = isPersonCovered ($user->{id});
60
my $active_policy = isPersonCovered ($user->{id});
61
foreach (@policies) {
-
 
-
 
61
foreach (@policies) {
62
  my %policy;
62
  my %policy;
Line 63... Line 63...
63
  @policy{@policy_columns} = @{$_};
63
  @policy{@policy_columns} = @{$_};
64
  
64
  $policy{end} = $policy{terminated}." *" if $policy{terminated};
Line 65... Line 65...
65
  push @policyhistory, $h->div ({ class=>"rTableRow ".($policy{id} == $active_policy ? "highlighted" : "shaded"), onClick=>"window.location.href='view_policy?id=$policy{id}'" },[ $h->div ({ class=>"rTableCellr", style=>"font-size: smaller;" }, $policy{id}, $policy{policy_name}, $policy{start}, $policy{end}) ]);
65
  push @policyhistory, $h->div ({ class=>"rTableRow ".($policy{id} == $active_policy ? "highlighted-good" : "shaded"), onClick=>"window.location.href='view_policy?id=$policy{id}'" },[ $h->div ({ class=>"rTableCellr", style=>"font-size: smaller;" }, $policy{id}, $policy{policy_name}, $policy{start}, $policy{end}) ]);