0) :
?>
pop_id) {
$endpointname = '

' . $fiberPlanPipesEndpointdetail->pop->name;
$endpointtype = '
(POP)';
if ($fiberPlanCableEndpoints[$fiberPlanPipesEndpointdetail->id]) {
$endpointcounter = 0;
foreach ($fiberPlanCableEndpoints[$fiberPlanPipesEndpointdetail->id] as $fiberPlanCableEndpoint):
$endpointbody .= '
';
$endpointcounter++;
endforeach;
}
} else if ($fiberPlanPipesEndpointdetail->fiberPlanDispatcher_id) {
$endpointname = $fiberPlanPipesEndpointdetail->fiberPlanDispatcher->description;
$endpointtype = $fiberPlanPipesEndpointdetail->fiberPlanDispatcher->object_type;
if ($fiberPlanPipesEndpointdetail->fiberPlanDispatcher->object_type == 1) {
$endpointtype = '
(Verteiler)';
$endpointname = '

' . $endpointname;
} else if ($fiberPlanPipesEndpointdetail->fiberPlanDispatcher->object_type == 2) {
$endpointtype = '
(Schacht)';
$endpointname = '

' . $endpointname;
} else if ($fiberPlanPipesEndpointdetail->fiberPlanDispatcher->object_type == 3) {
$endpointname = '

' . $endpointname;
$endpointtype = "(Greenfield)";
}
if ($fiberPlanPipesEndpointdetail->fiberPlanDispatcher->object_type == 1 || $fiberPlanPipesEndpointdetail->fiberPlanDispatcher->object_type == 2) {
if ($fiberPlanCableEndpoints[$fiberPlanPipesEndpointdetail->id]) {
foreach ($fiberPlanCableEndpoints[$fiberPlanPipesEndpointdetail->id] as $fiberPlanCableEndpoint):
if ($fiberPlanCableEndpoint->dropout == "1") {
$endpointbody .= '
';
}
$endpointbody .= '
';
endforeach;
}
}
} else if ($fiberPlanPipesEndpointdetail->building_id) {
$endpointname = '

' . $fiberPlanPipesEndpointdetail->building->street;
$endpointtype = '(Building)';
}
if ($fiberPlanCableEndpoints[$fiberPlanPipesEndpointdetail->id]) {
}
?>
= $endpointname ?>= $endpointtype ?>
= $endpointbody ?>