. */ include_once __DIR__.'/../../../core.php'; switch ($resource) { case 'fasce_orarie': $query = 'SELECT id, nome AS descrizione FROM in_fasceorarie |where| ORDER BY nome ASC'; foreach ($elements as $element) { $filter[] = 'id='.prepare($element); } if (empty($filter)) { $where[] = 'in_fasceorarie.deleted_at IS NULL'; } if (!empty($search)) { $search_fields[] = 'nome LIKE '.prepare('%'.$search.'%'); } break; }