Merge branch 'spidev' into 'master'
Faserplanung (Vorbereitung für Kabelverschaltung) See merge request fronk/thetool!410
This commit is contained in:
@@ -0,0 +1,805 @@
|
||||
<?php include(realpath(dirname(__FILE__) . "/../../$mfLayoutPackage") . "/header.php"); ?>
|
||||
<link href="<?= self::getResourcePath() ?>assets/css/datatables-std.css?<?= date('U') ?>" rel="stylesheet"
|
||||
type="text/css"/>
|
||||
|
||||
<?php
|
||||
$markers = [];
|
||||
$fibers[1]['name'] = "1x4";
|
||||
$fibers[1]['fibers'] = "4";
|
||||
$fibers[2]['name'] = "1x12";
|
||||
$fibers[2]['fibers'] = "12";
|
||||
$fibers[3]['name'] = "1x24";
|
||||
$fibers[3]['fibers'] = "24";
|
||||
$fibers[4]['name'] = "2x12";
|
||||
$fibers[4]['fibers'] = "24";
|
||||
$fibers[5]['name'] = "4x12";
|
||||
$fibers[5]['fibers'] = "48";
|
||||
$fibers[6]['name'] = "8x12";
|
||||
$fibers[6]['fibers'] = "96";
|
||||
$fibers[7]['name'] = "6x24";
|
||||
$fibers[7]['fibers'] = "144";
|
||||
$fibers[8]['name'] = "12x12";
|
||||
$fibers[8]['fibers'] = "144";
|
||||
$fibers[9]['name'] = "8x24";
|
||||
$fibers[9]['fibers'] = "192";
|
||||
$fibers[10]['name'] = "12x24";
|
||||
$fibers[10]['fibers'] = "288";
|
||||
|
||||
$state[10] = 'Geplant';
|
||||
$state[20] = 'Umsetzung';
|
||||
$state[30] = 'Fertiggestellt';
|
||||
|
||||
foreach ($lineworkeraddresses as $lineworkeraddress):
|
||||
$Lineworker[$lineworkeraddress->id] = $lineworkeraddress->company;
|
||||
|
||||
endforeach;
|
||||
|
||||
if ($fiberplancables->address_id) {
|
||||
$responsible = $Lineworker[$fiberplancables->address_id];
|
||||
} else {
|
||||
$responsible = "Person";
|
||||
}
|
||||
|
||||
?>
|
||||
<style>
|
||||
#map {
|
||||
height: 600px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.card-border {
|
||||
border-left: 1px solid #428bca;
|
||||
border-left-width: 5px;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.fiber-rack-div {
|
||||
margin-top: 5px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.fiber-color {
|
||||
color: #0d6efd;
|
||||
float: right;
|
||||
margin-left: 5px;
|
||||
|
||||
}
|
||||
|
||||
.fiber-module-div {
|
||||
padding-left: 5px;
|
||||
padding-right: 5px;
|
||||
margin-left: 5px;
|
||||
margin-right: 5px;
|
||||
margin-bottom: 5px;
|
||||
border: 1px solid #e3e3e3;
|
||||
}
|
||||
|
||||
.sp-border-rl {
|
||||
padding-left: 5px;
|
||||
padding-right: 5px;
|
||||
|
||||
}
|
||||
|
||||
.sp-table-border {
|
||||
border: 1px solid #bfbfbf;
|
||||
border-radius: 10px;
|
||||
display: inline;
|
||||
|
||||
}
|
||||
|
||||
.sp-table-border > tbody {
|
||||
padding: 10px;
|
||||
|
||||
}
|
||||
|
||||
.sp-table-border > thead td {
|
||||
padding: 10px 0px 0px 0px;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.sp-port-lines {
|
||||
width: 50px;
|
||||
border-top: 1px solid #000;
|
||||
border-bottom: 1px solid #000;
|
||||
|
||||
}
|
||||
|
||||
#olt-splitter td {
|
||||
height: 30px;
|
||||
width: 150px;
|
||||
border: 1px solid #bfbfbf;
|
||||
margin-top: 15px;
|
||||
display: block;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
#olt-splitter-table thead {
|
||||
padding: 10px 0px 0px 0px;
|
||||
font-weight: bold;
|
||||
font-size: 20px;
|
||||
|
||||
}
|
||||
|
||||
#olt-splitter-table thead td {
|
||||
padding-top: 12px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.sp-splitter-count {
|
||||
padding: 3px 10px 3px 10px;
|
||||
width: 50px;
|
||||
}
|
||||
|
||||
.sp-splitter-count-left {
|
||||
padding: 3px 0px 3px 10px;
|
||||
width: 50px;
|
||||
}
|
||||
|
||||
.sp-splitter-count-right {
|
||||
padding: 3px 10px 3px 0px;
|
||||
width: 50px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.sp-splitter-count-edit {
|
||||
-ms-user-select: None;
|
||||
-moz-user-select: None;
|
||||
-webkit-user-select: None;
|
||||
user-select: None;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.sp-splitter-count-show {
|
||||
width: 46px;
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
text-decoration: underline;
|
||||
padding-top: 2px;
|
||||
-ms-user-select: None;
|
||||
-moz-user-select: None;
|
||||
-webkit-user-select: None;
|
||||
user-select: None;
|
||||
}
|
||||
|
||||
.sp-white-border {
|
||||
border-color: #fff !important;
|
||||
}
|
||||
|
||||
.sp-ont-text {
|
||||
padding: 0px 5px 0px 5px;
|
||||
}
|
||||
|
||||
.fa-circle-check {
|
||||
color: #07ad2b;
|
||||
}
|
||||
|
||||
.fa-circle-xmark {
|
||||
color: #ff0000;
|
||||
}
|
||||
|
||||
.fa-rotate-right {
|
||||
color: #0d6efd;
|
||||
cursor: pointer;
|
||||
|
||||
}
|
||||
|
||||
.ont-refresh-span, .ontdetail-refresh-span {
|
||||
display: inline-block;
|
||||
width: 20px;
|
||||
margin-right: 50px;
|
||||
min-height: 1px;
|
||||
color: #0d6efd;
|
||||
}
|
||||
|
||||
.text-decoration-underline {
|
||||
text-decoration: underline;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.condensed-ont th {
|
||||
padding: 6px 0.85rem 6px 0.85rem !important;
|
||||
}
|
||||
|
||||
.condensed-ont td {
|
||||
padding: 6px 0.85rem 6px 0.85rem !important;
|
||||
}
|
||||
|
||||
.inner-table td {
|
||||
border: none !important;
|
||||
padding: 5px 5px 5px 0px !important;
|
||||
}
|
||||
|
||||
.inner-table th {
|
||||
border: none !important;
|
||||
padding: 5px 10px 5px 0px !important;
|
||||
}
|
||||
|
||||
.pipe-striped {
|
||||
height: 100%;
|
||||
background-color: #000;
|
||||
width: 35%;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.overflowme {
|
||||
overflow-x: auto;
|
||||
white-space: nowrap;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
</style>
|
||||
<?php
|
||||
|
||||
|
||||
function generateendpointbody($destinations, $destinationinfo, $oldsummcounter = 0)
|
||||
{
|
||||
$plug[1] = "LC/APC";
|
||||
$plug[2] = "SC/APC";
|
||||
$plug[3] = "E2000/APC";
|
||||
$oldrack = "";
|
||||
$counter = 1;
|
||||
$startport = 0;
|
||||
$endport = 0;
|
||||
$sumcounter = 0;
|
||||
$pop_id = $destinations['pop_id'];
|
||||
$body = "";
|
||||
foreach ($destinations as $destination) {
|
||||
$endport = $sumcounter + $destination->endport - $destination->startport + 1;
|
||||
$startport = $sumcounter + 1;
|
||||
if ($destinationinfo == "pop"):
|
||||
|
||||
if ($oldrack != $destination->poprack_id) {
|
||||
if ($counter != 1) {
|
||||
echo '</tbody>';
|
||||
}
|
||||
$body .= ' <tbody class="font-13" style="border-top: 1px solid #000;margin-top:5px;">
|
||||
<tr>
|
||||
<td class="pl-2 pr-2 font-weight-bold" colspan="3">
|
||||
<div class="fiber-rack-div">' . $destination->poprack->name . '</div>
|
||||
</td>
|
||||
</tr>';
|
||||
}
|
||||
$body .= '<tr>
|
||||
<td class="text-left sp-border-rl" colspan="3">
|
||||
<div class="fiber-module-div">HE(' . $destination->poprackmodule->start_he . ') ' . $destination->poprackmodule->name . ' (' . $destination->startport . '-' . $destination->endport . ') ' . $plug[$destination->poprackmodule->plug] . ' <span class="fiber-color">(' . $startport . '-' . $endport . ')</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>';
|
||||
|
||||
|
||||
$counter++;
|
||||
$oldrack = $destination->poprack_id;
|
||||
$sumcounter = $sumcounter + $destination->endport - $destination->startport + 1;
|
||||
endif;
|
||||
|
||||
if ($destinationinfo == "building"):
|
||||
|
||||
$body .= '<tr>
|
||||
<td class="text-left sp-border-rl" colspan="3">
|
||||
<div class="fiber-module-div">' . $destination->fiberPlanDispatchersleeve->name . ' <span class="fiber-color">(' . $destination->startport . '-' . $destination->endport . ')</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>';
|
||||
$sumcounter = $sumcounter + $destination->endport - $destination->startport + 1;
|
||||
|
||||
endif;
|
||||
|
||||
|
||||
if ($destinationinfo == "sleeve"):
|
||||
|
||||
|
||||
if ($destination->dropout) {
|
||||
$body .= '<tr>
|
||||
<th colspan="3"
|
||||
class="text-center font-15">
|
||||
<div class="pt-2 pl-2 pr-2">Dropout</div>
|
||||
</th>
|
||||
</tr>';
|
||||
|
||||
$body .= '<tr>
|
||||
<td class="text-left sp-border-rl" colspan="3">
|
||||
<div class="fiber-module-div">' . $destination->fiberPlanDispatchersleeve->name . ' <span class="fiber-color">(' . $destination->startport . '-' . $destination->endport . ')</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>';
|
||||
$body .= '<tr>
|
||||
<td colspan="3"></td>
|
||||
</tr>';
|
||||
|
||||
$dropcounter = $destination->endport - $destination->startport + 1;
|
||||
$dropout .= '<div style="height:70px;width: 3px;background-color: #000; margin-left: auto; margin-right: auto;"></div>
|
||||
<div style="margin-left: auto; margin-right: auto;">' . $dropcounter . ' Fasern</div>';
|
||||
} else {
|
||||
$body .= '<tr>
|
||||
<td class="text-left sp-border-rl" colspan="3">
|
||||
<div class="fiber-module-div">' . $destination->fiberPlanDispatchersleeve->name . ' <span class="fiber-color">(' . $destination->startport . '-' . $destination->endport . ')</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>';
|
||||
$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)
|
||||
{
|
||||
$oldendpoint = "";
|
||||
$midpointcounter = count($midpoints);
|
||||
$pipecolorsmanu = FiberPlanPipeManufacturerModel::getAll();
|
||||
$pipecolors = json_decode($pipecolorsmanu[0]->colors, true);
|
||||
|
||||
$counter = 0;
|
||||
$width = 0;
|
||||
$oldsummcounter = 0;
|
||||
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 '<div class="overflowme">';
|
||||
}
|
||||
if (($counter != 0 || $midcounter != 0) && $oldendpoint != $enpointid):
|
||||
echo ' <table id="olt-port-table" class="float-left" style="width: 80px">
|
||||
<thead>
|
||||
<tr>
|
||||
<td style="height: 60px;"></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="olt-ports">
|
||||
<tr>
|
||||
<td data-oltport="0"
|
||||
class="font-13">' . $summcounter . '</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td data-oltport="0" class="sp-port-lines" style="width: 70px; background-color: ' . $pipecol . ' ;height: 7px;">' . $pipesubs[$counter]['pipsstriped'] . '</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td data-oltport="0" class="font-13"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>';
|
||||
$width = $width + 80;
|
||||
// $summcounter = 0;
|
||||
endif;
|
||||
$endpointbody = "";
|
||||
if ($endpoint->pop_id) {
|
||||
$url = mfBaseController::getUrl("Pop", "detail", ["id" => $endpoint->pop->id]);
|
||||
$endpointname = '<a href="' . $url . '" target="_blank">' . $endpoint->pop->name . '</a>';
|
||||
$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 = '<a title="Google-Maps: ' . $coordinates . '" class="mapsLink" href="http://maps.google.com/?q=' . $coordinates . '" target="_blank">' . $coordinates . '</a>';
|
||||
}
|
||||
if ($gps_lat) {
|
||||
$markers[] = array(
|
||||
"gps_lat" => $gps_lat,
|
||||
"gps_long" => $gps_long,
|
||||
"name" => $endpointname,
|
||||
"color" => $pipecol,
|
||||
"type" => $endpointtype,
|
||||
);
|
||||
}
|
||||
|
||||
echo '<div class="float-left"><table class="sp-table-border "
|
||||
style="min-height: 150px;display:block">
|
||||
<thead >
|
||||
<tr>
|
||||
<th colspan="3"
|
||||
class="text-center font-15">
|
||||
<div class="pt-2 pl-2 pr-2" style="min-width: min-width: 170px;">' . $endpointtype . '</div>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="3"
|
||||
class="text-center font-15">
|
||||
<div class="pl-2 pr-2" style="min-width: min-width: 170px;">' . $endpointname . '</div>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="3" class="text-center font-13">
|
||||
<div class="pl-2 pr-2 pb-2">' . $coordinates . '</div>
|
||||
</th>
|
||||
</tr>
|
||||
<tbody>';
|
||||
|
||||
echo $endpointbody;
|
||||
|
||||
|
||||
echo '</tbody>
|
||||
</table>';
|
||||
echo $dropout;
|
||||
echo '</div>';
|
||||
|
||||
|
||||
endif;
|
||||
$midcounter++;
|
||||
$oldendpoint = $enpointid;
|
||||
if ($width > 1500) {
|
||||
echo '</div>';
|
||||
echo '<div class="overflowme">';
|
||||
$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 = '<div class="pipe-striped"></div>';
|
||||
} 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 = '<div class="pipe-striped"></div>';
|
||||
}
|
||||
/* var_dump($fiberPlanCablePipe->fiberPlanpipe->fiberPlanPipeTemplate);
|
||||
echo $fiberPlanCablePipe->fiberPlanPipe_sub;
|
||||
echo ".<br>";
|
||||
echo $fiberPlanCablePipe->fiberPlanPipe->fiberPlanPipeTemplate->pipe7x4;
|
||||
echo "<br>";
|
||||
echo $fiberPlanCablePipe->fiberPlanPipe->fiberPlanPipeTemplate->pipe14x10;
|
||||
echo "<br>";
|
||||
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);
|
||||
}
|
||||
?>
|
||||
<!-- start page title -->
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="page-title-box">
|
||||
<div class="page-title-right">
|
||||
<ol class="breadcrumb m-0">
|
||||
<li class="breadcrumb-item"><a href="<?= self::getUrl("Dashboard") ?>"><?= MFAPPNAME_SLUG ?></a>
|
||||
</li>
|
||||
<li class="breadcrumb-item"><a href="<?= self::getUrl("FiberPlanCable") ?>">Kabelverzeichnis</a>
|
||||
</li>
|
||||
<li class="breadcrumb-item active">Kabelverzeichnis Detail</li>
|
||||
</ol>
|
||||
</div>
|
||||
<h4 class="page-title">Kabel: <span
|
||||
class="font-weight-normal ml-1"><?= $fiberplancables->description ?></span>
|
||||
<span class="ml-2">
|
||||
<a href="<?= self::getUrl("FiberPlanCable", "edit", ["id" => $fiberplancables->id, 'returnto' => "fiberplancable-detail"]) ?>">
|
||||
<button class="btn btn-primary">Bearbeiten</button>
|
||||
</a>
|
||||
</span></h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end page title -->
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col-5 card-border">
|
||||
<div>
|
||||
<h4>Allgemeine Informationen </h4>
|
||||
|
||||
</div>
|
||||
<div>
|
||||
<table class="table table-sm">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th class="w-30">Bezeichnung</th>
|
||||
<td><?= $fiberplancables->description ?> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Fasern / Länge (m)</th>
|
||||
<td><?= $fibers[$fiberplancables->fibers]['name'] . " (" . $fibers[$fiberplancables->fibers]['fibers'] . ")" ?>
|
||||
/ <?= $fiberplancables->lenght ?> Meter
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Netzgebiet</th>
|
||||
<td><?= $fiberplancables->network->name ?> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Verwendete(s) Rohr(e)</th>
|
||||
<td>
|
||||
<table class="inner-table">
|
||||
<?php
|
||||
$counter = 0;
|
||||
foreach ($fiberPlanCablePipes as $fiberPlanCablePipe):?>
|
||||
<tr>
|
||||
<th><?= '<a href="' . self::getUrl("FiberPlanPipe", "detail", ["id" => $fiberPlanCablePipe->fiberPlanPipe->id]) . '" target="_blanc">' . $fiberPlanCablePipe->fiberPlanPipe->description . '</a>' ?></th>
|
||||
<td><?= '<div style="height: ' . $pipesubs[$counter]['pipeheightinfoheight'] . ';margin-top: ' . $pipesubs[$counter]['pipeheightinfomarge'] . '; background-color: ' . $pipesubs[$counter]['pipecolor'] . '; width: 50px; display: inline-block; vertical-align: top; border-radius: 10px;border: 1px solid;">' . $pipesubs[$counter]['pipsstriped'] . '</div>' ?>
|
||||
<?= $pipesubs[$counter]['pipesub'] ?>
|
||||
(<?= $pipesubs[$counter]['pipecolordesc'] ?>)
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
$counter++;
|
||||
endforeach; ?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-4 ">
|
||||
<div>
|
||||
<h4> </h4>
|
||||
</div>
|
||||
<table class="table table-sm">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>Status</th>
|
||||
<td><?= $state[$fiberplancables->state] ?> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Zuständig</th>
|
||||
<td><?= $responsible ?> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Kontakt</th>
|
||||
<td><?= $fiberplancables->responsible_text ?> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Bemerkung</th>
|
||||
<td><?= nl2br($fiberplancables->comment) ?> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-3 ">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row pb-3 pt-4 ">
|
||||
|
||||
<div class="col-12 text-center card-border">
|
||||
<div>
|
||||
<h4 class="text-left mb-3">Schematische Darstellung <i data-toggle="modal"
|
||||
data-target="#pipemap"
|
||||
class="fa-duotone fa-map-location-dot font-24"
|
||||
style="--fa-primary-color: #fa0000; --fa-secondary-color: #232423;margin-left:5px;cursor:pointer"></i>
|
||||
</h4>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<?php
|
||||
if ($fiberPlanPipesEndpoints) {
|
||||
$markers = generatedestinationmidpoint($markers, $fiberPlanPipesEndpoints, $fiberPlanCableEndpoints, $fiberPlanCablePipes, $pipesubs);
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal fade" id="pipemap" tabindex="-1" role="dialog" aria-labelledby="pipemap"
|
||||
aria-hidden="true">
|
||||
<div class="modal-dialog modal-dialog-centered modal-xl" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="pipemapLabel">Rohrverzeichnis</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div id="map"></div>
|
||||
</div>
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-lg-1"></div>
|
||||
<div class="col-lg-9 "><h4>Legende:</h4></div>
|
||||
</div>
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-lg-1"></div>
|
||||
<div class="col-lg-4"><img src="<?= self::getResourcePath() ?>img/markers/marker-pop.png ">
|
||||
<label class="font-16"> ... Pop</label></div>
|
||||
<div class="col-lg-4"><img src="<?= self::getResourcePath() ?>img/markers/marker-home.png ">
|
||||
<label class="font-16"> ... Building</label></div>
|
||||
</div>
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-lg-1"></div>
|
||||
<div class="col-lg-4 justify-content-center"><img
|
||||
src="<?= self::getResourcePath() ?>img/markers/marker-dispatcher.png "> <label
|
||||
class="font-16"> ... Schacht/Verteiler</label></div>
|
||||
<div class="col-lg-4"><img
|
||||
src="<?= self::getResourcePath() ?>img/markers/marker-greenfield.png "> <label
|
||||
class="font-16"> ... Greenfield</label></div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Schließen</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
|
||||
var marker = [];
|
||||
var polylinec;
|
||||
var polyline;
|
||||
var map = L.map('map').setView([51.505, -0.09], 13);
|
||||
L.tileLayer('https://mapsneu.wien.gv.at/basemap/{id}/normal/google3857/{z}/{y}/{x}.{imgtype}', {
|
||||
maxZoom: 19,
|
||||
id: "bmaporthofoto30cm",
|
||||
imgtype: "jpeg"
|
||||
}).addTo(map);
|
||||
L.MakiMarkers.accessToken = '<?=TT_MAPBOX_TILE_API_TOKEN?>';
|
||||
$(document).ready(function () {
|
||||
var locations = [<?php
|
||||
$counter = 0;
|
||||
$lat = 0;
|
||||
$long = 0;
|
||||
foreach ($markers as $marker):
|
||||
if ($counter > 0) echo ',';
|
||||
?>
|
||||
['<?= $marker['name'] ?>', <?= $marker['gps_lat'] ?>, <?= $marker['gps_long'] ?>, '<?= $marker['color'] ?>', '<?= $marker['type'] ?>']
|
||||
<?php
|
||||
$lat = $lat + $marker['gps_lat'];
|
||||
$long = $long + $marker['gps_long'];
|
||||
$counter++;
|
||||
endforeach;
|
||||
$lat = $lat / $counter;
|
||||
$long = $long / $counter;
|
||||
?>
|
||||
];
|
||||
var startlat = <?=$lat ?>;
|
||||
var startlong = <?=$long ?>;
|
||||
console.log(locations);
|
||||
|
||||
$('#pipemap').on('show.bs.modal', function (event) {
|
||||
var button = $(event.relatedTarget);
|
||||
map.remove();
|
||||
map = L.map('map').setView([51.505, -0.09], 13);
|
||||
L.tileLayer('https://mapsneu.wien.gv.at/basemap/{id}/normal/google3857/{z}/{y}/{x}.{imgtype}', {
|
||||
maxZoom: 19,
|
||||
id: "geolandbasemap",
|
||||
imgtype: "png"
|
||||
}).addTo(map);
|
||||
var icon_name = "town";
|
||||
var icon_color = "#ec98a2";
|
||||
var icon = L.MakiMarkers.icon({icon: icon_name, color: icon_color, size: "l"});
|
||||
var oldlat;
|
||||
var oldlong;
|
||||
map.setView([startlat, startlong], 14)
|
||||
for (var i = 0; i < locations.length; i++) {
|
||||
if (locations[i][4] == "Greenfield") {
|
||||
icon_name = "garden";
|
||||
icon_color = "#abbaf0";
|
||||
} else if (locations[i][4] == "Pop") {
|
||||
icon_name = "village";
|
||||
icon_color = "#acf0ab";
|
||||
} else if (locations[i][4] == "Building") {
|
||||
icon_name = "home";
|
||||
icon_color = "#f0abab";
|
||||
} else {
|
||||
icon_name = "home";
|
||||
icon_color = "#e9f0ab";
|
||||
}
|
||||
|
||||
|
||||
icon = L.MakiMarkers.icon({icon: icon_name, color: icon_color, size: "l"});
|
||||
|
||||
marker.push(L.marker([locations[i][1], locations[i][2]], {icon: icon}).addTo(map).bindPopup(locations[i][0]));
|
||||
|
||||
|
||||
if (oldlong) {
|
||||
polylinec = [
|
||||
[oldlat, oldlong],
|
||||
[locations[i][1], locations[i][2]]
|
||||
];
|
||||
polyline = L.polyline(polylinec, {color: locations[i][3]}).addTo(map);
|
||||
//polyline.bindTooltip(locations[i][4], {permanent: true});
|
||||
polyline = null;
|
||||
}
|
||||
oldlong = locations[i][2];
|
||||
oldlat = locations[i][1];
|
||||
}
|
||||
if (locations.length > 1) {
|
||||
fitmap = 1;
|
||||
}
|
||||
});
|
||||
$('#pipemap').on('shown.bs.modal', function (event) {
|
||||
map.invalidateSize();
|
||||
var group = new L.featureGroup(marker);
|
||||
map.fitBounds(group.getBounds());
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<?php include(realpath(dirname(__FILE__) . "/../../$mfLayoutPackage") . "/footer.php"); ?>
|
||||
@@ -0,0 +1,639 @@
|
||||
<?php include(realpath(dirname(__FILE__) . "/../../$mfLayoutPackage") . "/header.php"); ?>
|
||||
<link href="<?= self::getResourcePath() ?>assets/css/select2-cstm.css?<?= date('U') ?>" rel="stylesheet"
|
||||
type="text/css"/>
|
||||
<!-- start page title -->
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="page-title-box">
|
||||
<div class="page-title-right">
|
||||
<ol class="breadcrumb m-0">
|
||||
<li class="breadcrumb-item"><a href="<?= self::getUrl("Dashboard") ?>"><?= MFAPPNAME_SLUG ?></a>
|
||||
</li>
|
||||
<li class="breadcrumb-item"><a
|
||||
href="<?= self::getUrl("FiberPlanCable") ?>">Kabelverzeichnis</a></li>
|
||||
<li class="breadcrumb-item active"><?= ($fiberplancables->id) ? "bearbeiten" : "Neu" ?></li>
|
||||
|
||||
</ol>
|
||||
</div>
|
||||
<h4 class="page-title"><?= ($fiberplancables->id) ? "Kabelverzeichnis bearbeiten" : "Neues Kabel" ?></h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
|
||||
if ($fiberplancables->fiberPlanPipe->startpoint_network_id != $fiberplancables->network_id && $fiberplancables->fiberPlanPipe->endpoint_network_id != $fiberplancables->network_id) {
|
||||
$networkId = $fiberplancables->fiberPlanPipe->startpoint_network_id;
|
||||
} else {
|
||||
$networkId = $fiberplancables->network_id;
|
||||
}
|
||||
if (isset($_GET['returnto']) && $_GET['returnto'] == "fiberplancable-detail") {
|
||||
$cancelUrl = self::getUrl("FiberPlanCable", "Detail", ["id" => $fiberplancables->id]);
|
||||
} else {
|
||||
$cancelUrl = self::getUrl("FiberPlanCable");
|
||||
}
|
||||
//var_dump($fiberPlanCableEndpoints);
|
||||
?>
|
||||
<script>
|
||||
const pipes = [];
|
||||
const pipesid = [];
|
||||
const subpipes = [];
|
||||
</script>
|
||||
<style>
|
||||
.fa-circle-plus {
|
||||
color: #00b125;
|
||||
cursor: pointer;
|
||||
font-size: 17px;
|
||||
float: right;
|
||||
}
|
||||
|
||||
.remove-module, .remove-rack {
|
||||
cursor: pointer;
|
||||
color: #ff0606;
|
||||
font-size: 17px;
|
||||
float: right;
|
||||
margin-left: 7px;
|
||||
}
|
||||
|
||||
.up-module {
|
||||
cursor: pointer;
|
||||
color: #0c06ff;
|
||||
font-size: 17px;
|
||||
float: right;
|
||||
margin-left: 7px;
|
||||
}
|
||||
|
||||
.fa-square-caret-down, .fa-square-caret-up {
|
||||
font-size: 17px;
|
||||
margin-top: 10px;
|
||||
margin-right: 10px;
|
||||
color: #007bffa3;
|
||||
cursor: pointer;
|
||||
-webkit-touch-callout: none; /* iOS Safari */
|
||||
-webkit-user-select: none; /* Safari */
|
||||
-khtml-user-select: none; /* Konqueror HTML */
|
||||
-moz-user-select: none; /* Old versions of Firefox */
|
||||
-ms-user-select: none; /* Internet Explorer/Edge */
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.destination-dropdown {
|
||||
cursor: pointer;
|
||||
-webkit-touch-callout: none; /* iOS Safari */
|
||||
-webkit-user-select: none; /* Safari */
|
||||
-khtml-user-select: none; /* Konqueror HTML */
|
||||
-moz-user-select: none; /* Old versions of Firefox */
|
||||
-ms-user-select: none; /* Internet Explorer/Edge */
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.add-pipe {
|
||||
float: unset !important;
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
.remove-endpoint {
|
||||
cursor: pointer;
|
||||
color: #ff0606;
|
||||
font-size: 17px;
|
||||
float: right;
|
||||
margin-left: 7px;
|
||||
}
|
||||
|
||||
|
||||
.fa-up {
|
||||
color: #0d6efd;
|
||||
font-size: 17px;
|
||||
cursor: pointer;
|
||||
float: right;
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
.fa-down {
|
||||
color: #0d6efd;
|
||||
font-size: 17px;
|
||||
cursor: pointer;
|
||||
float: right;
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
.fiberplancablepipe-div {
|
||||
border-top: 1px dotted #ccc;
|
||||
padding-top: 5px;
|
||||
}
|
||||
|
||||
.fiberplancablepipe-div .form-group {
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.fiberplanpipe-main-div {
|
||||
padding: 5px 5px 5px 5px;
|
||||
border: 1px dotted #656161;
|
||||
border-radius: 10px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.change-fiberplanpipe-body {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.add-module, .add-sleeve {
|
||||
float: unset;
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
margin-left: 5px;
|
||||
margin-top: 6px;
|
||||
}
|
||||
|
||||
.fiberplancableendpoint-div {
|
||||
border: 1px dotted #ccc;
|
||||
padding: 5px;
|
||||
margin-top: 10px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
</style>
|
||||
<!-- end page title -->
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="header-title mb-2"><?= ($fiberplancables->id) ? "Kabelverzeichnis bearbeiten" : "Neues Kabel" ?></h4>
|
||||
|
||||
<form class="form-horizontal" method="post"
|
||||
action="<?= self::getUrl("FiberPlanCable", "save", ["returnto" => $_GET["returnto"]]) ?>">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col col-lg-6">
|
||||
<input type="hidden" name="id" value="<?= $fiberplancables->id ?>"/>
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-3 col-form-label" for="description">Bezeichnung
|
||||
*</label>
|
||||
<div class="col-lg-4">
|
||||
<input required="required" type="text" id="description"
|
||||
name="description"
|
||||
class="form-control"
|
||||
value="<?= $fiberplancables->description ?>"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-3 col-form-label" for="fibers">Fasern *</label>
|
||||
<div class="col-lg-3">
|
||||
<select required="required" id="fibers" name="fibers"
|
||||
class="select2select form-control">
|
||||
<option value=""></option>
|
||||
<option value="1"
|
||||
data-fibers="4" <?= ($fiberplancables->fibers == "1") ? "selected='selected'" : "" ?>>
|
||||
1x4
|
||||
</option>
|
||||
<option value="2"
|
||||
data-fibers="12" <?= ($fiberplancables->fibers == "2") ? "selected='selected'" : "" ?>>
|
||||
1x12 <i class="fad fa-fw fa-hdd text-info"></i></option>
|
||||
<option value="3"
|
||||
data-fibers="24" <?= ($fiberplancables->fibers == "3") ? "selected='selected'" : "" ?>>
|
||||
1x24
|
||||
</option>
|
||||
<option value="4"
|
||||
data-fibers="24" <?= ($fiberplancables->fibers == "4") ? "selected='selected'" : "" ?>>
|
||||
2x12
|
||||
</option>
|
||||
<option value="5"
|
||||
data-fibers="48" <?= ($fiberplancables->fibers == "5") ? "selected='selected'" : "" ?>>
|
||||
4x12
|
||||
</option>
|
||||
<option value="6"
|
||||
data-fibers="96" <?= ($fiberplancables->fibers == "6") ? "selected='selected'" : "" ?>>
|
||||
8x12
|
||||
</option>
|
||||
<option value="7"
|
||||
data-fibers="144" <?= ($fiberplancables->fibers == "7") ? "selected='selected'" : "" ?>>
|
||||
6x24
|
||||
</option>
|
||||
<option value="8"
|
||||
data-fibers="144" <?= ($fiberplancables->fibers == "8") ? "selected='selected'" : "" ?>>
|
||||
12x12
|
||||
</option>
|
||||
<option value="9"
|
||||
data-fibers="192" <?= ($fiberplancables->fibers == "9") ? "selected='selected'" : "" ?>>
|
||||
8x24
|
||||
</option>
|
||||
<option value="10"
|
||||
data-fibers="288" <?= ($fiberplancables->fibers == "10") ? "selected='selected'" : "" ?>>
|
||||
12x24
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-3 col-form-label" for="diameter">Durchmesser (MM)
|
||||
*</label>
|
||||
<div class="col-lg-3">
|
||||
<input required="required" type="text" id="diameter" name="diameter"
|
||||
class="form-control"
|
||||
value="<?= $fiberplancables->diameter ?>"/>
|
||||
</div>
|
||||
</div>
|
||||
<!--div class="form-group row">
|
||||
<label class="col-lg-3 col-form-label" for="starting_point">Netzgebiet
|
||||
*</label>
|
||||
<div class="col-lg-6">
|
||||
<select required="required" id="network_id" name="network_id"
|
||||
class="select2 form-control">
|
||||
<option value=""></option>
|
||||
<?php foreach ($networks as $network): ?>
|
||||
<option value="<?= $network->id ?>" <?= ($networkId == $network->id) ? "selected='selected'" : "" ?>><?= $network->name ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
</--div-->
|
||||
<div class="form-group row">
|
||||
<div class="col-lg-12">
|
||||
<h4>Rohr(e) <i id="add-pipe" data-popid="5"
|
||||
class="fa-regular fa-circle-plus add-pipe"></i></h4>
|
||||
</div>
|
||||
</div>
|
||||
<div id="fiberplancablepipes-div">
|
||||
<?php
|
||||
$counter = 1;
|
||||
if ($fiberPlanCablePipes) :
|
||||
foreach ($fiberPlanCablePipes as $fiberPlanCablePipe): ?>
|
||||
|
||||
<div class="fiberplancablepipe-div">
|
||||
<div class=" form-group row">
|
||||
<label class="col-lg-3 col-form-label fiberplanpipe-label"
|
||||
for="fiberPlanPipe_id"><span
|
||||
class=" label-text">Rohr *</span> <span
|
||||
class="endpointsymbol"></span>
|
||||
</label>
|
||||
<div class="col-lg-4">
|
||||
<select required="required"
|
||||
name="fiberplanpipenetwork[]"
|
||||
class="select2select form-control pipe-network">
|
||||
<option value=""></option>
|
||||
<?php
|
||||
foreach ($networks as $network): ?>
|
||||
<option value="<?= $network->id ?>" <?= ($fiberPlanPipeNetworks[$fiberPlanCablePipe->fiberPlanPipe_id] == $network->id) ? "selected='selected'" : "" ?>><?= $network->name ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-lg-4 pipe-div">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-3 col-form-label"
|
||||
for="fiberPlanPipe_sub">Subrohr
|
||||
*</label>
|
||||
<div class="col-lg-4 subpipe-div">
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
pipes.push(<?= $fiberPlanCablePipe->fiberPlanPipe_id ?>);
|
||||
pipesid.push(<?= $fiberPlanCablePipe->id ?>);
|
||||
subpipes.push(<?= $fiberPlanCablePipe->fiberPlanPipe_sub ?>);
|
||||
</script>
|
||||
</div>
|
||||
<?php
|
||||
$counter++;
|
||||
endforeach; ?>
|
||||
<?php else: ?>
|
||||
<div class="fiberplancablepipe-div">
|
||||
<div class=" form-group row">
|
||||
<label class="col-lg-3 col-form-label fiberplanpipe-label"
|
||||
for="fiberPlanPipe_id"><span
|
||||
class=" label-text">Rohr *</span> <span
|
||||
class="endpointsymbol"></span>
|
||||
</label>
|
||||
<div class="col-lg-4">
|
||||
<select required="required"
|
||||
name="fiberplanpipenetwork[]"
|
||||
class="select2select form-control pipe-network">
|
||||
<option value=""></option>
|
||||
<?php
|
||||
foreach ($networks as $network): ?>
|
||||
<option value="<?= $network->id ?>"><?= $network->name ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-lg-4 pipe-div">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-3 col-form-label"
|
||||
for="fiberPlanPipe_sub">Subrohr
|
||||
*</label>
|
||||
<div class="col-lg-4 subpipe-div">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-lg-12" style="border-top: 1px dotted #a3a3a3;">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-3 col-form-label" for="lenght">Länge (M) *</label>
|
||||
<div class="col-lg-3">
|
||||
<input required="required" type="text" id="lenght" name="lenght"
|
||||
class="form-control"
|
||||
value="<?= $fiberplancables->lenght ?>"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-3 col-form-label" for="state">Status *</label>
|
||||
<div class="col-lg-6">
|
||||
<select required="required" id="state" name="state"
|
||||
class="select2select form-control">
|
||||
<option value=""></option>
|
||||
<option value="10" <?= ($fiberplancables->state == "10") ? "selected='selected'" : "" ?>>
|
||||
Geplant
|
||||
</option>
|
||||
<option value="20" <?= ($fiberplancables->state == "20") ? "selected='selected'" : "" ?>>
|
||||
Umsetzung
|
||||
</option>
|
||||
<option value="30" <?= ($fiberplancables->state == "30") ? "selected='selected'" : "" ?>>
|
||||
Fertiggestellt
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-3 col-form-label" for="responsible">Zuständig *</label>
|
||||
<div class="col-lg-3">
|
||||
<select required="required" id="responsible" name="responsible"
|
||||
class="select2select form-control">
|
||||
<option value=""></option>
|
||||
<option value="1" <?= ($fiberplancables->responsible == "1") ? "selected='selected'" : "" ?>>
|
||||
Leitungsbaufirma
|
||||
</option>
|
||||
<option value="2" <?= ($fiberplancables->responsible == "2") ? "selected='selected'" : "" ?>>
|
||||
Person
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row" id="responsible-row"
|
||||
style="<?= ($fiberplancables->responsible != "1") ? "display:none" : "" ?>">
|
||||
<label class="col-lg-3 col-form-label" for="responsible">Firma</label>
|
||||
<div id="responsible-div" class="col-lg-6"
|
||||
style="<?= ($fiberplancables->responsible != "1") ? "display:none" : "" ?>">
|
||||
<select id="address_id" name="address_id"
|
||||
class="select2select form-control" <?= ($fiberplancables->responsible != "1") ? 'disabled="disabled"' : "" ?> >
|
||||
<option value=""></option>
|
||||
<?php foreach ($lineworkeraddresses as $lineworkeraddress): ?>
|
||||
<option value="<?= $lineworkeraddress->id ?>" <?= ($fiberplancables->address_id == $lineworkeraddress->id) ? "selected='selected'" : "" ?>><?= $lineworkeraddress->company ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-3 col-form-label" for="responsible">Person</label>
|
||||
<div id="responsible_text-div" class="col-lg-6">
|
||||
<input id="responsible_text" name="responsible_text"
|
||||
value="<?= $fiberplancables->responsible_text ?>"
|
||||
placeholder="Ansprechsperson"
|
||||
class="form-control"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-3 col-form-label" for="comment">Kommentar</label>
|
||||
<div class="col-lg-6">
|
||||
<textarea id="comment" name="comment"
|
||||
class="form-control"><?= $fiberplancables->comment ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col col-lg-6" id="fiberplancableendpoints">
|
||||
<div id="destination-div"></div>
|
||||
<h3 class="text-center">Verwendete Rohre/Endpunkte <span><i
|
||||
class="fa-regular ml-2 fa-square-chevron-down change-fiberplanpipe-main"></i></span>
|
||||
</h3>
|
||||
|
||||
<?php
|
||||
$fiberPlanPipesEndpointcounter = 0;
|
||||
foreach ($fiberPlanPipesEndpoints
|
||||
|
||||
as $fiberPlanPipesEndpoint):
|
||||
$counter = 0;
|
||||
?>
|
||||
|
||||
<?php foreach ($fiberPlanPipesEndpoint
|
||||
|
||||
as $fiberPlanPipesEndpointdetail):
|
||||
$endpointbody = "";
|
||||
if ($counter == 0):
|
||||
if ($fiberPlanPipesEndpointcounter > 0) :
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="fiberplanpipe-main-div">
|
||||
<h4 class="text-center"><span
|
||||
class="mr-1">Rohr:</span><span><?= $fiberPlanPipesEndpointdetail->fiberPlanPipe->description ?></span><span
|
||||
class="fiberplanpipe-subpipe ml-2"></span><span><i
|
||||
class="fa-regular ml-2 fa-square-chevron-down change-fiberplanpipe-body"></i></span>
|
||||
</h4>
|
||||
<?php
|
||||
if ($fiberPlanPipesEndpointcounter > 0) :
|
||||
?>
|
||||
|
||||
<?php endif; ?>
|
||||
<div class="fiberplanpipe-body-div">
|
||||
|
||||
<?php
|
||||
endif;
|
||||
if ($fiberPlanPipesEndpointdetail->pop_id) {
|
||||
$endpointname = '<img src="/img/markers/marker-pop.png" height="33px" class="mr-1">' . $fiberPlanPipesEndpointdetail->pop->name;
|
||||
$endpointtype = '<span class="fiberplanpipe-pop-racks" data-popid="' . $fiberPlanPipesEndpointdetail->pop_id . '">(POP)</span><i class="fa-regular fa-circle-plus add-module" data-poprackid=""></i>';
|
||||
if ($fiberPlanCableEndpoints[$fiberPlanPipesEndpointdetail->id]) {
|
||||
$endpointcounter = 0;
|
||||
foreach ($fiberPlanCableEndpoints[$fiberPlanPipesEndpointdetail->id] as $fiberPlanCableEndpoint):
|
||||
$endpointbody .= '<div class="form-group module-row row">
|
||||
<label class="col-lg-2 col-form-label" for="lenght"><i class="fa-regular fa-circle-minus remove-module"></i><i title="nach unten verschieben" class="fa-sharp fa-solid fa-down down-module"></i><i class="fa-sharp fa-solid fa-up up-module"></i></label>';
|
||||
|
||||
$endpointbody .= '<div class="col-lg-4">
|
||||
<select data-poprackmodule_id="' . $fiberPlanCableEndpoint->poprackmodule_id . '" name="poprackmodule_id[]" required="required" class="select2select form-control poprackmodule_id"></select>
|
||||
</div>
|
||||
<div class="col-lg-4">
|
||||
<div class="form-row">
|
||||
<div class="col">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<div class="input-group-text">von</div>
|
||||
</div>
|
||||
<input name="poprackmodule_start[]" value="' . $fiberPlanCableEndpoint->startport . '" type="number" class="form-control ports-start">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<div class="input-group-text">bis</div>
|
||||
</div>
|
||||
<input name="poprackmodule_end[]" value="' . $fiberPlanCableEndpoint->endport . '" type="number" class="form-control ports-end">
|
||||
<input style="display:none" name="poprackmodule_rackid[]" value="' . $poprackid . '" type="number" class="form-control ports-rackid">
|
||||
</div>
|
||||
</div></div>
|
||||
</div>
|
||||
<div class="col-2"><label class="fibersum col-form-label"></label></div>
|
||||
</div>';
|
||||
$endpointcounter++;
|
||||
endforeach;
|
||||
}
|
||||
} else if ($fiberPlanPipesEndpointdetail->fiberPlanDispatcher_id) {
|
||||
|
||||
$endpointname = $fiberPlanPipesEndpointdetail->fiberPlanDispatcher->description;
|
||||
$endpointtype = $fiberPlanPipesEndpointdetail->fiberPlanDispatcher->object_type;
|
||||
if ($fiberPlanPipesEndpointdetail->fiberPlanDispatcher->object_type == 1) {
|
||||
$endpointtype = '<span class="fiberplanpipe-dispatcher-sleeves" data-id="' . $fiberPlanPipesEndpointdetail->fiberPlanDispatcher_id . '">(Verteiler)</span><i class="fa-regular fa-circle-plus add-sleeve" data-poprackid=""></i>';
|
||||
$endpointname = '<img src="/img/markers/marker-dispatcher.png" height="33px" class="mr-1">' . $endpointname;
|
||||
} else if ($fiberPlanPipesEndpointdetail->fiberPlanDispatcher->object_type == 2) {
|
||||
$endpointtype = '<span class="fiberplanpipe-dispatcher-sleeves" data-id="' . $fiberPlanPipesEndpointdetail->fiberPlanDispatcher_id . '">(Schacht)</span><i class="fa-regular fa-circle-plus add-sleeve" data-poprackid=""></i>';
|
||||
$endpointname = '<img src="/img/markers/marker-dispatcher.png" height="33px" class="mr-1">' . $endpointname;
|
||||
} else if ($fiberPlanPipesEndpointdetail->fiberPlanDispatcher->object_type == 3) {
|
||||
$endpointname = '<img src="/img/markers/marker-greenfield.png" height="33px" class="mr-1">' . $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 .= '<div class="form-group row">
|
||||
<div class="col-lg-12">
|
||||
<h5 class="text-center"><span">Dropout</span></h5>
|
||||
</div>
|
||||
</div> ';
|
||||
}
|
||||
|
||||
|
||||
$endpointbody .= '<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label" for="lenght"><span class="ml-2">Muffe</span></label>
|
||||
<div class="col-lg-4">
|
||||
<select name="sleeve_id[]" data-id="' . $fiberPlanCableEndpoint->fiberPlanDispatchersleeve_id . '" required="required" class="select2select form-control fiberplandispatcher_id sleeveid"></select>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4">
|
||||
<div class="form-row">
|
||||
<div class="col">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<div class="input-group-text">von</div>
|
||||
</div>
|
||||
<input name="sleeve_start[]" value="' . $fiberPlanCableEndpoint->startport . '" type="number" class="form-control ports-start">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<div class="input-group-text">bis</div>
|
||||
</div>
|
||||
<input name="sleeve_end[]" value="' . $fiberPlanCableEndpoint->endport . '" type="number" class="form-control ports-end">
|
||||
|
||||
</div>
|
||||
</div></div>
|
||||
</div>
|
||||
<div class="col-2"><span class="fibersum"></span></div>
|
||||
</div>';
|
||||
endforeach;
|
||||
}
|
||||
}
|
||||
} else if ($fiberPlanPipesEndpointdetail->building_id) {
|
||||
$endpointname = '<img src="/img/markers/marker-home.png " height="32px" class="mr-1">' . $fiberPlanPipesEndpointdetail->building->street;
|
||||
$endpointtype = '(Building)';
|
||||
}
|
||||
if ($fiberPlanCableEndpoints[$fiberPlanPipesEndpointdetail->id]) {
|
||||
}
|
||||
?>
|
||||
<div class="fiberplancableendpoint-div">
|
||||
<h5 class="text-center"><span><?= $endpointname ?></span><span
|
||||
class="ml-1"><?= $endpointtype ?></span></h5>
|
||||
<div><?= $endpointbody ?></div>
|
||||
</div>
|
||||
|
||||
|
||||
<?php
|
||||
$counter++;
|
||||
endforeach; ?>
|
||||
<?php
|
||||
$fiberPlanPipesEndpointcounter++;
|
||||
endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class=" form-group row
|
||||
">
|
||||
<label class="col-lg-1"></label>
|
||||
<div class="col-lg-8">
|
||||
<button type="submit" class="btn btn-primary">Speichern</button>
|
||||
<a href="<?= $cancelUrl ?>">
|
||||
<button type="button" class="btn btn-secondary">Abbrechen</button>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal fade" id="rackModal" tabindex="-1" role="dialog" aria-labelledby="rackModalLabel"
|
||||
aria-hidden="true">
|
||||
<div class="modal-dialog modal-dialog-centered" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="rackModalLabel">Modal title</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="form-group row">
|
||||
<div class="col-lg-1"></div>
|
||||
<label class="col-lg-3 col-form-label" for="diameter">Schrank Name*</label>
|
||||
<div class="col-lg-6">
|
||||
<input required="required" type="text" id="rackname" name="rackname"
|
||||
class="form-control"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group row">
|
||||
<div class="col-lg-1"></div>
|
||||
<label class="col-lg-3 col-form-label" for="diameter">Höheneinheiten*</label>
|
||||
<div class="col-lg-3">
|
||||
<input required="required" type="number" id="rackhe" name="rackhe"
|
||||
class="form-control"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Abbrechen</button>
|
||||
<button type="button" class="btn btn-primary">Schrank hinzufügen</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
var hidesearch = [1, 2, 3, 6];
|
||||
let dispatchersleeve = "<?= self::getUrl("Timerecording", "save") ?>";
|
||||
let deleteUrl = "<?= self::getUrl("Timerecording", "delete") ?>";
|
||||
let dispatchersleeveUrl = "<?= self::getUrl("FiberPlanCable", "api", ['do' => 'dispatchersleeve']) ?>";
|
||||
let poprackUrl = "<?= self::getUrl("FiberPlanCable", "api", ['do' => 'poprack']) ?>";
|
||||
let poprackmoduleUrl = "<?= self::getUrl("FiberPlanCable", "api", ['do' => 'poprackmodule']) ?>";
|
||||
let poprackmoduleallUrl = "<?= self::getUrl("FiberPlanCable", "api", ['do' => 'poprackmoduleall']) ?>";
|
||||
let fiberPlanPipeUrl = "<?= self::getUrl("FiberPlanCable", "api", ['do' => 'FiberPlanPipe']) ?>";
|
||||
let fiberPlanPipeSubUrl = "<?= self::getUrl("FiberPlanCable", "api", ['do' => 'FiberPlanPipeSub']) ?>";
|
||||
</script>
|
||||
<script type="text/javascript"
|
||||
src="<?= self::getResourcePath() ?>js/pages/FiberPlanCable/Form.js?<?= date('U') ?>"></script>
|
||||
<?php include(realpath(dirname(__FILE__) . "/../../$mfLayoutPackage") . "/footer.php"); ?>
|
||||
@@ -0,0 +1,203 @@
|
||||
<?php
|
||||
$fibersOption[1] = "1x4";
|
||||
$fibersOption[2] = "1x12";
|
||||
$fibersOption[3] = "1x24";
|
||||
$fibersOption[4] = "2x12";
|
||||
$fibersOption[5] = "4x12";
|
||||
$fibersOption[6] = "8x12";
|
||||
$fibersOption[7] = "6x24";
|
||||
$fibersOption[8] = "12x12";
|
||||
$fibersOption[9] = "8x24";
|
||||
$fibersOption[10] = "12x24";
|
||||
$stateOption[10] = "Geplant";
|
||||
$stateOption[20] = "Umsetzung";
|
||||
$stateOption[30] = "Fertiggestellt";
|
||||
$responsibleOption[1] = "(F)";
|
||||
$responsibleOption[2] = "(P)";
|
||||
|
||||
|
||||
foreach ($lineworkeraddresses as $lineworkeraddress):
|
||||
$Lineworker[$lineworkeraddress->id] = $lineworkeraddress->company;
|
||||
|
||||
endforeach;
|
||||
|
||||
|
||||
foreach ($networks as $network):
|
||||
$Networks[$network->id] = $network->name;
|
||||
|
||||
endforeach;
|
||||
|
||||
foreach ($fiberplanpipemanufacturers as $fiberplanpipemanufacturer) {
|
||||
$colors = json_decode($fiberplanpipemanufacturer->colors, true);
|
||||
$pipemanufacturercolors[$fiberplanpipemanufacturer->id]['colors'] = $colors;
|
||||
}
|
||||
foreach ($fiberplanpipes as $fiberplanpipe) {
|
||||
$fiberPlanPipe[$fiberplanpipe->id]['description'] = $fiberplanpipe->description;
|
||||
$fiberPlanPipe[$fiberplanpipe->id]['type'] = $fiberplanpipe->type;
|
||||
$fiberPlanPipe[$fiberplanpipe->id]['type_description'] = $fiberplanpipe->type_description;
|
||||
$fiberPlanPipe[$fiberplanpipe->id]['startpoint_network_id'] = $fiberplanpipe->startpoint_network_id;
|
||||
$fiberPlanPipe[$fiberplanpipe->id]['endpoint_network_id'] = $fiberplanpipe->endpoint_network_id;
|
||||
$fiberPlanPipe[$fiberplanpipe->id]['fiberPlanPipeManufacturer_id'] = $fiberplanpipe->fiberPlanPipeManufacturer_id;
|
||||
$fiberPlanPipe[$fiberplanpipe->id]['pipe7x4'] = $fiberplanpipe->pipe7x4;
|
||||
$fiberPlanPipe[$fiberplanpipe->id]['pipe14x10'] = $fiberplanpipe->pipe14x10;
|
||||
}
|
||||
?>
|
||||
<?php include(realpath(dirname(__FILE__) . "/../../$mfLayoutPackage") . "/header.php"); ?>
|
||||
<link href="<?= self::getResourcePath() ?>assets/css/datatables-std.css?<?= date('U') ?>" rel="stylesheet"
|
||||
type="text/css"/>
|
||||
<!-- start page title -->
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="page-title-box">
|
||||
<div class="page-title-right">
|
||||
<ol class="breadcrumb m-0">
|
||||
<li class="breadcrumb-item"><a href="<?= self::getUrl("Dashboard") ?>"><?= MFAPPNAME_SLUG ?></a>
|
||||
</li>
|
||||
<li class="breadcrumb-item active">Kabelverzeichnis</li>
|
||||
</ol>
|
||||
</div>
|
||||
<h4 class="page-title">Kabelverzeichnis</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end page title -->
|
||||
|
||||
<div class="card">
|
||||
<div class="card-body mb-3">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="float-left">
|
||||
<h4 class="header-title">Liste aller Kabelverzeichnis</h4>
|
||||
</div>
|
||||
<div class="float-right">
|
||||
<a class="btn btn-primary mb-2" href="<?= self::getUrl("FiberPlanCable", "add") ?>"><i
|
||||
class="fas fa-plus"></i> Neues Kabel anlegen</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<table id="datatable" class="table table-striped table-hover table-sm font-13">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">Bezeichnung</th>
|
||||
<th class="text-center">Fasern / Dm.</th>
|
||||
<th class="text-center">Netzgebiet(e)</th>
|
||||
<th class="text-center " style=" white-space: nowrap;">Verwendete(s) Rohr(e)</th>
|
||||
<th class="text-center ">Länge (M)</th>
|
||||
<th class="text-center">Zuständig</th>
|
||||
<th class="text-center">Status</th>
|
||||
<th class="edit-width"></th>
|
||||
</tr>
|
||||
<tr id="filterrow">
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($fiberplancables as $fiberplancable):
|
||||
if ($fiberPlanPipe[$fiberplancable->fiberPlanPipe_id]['startpoint_network_id'] == $fiberPlanPipe[$fiberplancable->fiberPlanPipe_id]['endpoint_network_id']) {
|
||||
$networkName = $Networks[$fiberPlanPipe[$fiberplancable->fiberPlanPipe_id]['startpoint_network_id']];
|
||||
} else {
|
||||
$networkName = $Networks[$fiberPlanPipe[$fiberplancable->fiberPlanPipe_id]['startpoint_network_id']] . " / " . $Networks[$fiberPlanPipe[$fiberplancable->fiberPlanPipe_id]['endpoint_network_id']];
|
||||
}
|
||||
if ($fiberPlanPipe[$fiberplancable->fiberPlanPipe_id]['type'] == "3") {
|
||||
if ($fiberplancable->fiberPlanPipe_sub <= $fiberPlanPipe[$fiberplancable->fiberPlanPipe_id]['pipe7x4'] && $fiberplancable->fiberPlanPipe_sub <= 12) {
|
||||
$color = $pipemanufacturercolors[$fiberPlanPipe[$fiberplancable->fiberPlanPipe_id]['fiberPlanPipeManufacturer_id']]['colors'][$fiberplancable->fiberPlanPipe_sub - 1]['color'];
|
||||
$striped = "";
|
||||
$height = "10px";
|
||||
$title = $pipemanufacturercolors[$fiberPlanPipe[$fiberplancable->fiberPlanPipe_id]['fiberPlanPipeManufacturer_id']]['colors'][$fiberplancable->fiberPlanPipe_sub - 1]['colordescription'];
|
||||
$description = '7x4 ';
|
||||
} else if ($fiberplancable->fiberPlanPipe_sub <= $fiberPlanPipe[$fiberplancable->fiberPlanPipe_id]['pipe7x4'] && $fiberplancable->fiberPlanPipe_sub > 12) {
|
||||
$striped = 'style="background-color: #000;height: 100%;width: 45%;text-align: center;margin-left: auto;margin-right: auto;"';
|
||||
$color = $pipemanufacturercolors[$fiberPlanPipe[$fiberplancable->fiberPlanPipe_id]['fiberPlanPipeManufacturer_id']]['colors'][$fiberplancable->fiberPlanPipe_sub - 13]['color'];
|
||||
$height = "10px";
|
||||
$title = $pipemanufacturercolors[$fiberPlanPipe[$fiberplancable->fiberPlanPipe_id]['fiberPlanPipeManufacturer_id']]['colors'][$fiberplancable->fiberPlanPipe_sub - 13]['colordescstriped'];
|
||||
$description = '7x4 ';
|
||||
} else if ($fiberplancable->fiberPlanPipe_sub - $fiberPlanPipe[$fiberplancable->fiberPlanPipe_id]['pipe7x4'] <= $fiberPlanPipe[$fiberplancable->fiberPlanPipe_id]['pipe14x10'] && $fiberplancable->fiberPlanPipe_sub - $fiberPlanPipe[$fiberplancable->fiberPlanPipe_id]['pipe7x4'] <= 12) {
|
||||
$color = $pipemanufacturercolors[$fiberPlanPipe[$fiberplancable->fiberPlanPipe_id]['fiberPlanPipeManufacturer_id']]['colors'][$fiberplancable->fiberPlanPipe_sub - 1 - $fiberPlanPipe[$fiberplancable->fiberPlanPipe_id]['pipe7x4']]['color'];
|
||||
$striped = "";
|
||||
$height = "12px";
|
||||
$title = $pipemanufacturercolors[$fiberPlanPipe[$fiberplancable->fiberPlanPipe_id]['fiberPlanPipeManufacturer_id']]['colors'][$fiberplancable->fiberPlanPipe_sub - 1 - $fiberPlanPipe[$fiberplancable->fiberPlanPipe_id]['pipe7x4']]['colordescription'];
|
||||
$description = '14x10 ';
|
||||
} else if ($fiberplancable->fiberPlanPipe_sub - $fiberPlanPipe[$fiberplancable->fiberPlanPipe_id]['pipe7x4'] <= $fiberPlanPipe[$fiberplancable->fiberPlanPipe_id]['pipe14x10'] && $fiberplancable->fiberPlanPipe_sub - $fiberPlanPipe[$fiberplancable->fiberPlanPipe_id]['pipe7x4'] > 12) {
|
||||
$color = $pipemanufacturercolors[$fiberPlanPipe[$fiberplancable->fiberPlanPipe_id]['fiberPlanPipeManufacturer_id']]['colors'][$fiberplancable->fiberPlanPipe_sub - 13 - $fiberPlanPipe[$fiberplancable->fiberPlanPipe_id]['pipe7x4']]['color'];
|
||||
$striped = 'style="background-color: #000;height: 100%;width: 45%;text-align: center;margin-left: auto;margin-right: auto;"';
|
||||
$height = "12px";
|
||||
$title = $pipemanufacturercolors[$fiberPlanPipe[$fiberplancable->fiberPlanPipe_id]['fiberPlanPipeManufacturer_id']]['colors'][$fiberplancable->fiberPlanPipe_sub - 13 - $fiberPlanPipe[$fiberplancable->fiberPlanPipe_id]['pipe7x4']]['colordescstriped'];
|
||||
$description = '14x10 ';
|
||||
}
|
||||
if ($color == "#ffffff" || $color == "#ffff01" || $color == "#01ffff") {
|
||||
$border = 'border:1px solid #9d9d9d;';
|
||||
} else {
|
||||
$border = "";
|
||||
}
|
||||
|
||||
$subPipe = '<div style="display:inline-block; text-align: left; width: 90px;"><div title="' . $title . '" style="display:inline-block;height:' . $height . ';width: 50px;margin-top:5px;border-radius: 14px;background-color:' . $color . ';' . $border . '"><div ' . $striped . '></div></div><span style="margin-right:3px;margin-left:3px; font-size:11px;margin-top:3px" >' . $description . '</span><span style="display: none">' . $title . ' </span></div>';
|
||||
} else {
|
||||
$subPipe = '<div style="display:inline-block; text-align: left; width: 90px;">' . $type_descrition_definition[$fiberPlanPipe[$fiberplancable->fiberPlanPipe_id]['type_description']] . ' </div>';
|
||||
}
|
||||
|
||||
|
||||
$responsible=$responsibleOption[$fiberplancable->responsible];
|
||||
if ($fiberplancable->address_id)
|
||||
{
|
||||
$responsible.=" ".$Lineworker[$fiberplancable->address_id];
|
||||
if ($fiberplancable->responsible_text)
|
||||
{
|
||||
$responsible.=" (".$fiberplancable->responsible_text.")";
|
||||
}
|
||||
} else if ($fiberplancable->responsible_text)
|
||||
{
|
||||
$responsible.=" ".$fiberplancable->responsible_text;
|
||||
}
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<td><a href="<?= self::getUrl("FiberPlanCable", "Detail", ["id" => $fiberplancable->id]) ?>"><?= $fiberplancable->description ?></a></td>
|
||||
<td class="text-center"><?= $fibersOption[$fiberplancable->fibers] . " / " . $fiberplancable->diameter." mm" ?>
|
||||
|
||||
</td>
|
||||
<td><?= $networkName; ?></td>
|
||||
<td style=" white-space: nowrap;"><?= $subPipe . $fiberPlanPipe[$fiberplancable->fiberPlanPipe_id]['description'] ?></td>
|
||||
|
||||
<td class="text-center"><?= $fiberplancable->lenght ?></td>
|
||||
<td><?= $responsible ?></td>
|
||||
<td><?= $stateOption[$fiberplancable->state] ?></td>
|
||||
<td style="text-align: left; letter-spacing: 4px; font-size: 1.1em;">
|
||||
<a href="<?= self::getUrl("FiberPlanCable", "edit", ["id" => $fiberplancable->id]) ?>"><i
|
||||
class="far fa-edit" title="Bearbeiten"></i></a>
|
||||
<a href="<?= self::getUrl("FiberPlanCable", "delete", ["id" => $fiberplancable->id]) ?>"
|
||||
onclick="if(!confirm('Kabelverzeichnis wirklich löschen?')) return false;"
|
||||
class="text-danger"
|
||||
title="Löschen"><i class="fas fa-trash"></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var hidesearch = [1,4,7];
|
||||
var columnfilter = [6];
|
||||
var columnoptions='<option class="text-left" value="">Alle</option><option class="text-left" value="Geplant">Geplant</option><option class="text-left" value="Umsetzung">Umsetzung</option><option class="text-left" value="Fertiggestellt">Fertiggestellt</option>';
|
||||
$(document).ready(function () {
|
||||
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript"
|
||||
src="<?= self::getResourcePath() ?>assets/js/datatables-std.js?<?= date('U') ?>"></script>
|
||||
|
||||
|
||||
<?php include(realpath(dirname(__FILE__) . "/../../$mfLayoutPackage") . "/footer.php"); ?>
|
||||
@@ -130,6 +130,7 @@ if ($fiberplanpipes->type == "3") {
|
||||
width: 50px;
|
||||
border-top: 1px solid #000;
|
||||
border-bottom: 1px solid #000;
|
||||
background-color: #000;
|
||||
|
||||
}
|
||||
|
||||
@@ -423,7 +424,7 @@ if ($fiberplanpipes->type == "3") {
|
||||
</tr>
|
||||
<tr>
|
||||
<td data-oltport="0" class="sp-port-lines"
|
||||
style="width: 70px; background-color: <?= $pipecolor; ?> ;height: <?= $pipeheight; ?>;"></td>
|
||||
style="width: 70px;"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td data-oltport="0" class="font-13"><?= $pipesub; ?>
|
||||
|
||||
@@ -75,10 +75,8 @@ foreach ($pipworkeraddresses as $pipworkeraddress) {
|
||||
<table id="datatable" class="table table-striped table-hover table-sm font-13">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<th class="text-center">Bezeichnung</th>
|
||||
<th class="text-center">Type/Bezeichnung</th>
|
||||
|
||||
<th class="text-center">Länge (m)</th>
|
||||
<th>Netzgebiet(e)</th>
|
||||
<th class="text-center">Anfangspunkt</th>
|
||||
@@ -88,10 +86,8 @@ foreach ($pipworkeraddresses as $pipworkeraddress) {
|
||||
<th class="edit-width"></th>
|
||||
</tr>
|
||||
<tr id="filterrow">
|
||||
|
||||
<th></th>
|
||||
<th></th>
|
||||
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
|
||||
@@ -98,7 +98,7 @@
|
||||
<?php if($me->is(["Admin","netowner","pipeplanner","lineplanner","pipeworker","netoperator","lineworker"]) && $me->can("Filestore")): ?><li><a href="<?=self::getUrl("Filestore")?>"><i class="fas fa-fw fa-file text-info"></i> Dateiablage</a></li><?php endif; ?>
|
||||
<?php if($me->is(["Admin","netowner","pipeplanner","pipeplanner"]) && $me->is("employee")): ?><li><a href="<?=self::getUrl("FiberPlanDispatcher")?>"><i class="fas fa-building-circle-arrow-right text-info"></i> Verteiler und Schächte</a></li><?php endif; ?>
|
||||
<?php if($me->is(["Admin","netowner","lineplanner","lineworker"]) && $me->is("employee")): ?><li><a href="<?=self::getUrl("FiberPlanPipe")?>"><i class="fas fa-pipe text-info pl-1"></i> Rohrverzeichnis</a></li><?php endif; ?>
|
||||
<!-- --><?php //if($me->is(["Admin","netowner","lineplanner","lineworker"]) && $me->is("employee")): ?><!--<li><a href="--><?php //=self::getUrl("FiberPlanCable")?><!--"><i class="fas fa-pipe text-info pl-1"></i> Kabelverzeichnis</a></li>--><?php //endif; ?>
|
||||
<?php if($me->is(["Admin","netowner","lineplanner","lineworker"]) && $me->is("employee")): ?><li><a href="--><?=self::getUrl("FiberPlanCable")?>"><i class="fas fa-pipe text-info pl-1"></i> Kabelverzeichnis</a></li><?php endif; ?>
|
||||
</ul>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
Reference in New Issue
Block a user