' . $dropcounter . ' Fasern
';
} else {
$body .= '';
}
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 '
|
' . $endpointtype . '
|
|
' . $endpointname . '
|
|
' . $coordinates . '
|
';
echo $endpointbody;
echo '
';
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 |
= $fiberplancables->description ?> |
| Fasern / Länge (m) |
= $fibers[$fiberplancables->fibers]['name'] . " (" . $fibers[$fiberplancables->fibers]['fibers'] . ")" ?>
/ = $fiberplancables->lenght ?> Meter
|
| Netzgebiet |
= $fiberplancables->network->name ?> |
| Verwendete(s) Rohr(e) |
|
| Status |
= $state[$fiberplancables->state] ?> |
| Zuständig |
= $responsible ?> |
| Kontakt |
= $fiberplancables->responsible_text ?> |
| Bemerkung |
= nl2br($fiberplancables->comment) ?> |
Schematische Darstellung
fibers]);
}
?>