$shiftEnabled = ''; $shiftId = __paramInit('int', 'shifts_list', null, -1); break; case 'time': $timeChecked = 'checked'; $timeEnabled = ''; break; } $search = clearInputText($search); if ($cmd == 'filter') { $fromD = __paramInit('string', 'from_d', null, ''); $fromM = __paramInit('string', 'from_m', null, ''); $fromY = __paramInit('string', 'from_y', null, ''); $fromH = __paramInit('string', 'from_h', null, ''); $fromI = __paramInit('string', 'from_i', null, ''); $filter = admin_log::getDatePeriod($error, $fromD, $fromM, $fromY, $toD, $toM, $toY); if (!$error) { $error = admin_log::checkTimePeriod($bIsNull, $fromH, $fromI, $toH, $toI); if (!$error) { if (!$bIsNull) { $filter['time'] = array($fromH . ':' . $fromI . ' - ' . $toH . ':' . $toI); } else { $filter['time'] = array('00:00 - 23:59'); } $filter['act_id'] = $act; $filter['admin_id'] = $adm; $filter['search'] = $search; } } } if (!$error) {