MMDVMHost-Dashboard/include/repeaterinfo.php

99 lines
3.1 KiB
PHP
Raw Normal View History

2016-05-02 10:19:08 +02:00
<div class="panel panel-default">
<!-- Standard-Panel-Inhalt -->
<div class="panel-heading">Repeater Info</div>
<!-- Tabelle -->
2016-10-26 09:46:15 +02:00
<div class="table-responsive">
2016-05-02 10:19:08 +02:00
<table class="table">
<tr>
2016-10-26 09:40:56 +02:00
<th>Current Mode</th>
<th>D-Star linked to</th>
<th>YSF linked to</th>
2016-05-04 19:45:26 +02:00
<th>DMR TS1 last linked to</th>
<th>DMR TS2 last linked to</th>
2016-05-02 10:19:08 +02:00
</tr>
<?php
2017-01-10 15:04:51 +01:00
echo"<tr>";
echo"<td id=\"mode\">".getActualMode($lastHeard, $mmdvmconfigs)."</td>";
echo"<td>".getActualLink($reverseLogLinesMMDVM, "D-Star")."</td>";
echo"<td>".getYSFReflectorById(getActualLink($reverseLogLinesYSFGateway, "YSF"), $activeYSFReflectors)."</td>";
echo"<td>".getActualLink($reverseLogLinesMMDVM, "DMR Slot 1")."</td>";
echo"<td>".getActualLink($reverseLogLinesMMDVM, "DMR Slot 2")."/". getActualReflector($reverseLogLinesMMDVM, "DMR Slot 2") ."</td>";
echo"</tr>\n";
2016-05-02 10:19:08 +02:00
?>
2016-05-11 10:04:40 +02:00
<tr>
<td colspan="5">
2016-05-11 10:04:40 +02:00
<table class="table">
<tr>
<th>Location</th>
<th>TX-Freq.</th>
2016-10-26 09:40:56 +02:00
<th>RX-Freq.</th>
2016-05-11 10:04:40 +02:00
<?php
2017-01-10 15:04:51 +01:00
if (getEnabled("System Fusion Network", $mmdvmconfigs) == 1) {
2016-05-25 15:09:16 +02:00
?>
2016-06-13 20:36:26 +02:00
<th>YSFGateway</th>
2016-05-25 15:09:16 +02:00
<?php
2017-01-10 15:04:51 +01:00
}
if (getEnabled("DMR", $mmdvmconfigs) == 1) {
2016-05-11 10:04:40 +02:00
?>
<th>DMR CC</th>
<?php
2017-01-10 15:04:51 +01:00
if (getEnabled("DMR Network", $mmdvmconfigs) == 1) {
2016-05-11 10:04:40 +02:00
?>
<th>DMR-Master</th>
2017-01-10 15:04:51 +01:00
<th>TS1</th>
2016-05-11 10:04:40 +02:00
<th>TS2</th>
<?php
2017-01-10 15:04:51 +01:00
}
}
2016-05-11 10:04:40 +02:00
?>
</tr>
<?php
2017-01-10 15:04:51 +01:00
echo"<tr>";
echo"<td>".getConfigItem("Info", "Location", $mmdvmconfigs)."</td>";
echo"<td>".getMHZ(getConfigItem("Info", "TXFrequency", $mmdvmconfigs))."</td>";
echo"<td>".getMHZ(getConfigItem("Info", "RXFrequency", $mmdvmconfigs))."</td>";
if (getEnabled("System Fusion Network", $mmdvmconfigs) == 1) {
echo"<td>".getConfigItem("System Fusion Network", "GwyAddress", $mmdvmconfigs)."</td>";
}
if (getEnabled("DMR", $mmdvmconfigs) == 1) {
echo"<td>".getConfigItem("DMR", "ColorCode", $mmdvmconfigs)."</td>";
if (getEnabled("DMR Network", $mmdvmconfigs) == 1) {
echo"<td>";
if (getDMRMasterState()) {
echo "<span class=\"label label-success\" title=\"Master connected\">";
} else {
echo "<span class=\"label label-danger\" title=\"Master not connected\">";
}
echo getConfigItem("DMR Network", "Address", $mmdvmconfigs);
if (strlen(getDMRNetwork()) > 0 ) {
echo " (".getDMRNetwork().")";
}
2016-05-11 10:04:40 +02:00
?>
2017-01-10 15:04:51 +01:00
</span>
</td>
2016-10-26 09:46:15 +02:00
<td><span class="label <?php
2017-01-10 15:04:51 +01:00
if (getConfigItem("DMR Network", "Slot1", $mmdvmconfigs) == 1) {
echo 'label-success">enabled';
} else {
echo 'label-default">disabled';
}
2016-05-11 10:04:40 +02:00
?></span></td>
2016-10-26 09:46:15 +02:00
<td><span class="label <?php
2017-01-10 15:04:51 +01:00
if (getConfigItem("DMR Network", "Slot2", $mmdvmconfigs) == 1) {
echo 'label-success">enabled';
} else {
echo 'label-default">disabled';
}
2016-05-11 10:04:40 +02:00
?></span></td>
<?php
2017-01-10 15:04:51 +01:00
}
}
2016-05-11 10:04:40 +02:00
?>
2017-01-10 15:04:51 +01:00
</tr>
2016-05-11 10:04:40 +02:00
</table>
</td>
</tr>
2016-05-02 10:19:08 +02:00
</table>
2016-06-24 21:21:42 +02:00
</div>
2016-05-05 21:21:55 +02:00
</div>