diff --git a/Layout/default/Patching/Index.php b/Layout/default/Patching/Index.php index 168dfbf56..981a0e3d1 100644 --- a/Layout/default/Patching/Index.php +++ b/Layout/default/Patching/Index.php @@ -1,198 +1,451 @@ getUrl($Mod,"Index"); - $pagination_baseurl_params = ["filter" => $filter]; - $pagination_entity_name = "Patchungen"; - - if(!is_array($filter)) $filter = []; +// --- Configuration --- +$pagination_baseurl = $this->getUrl($Mod,"Index"); +$pagination_baseurl_params = ["filter" => $filter]; // Filters passed via GET +$pagination_entity_name = "Patchungen"; + +// Ensure $filter is always an array +if(!is_array($filter)) { + $filter = []; +} + +// Helper function for safe output (assuming not already handled by framework/template engine) +function e($string) { + return htmlspecialchars($string ?? '', ENT_QUOTES, 'UTF-8'); +} + +$additionalHead = [ + '' +]; + ?> -
| Standort | -ODF | -Abschluss/Device | -- | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Netzgebiet | -POP | -Kunde | -Standort | -Patchposition ODF | -ODF Port | -Typ | -Splitter / Gerät | -Port | -Gepatched | -Von | -- |
| =$term->building->network->name?> | -- getPop()): ?> - =$term->getPop()->name?> - - =$term->building->pop->name?> - - | -=($term->order->owner) ? $term->order->owner->customer_number : ""?> =($term->order->owner) ? $term->order->owner->getCompanyOrName() : ""?> |
-
- =$term->building->street?> - =$term->building->zip?> =$term->building->city?> - |
- value->id) ? $term->workflowitems["ist_schrank"]->value->value_string : $term->workflowitems["schrank"]->value->value_string?> / Einschub: =($term->workflowitems["ist_baugruppe"]->value->id) ? $term->workflowitems["ist_baugruppe"]->value->value_string : $term->workflowitems["baugruppe"]->value->value_string?> / Modul: =($term->workflowitems["ist_modul"]->value->id) ? $term->workflowitems["ist_modul"]->value->value_string : $term->workflowitems["modul"]->value->value_string?> / Port: =($term->workflowitems["ist_ports"]->value->id) ? $term->workflowitems["ist_ports"]->value->value_string : $term->workflowitems["ports"]->value->value_string?>"> - =($term->workflowitems["ist_schrank"]->value->id) ? $term->workflowitems["ist_schrank"]->value->value_string : $term->workflowitems["schrank"]->value->value_string?> / - =($term->workflowitems["ist_baugruppe"]->value->id) ? $term->workflowitems["ist_baugruppe"]->value->value_string : $term->workflowitems["baugruppe"]->value->value_string?> / - =($term->workflowitems["ist_modul"]->value->id) ? $term->workflowitems["ist_modul"]->value->value_string : $term->workflowitems["modul"]->value->value_string?> / - =($term->workflowitems["ist_ports"]->value->id) ? $term->workflowitems["ist_ports"]->value->value_string : $term->workflowitems["ports"]->value->value_string?> - | -- - | -- - | -- | - | patching->patched == 1) ? "checked='checked'" : ""?> /> | -patching->patched == 1 && $term->patching->patched_by) ? "title='Gepatched: ".date("d.m.Y H:i",$term->patching->patched_date)." von ".$term->patching->patcher->name." (".$term->patching->patcher->address->getCompanyOrName(true).")'" : ""?>> - - patching->patched == 1 && $term->patching->patched_by): ?> - =($term->patching->patcher) ? $term->patching->patcher->getAbbrName() : ""?> - - | -- - | -
| Standort | +ODF | +Abschluss/Device | +Aktion | +||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Netzgebiet | +POP | +Kunde | +Standort | +Patchposition ODF | +ODF Port | +Typ | +Splitter / Gerät | +Port | +Gepatched | +Von | +Speichern | +
| =e($networkName)?> | +=e($popName)?> | +=e($customerNumber)?> =e($customerName)?> |
+
+ =e($street)?> + =e($zip)?> =e($city)?> + |
+ + =$odfPositionDisplay?> + | ++ + | ++ + | ++ | + | + + /> + | +> + =e($patchedByDisplay)?> + | ++ + | +