id] = $lineworkeraddress->company; endforeach; if ($fiberplancables->address_id) { $responsible = $Lineworker[$fiberplancables->address_id]; } else { $responsible = "Person"; } ?> endport - $destination->startport + 1; $startport = $sumcounter + 1; if ($destinationinfo == "pop"): if ($oldrack != $destination->poprack_id) { if ($counter != 1) { echo ''; } $body .= '
' . $destination->poprack->name . '
'; } $body .= '
HE(' . $destination->poprackmodule->start_he . ') ' . $destination->poprackmodule->name . ' (' . $destination->startport . '-' . $destination->endport . ') ' . $plug[$destination->poprackmodule->plug] . ' (' . $startport . '-' . $endport . ')
'; $counter++; $oldrack = $destination->poprack_id; $sumcounter = $sumcounter + $destination->endport - $destination->startport + 1; endif; if ($destinationinfo == "building"): $body .= '
' . $destination->fiberPlanDispatchersleeve->name . ' (' . $destination->startport . '-' . $destination->endport . ')
'; $sumcounter = $sumcounter + $destination->endport - $destination->startport + 1; endif; if ($destinationinfo == "sleeve"): if ($destination->dropout) { $body .= '
Dropout
'; $body .= '
' . $destination->fiberPlanDispatchersleeve->name . ' (' . $destination->startport . '-' . $destination->endport . ')
'; $body .= ' '; $dropcounter = $destination->endport - $destination->startport + 1; $dropout .= '
' . $dropcounter . ' Fasern
'; } else { $body .= '
' . $destination->fiberPlanDispatchersleeve->name . ' (' . $destination->startport . '-' . $destination->endport . ')
'; $sumcounter = $sumcounter + $destination->endport - $destination->startport + 1; } endif; } if ($sumcounter == 0) { $sumcounter = $oldsummcounter; } return array($body, $sumcounter, $dropout); } function generatedestinationmidpoint($markers, $midpoints, $cableendpoints, $fiberPlanCablePipes, $pipesubs, $fibers = 0) { $oldendpoint = ""; $midpointcounter = count($midpoints); $pipecolorsmanu = FiberPlanPipeManufacturerModel::getAll(); $pipecolors = json_decode($pipecolorsmanu[0]->colors, true); $counter = 0; $width = 0; $oldsummcounter = 0; $summcounter = $fibers; foreach ($midpoints as $midpoint): $pipecol = $pipesubs[$counter]['pipecolor']; $midcounter = 0; foreach ($midpoint as $endpoint): $pipecolor = $pipecolors[$endpoint->fiberPlanCablePipe->fiberPlanPipe_sub]; if ($endpoint->pop_id) { $enpointid = $endpoint->pop_id; } elseif ($endpoint->fiberPlanDispatcher_id) { $enpointid = $endpoint->fiberPlanDispatcher_id; } elseif ($endpoint->building_id) { $enpointid = $endpoint->building_id; } if ($oldendpoint != $enpointid && $width == 0) { echo '
'; } if (($counter != 0 || $midcounter != 0) && $oldendpoint != $enpointid): echo '
' . $summcounter . '
' . $pipesubs[$counter]['pipsstriped'] . '
'; $width = $width + 80; // $summcounter = 0; endif; $endpointbody = ""; if ($endpoint->pop_id) { $url = mfBaseController::getUrl("Pop", "detail", ["id" => $endpoint->pop->id]); $endpointname = '' . $endpoint->pop->name . ''; $endpointtype = "Pop"; $gps_lat = $endpoint->pop->gps_lat; $gps_long = $endpoint->pop->gps_long; $enpointid = $endpoint->pop_id; if ($cableendpoints[$endpoint->id]) { list($endpointbody, $summcounter, $dropout) = generateendpointbody($cableendpoints[$endpoint->id], 'pop', $oldsummcounter); } $width = $width + 300; } elseif ($endpoint->fiberPlanDispatcher_id) { $endpointname = $endpoint->fiberPlanDispatcher->description; if ($endpoint->fiberPlanDispatcher->object_type == 3) $endpointtype = "Greenfield"; else if ($endpoint->fiberPlanDispatcher->object_type == 1) $endpointtype = "Verteiler"; else if ($endpoint->fiberPlanDispatcher->object_type == 2) $endpointtype = "Schacht"; else $endpointtype = "Schacht/Verteiler"; $gps_lat = $endpoint->fiberPlanDispatcher->gps_lat; $gps_long = $endpoint->fiberPlanDispatcher->gps_long; $enpointid = $endpoint->fiberPlanDispatcher_id; list($endpointbody, $summcounter, $dropout) = generateendpointbody($cableendpoints[$endpoint->id], 'sleeve', $oldsummcounter); $width = $width + 150; } elseif ($endpoint->building_id) { $endpointname = $endpoint->building->street; $endpointtype = 'Building'; $gps_lat = $endpoint->building->gps_lat; $gps_long = $endpoint->building->gps_long; $enpointid = $endpoint->fiberPlanDispatcher_id; list($endpointbody, $summcounter, $dropout) = generateendpointbody($cableendpoints[$endpoint->id], 'building', $oldsummcounter); $width = $width + 150; } if ($oldendpoint != $enpointid): $coordinates = ""; if ($gps_lat) { $coordinates = round($gps_lat, 5) . " , " . round($gps_long, 5); $coordinates = '' . $coordinates . ''; } if ($gps_lat) { $markers[] = array( "gps_lat" => $gps_lat, "gps_long" => $gps_long, "name" => $endpointname, "color" => $pipecol, "type" => $endpointtype, ); } echo '
'; echo $endpointbody; echo '
' . $endpointtype . '
' . $endpointname . '
' . $coordinates . '
'; echo $dropout; echo '
'; endif; $midcounter++; $oldendpoint = $enpointid; if ($width > 1500) { echo '
'; echo '
'; $width = 0; } $oldsummcounter = $summcounter; endforeach; $counter++; endforeach; return $markers; } $counter = 0; foreach ($fiberPlanCablePipes as $fiberPlanCablePipe) { //var_dump($fiberPlanCablePipe->fiberPlanPipe->fiberPlanPipeTemplate->pipe7x4); $pipsstriped = ""; if ($fiberPlanCablePipe->fiberPlanPipe_sub <= $fiberPlanCablePipe->fiberPlanPipe->fiberPlanPipeTemplate->pipe7x4 && $fiberPlanCablePipe->fiberPlanPipe_sub <= 12) { $pipesub = "7x4"; $pipeheight = "7px"; $pipeheightinfoheight = "12px"; $pipeheightinfomarge = "4px"; $pipecolor = $fiberplanpipemanufacturers->colors[$fiberPlanCablePipe->fiberPlanPipe_sub - 1]->color; $pipecolordesc = $fiberplanpipemanufacturers->colors[$fiberPlanCablePipe->fiberPlanPipe_sub - 1]->colordescription; } elseif ($fiberPlanCablePipe->fiberPlanPipe_sub <= $fiberPlanCablePipe->fiberPlanPipe->fiberPlanPipeTemplate->pipe7x4 && $fiberPlanCablePipe->fiberPlanPipe_sub > 12) { $pipesub = "7x4"; $pipeheight = "7px"; $pipecolor = $fiberplanpipemanufacturers->colors[$fiberPlanCablePipe->fiberPlanPipe_sub - 13]->color; $pipecolordesc = $fiberplanpipemanufacturers->colors[$fiberPlanCablePipe->fiberPlanPipe_sub - 13]->colordescstriped; $pipeheightinfoheight = "12px"; $pipeheightinfomarge = "4px"; $pipsstriped = '
'; } else if ($fiberPlanCablePipe->fiberPlanPipe_sub - $fiberPlanCablePipe->fiberPlanPipe->fiberPlanPipeTemplate->pipe7x4 <= $fiberPlanCablePipe->fiberPlanPipe->fiberPlanPipeTemplate->pipe14x10 && $fiberPlanCablePipe->fiberPlanPipe_sub - $fiberPlanCablePipe->fiberPlanPipe->fiberPlanPipeTemplate->pipe7x4 <= 12) { $pipesub = "14x10"; $pipeheight = "10px"; $pipecolor = $fiberplanpipemanufacturers->colors[$fiberPlanCablePipe->fiberPlanPipe_sub - 1 - $fiberPlanCablePipe->fiberPlanPipe->fiberPlanPipeTemplate->pipe7x4]->color; $pipecolordesc = $fiberplanpipemanufacturers->colors[$fiberPlanCablePipe->fiberPlanPipe_sub - 1 - $fiberPlanCablePipe->fiberPlanPipe->fiberPlanPipeTemplate->pipe7x4]->colordescription; $pipeheightinfoheight = "15px"; $pipeheightinfomarge = "3px"; } else if ($fiberPlanCablePipe->fiberPlanPipe_sub - $fiberPlanCablePipe->fiberPlanPipe->fiberPlanPipeTemplate->pipe7x4 <= $fiberPlanCablePipe->fiberPlanPipe->fiberPlanPipeTemplate->pipe14x10 && $fiberPlanCablePipe->fiberPlanPipe_sub - $fiberPlanCablePipe->fiberPlanPipe->fiberPlanPipeTemplate->pipe7x4 > 12) { $pipesub = "14x10"; $pipeheight = "10px"; $pipecolor = $fiberplanpipemanufacturers->colors[$fiberPlanCablePipe->fiberPlanPipe_sub - 13 - $fiberPlanCablePipe->fiberPlanPipe->fiberPlanPipeTemplate->pipe7x4]->color; $pipecolordesc = $fiberplanpipemanufacturers->colors[$fiberPlanCablePipe->fiberPlanPipe_sub - 13 - $fiberPlanCablePipe->fiberPlanPipe->fiberPlanPipeTemplate->pipe7x4]->colordescstriped; $pipeheightinfoheight = "15px"; $pipeheightinfomarge = "3px"; $pipsstriped = '
'; } else { $pipesub = ""; $pipeheight = ""; $pipecolor = ""; $pipecolordesc = $fiberPlanCablePipe->fiberPlanPipe->type_description; $pipeheightinfoheight = "15px"; $pipeheightinfomarge = "3px"; $pipsstriped = ''; } /* var_dump($fiberPlanCablePipe->fiberPlanpipe->fiberPlanPipeTemplate); echo $fiberPlanCablePipe->fiberPlanPipe_sub; echo ".
"; echo $fiberPlanCablePipe->fiberPlanPipe->fiberPlanPipeTemplate->pipe7x4; echo "
"; echo $fiberPlanCablePipe->fiberPlanPipe->fiberPlanPipeTemplate->pipe14x10; echo "
"; echo $fiberPlanCablePipe->fiberPlanPipe_sub - $fiberPlanCablePipe->fiberPlanpipe->fiberPlanPipeTemplate->pipe7x4;*/ $pipesubs[$counter]['pipesub'] = $pipesub; $pipesubs[$counter]['pipeheight'] = $pipeheight; $pipesubs[$counter]['pipecolor'] = $pipecolor; $pipesubs[$counter]['pipecolordesc'] = $pipecolordesc; $pipesubs[$counter]['pipeheightinfoheight'] = $pipeheightinfoheight; $pipesubs[$counter]['pipeheightinfomarge'] = $pipeheightinfomarge; $pipesubs[$counter]['pipsstriped'] = $pipsstriped; $counter++; } foreach ($fiberPlanCableEndpoints as $fiberPlanCableEndpoint) { $markers = generatedestinationmidpoint($markers, $fiberPlanCableEndpoints, $fiberPlanCableEndpoints, $fiberPlanCablePipes, $pipesubs); } ?>

Allgemeine Informationen

Bezeichnung description ?>
Fasern / Länge (m) fibers]['name'] . " (" . $fibers[$fiberplancables->fibers]['fibers'] . ")" ?> / lenght ?> Meter
Netzgebiet network->name ?>
Verwendete(s) Rohr(e)
$fiberPlanCablePipe->fiberPlanPipe->id]) . '" target="_blanc">' . $fiberPlanCablePipe->fiberPlanPipe->description . '' ?> ' . $pipesubs[$counter]['pipsstriped'] . '' ?> ()

 

Status state] ?>
Zuständig
Kontakt responsible_text ?>
Bemerkung comment) ?>

Schematische Darstellung

fibers]); } ?>