'lan' => 'LAN',
'ftth' => 'Światłowód / FTTH',
'monitoring' => 'Monitoring CCTV',
'domofon' => 'Domofon',
'wideodomofon' => 'Wideodomofon',
'kontrola_dostepu' => 'Kontrola dostępu',
'alarm' => 'Alarm / SSWiN',
'elektryka' => 'Elektryka',
'wifi' => 'Wi-Fi',
'inne' => 'Inna instalacja',
];
}
private function system_statuses() {
return [
'aktywny' => 'Aktywna',
'awaria' => 'Awaria',
'do_modernizacji' => 'Do modernizacji',
'modernizacja' => 'W modernizacji',
'wylaczony' => 'Wyłączona',
'archiwalny' => 'Archiwalna',
];
}
private function event_types() {
return [
'notatka' => 'Notatka',
'awaria' => 'Awaria',
'naprawa' => 'Naprawa',
'przeglad' => 'Przegląd',
'pomiar' => 'Pomiar',
'modernizacja' => 'Modernizacja',
'montaz' => 'Montaż',
'wymiana' => 'Wymiana urządzenia',
'ustalenie' => 'Ustalenie techniczne',
'zlecenie' => 'Zlecenie / Karta Pracy',
];
}
private function status_label($status) {
$all = array_merge($this->building_statuses(), $this->system_statuses());
return $all[$status] ?? ucfirst(str_replace('_', ' ', $status));
}
private function system_label($type) {
$types = $this->system_types();
return $types[$type] ?? ucfirst(str_replace('_', ' ', $type));
}
private function event_label($type) {
$types = $this->event_types();
return $types[$type] ?? ucfirst(str_replace('_', ' ', $type));
}
private function test_karta_budynku() {
if (empty($_GET['page']) || sanitize_key(wp_unslash($_GET['page'])) !== self::MENU_SLUG) {
return;
}
$action = isset($_GET['action']) ? sanitize_key(wp_unslash($_GET['action'])) : '';
$building_id = isset($_GET['id']) ? absint($_GET['id']) : 0;
if ($action !== 'edit' || $building_id <= 0) {
return;
}
global $wpdb;
$t = $this->tables();
$building = $wpdb->get_row(
$wpdb->prepare(
"SELECT * FROM {$t['buildings']} WHERE id = %d LIMIT 1",
$building_id
)
);
if (!$building) {
return;
}
$target_street = $this->normalize_address_part($building->street);
$target_house = $this->normalize_address_part($building->house_no);
$target_city = $this->normalize_address_part($building->city);
if ($target_street === '' || $target_house === '' || $target_city === '') {
echo '
TEST ADRESU: Uzupełnij ulicę, numer budynku i miejscowość, aby sprawdzić dopasowania Bookly.
';
return;
}
$orders = $this->get_recent_bookly_orders(300);
$matches = [];
foreach ($orders as $order) {
$street = $this->normalize_address_part($order['street'] ?? '');
$house = $this->normalize_address_part($order['house_no'] ?? '');
$city = $this->normalize_address_part($order['city'] ?? '');
if (
$street === $target_street &&
$house === $target_house &&
$city === $target_city
) {
$matches[] = $order;
}
}
echo 'TEST ADRESU: znaleziono ' .
esc_html(count($matches)) .
' wizyt Bookly dla adresu: ' .
esc_html($this->format_address($building)) .
' (sprawdzono maks. 300 ostatnich wizyt).
';
}
private function normalize_address_part($value) {
$value = remove_accents((string) $value);
$value = mb_strtolower($value, 'UTF-8');
$value = preg_replace('/\s+/u', ' ', trim($value));
$value = str_replace(['ul.', 'ulica '], '', $value);
return trim($value);
}
}
Krupa_Karta_Budynku_V030::instance();
Krótkie zakłócenia w emisji TVP na MUX 3 – TELE TECHNIKA
Przejdź do treści
09.07.2019 11.29
satkurier.pl
683
0
1 minuta
W nocy z czwartku 11 na piątek 12 lipca w godz. 1:00 – 6:00 spodziewane są krótkie zakłócenia w emisji wszystkich programów Telewizji Polskiej, nadawanych z MUX 3.
Krótkie zakłócenia w emisji TVP na MUX 3
Podobne newsy:
satkurier.pl
Największy i najstarszy serwis poświęcony telewizji cyfrowej, przygotowywany przez wydawcę miesięcznika SAT Kurier. Bieżące wydarzenia z rynku mediów i nowych technologii.
Portal SATKurier.pl - najnowsze informacje - telewizja, media, platformy, nowe kanały, radio, technologie, transmisje sportowe