| Line 31... |
Line 31... |
| 31 |
|
31 |
|
| 32 |
my $username = $h->a ({ href=>"/schedule/manage_user.pl?submit=View&RCid=$user->{RCid}" }, $user->{derby_name});
|
32 |
my $username = $h->a ({ href=>"/schedule/manage_user.pl?submit=View&RCid=$user->{RCid}" }, $user->{derby_name});
|
| 33 |
my $RCid = $user->{RCid};
|
33 |
my $RCid = $user->{RCid};
|
| 34 |
my $RCAUTH_cookie = CGI::Cookie->new(-name=>'RCAUTH',-value=>"$cookie_string",-expires=>"+30m");
|
34 |
my $RCAUTH_cookie = CGI::Cookie->new(-name=>'RCAUTH',-value=>"$cookie_string",-expires=>"+30m");
|
| 35 |
#my $YEAR = 1900 + (localtime)[5]; #which year of data to display, default to current
|
35 |
#my $YEAR = 1900 + (localtime)[5]; #which year of data to display, default to current
|
| Line 36... |
Line 36... |
| 36 |
my $YEAR = "2019";
|
36 |
my $YEAR = "2022";
|
| Line 37... |
Line 37... |
| 37 |
|
37 |
|
| 38 |
#$LVL = 1;
|
38 |
#$LVL = 1;
|
| Line 101... |
Line 101... |
| 101 |
if ($user->{department}->{"ANN"} >= 2 or $LVL > 4) {
|
101 |
if ($user->{department}->{"ANN"} >= 2 or $LVL > 4) {
|
| 102 |
# NO SHOW
|
102 |
# NO SHOW
|
| 103 |
$t->{derby_name} .= " | <A HREF='#' onClick=\"if (confirm('Really? They were a no show?')==true) { window.open('make_shift_change.pl?noshow=true&change=del&RCid=$t->{RCid}&id=$t->{id}&role=$t->{role}','Confirm Shift Change','resizable,height=260,width=370'); return false; }\">[NO SHOW]</a>";
|
103 |
$t->{derby_name} .= " | <A HREF='#' onClick=\"if (confirm('Really? They were a no show?')==true) { window.open('make_shift_change.pl?noshow=true&change=del&RCid=$t->{RCid}&id=$t->{id}&role=$t->{role}','Confirm Shift Change','resizable,height=260,width=370'); return false; }\">[NO SHOW]</a>";
|
| 104 |
}
|
104 |
}
|
| 105 |
} elsif (!$t->{derby_name}) {
|
105 |
} elsif (!$t->{derby_name}) {
|
| - |
|
106 |
$t->{dept} = "ANN";
|
| 106 |
if (signUpEligible ($ORCUSER, $t) and $now < $cutoff) {
|
107 |
if (signUpEligible ($ORCUSER, $t) and $now < $cutoff) {
|
| 107 |
# SIGN UP
|
108 |
# SIGN UP
|
| 108 |
$t->{derby_name} = "<A HREF='#' onClick=\"window.open('make_shift_change.pl?change=add&RCid=$RCid&id=$t->{id}&role=$t->{role}','Confirm Shift Change','resizable,height=260,width=370'); return false;\">[SIGN UP]</a>";
|
109 |
$t->{derby_name} = "<A HREF='#' onClick=\"window.open('make_shift_change.pl?change=add&RCid=$RCid&id=$t->{id}&role=$t->{role}','Confirm Shift Change','resizable,height=260,width=370'); return false;\">[SIGN UP]</a>";
|
| 109 |
}
|
110 |
}
|
| 110 |
if ($user->{department}->{"ANN"} >= 2 or $LVL > 4) {
|
111 |
if ($user->{department}->{"ANN"} >= 2 or $LVL > 4) {
|
| Line 444... |
Line 445... |
| 444 |
# "Please direct questions, problems, and concerns to noone\@gmail.com"
|
445 |
# "Please direct questions, problems, and concerns to noone\@gmail.com"
|
| 445 |
#]);
|
446 |
#]);
|
| Line 446... |
Line 447... |
| 446 |
|
447 |
|
| 447 |
|
- |
|
| 448 |
print $h->close('form');
|
448 |
|
| - |
|
449 |
print $h->close('form');
|