MMDVMHost-Dashboard/include/repeaterinfo.php

127 lines
4.1 KiB
PHP
Raw Normal View History

2017-01-10 15:05:55 +01:00
<div class="panel panel-default">
<!-- Standard-Panel-Inhalt -->
<div class="panel-heading"><?php echo _("Repeater Info"); ?><span class="pull-right clickable"><i class="glyphicon glyphicon-chevron-up"></i></span></div>
2017-03-02 16:56:46 +01:00
<div class="panel-body">
2017-01-10 15:05:55 +01:00
<!-- Tabelle -->
<div class="table-responsive">
<table class="table repeaterinfo">
2017-01-10 15:05:55 +01:00
<tr>
<th><?php echo _("Current Mode"); ?></th>
<?php
if (getEnabled("D-Star", $mmdvmconfigs) == 1) {
?>
<th><?php echo _("D-Star linked to"); ?></th>
<?php
}
if (getEnabled("System Fusion", $mmdvmconfigs) == 1) {
?>
<th><?php echo _("YSF linked to"); ?></th>
<?php
}
if (getEnabled("DMR", $mmdvmconfigs) == 1) {
if (getConfigItem("DMR Network", "Slot1", $mmdvmconfigs) == "1") {
?>
<th><?php echo _("DMR TS1 last linked to"); ?></th>
<?php
}
?>
<th><?php echo _("DMR TS2 last linked to"); ?></th>
<?php
}
?>
2017-01-10 15:05:55 +01:00
</tr>
<?php
echo"<tr>";
echo"<td id=\"mode\">".getActualMode($lastHeard, $mmdvmconfigs)."</td>";
if (getEnabled("D-Star", $mmdvmconfigs) == 1) {
2017-05-07 14:21:21 +02:00
echo"<td id=\"dstarlink\">".getActualLink($reverseLogLinesMMDVM, "D-Star")."</td>";
}
if (getEnabled("System Fusion", $mmdvmconfigs) == 1) {
2017-05-07 14:21:21 +02:00
echo"<td id=\"ysflink\">".getYSFReflectorById(getActualLink($reverseLogLinesYSFGateway, "YSF"), $activeYSFReflectors)."</td>";
}
if (getEnabled("DMR", $mmdvmconfigs) == 1) {
if (getConfigItem("DMR Network", "Slot1", $mmdvmconfigs) == "1") {
echo"<td id=\"dmr1link\">".getActualLink($reverseLogLinesMMDVM, "DMR Slot 1")."</td>";
}
2017-05-07 14:21:21 +02:00
echo"<td id=\"dmr2link\">".getActualLink($reverseLogLinesMMDVM, "DMR Slot 2")."/". getActualReflector($reverseLogLinesMMDVM, "DMR Slot 2") ."</td>";
}
2017-01-10 15:05:55 +01:00
echo"</tr>\n";
?>
<tr>
<td colspan="5">
<table class="table">
<tr>
<th><?php echo _("Location"); ?></th>
<th><?php echo _("TX-Freq."); ?></th>
<th><?php echo _("RX-Freq."); ?></th>
2017-01-10 15:05:55 +01:00
<?php
if (getEnabled("System Fusion Network", $mmdvmconfigs) == 1) {
?>
<th><?php echo _("YSFGateway"); ?></th>
2017-01-10 15:05:55 +01:00
<?php
}
if (getEnabled("DMR", $mmdvmconfigs) == 1) {
?>
<th><?php echo _("DMR CC"); ?></th>
2017-01-10 15:05:55 +01:00
<?php
if (getEnabled("DMR Network", $mmdvmconfigs) == 1) {
?>
<th><?php echo _("DMR-Master"); ?></th>
<th><?php echo _("TS1"); ?></th>
<th><?php echo _("TS2"); ?></th>
2017-01-10 15:05:55 +01:00
<?php
}
}
?>
</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>";
if (getEnabled("System Fusion Network", $mmdvmconfigs) == 1) {
2017-11-26 13:56:15 +01:00
echo"<td>".getConfigItem("System Fusion Network", "GatewayAddress", $mmdvmconfigs)."</td>";
2017-01-10 15:05:55 +01:00
}
if (getEnabled("DMR", $mmdvmconfigs) == 1) {
echo"<td>".getConfigItem("DMR", "ColorCode", $mmdvmconfigs)."</td>";
if (getEnabled("DMR Network", $mmdvmconfigs) == 1) {
echo"<td>";
if (getDMRMasterState()) {
2018-02-11 22:59:54 +01:00
echo "<span class=\"badge badge-success\" title=\"Master connected\">";
2017-01-10 15:05:55 +01:00
} else {
2018-02-11 22:59:54 +01:00
echo "<span class=\"badge badge-danger\" title=\"Master not connected\">";
2017-01-10 15:05:55 +01:00
}
echo getConfigItem("DMR Network", "Address", $mmdvmconfigs);
if (strlen(getDMRNetwork()) > 0 ) {
echo " (".getDMRNetwork().")";
}
?>
</span>
</td>
2018-02-11 22:59:54 +01:00
<td><span class="badge <?php
2017-01-10 15:05:55 +01:00
if (getConfigItem("DMR Network", "Slot1", $mmdvmconfigs) == 1) {
2018-02-11 22:59:54 +01:00
echo 'badge-success">'._("enabled");
2017-01-10 15:05:55 +01:00
} else {
2018-02-11 22:59:54 +01:00
echo 'badge-default">'._("disabled");
2017-01-10 15:05:55 +01:00
}
?></span></td>
2018-02-11 22:59:54 +01:00
<td><span class="badge <?php
2017-01-10 15:05:55 +01:00
if (getConfigItem("DMR Network", "Slot2", $mmdvmconfigs) == 1) {
2018-02-11 22:59:54 +01:00
echo 'badge-success">'._("enabled");
2017-01-10 15:05:55 +01:00
} else {
2018-02-11 22:59:54 +01:00
echo 'badge-default">'._("disabled");
2017-01-10 15:05:55 +01:00
}
?></span></td>
<?php
}
}
?>
</tr>
</table>
</td>
</tr>
</table>
</div>
2017-03-02 16:56:46 +01:00
</div>
2017-01-10 15:05:55 +01:00
</div>