print("<td style='border: 0;'><select name='lang' onchange='langSelect()'>") loc.renderOptions() print("</select></td>") print("</tr></table>") print("</div>") print("<div id='outer'>") print("<div id='container'>") if message: print message # service #msg = "" msg = service.getMessage() if not config.isLoaded(): msg = loc.str('need_service_reload_message') renderService(service, loc, msg) if service.state == "running": # running contents: # frontedns for sec in config.data.sections: if sec.name == "frontend": stat = stats[sec.attributes[0] + "/FRONTEND"] print("<table class='nomargin'><tr><td width=200 class='nobottom'>") print("<h3>" + loc.str('frontend') + " : ") for a in sec.attributes:
print("</tr></table>") print("</div>") ### contents ##### print("<div id='outer'>") print("<div id='container'>") if message: print message # service renderService(service, loc, "") if service.state == "running": stats = IptablesStats(req['host'], service.getMessage()) #print(stats.getMessage() + "<br>") # interfaces: print("Interfaces") print("<table>") for iface in stats.interfaces: print("<tr><td>" + iface.name + "</td><td>" + iface.subnet + "/" + str(iface.mask) + "</td><tr>") print("<script language='javascript'>addInterface('" + iface.name + "');</script>") print("</table>") # rules (FORWARD): print("FORWARD chain : policy " + stats.forward_chain.policy) print("<table>") print("<tr>")