Exemplo n.º 1
0
    ?>
	<li class="expertModeVisible"><a href="#" id="bt_showEventInRealTime"><i class="fa fa-tachometer"></i> {{Temps réel}}</a></li>
													<li><a href="index.php?v=m"><i class="fa fa-mobile"></i> {{Version mobile}}</a></li>
													<li class="divider"></li>
													<li><a href="index.php?v=d&logout=1"><i class="fa fa-sign-out"></i> {{Se déconnecter}}</a></li>
													<li class="divider"></li>
													<li><a href="#">{{Node JS}} <span class="span_nodeJsState binary red tooltips"></span></a></li>
													<li><a href="#" id="bt_jeedomAbout">{{Version}} v<?php 
    echo jeedom::version();
    ?>
</a></li>
												</ul>
											</li>

											<?php 
    if (network::ehtIsUp()) {
        echo '<li><a href="#"><i class="fa fa-sitemap tooltips" title="{{Connecté en filaire}}"></i></a></li>';
    }
    if (network::wlanIsUp()) {
        $signalStrength = network::signalStrength();
        if ($signalStrength !== '' && $signalStrength >= 0) {
            if ($signalStrength > 80) {
                echo '<li><a href="#"><i class="jeedom2-fdp1-signal5 tooltips" title="{{Connecté en wifi. Signal : ' . $signalStrength . '%}}"></i></a></li>';
            } else {
                if ($signalStrength > 60) {
                    echo '<li><a href="#"><i class="jeedom2-fdp1-signal4 tooltips" title="{{Connecté en wifi. Signal : ' . $signalStrength . '%}}"></i></a></li>';
                } else {
                    if ($signalStrength > 40) {
                        echo '<li><a href="#"><i class="jeedom2-fdp1-signal3 tooltips" title="{{Connecté en wifi. Signal : ' . $signalStrength . '%}}"></i></a></li>';
                    } else {
                        if ($signalStrength > 20) {