MMDVMHost-Dashboard/include/repeaterinfo.php

99 lines
2.9 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
echo"<tr>";
2016-10-09 22:34:09 +02:00
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>";
2016-05-02 10:19:08 +02:00
echo"</tr>\n";
?>
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
2016-05-25 15:09:16 +02:00
if (getEnabled("System Fusion Network", $mmdvmconfigs) == 1) {
?>
2016-06-13 20:36:26 +02:00
<th>YSFGateway</th>
2016-05-25 15:09:16 +02:00
<?php
}
2016-05-11 10:04:40 +02:00
if (getEnabled("DMR", $mmdvmconfigs) == 1) {
?>
<th>DMR CC</th>
<?php
if (getEnabled("DMR Network", $mmdvmconfigs) == 1) {
?>
<th>DMR-Master</th>
<th>TS1</th>
<th>TS2</th>
<?php
}
2016-10-26 09:46:15 +02:00
}
2016-05-11 10:04:40 +02:00
?>
</tr>
<?php
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>";
2016-05-25 15:09:16 +02:00
if (getEnabled("System Fusion Network", $mmdvmconfigs) == 1) {
2016-06-13 20:36:26 +02:00
echo"<td>".getConfigItem("System Fusion Network", "GwyAddress", $mmdvmconfigs)."</td>";
2016-05-25 15:09:16 +02:00
}
2016-05-11 10:04:40 +02:00
if (getEnabled("DMR", $mmdvmconfigs) == 1) {
echo"<td>".getConfigItem("DMR", "ColorCode", $mmdvmconfigs)."</td>";
if (getEnabled("DMR Network", $mmdvmconfigs) == 1) {
echo"<td>";
if (getDMRMasterState()) {
2016-10-25 17:33:30 +02:00
echo "<span class=\"label label-success\" title=\"Master connected\">";
} else {
2016-10-25 17:33:30 +02:00
echo "<span class=\"label label-danger\" title=\"Master not connected\">";
}
echo getConfigItem("DMR Network", "Address", $mmdvmconfigs);
if (strlen(getDMRNetwork()) > 0 ) {
echo " (".getDMRNetwork().")";
}
echo "</td>";
2016-05-11 10:04:40 +02:00
?>
</span>
2016-10-26 09:46:15 +02:00
<td><span class="label <?php
2016-05-11 10:04:40 +02:00
if (getConfigItem("DMR Network", "Slot1", $mmdvmconfigs) == 1) {
2016-10-26 09:46:15 +02:00
echo 'label-success">enabled';
2016-05-11 10:04:40 +02:00
} else {
2016-09-15 20:30:41 +02:00
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
2016-05-11 10:04:40 +02:00
if (getConfigItem("DMR Network", "Slot2", $mmdvmconfigs) == 1) {
2016-10-26 09:46:15 +02:00
echo 'label-success">enabled';
2016-05-11 10:04:40 +02:00
} else {
2016-09-15 20:30:41 +02:00
echo 'label-default">disabled';
2016-05-11 10:04:40 +02:00
}
?></span></td>
<?php
}
}
?>
</tr>
</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>