blob: 1ede8fb25eb8c8e34ffe1575f39f04afd61400bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#include "HttpServ.h"
#include "Message.h"
#include "config.h"
Message::Message(const String & t, const String & m, const String & U, Action * n) :
Action(U), tit(t), msg(m), Next(n) { }
void Message::Do(Variables * v, Handle * h) {
SendHead(h);
(*h) << msg << "<CENTER><FORM METHOD=\"POST\" ACTION=\"/bin/" << (Next ? Next->GetURL() : "start") << "\">" << endnl <<
"<INPUT TYPE=\"SUBMIT\" VALUE=\" Ok \">" << endnl;
v->Dump(h);
(*h) << "</FORM></CENTER>" << endnl;
SendFoot(h);
Accessed();
}
String Message::GetTitle(void) {
return tit;
}
|