--- HostStatus/HostStatus.cpp 2003/11/17 03:56:19 41 +++ HostStatus/HostStatus.cpp 2003/11/17 19:05:37 44 @@ -185,8 +185,10 @@ void HostStatus::header(const string& me << "\n" << "

Host Status

\n" << "
\n" - << "

\n" - << "\n"; if (method != "POST") sputenv("QUERY_STRING=mode=h"); @@ -218,23 +220,44 @@ void HostStatus::header(const string& me } while (!done && hostupdate.good()); + set selected; + + for (multimap::iterator itor = cgi.find("host"); itor != + cgi.upper_bound("host") && itor != cgi.end(); itor++) + { + string host = itor->second; + + if (host != "") selected.insert(host); + } + for (list::iterator itor = hosts.begin(); itor != hosts.end(); itor++) { Host host = *itor; - cout << "\n"; + cout << "" : ">") << host.getHost() << "\n"; } + bool all = host && name && address && platform && since; + cout << "\n" - << " Host\n" - << " Name\n" - << " Address\n" - << " Platform" - << '\n' - << " Since\n" - << "\n" - << "

\n" + << "\n" + << "\n" + << " Host\n" + << " Name\n" + << " Address\n" + << " Platform\n" + << " Since\n" + << "\n" + << "\n" + << "\n" + << "\n" << "
\n" << "\n" << "\n";