librenms-librenms/includes/html/print-mef.inc.php

24 lines
822 B
PHP
Raw Normal View History

<?php
echo '<tr class="list">';
echo '<td class="list">';
echo $mef['mefIdent'];
echo '</td>';
echo '<td class="list">'. $mef['mefType'] . '</td>';
echo '<td class="list">'. $mef['mefMTU'] . '</td>';
echo '<td class="list">';
if ($mef['mefAdmState'] == 'unlocked') {
echo '<i class="fa fa-unlock fa-lg icon-theme" aria-hidden="true" style="color:green"></i>';
} else {
echo '<i class="fa fa-lock fa-lg icon-theme" aria-hidden="true" style="color:red"></i>';
}
echo '</td>';
if ($mef['mefRowState'] == 'active') {
echo '<td class="list"><span style="min-width:40px; display:inline-block;" class="label label-success">active</span></td>';
} else {
echo '<td class="list"><span style="min-width:40px; display:inline-block;" class="label label-default">'.$mef['mefRowState'].'</span></td>';
}
echo '</tr>';