Subversion Repositories VORC

Rev

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

Rev 157 Rev 180
Line 10... Line 10...
10
my $day = $dt->day_name;
10
my $day = $dt->day_name;
11
my $date = $dt->date;
11
my $date = $dt->date;
12
$ENV{SERVER_NAME} = "volunteers.rollercon.com";
12
$ENV{SERVER_NAME} = "volunteers.rollercon.com";
Line 13... Line 13...
13
 
13
 
14
my $dbh = getDBConnection();
14
my $dbh = getDBConnection();
15
my $sth1 = $dbh->prepare("select distinct RCid from (select distinct RCId from v_shift where date = date(now()) union select distinct RCid from v_shift_announcer where date = date(now()) union select distinct RCid from v_shift_officiating where date = date(now())) t1  where RCid != '' order by RCid");
15
my $sth1 = $dbh->prepare("select distinct RCid from (select distinct RCId from v_shift where date = date(now()) union select distinct RCid from v_shift_announcer where date = date(now()) union select distinct RCid from v_shift_officiating where date = date(now())) t1 where RCid != '' order by cast(RCid as UNSIGNED)");
Line 16... Line 16...
16
my $sth2 = $dbh->prepare("select * from (select id, date, dayofweek, location, time, role, '' as teams, type from v_shift where RCid = ? union select id, date, dayofweek, track as location, time, role, teams, gtype as type from v_shift_announcer where RCid = ? union select id, date, dayofweek, track as location, time, role, teams, gtype as type from v_shift_officiating where RCid = ?) temp where date = date(now()) order by date, time");
16
my $sth2 = $dbh->prepare("select * from (select id, date, dayofweek, location, time, role, '' as teams, type from v_shift where RCid = ? union select id, date, dayofweek, track as location, time, role, teams, gtype as type from v_shift_announcer where RCid = ? union select id, date, dayofweek, track as location, time, role, teams, gtype as type from v_shift_officiating where RCid = ?) temp where date = date(now()) order by date, time");
17
 
17
 
18
$sth1->execute();
18
$sth1->execute();
Line 31... Line 31...
31
 
31
 
Line 32... Line 32...
32
Here is your RollerCon Volunteer (and MVP Class) schedule for today, $day, $date.
32
Here is your RollerCon Volunteer (and MVP Class) schedule for today, $day, $date.
Line -... Line 33...
-
 
33
 
-
 
34
Please note that it is very important to fulfill your assigned shifts.  It is too late to drop today's shifts in the scheduling tool.  If you find you are unable to work a shift, please notify an On Duty Lead from the department you are scheduled to work (or VCI) at least 30 minutes before your shift.  Anyone who "No Show; No Calls" is at risk of losing the rest of their assigned shifts, being barred from volunteering for the rest of this year and/or beyond, and even possibly losing their badge.  (That's how big of a deal it is!)  But of course we know a lovely person such as yourself would never do that.  Right?
33
 
35
 
Line 34... Line 36...
34
Please note that it is very important to fulfill your assigned shifts.  It is too late to drop today's shifts in the scheduling tool.  If you find you are unable to work a shift, please notify an On Duty Lead from the department you are scheduled to work (or VCI) at least 30 minutes before your shift.  Anyone who "No Show; No Calls" is at risk of losing the rest of their assigned shifts, being barred from volunteering for the rest of this year and/or beyond, and even possibly losing their badge.  (That's how big of a deal it is!)  But of course we know a lovely person such as yourself would never do that.  Right?
36
PLEASE DO NOT REPLY TO THIS EMAIL (unless you have actual VORC system issues).  This is an automated message, and the only person who sees replies is a system admin, not the person you probably want to message.
Line 35... Line 37...
35
 
37