648 lines
36 KiB
PHP
648 lines
36 KiB
PHP
<?php include(realpath(dirname(__FILE__) . "/../../$mfLayoutPackage") . "/header.php"); ?>
|
|
<link href="<?= self::getResourcePath() ?>assets/css/datatables-std.css?<?= $git_merge_ts ?>" rel="stylesheet"
|
|
type="text/css"/>
|
|
<style>
|
|
.card-border {
|
|
|
|
border-left: 1px solid #428bca;
|
|
border-left-width: 5px;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.font-weight-500 {
|
|
font-weight: 500;
|
|
}
|
|
|
|
.order-date-pill {
|
|
margin: 2px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.rack-he:hover {
|
|
box-shadow: 2px 2px 5px 2px rgba(0, 0, 0, 0.31);
|
|
}
|
|
|
|
.rack-color-lwl {
|
|
background: rgb(159, 255, 96);
|
|
background: linear-gradient(180deg, rgb(129 237 58) 0%, rgb(92 211 15) 100%);
|
|
font-weight: 500;
|
|
padding-top: 2px;
|
|
}
|
|
|
|
.rack-color-device {
|
|
background: rgb(182, 198, 240);
|
|
background: linear-gradient(180deg, rgba(182, 198, 240, 1) 0%, rgb(131 158 255 / 82%) 100%);
|
|
font-weight: 500;
|
|
padding-top: 2px;
|
|
}
|
|
|
|
.rack-color-infra {
|
|
background: rgb(251 181 109);
|
|
background: linear-gradient(180deg, rgb(247 184 118) 0%, rgb(255 149 40) 100%);
|
|
font-weight: 500;
|
|
padding-top: 2px;
|
|
}
|
|
|
|
.rack-color-panel {
|
|
background: rgb(150, 243, 222);
|
|
background: linear-gradient(180deg, rgba(150, 243, 222, 1) 0%, rgba(87, 249, 212, 1) 100%);
|
|
font-weight: 500;
|
|
padding-top: 2px;
|
|
}
|
|
|
|
.rack-color-blocked {
|
|
background: rgb(255, 0, 0);
|
|
background: linear-gradient(180deg, rgba(255, 0, 0, 1) 0%, rgba(196, 0, 0, 1) 100%);
|
|
font-weight: 500;
|
|
padding-top: 2px;
|
|
color: #fff;
|
|
}
|
|
|
|
.rack-color-rpanel {
|
|
background: rgb(88, 201, 240);
|
|
background: linear-gradient(180deg, rgba(88, 201, 240, 1) 0%, rgba(64, 188, 231, 1) 100%);
|
|
font-weight: 500;
|
|
padding-top: 2px;
|
|
}
|
|
|
|
.user-select-none {
|
|
user-select: none;
|
|
}
|
|
|
|
.fa-edit {
|
|
margin-right: 5px;
|
|
margin-top: 2px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.rack-name {
|
|
|
|
}
|
|
|
|
.move-handle {
|
|
cursor: grab;
|
|
margin-left: 5px;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.move-handle:active {
|
|
cursor: grabbing;
|
|
}
|
|
|
|
.border-right {
|
|
border-right-color: #dee2e6 !important;
|
|
}
|
|
|
|
.form-control:disabled, .form-control[readonly] {
|
|
background-color: #d7d7d7;
|
|
opacity: 1;
|
|
}
|
|
.switch-rack-side {
|
|
margin-right: 8px;
|
|
margin-top: 2px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
</style>
|
|
<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("Pop") ?>">Pops</a>
|
|
</li>
|
|
<li class="breadcrumb-item active">Pop Detail</li>
|
|
</ol>
|
|
</div>
|
|
<h4 class="page-title">Pop: <span class="font-weight-normal ml-1"><?= $pops->data->name ?></span> <span
|
|
class="ml-2">
|
|
<a href="<?= self::getUrl("Pop", "edit", ["id" => $pops->id, 'returnto' => "pop-detail"]) ?>">
|
|
<button class="btn btn-primary">Bearbeiten</button>
|
|
</a>
|
|
</span>
|
|
<button class="btn btn-success" data-popid="<?= $pops->id ?>" data-toggle="modal"
|
|
data-target="#rackModal"><i class="fas fa-plus"></i> Schrank hinzufügen
|
|
</button>
|
|
</h4>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php
|
|
$plugs[1] = "LC";
|
|
$plugs[2] = "SC";
|
|
$plugs[3] = "E2000";
|
|
|
|
$vlans = "";
|
|
|
|
if (!empty(trim($pops->vlan_public)))
|
|
$vlans .= '<span class="order-date-pill active mb-0 d-inline-block d-lg-inline">Public: <span class="font-weight-500">' . $pops->vlan_public . '</span class="font-weight-500"></span>';
|
|
if (!empty(trim($pops->vlan_nat)))
|
|
$vlans .= '<span class="order-date-pill active mb-0 d-inline-block d-lg-inline">Nat: <span class="font-weight-500">' . $pops->vlan_nat . '</span></span>';
|
|
if (!empty(trim($pops->vlan_ipv6)))
|
|
$vlans .= '<span class="order-date-pill active mb-0 d-inline-block d-lg-inline">IPv6: <span class="font-weight-500">' . $pops->vlan_ipv6 . '</span></span>';
|
|
?>
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<div class="row">
|
|
<div class="col-12 col-lg-5 card-border">
|
|
<div>
|
|
<h4>Allgemeine Informationen </h4>
|
|
|
|
</div>
|
|
<div>
|
|
<table class="table table-sm">
|
|
<tbody>
|
|
<tr>
|
|
<th class="w-30">Netzgebiet</th>
|
|
<td><?= $popnetwork ?> </td>
|
|
</tr>
|
|
<tr>
|
|
<th>Name</th>
|
|
<td><?= $pops->name ?> </td>
|
|
</tr>
|
|
<tr>
|
|
<th>Standort</th>
|
|
<td>
|
|
<a title="Google-Maps: <?= rtrim($pops->gps_lat, '0') ?> , <?= $pops->gps_long ?>"
|
|
class="mapsLink"
|
|
href="http://maps.google.com/?q=<?= $pops->gps_lat ?> , <?= $pops->gps_long ?>"
|
|
target="_blank"><?= rtrim($pops->gps_lat, '0') ?>
|
|
, <?= rtrim($pops->gps_long, 0) ?></a></td>
|
|
</tr>
|
|
<tr>
|
|
<th class="text-nowrap">Standort Info</th>
|
|
<td><?= nl2br($pops->location) ?> </td>
|
|
</tr>
|
|
<tr>
|
|
<th class="text-nowrap">Access VLANs</th>
|
|
<td><?= $vlans ?> </td>
|
|
</tr>
|
|
<tr>
|
|
<th class="text-nowrap">Dokustand | Status</th>
|
|
<td><?= ($pops->doku_date) ? date("d.m.Y",$pops->doku_date) : '-' ?><span class="ml-2 mr-2">|</span><?= ($pops->state) ? $stateArray[$pops->state] : '-' ?> </td>
|
|
</tr>
|
|
<tr>
|
|
<th class="text-nowrap">Fotospeicherort</th>
|
|
<td><?php if ($pops->folder_link): ?> <a href="file://<?= $pops->folder_link ?>"><?= $pops->folder_link ?></a><?php endif; ?></td>
|
|
</tr>
|
|
<tr>
|
|
<th class="text-nowrap">Interne Notiz</th>
|
|
<td><?= nl2br($pops->note) ?> </td>
|
|
</tr>
|
|
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
<div class="col-12 col-lg-7 card-border">
|
|
<div>
|
|
<h4>Pop Devices</h4>
|
|
</div>
|
|
<?php
|
|
if (!empty($devices)) {
|
|
?>
|
|
<div>
|
|
<table id="datatable" class="table table-striped table-hover" style="width: 100%">
|
|
<thead>
|
|
<tr>
|
|
<th class="all">Geräte Name</th>
|
|
<th class="text-center ">Geräte Typ</th>
|
|
<th class="text-center ">Hersteller</th>
|
|
<th class="text-center all">IP-Adresse</th>
|
|
<th class="text-center ">Seriennummer</th>
|
|
<th class="text-center ">Preis</th>
|
|
<th title="maximale Leistung" class="text-center text-nowrap">max. P.</th>
|
|
</tr>
|
|
<tr id="filterrow" class="d-none d-lg-table-row">
|
|
<th></th>
|
|
<th></th>
|
|
<th></th>
|
|
<th></th>
|
|
<th></th>
|
|
<th></th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody class="font-13">
|
|
<?php
|
|
|
|
foreach ($devices as $device):
|
|
if (!empty($device->price)) {
|
|
$price = $device->price;
|
|
} else {
|
|
$price = $device->devicetype->price;
|
|
}
|
|
?>
|
|
|
|
<tr>
|
|
<td class="text-nowrap">
|
|
<a href="<?= self::getUrl("Device", "detail", ["id" => $device->id]) ?>"><?= $device->name ?></a>
|
|
</td>
|
|
<td class="text-center text-nowrap"><?= $device->devicetype->name ?></td>
|
|
<td class="text-center"><?= $device->devicetype->devicemanufactor->name ?></td>
|
|
<td class="text-center"><?= $device->ip ?></td>
|
|
<td class="text-center"><?= $device->serial ?></td>
|
|
<td class="text-right"><?= $price ?> €</td>
|
|
<td class="text-right"><?= $device->devicetype->power ?> Watt</td>
|
|
|
|
</tr>
|
|
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<?php
|
|
} else {
|
|
?>
|
|
<h5 class="text-center">Keine Devices vorhanden</h5>
|
|
|
|
<?php
|
|
}
|
|
?>
|
|
|
|
|
|
</div>
|
|
|
|
</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">Schrank</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-4 col-form-label" for="rack-name">Schrank Name*</label>
|
|
<div class="col-lg-6">
|
|
<input required="required" type="text" id="rack-name" name="rack-name"
|
|
class="form-control"/>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<div class="col-lg-1"></div>
|
|
<label class="col-lg-4 col-form-label" for="rack-he">Höheneinheiten*</label>
|
|
<div class="col-lg-3">
|
|
<input required="required" type="number" min="1" max="50" id="rack-he" name="rack-he"
|
|
class="form-control"/>
|
|
</div>
|
|
</div>
|
|
<div class="alert alert-danger text-center" role="alert" style="display: none"></div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-primary" id="rack-add">Schrank hinzufügen</button>
|
|
<button type="button" class="btn btn-primary" id="rack-update" style="display:none">Schrank
|
|
speichern
|
|
</button>
|
|
<button type="button" class="btn btn-danger" id="rack-remove" style="display:none">Schrank
|
|
entfernen
|
|
</button>
|
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">Abbrechen</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php if ($popracks) : ?>
|
|
<div class="modal fade bd-example-modal-xl" tabindex="-1" role="dialog" aria-labelledby="myExtraLargeModalLabel"
|
|
aria-hidden="true">
|
|
<div class="modal-dialog modal-xl">
|
|
<div class="modal-content">
|
|
...
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="modal fade " id="rackModuleModal" tabindex="-1" role="dialog" aria-labelledby="rackModuleModalLabel"
|
|
aria-hidden="true">
|
|
<div class="modal-dialog modal-lg modal-dialog-centered" role="document">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h5 class="modal-title" id="rackModuleModalLabel">Modul hinzufügen</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 " id="module-slot-div" style="display:none">
|
|
<div class="col-lg-1"></div>
|
|
<label class="col-lg-4 col-form-label" for="module-slot">19 Zoll Position</label>
|
|
<div class="col-lg-3">
|
|
<input type="hidden" value="front" id="module-side" name="module-side"/>
|
|
<select required="required" id="module-slot" name="module-slot"
|
|
class="form-control">
|
|
<option value="1">1</option>
|
|
<option value="2">2</option>
|
|
<option value="3">3</option>
|
|
<option value="4">4</option>
|
|
</select>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<div class="col-lg-1"></div>
|
|
<label class="col-lg-4 col-form-label" for="module-type">Modul Typ*</label>
|
|
<div class="col-lg-6">
|
|
<select required="required" id="module-type" name="module-type"
|
|
class="form-control">
|
|
<option value="0">LWL Patch Panel</option>
|
|
<option value="1">Device</option>
|
|
<option value="2">Rangierpanel</option>
|
|
<option value="4">CU Patch Panel</option>
|
|
<option value="3">Infrastruktur</option>
|
|
<option value="5">Geblockt</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="form-group row" id="module-name-div">
|
|
<div class="col-lg-1"></div>
|
|
<label class="col-lg-4 col-form-label" for="module-name">Modul Name*</label>
|
|
<div class="col-lg-6">
|
|
<input required="required" type="text" id="module-name" name="module-name"
|
|
class="form-control"/>
|
|
</div>
|
|
</div>
|
|
<div class="form-group row" id="module-device-div">
|
|
<div class="col-lg-1"></div>
|
|
<label class="col-lg-4 col-form-label" for="module-device-id">Device*</label>
|
|
<div class="col-lg-6">
|
|
<select required="required" id="module-device-id" name="module-type"
|
|
class="form-control">
|
|
<?php foreach ($devices as $device): ?>
|
|
<option value="<?= $device->id ?>"><?= $device->name ?></option>
|
|
<?php endforeach; ?>
|
|
</select>
|
|
<label class="col-form-label" id="module-device-text"></label>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="form-group row" id="module-ports-div">
|
|
<div class="col-lg-1"></div>
|
|
<label class="col-lg-4 col-form-label" for="module-ports">Ports</label>
|
|
<div class="col-lg-6">
|
|
<select required="required" id="module-ports" name="module-ports"
|
|
class="form-control">
|
|
<option value="96" data-plugs="1;2">96</option>
|
|
<option selected="selected" value="48" data-plugs="1;2">48</option>
|
|
<option value="24" data-plugs="2;3">24</option>
|
|
<option value="12" data-plugs="2;3">12</option>
|
|
</select>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="form-group row" id="module-plug-div">
|
|
<div class="col-lg-1"></div>
|
|
<label class="col-lg-4 col-form-label" for="module-plug">Stecker</label>
|
|
<div class="col-lg-6">
|
|
<select required="required" id="module-plug" name="module-plug"
|
|
class="form-control">
|
|
<option value="1">LC/APC</option>
|
|
<option value="2">SC/APC</option>
|
|
<option style="display: none" value="3">E2000/APC</option>
|
|
</select>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
<div class="col-lg-1"></div>
|
|
<label class="col-lg-4 col-form-label" for="he-start">Start HE*</label>
|
|
<div class="col-lg-3" id="he-start-div">
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<div class="col-lg-1"></div>
|
|
<label class="col-lg-4 col-form-label" for="he-count">Anzahl HE*</label>
|
|
<div class="col-lg-3" id="he-count-div">
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<div class="col-lg-1"></div>
|
|
<label class="col-lg-4 col-form-label" for="">Größe</label>
|
|
<div class="col-lg-4">
|
|
<select required="required" id="module-width" name="module-width"
|
|
class="form-control">
|
|
<option value="12">19 Zoll</option>
|
|
<option value="6">1/2 19 Zoll</option>
|
|
<option value="4">1/3 19 Zoll</option>
|
|
<option value="3">1/4 19 Zoll</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="form-group row" id="module-position-div" style="display: none">
|
|
<div class="col-lg-1"></div>
|
|
<label class="col-lg-4 col-form-label" for="">Position</label>
|
|
<div class="col-lg-4">
|
|
<select required="required" id="module-position" name="module-position"
|
|
class="form-control">
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="alert alert-danger text-center" role="alert" style="display: none"></div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button id="module-add" type="button" class="btn btn-primary">Modul hinzufügen</button>
|
|
<button id="module-update" type="button" class="btn btn-primary">Modul Speichern</button>
|
|
<button id="module-remove" type="button" class="btn btn-danger" style="display:none">Modul
|
|
entfernen
|
|
</button>
|
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">Abbrechen</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row" id="pop-rack-div" style="display:none">
|
|
<div class="col-12">
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<div class="row">
|
|
<div class="col-12 card-border">
|
|
<div>
|
|
<h4>Schränke </h4>
|
|
</div>
|
|
<div id="sortracklist" class="row" data-popid="<?= $pops->id ?>">
|
|
<?php foreach ($popracks as $poprack) : ?>
|
|
<div class="col-lg-3 col-12 list-group-item-move mb-3">
|
|
<table class="w-100 p-0 font-13"
|
|
style="max-width: 100%; box-shadow: 2px 2px 5px 2px rgba(0,0,0,0.31);border-radius: 5px 5px 5px 5px;">
|
|
<thead>
|
|
<tr>
|
|
<th colspan="13"
|
|
class="text-center border-bottom font-15 pt-1 pb-1"
|
|
data-rackhe="<?= $poprack['rack']['he'] ?>"
|
|
data-rackid="<?= $poprack['rack']['id']; ?>"><span
|
|
class="rack-name"><i
|
|
class="fa-regular fa-arrows-up-down-left-right move-handle float-left"></i><?= $poprack['rack']['name']; ?> <span class="rack-side-indicator font-weight-normal">- Vorderseite</span></span>
|
|
<i class="fas fa-sync-alt float-right switch-rack-side" title="Seite wechseln"></i>
|
|
|
|
<i class="far fa-edit float-right" title="Bearbeiten"
|
|
data-toggle="modal" data-target="#rackModal"></i>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="rack-body-<?= $poprack['rack']['id'] ?>" data-side="front">
|
|
<?php
|
|
$cellwidth = 227;
|
|
$blocktd = 0;
|
|
for ($i = 1; $i <= $poprack['rack']['he']; $i++) : ?>
|
|
<tr>
|
|
<td class="border-right w-15 p-0 pl-1 pr-1 border-bottom font-13 rack-he user-select-none"
|
|
data-toggle="modal" data-target="#rackModuleModal"
|
|
style="cursor: pointer" data-he="<?= $i; ?>">He<?= $i; ?></td>
|
|
<?php
|
|
$modules_to_render = $poprack['modules']['front'] ?? [];
|
|
foreach ($modules_to_render as $module) {
|
|
|
|
if ($module['start_he'] == $i) {
|
|
$modulestart = 1;
|
|
|
|
$modulelenght = $module['end_he'] - $module['start_he'] + 1;
|
|
$position = 1;
|
|
$slotcounter = 0;
|
|
$calcwidth = 0;
|
|
$extText = "";
|
|
$extTextspan = "";
|
|
foreach ($module['slots'] as $slots) {
|
|
var_dump();
|
|
$extText = "";
|
|
$title = $slots['modulname'];
|
|
if ($slots['type'] == '0') {
|
|
$color = '#9fff6e';
|
|
$colorclass = "rack-color-lwl";
|
|
if ($slots['plug']) {
|
|
$extText = " (" . $plugs[$slots['plug']] . "/" . $slots['ports'] . "P)";
|
|
$extTextspan = "<span style='font-size: 12px;font-weight: 400'>" . $extText . "</span>";
|
|
}
|
|
} else if ($slots['type'] == '1') {
|
|
$slots['modulname'] = '<a style="color: #000000;text-decoration: underline;" target="_self" href="' . self::getUrl("Device", "detail", ["id" => $slots['device_id']]) . '">' . $slots['modulname'] . '</a>';
|
|
?>
|
|
<script>
|
|
$("#module-device-id option[value='<?= $slots['device_id'] ?>']").remove();
|
|
</script>
|
|
<?php
|
|
$color = '#b6c6ff';
|
|
$colorclass = "rack-color-device";
|
|
} else if ($slots['type'] == '2') {
|
|
$color = '#ff8100';
|
|
$colorclass = "rack-color-rpanel";
|
|
} else if ($slots['type'] == '3') {
|
|
$color = '#ffad59';
|
|
$colorclass = "rack-color-infra";
|
|
} else if ($slots['type'] == '4') {
|
|
$color = '#96f3de';
|
|
$colorclass = "rack-color-panel";
|
|
} else if ($slots['type'] == '5') {
|
|
$color = '#96f3de';
|
|
$colorclass = "rack-color-blocked";
|
|
}
|
|
if ($slots['width'] == "12") {
|
|
$width = "85%";
|
|
$maxwidth = $cellwidth;
|
|
} else if ($slots['width'] == "6") {
|
|
$width = "42%";
|
|
$maxwidth = intval($cellwidth / 2);
|
|
} else if ($slots['width'] == "4") {
|
|
$width = "28%";
|
|
$maxwidth = intval($cellwidth / 3);
|
|
} else if ($slots['width'] == "3") {
|
|
$width = "21%";
|
|
$maxwidth = intval($cellwidth / 4);
|
|
}
|
|
if ($slots['width'] < 12 && $position != $slots['position']) {
|
|
echo '<td colspan="' . $slots['width'] . '" style="width: ' . $width . ';" class="text-center border-top border-bottom border-right pl-1 pr-1" rowspan="' . $modulelenght . '">frei</td>';
|
|
$position++;
|
|
$calcwidth = $calcwidth + $slots['width'];
|
|
|
|
}
|
|
if ($slots['width'] < 12 && $position != $slots['position']) {
|
|
echo '<td colspan="' . $slots['width'] . '" style="width: ' . $width . ';" class="text-center border-top border-bottom border-right pl-1 pr-1" rowspan="' . $modulelenght . '">frei</td>';
|
|
$position++;
|
|
$calcwidth = $calcwidth + $slots['width'];
|
|
}
|
|
if ($slots['width'] < 12 && $position != $slots['position']) {
|
|
echo '<td colspan="' . $slots['width'] . '" style="width: ' . $width . ';" class="text-center border-top border-bottom border-right pl-1 pr-1" rowspan="' . $modulelenght . '">frei</td>';
|
|
$position++;
|
|
$calcwidth = $calcwidth + $slots['width'];
|
|
}
|
|
echo '<td title="' . $title . $extText . '" colspan="' . $slots['width'] . '" class="text-center border-top border-bottom border-right pl-1 pr-1 ' . $colorclass . '" data-id="' . $slots['moduleid'] . '" data-type="' . $slots['type'] . '" data-name="' . $title . '" data-starthe="' . $module['start_he'] . '" data-ports="' . $slots['ports'] . '" data-plug="' . $slots['plug'] . '" rowspan="' . $modulelenght . '" style="width: ' . $width . '; background-color: ' . $color . ';border-color: #797979 !important; max-width: ' . $maxwidth . 'px;"><span></span> ' . $slots['modulname'] . $extTextspan . '</td>';
|
|
$position++;
|
|
$calcwidth = $calcwidth + $slots['width'];
|
|
}
|
|
if ($calcwidth != 12) {
|
|
echo '<td colspan="' . $slots['width'] . '" style="width: ' . $width . ';" class="text-center border-top border-bottom border-right pl-1 pr-1" rowspan="' . $modulelenght . '">frei</td>';
|
|
$calcwidth = $calcwidth + $slots['width'];
|
|
}
|
|
if ($calcwidth != 12) {
|
|
echo '<td colspan="' . $slots['width'] . '" style="width: ' . $width . ';" class="text-center border-top border-bottom border-right pl-1 pr-1" rowspan="' . $modulelenght . '">frei</td>';
|
|
$calcwidth = $calcwidth + $slots['width'];
|
|
}
|
|
if ($calcwidth != 12) {
|
|
echo '<td colspan="' . $slots['width'] . '" style="width: ' . $width . ';" class="text-center border-top border-bottom border-right pl-1 pr-1" rowspan="' . $modulelenght . '">frei</td>';
|
|
$calcwidth = $calcwidth + $slots['width'];
|
|
}
|
|
|
|
$blocktd = $modulelenght + $i;
|
|
|
|
}
|
|
}
|
|
if ($i >= $blocktd) {
|
|
echo '<td colspan="12" style="background-color: #fff;" class="text-center he-free" ><span></span> frei</td>';
|
|
}
|
|
|
|
?>
|
|
|
|
</tr>
|
|
<?php endfor; ?>
|
|
</tbody>
|
|
</table>
|
|
|
|
</div>
|
|
<?php endforeach; ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<?php endif; ?>
|
|
|
|
<script type="text/javascript" src="<?= self::getResourcePath() ?>assets/js/Sortable.js?<?= $git_merge_ts ?>"></script>
|
|
<script type="text/javascript">
|
|
var hidesearch = [5, 6];
|
|
let trigger;
|
|
let linkSorTracklist = "<?= self::getUrl("Poprack", "api", ['do' => 'sortRack']) ?>";
|
|
let linkAddModule = "<?= self::getUrl("Poprackmodule", "api", ['do' => 'addModule']) ?>";
|
|
let linkRemoveModule = "<?= self::getUrl("Poprackmodule", "api", ['do' => 'removeModule']) ?>";
|
|
let linkGenerateRack = "<?= self::getUrl("Poprack", "api", ['do' => 'generateRack']) ?>";
|
|
let linkUpdateModule = "<?= self::getUrl("Poprackmodule", "api", ['do' => 'updateModule']) ?>";
|
|
let linkEditRack = "<?= self::getUrl("Poprack", "api", ['do' => 'editRack']) ?>";
|
|
let linkAddRack = "<?= self::getUrl("Poprack", "api", ['do' => 'addRack']) ?>";
|
|
let linkRemoveRack = "<?= self::getUrl("Poprack", "api", ['do' => 'removeRack']) ?>";
|
|
</script>
|
|
<script type="text/javascript" src="<?= self::getResourcePath() ?>js/pages/pop/detail.js?<?= $git_merge_ts ?>"></script>
|
|
<script type="text/javascript" src="<?= self::getResourcePath() ?>assets/js/datatables-std.js?<?= $git_merge_ts ?>"></script>
|
|
|
|
<?php include(realpath(dirname(__FILE__) . "/../../$mfLayoutPackage") . "/footer.php"); ?>
|