MMDVMHost-Dashboard/include/repeaterinfo.php

85 lines
2.4 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>
2016-05-10 21:50:33 +02:00
2016-05-02 10:19:08 +02:00
<!-- Tabelle -->
<table class="table">
<tr>
<th>Actual Mode</th>
<th>D-Star 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-05-13 23:36:44 +02:00
echo"<td>".getActualMode($lastHeard, $mmdvmconfigs)."</td>";
2016-05-02 10:19:08 +02:00
echo"<td>".getActualLink($logLines, "D-Star")."</td>";
echo"<td>".getActualLink($logLines, "DMR Slot 1")."</td>";
echo"<td>".getActualLink($logLines, "DMR Slot 2")."/". getActualReflector($logLines, "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="4">
<table class="table">
<tr>
<th>Location</th>
<th>TX-Freq.</th>
<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) {
?>
<th>YSF-Master</th>
<?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
}
}
?>
</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) {
echo"<td>".getConfigItem("System Fusion Network", "Address", $mmdvmconfigs)."</td>";
}
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>".getConfigItem("DMR Network", "Address", $mmdvmconfigs)."</td>";
?>
<td><span class="label <?php
if (getConfigItem("DMR Network", "Slot1", $mmdvmconfigs) == 1) {
echo 'label-success">enabled';
} else {
echo 'label-default">disabled';
}
?></span></td>
<td><span class="label <?php
if (getConfigItem("DMR Network", "Slot2", $mmdvmconfigs) == 1) {
echo 'label-success">enabled';
} else {
echo 'label-default">disabled';
}
?></span></td>
<?php
}
}
?>
</tr>
</table>
</td>
</tr>
2016-05-02 10:19:08 +02:00
</table>
2016-05-05 21:21:55 +02:00
</div>