Seleccionar página

= 0 && $hm < 800) return Closed(); if ($hm >= 800 && $hm < 1100) return Open(); if ($hm >= 1100 && $hm < 1500) return OpenDelay(); if ($hm >= 1500 && $hm < 1600) return Open(); if ($hm >= 1600 && $hm < 2359) return Closed(); break; case 'tue': //TUESDAY if ($hm >= 0 && $hm < 800) return Closed(); if ($hm >= 800 && $hm < 1100) return Open(); if ($hm >= 1100 && $hm < 1500) return OpenDelay(); if ($hm >= 1500 && $hm < 1600) return Open(); if ($hm >= 1600 && $hm < 2359) return Closed(); break; case 'wed': //WEDNESDAY if ($hm >= 0 && $hm < 800) return Closed(); if ($hm >= 800 && $hm < 1100) return Open(); if ($hm >= 1100 && $hm < 1500) return OpenDelay(); if ($hm >= 1500 && $hm < 1600) return Open(); if ($hm >= 1600 && $hm < 2359) return Closed(); break; case 'thu': //THURSDAY if ($hm >= 0 && $hm < 800) return Closed(); if ($hm >= 800 && $hm < 1100) return Open(); if ($hm >= 1100 && $hm < 1500) return OpenDelay(); if ($hm >= 1500 && $hm < 1600) return Open(); if ($hm >= 1600 && $hm < 2359) return Closed(); break; case 'fri': //FRIDAY if ($hm >= 0 && $hm < 800) return Closed(); if ($hm >= 800 && $hm < 1100) return Open(); if ($hm >= 1100 && $hm < 1500) return OpenDelay(); if ($hm >= 1500 && $hm < 1600) return Open(); if ($hm >= 1600 && $hm < 2359) return Closed(); break; } } // List of holidays function HolidayList() { // Format: 2009/05/11 (comma seperated) return array("2010/05/04","2009/05/11"); } // Function to check if today is a holiday function IsHoliday() { // Retrieves the list of holidays $holidayList = HolidayList(); // Checks if the date is in the holidaylist if(in_array(date("Y/m/d"),$holidayList)) { return true; }else { return false; } } // Returns the data when open function Open() { return 'Open'; } // Return the data when closed function Closed() { return 'Closed'; } // Returns the data when open but with waiting time function OpenDelay() { return 'Open, but with delay'; } // Returns the data when closed due to holiday function ClosedHoliday() { return 'Lukket pga. helligdag'; } ?>