case 'add_presets':
     //Debug::setVerbosity(11);
     RecurringHolidayFactory::addPresets($current_company->getId(), $current_company->getCountry());
     Redirect::Page(URLBuilder::getURL(NULL, 'RecurringHolidayList.php'));
 case 'add':
     Redirect::Page(URLBuilder::getURL(NULL, 'EditRecurringHoliday.php', FALSE));
     break;
 case 'delete' or 'undelete':
     if (strtolower($action) == 'delete') {
         $delete = TRUE;
     } else {
         $delete = FALSE;
     }
     $rhlf = new RecurringHolidayListFactory();
     foreach ($ids as $id) {
         $rhlf->getByIdAndCompanyId($id, $current_company->getId());
         foreach ($rhlf as $rh_obj) {
             $rh_obj->setDeleted($delete);
             if ($rh_obj->isValid()) {
                 $rh_obj->Save();
             }
         }
     }
     Redirect::Page(URLBuilder::getURL(NULL, 'RecurringHolidayList.php'));
     break;
 default:
     $rhlf = new RecurringHolidayListFactory();
     $rhlf->getByCompanyId($current_company->getId(), $current_user_prefs->getItemsPerPage(), $page, NULL, $sort_array);
     $pager = new Pager($rhlf);
     //$type_options = $aplf->getOptions('type');
     foreach ($rhlf as $rh_obj) {