| Line 94... |
Line 94... |
| 94 |
push @everyone, $h->li ($h->a ({ href=>"/schedule/games.pl" }, "View Games"));
|
94 |
push @everyone, $h->li ($h->a ({ href=>"/schedule/games.pl" }, "View Games"));
|
| 95 |
push @everyone, $h->li ($h->a ({ href=>"/schedule/personal_time.pl" }, "Block Personal Time"));
|
95 |
push @everyone, $h->li ($h->a ({ href=>"/schedule/personal_time.pl" }, "Block Personal Time"));
|
| 96 |
push @everyone, $h->li ($h->a ({ href=>"/schedule/missing_hours.pl" }, "Request Missing Volunteer Time"));
|
96 |
push @everyone, $h->li ($h->a ({ href=>"/schedule/missing_hours.pl" }, "Request Missing Volunteer Time"));
|
| 97 |
push @everyone, $h->li ($h->a ({ href=>"/schedule/view_user.pl?submit=Edit&RCid=$user->{RCid}" }, "Edit your profile"));
|
97 |
push @everyone, $h->li ($h->a ({ href=>"/schedule/view_user.pl?submit=Edit&RCid=$user->{RCid}" }, "Edit your profile"));
|
| Line -... |
Line 98... |
| - |
|
98 |
|
| - |
|
99 |
|
| - |
|
100 |
my @seminars;
|
| - |
|
101 |
my $seminar_reviews;
|
| - |
|
102 |
|
| - |
|
103 |
my ($seminars_exist) = $dbh->selectrow_array ("select count(*) from v_seminar_new where year(date) = year(now())");
|
| - |
|
104 |
if ($seminars_exist) {
|
| - |
|
105 |
push @seminars, $h->li ("<b>NEW:</b> ".$h->a ({href=>"seminars.pl"}, "View and sign up for Seminars!"));
|
| - |
|
106 |
|
| - |
|
107 |
# push @seminars, $h->li ($h->a ({ href=>"/schedule/current_coaches.pl" }, "View the list of current MVP Coaches"));
|
| - |
|
108 |
|
| - |
|
109 |
# Get a list of seminars attended to ask for reviews...
|
| - |
|
110 |
my (@reviews_done, @reviews_tbd);
|
| - |
|
111 |
# foreach my $class (@{$dbh->selectall_arrayref ("select id, date, time, name, coach, count(*) as answers from v_class_signup_new left join v_survey_answer on id = classid and v_class_signup_new.RCid = v_survey_answer.RCid where v_class_signup_new.RCid = ? and year(date) = year(now()) and concat_ws(' ', date, end_time) < date_sub(now(), interval 2 hour) group by id order by date, start_time", undef, $user->{RCid})}) {
|
| - |
|
112 |
foreach my $class (@{$dbh->selectall_arrayref ("select id, date, time, name, null, count(*) as answers from v_seminar_signup_new left join v_seminar_survey_answer on id = seminarid and v_seminar_signup_new.RCid = v_seminar_survey_answer.RCid where v_seminar_signup_new.RCid = ? and year(date) = year(now()) and concat_ws(' ', date, end_time) < date_sub(now(), interval 2 hour) group by id order by date, start_time", undef, $user->{RCid})}) {
|
| - |
|
113 |
my ($id, $date, $time, $name, $coach, $answers) = @{$class};
|
| - |
|
114 |
next unless $id;
|
| - |
|
115 |
$time = convertTime $time;
|
| - |
|
116 |
|
| - |
|
117 |
if ($answers > 1) {
|
| - |
|
118 |
push @reviews_done, $h->li ("$date $time: ".$h->a ({ href=>"/schedule/seminar_survey.pl?seminarid=$id" }, "$name [".getUserDerbyName ($coach)."]"));
|
| - |
|
119 |
} else {
|
| - |
|
120 |
push @reviews_tbd, $h->li ("$date $time: ".$h->a ({ href=>"/schedule/seminar_survey.pl?seminarid=$id" }, "$name [".getUserDerbyName ($coach)."]"));
|
| - |
|
121 |
}
|
| - |
|
122 |
}
|
| - |
|
123 |
$seminar_reviews = $h->li (["Please submit feedback:", $h->ul ([@reviews_tbd])]) unless !scalar @reviews_tbd;
|
| - |
|
124 |
$seminar_reviews .= $h->li (["View the feedback you've submitted:", $h->ul ([@reviews_done])]) unless !scalar @reviews_done;
|
| - |
|
125 |
}
|
| - |
|
126 |
|
| - |
|
127 |
|
| - |
|
128 |
|
| 98 |
|
129 |
|
| 99 |
my @mvppass;
|
130 |
my @mvppass;
|
| 100 |
my $reviews;
|
131 |
my $reviews;
|
| Line 101... |
Line 132... |
| 101 |
if ($user->{MVPid} or $user->{department}->{MVP} >= RollerCon::USER or $user->{department}->{COA} >= RollerCon::USER or $LVL >= RollerCon::SYSADMIN) {
|
132 |
if ($user->{MVPid} or $user->{department}->{MVP} >= RollerCon::USER or $user->{department}->{COA} >= RollerCon::USER or $LVL >= RollerCon::SYSADMIN) {
|
| Line 234... |
Line 265... |
| 234 |
|
265 |
|
| Line 235... |
Line 266... |
| 235 |
print $h->div ({ class=>"index" }, [$h->p ({ class=>"heading" }, "Your up-coming schedule (as of $dt):"), $schedule, $h->h5 ("[".$h->a ({ href=>"export_ics.pl?RCid=$user->{RCid}" }, "use this link for iCal")."]") ]) if $schedule;
|
266 |
print $h->div ({ class=>"index" }, [$h->p ({ class=>"heading" }, "Your up-coming schedule (as of $dt):"), $schedule, $h->h5 ("[".$h->a ({ href=>"export_ics.pl?RCid=$user->{RCid}" }, "use this link for iCal")."]") ]) if $schedule;
|
| Line -... |
Line 267... |
| - |
|
267 |
|
| - |
|
268 |
print $h->div ({ class=>"index" }, [$h->p ({ class=>"heading" }, "MVP Classes:"), $h->ul ([ @mvppass, $reviews ]) ]) if (scalar @mvppass);
|
| 236 |
|
269 |
|
| Line 237... |
Line 270... |
| 237 |
print $h->div ({ class=>"index" }, [$h->p ({ class=>"heading" }, "MVP Classes:"), $h->ul ([ @mvppass, $reviews ]) ]) if (scalar @mvppass);
|
270 |
print $h->div ({ class=>"index" }, [$h->p ({ class=>"heading" }, "Seminars:"), $h->ul ([ @seminars, $seminar_reviews ]) ]) if (scalar @seminars);
|
| Line 238... |
Line 271... |
| 238 |
|
271 |
|