function getDataApplet_TelephonyHardware() { $oPalo = new paloSantoSysInfo(); $arrCards = $oPalo->checkRegistedCards(); $str = ""; $cardsStatus = ""; $color = ""; $i = 1; if (count($arrCards) > 0 && $arrCards != null) { foreach ($arrCards as $key => $value) { if ($value["num_serie"] == "") { $serStatus = "<a id='editMan1_{$value['hwd']}' style='text-decoration:none;color:white; cursor:pointer;' onClick ='jfunction(\"editMan1_{$value['hwd']}\");'>" . _tr('No Registered') . "</a>"; $color = "#FF0000"; $image = "modules/hardware_detector/images/card_no_registered.gif"; } else { $serStatus = "<a id='editMan2_{$value['hwd']}' style='text-decoration:none;color:white;cursor:pointer;' onClick = 'jfunction(\"editMan2_{$value['hwd']}\");'>" . _tr('Registered') . "</a>"; $color = "#10ED00"; $image = "modules/hardware_detector/images/card_registered.gif"; } $cardsStatus .= "<div class='services'>{$i}.- " . $value['card'] . " ({$value['vendor']}): </div>\n <div align='center' style='background-color:" . $color . ";' class='status' >{$serStatus}</div>"; $i++; } } else { $cardsStatus = "<br /><div align='center' style='color:red;'><strong>" . _tr('Cards no found') . "</strong></div>"; } return "<div class='tabFormTable'>{$cardsStatus}</div>\n <div id='layerCM' style='position:relative'>\n <div class='layer_handle' id='closeCM'></div>\n <div id='layerCM_content'></div>\n </div>"; }