To report holiday closings, please begin the process by following this link:
Report Holiday Closings.
- If you are going to be closed longer than a week please let TAE know tae@amigos.org .
- This information is used for scheduling shipping dates via TAE/TExpress.
- Items not deliverable due to closings will be held by the courier.
- It is also advisable to inform your delivery person in writing about your closing dates.
Sort the table below by its columns!");
print ("
\n");
print ("\n");
// create a table
switch (arg(2)) {
case 1:
$order = 'site_num';
break;
case 2:
$order = 'name';
break;
case 3:
$order = 'city';
break;
case 4:
$order = 'hub';
break;
case 5:
$order = 'close_year, close_month, close_day';
break;
case 6:
$order = 'open_year, open_month, open_day';
break;
default:
$order = 'site_num';
break;
}
$Query2 = "SELECT * FROM $TableName ORDER BY $order";
$Result2 = mysqli_query ($Link, $Query2);
print ("Site | \n");
print ("Institution | \n");
print ("City | \n");
print ("Closed | \n");
print ("Hub | \n");
print ("Open | \n");
print ("Comments |
\n");
while ($Row = mysqli_fetch_assoc ($Result2)) {
// compare each entry to current date/time - if date/time is passed, do not show
// create timestamp from variables in database and compare to a current timestamp
$entry_date = "$Row[open_month]-$Row[open_day]-$Row[open_year]";
$d = explode("-",$entry_date);
// turn $entry_date into seconds since January 1, 1970
$date_seconds = mktime(0,0,0,$d[0],$d[1],$d[2]);
if ($date_seconds >= $today) {
print ("$Row[site_num] | $Row[name] | $Row[city] | $Row[close_month]/$Row[close_day]/$Row[close_year] | $Row[hub] | $Row[open_month]/$Row[open_day]/$Row[open_year] |
\n");
} //end if
} //end while
print ("
\n");
mysqli_close ($Link);
?>