From 3f720784d55707024fff675a5238fde0168d1a40 Mon Sep 17 00:00:00 2001 From: Pixel Date: Thu, 15 Nov 2001 14:52:43 +0000 Subject: More work into TaskMan... --- lib/Form.cc | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) (limited to 'lib/Form.cc') diff --git a/lib/Form.cc b/lib/Form.cc index 5fb885a..e26cf72 100644 --- a/lib/Form.cc +++ b/lib/Form.cc @@ -1,5 +1,8 @@ #include "Form.h" #include "HttpServ.h" +#include "Buffer.h" +#include "CopyJob.h" +#include "config.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) : @@ -9,16 +12,18 @@ String Form::GetTitle(void) { return tit; } -void Form::Do(Variables * v, Handle * h) { - SendHead(h); +Task * Form::Do(Variables * v, Handle * h) { + Handle * b = new Buffer(); + Task * t = new CopyJob(b, h, -1, true); + SendHead(b); - (*h) << + (*b) << "
" << endnl << "
GetURL() : "start") << "\" METHOD=POST>" << endnl; - v->Dump(h); + v->Dump(b); - (*h) << + (*b) << "
" << endnl << "" << endnl << "" << endnl; for (int i = 0; i < n; i++) { - (*h) << + (*b) << "" << endnl; if (lsts[i]) { String * s, * t; - (*h) << + (*b) << "" << endnl; } else { - (*h) << + (*b) << "" << endnl; } } - (*h) << + (*b) << "" << endnl << "
" << endnl << @@ -26,31 +31,33 @@ iv << endnl << "
" << ivs[i] << "
" << endnl; - SendFoot(h); + SendFoot(b); Accessed(); + + return t; } -- cgit v1.2.3