function popup_IDs() { $ml = new EmuleTelnet(); $array = $ml->eMuleIDServers(); $html = "\n\t<table style='width:100%'>\n\t<tr>\n\t\t<th colspan=2>{server}</th>\n\t\t<th>{status}</th>\n\t</tr>\n\t\n\t"; while (list($num, $ligne) = each($array)) { $img = "ok42.png"; if (trim($ligne["ID"]) == "LowID") { $img = "warning42.png"; } $ligne["NAME"] = htmlspecialchars($ligne["NAME"]); $html = $html . "\n\t\t<tr>\n\t\t\t<td width=1%><img src='img/48-idisk-server.png'></td>\n\t\t\t<td valign='middle'>\n\t\t\t\t<strong>\n\t\t\t\t\t<li style='font-size:14px'>{$ligne["NAME"]}</li>\n\t\t\t\t\t<li style='font-size:14px'>{$num}</li>\n\t\t\t\t</strong>\n\t\t\t</td>\n\t\t\t\n\t\t\t<td valign='middle' align='center' width=1%>\n\t\t\t\t<img src='img/{$img}'>\n\t\t\t</td>\n\t\t\n\t\t<tr>\n\t\t\t<td colspan=3><hr></td>\n\t\t</tr>\n\t\t\n\t\t"; } $html = $html . "</table>"; $tpl = new templates(); echo $tpl->_ENGINE_parse_body($html); }