--- HostStatus/HostStatus.cpp 2003/11/16 04:46:26 39 +++ HostStatus/HostStatus.cpp 2003/11/17 04:17:51 43 @@ -159,9 +159,10 @@ void HostStatus::display(const string& m } while (!done && hostupdate.good()); - if (page) header(); + if (page) header(method); - for (list::iterator itor = hosts.begin(); itor != hosts.end(); itor++) + for (list::iterator itor = hosts.begin(); itor != hosts.end(); + itor++) { Host host = *itor; @@ -171,7 +172,7 @@ void HostStatus::display(const string& m if (page) footer(); } -void HostStatus::header() +void HostStatus::header(const string& method) { cout << "\n" @@ -185,6 +186,62 @@ void HostStatus::header() << "

Host Status

\n" << "
\n" << "\n" + << "\n" + << "\n" + << "\n" + << "\n" + << "\n" + << "
\n" + << "\n" + << "\n" + << " Host\n" + << " Name\n" + << " Address\n" + << " Platform" + << "\n Since\n" + << "
\n" + << "
\n" + << "\n" << "\n"; if (host) cout << "\n"; @@ -199,6 +256,5 @@ void HostStatus::header() void HostStatus::footer() { cout << "
Host
\n" - << "\n" << "\n"; }