#include "Table.h" #include "HttpServ.h" Table::Table(const String & titre, const String & url, String * heads, String * cells, int nbc, int nbl, Action * na) : Action(url), tit(titre), hds(heads), cls(cells), nc(nbc), nl(nbl), Next(na) { } String Table::GetTitle(void) { return tit; } void Table::Do(Variables * v, Handle * h) { SendHead(h); (*h) << "
" << endnl; if (hds) { (*h) << "" << endnl; for (int i = 0; i < nc; i++) { (*h) << "" << endnl; } (*h) << "" << endnl; } for (int l = 0; l < nl; l++) { (*h) << "" << endnl; for (int c = 0; c < nc; c++) { (*h) << "" << endnl; } (*h) << "" << endnl; } (*h) << "
" << hds[i] << "
" << cls[l * nc + c] << "
" "
GetURL() : "start") << "\">" << endnl << "" << endnl; (*h) << "
" << endnl; SendFoot(h); Accessed(); }