122 lines
5.2 KiB
PHP
122 lines
5.2 KiB
PHP
<?php
|
|
$objecttype[1] = 'Verteiler';
|
|
$objecttype[2] = 'Schacht';
|
|
$objecttype[3] = 'Greenfield';
|
|
|
|
?>
|
|
|
|
<?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">Verteiler und Schächte</li>
|
|
</ol>
|
|
</div>
|
|
<h4 class="page-title">Verteiler und Schächte</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 Verteiler und Schächte</h4>
|
|
</div>
|
|
<div class="float-right">
|
|
<a class="btn btn-primary mb-2" href="<?= self::getUrl("FiberPlanDispatcher", "add") ?>"><i
|
|
class="fas fa-plus"></i> Neuen Verteiler/Schacht anlegen</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- --><?php //include(realpath(dirname(__FILE__) . "/../") . "/tpl/pagination.php"); ?>
|
|
<!-- --><?php //include(realpath(dirname(__FILE__) . "/../") . "/tpl/pagination-summary.php"); ?>
|
|
|
|
<table id="datatable" class="table table-striped table-hover table-sm">
|
|
<thead>
|
|
<tr>
|
|
<th class="text-center">Netzgebiet</th>
|
|
<th class="text-center">Beschreibung</th>
|
|
<th class="text-center">Objektart</th>
|
|
<th class="text-center">Type</th>
|
|
<th class="text-center">Koordinaten</th>
|
|
<th class="text-center">Kommentar</th>
|
|
<th class="edit-weight"></th>
|
|
</tr>
|
|
<tr id="filterrow">
|
|
<th></th>
|
|
<th></th>
|
|
<th></th>
|
|
<th></th>
|
|
<th></th>
|
|
<th></th>
|
|
<th></th>
|
|
</tr>
|
|
|
|
<thead>
|
|
|
|
<tbody>
|
|
<?php foreach ($fiberplandispatchers as $fiberplandispatcher): ?>
|
|
<?php
|
|
if ($fiberplandispatcher->gps_lat) {
|
|
$mapslink = '<a
|
|
title="Google-Maps: ' . $fiberplandispatcher->gps_lat . ' , ' . $fiberplandispatcher->gps_long . '"
|
|
class="mapsLink"
|
|
href="http://maps.google.com/?q=' . $fiberplandispatcher->gps_lat . ' , ' . $fiberplandispatcher->gps_long . '"
|
|
target="_blank">' . rtrim($fiberplandispatcher->gps_lat, 0) . ' , ' . rtrim($fiberplandispatcher->gps_long, 0) . '</a>';
|
|
} else {
|
|
$mapslink = 'N/A';
|
|
}
|
|
?>
|
|
<tr>
|
|
<td><?= $fiberplandispatcher->network->name ?></td>
|
|
<td><?= $fiberplandispatcher->description ?></td>
|
|
<td class="text-center"><?= $objecttype[$fiberplandispatcher->object_type] ?></td>
|
|
<td class="text-left"><?= nl2br($fiberplandispatcher->type) ?></td>
|
|
<td class="text-center"><?= $mapslink ?></td>
|
|
<td class="text-left"><?= nl2br($fiberplandispatcher->comment) ?></td>
|
|
|
|
<td style="text-align: left; letter-spacing: 4px; font-size: 1.1em;">
|
|
<a href="<?= self::getUrl("FiberPlanDispatcher", "edit", ["id" => $fiberplandispatcher->id]) ?>"><i
|
|
class="far fa-edit" title="Bearbeiten"></i></a>
|
|
<a href="<?= self::getUrl("FiberPlanDispatcher", "delete", ["id" => $fiberplandispatcher->id]) ?>"
|
|
onclick="if(!confirm('Verteiler/Schacht 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 = [6];
|
|
|
|
$(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"); ?>
|