#include "Form.h" #include "HttpServ.h" Form::Form(const String & titre, const String & url, const String & inv, String * names, String * invs, String * defaults, String ** lists, String ** descs, int nb, Action * na) : Action(url), tit(titre), iv(inv), nms(names), ivs(invs), defs(defaults), lsts(lists), dscs(descs), n(nb), Next(na) { } String Form::GetTitle(void) { return tit; } void Form::Do(Variables * v, Handle * h) { SendHead(h); (*h) << "
" << endnl << "
GetURL() : "start") << "\" METHOD=POST>" << endnl; v->Dump(h); (*h) << "
" << endnl << "" << endnl << "" << endnl; for (int i = 0; i < n; i++) { (*h) << "" << endnl; if (lsts[i]) { String * s, * t; (*h) << "" << endnl; } else { (*h) << "" << endnl; } } (*h) << "" << endnl << "
" << endnl << iv << endnl << "
" << ivs[i] << "
" << endnl; SendFoot(h); Accessed(); }