Subversion Repositories VORC

Rev

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

Rev 232 Rev 264
Line 86... Line 86...
86
#  push @classes, $h->div ({ class=>"rTableRow" }, $h->div ({ class=>"rTableCellr" }, $summary)) if $summary;
86
#  push @classes, $h->div ({ class=>"rTableRow" }, $h->div ({ class=>"rTableCellr" }, $summary)) if $summary;
87
}
87
}
88
print $h->div ({ class=>"rTable", style=>"min-width: 0%;" }, [@classes], ' ') if scalar @classes > 1;
88
print $h->div ({ class=>"rTable", style=>"min-width: 0%;" }, [@classes], ' ') if scalar @classes > 1;
Line -... Line 89...
-
 
89
 
-
 
90
 
-
 
91
# Then the list of Seminars for this year...
-
 
92
my $seminar_list_sql = <<seminar_list_sql;
-
 
93
  select v_seminar_new.id, name, v_seminar_new.dayofweek, v_seminar_new.date, v_seminar_new.time, v_seminar_new.start_time, v_seminar_new.location, available from v_seminar_new
-
 
94
  left join v_shift on
-
 
95
  	v_seminar_new.date = v_shift.date and
-
 
96
    time(v_seminar_new.start_time) = time(v_shift.start_time) and
-
 
97
    v_seminar_new.location = v_shift.location and
-
 
98
    v_shift.dept = "COA"
-
 
99
  where RCid = ? and year(v_seminar_new.date) = year(now())
-
 
100
  order by v_seminar_new.date, v_seminar_new.start_time
-
 
101
seminar_list_sql
-
 
102
 
-
 
103
my @keys = qw(id seminar day date time start_time location available);
-
 
104
my @seminars = ($h->div ({ class=>"rTableRow" },[ $h->div ({ class=>"rTableHead", style=>"font-size: smaller;" }, qw(Seminar Day Date Time Location SignUp) ) ]));
-
 
105
foreach my $seminar (@{$dbh->selectall_arrayref ($seminar_list_sql, undef, $coachRCid)}) {
-
 
106
  my $seminarhash;
-
 
107
  @$seminarhash{@keys} = @{$seminar};
-
 
108
  $seminarhash->{available} = modify_available ($seminarhash);
-
 
109
  $seminarhash->{time} = convertTime ($seminarhash->{time});
-
 
110
  
-
 
111
  @{$seminar} = ($seminarhash->{seminar}, $seminarhash->{day}, $seminarhash->{date}, $seminarhash->{time}, $seminarhash->{location}, $seminarhash->{available});
-
 
112
  my $seminarid = $seminarhash->{id};
-
 
113
 
-
 
114
  push @seminars, $h->div ({ class=>"rTableRow ".($seminarhash->{signedup} ? "highlighted" : "shaded"), onClick=>"window.location.href='view_seminar.pl?id=$seminarid'" },[ $h->div ({ class=>"rTableCellr", style=>"font-size: smaller;" }, @{$seminar}) ]);
-
 
115
}
-
 
116
print $h->div ({ class=>"rTable", style=>"min-width: 0%;" }, [@seminars], '&nbsp;') if scalar @seminars > 1;
89
 
117
 
90
 
118
 
91
# Then get all of the prior year classes...
119
# Then get all of the prior year classes...
92
my $class_list_sql = <<class_list_sql;
120
my $class_list_sql = <<class_list_sql;
93
  select v_class_new.id, name, v_class_new.dayofweek, v_class_new.date, v_class_new.time, v_class_new.location, level, stars, responses from v_class_new
121
  select v_class_new.id, name, v_class_new.dayofweek, v_class_new.date, v_class_new.time, v_class_new.location, level, stars, responses from v_class_new