summaryrefslogtreecommitdiff
path: root/lib/Table.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Table.cc')
-rw-r--r--lib/Table.cc100
1 files changed, 50 insertions, 50 deletions
diff --git a/lib/Table.cc b/lib/Table.cc
index 2509e4e..7d0941a 100644
--- a/lib/Table.cc
+++ b/lib/Table.cc
@@ -1,50 +1,50 @@
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-#include "Table.h"
-#include "HttpServ.h"
-#include "CopyJob.h"
-#include "Buffer.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;
-}
-
-Task * Table::Do(Variables * v, Variables *, Handle * h) {
- Handle * b = new Buffer();
- Task * t = new CopyJob(b, h, -1, true);
-
- SendHead(b);
-
- (*b) << "<center><TABLE BORDER=0>" << endnl;
-
- if (hds) {
- (*b) << "<TR>" << endnl;
- for (int i = 0; i < nc; i++) {
- (*b) << "<TH BGCOLOR=\"#bbbbbb\">" << hds[i] << "</TH>" << endnl;
- }
- (*b) << "</TR>" << endnl;
- }
-
- for (int l = 0; l < nl; l++) {
- (*b) << "<TR>" << endnl;
- for (int c = 0; c < nc; c++) {
- (*b) << "<TD BGCOLOR=\"#" << (l % 2 ? "cccccc" : "dddddd") << "\">" << cls[l * nc + c] << "</TD>" << endnl;
- }
- (*b) << "</TR>" << endnl;
- }
-
- (*b) << "</TABLE>"
-
-"<FORM METHOD=\"POST\" ACTION=\"/bin/" << (Next ? Next->GetURL() : "start") << "\">" << endnl <<
-"<INPUT TYPE=\"SUBMIT\" VALUE=\" Ok \">" << endnl;
-(*b) << "</FORM></CENTER>" << endnl;
-
- SendFoot(b);
- Accessed();
-
- return t;
-}
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+#include "Table.h"
+#include "HttpServ.h"
+#include "CopyJob.h"
+#include "Buffer.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;
+}
+
+Task * Table::Do(Variables * v, Variables *, Handle * h) {
+ Handle * b = new Buffer();
+ Task * t = new CopyJob(b, h, -1, true);
+
+ SendHead(b);
+
+ (*b) << "<center><TABLE BORDER=0>" << endnl;
+
+ if (hds) {
+ (*b) << "<TR>" << endnl;
+ for (int i = 0; i < nc; i++) {
+ (*b) << "<TH BGCOLOR=\"#bbbbbb\">" << hds[i] << "</TH>" << endnl;
+ }
+ (*b) << "</TR>" << endnl;
+ }
+
+ for (int l = 0; l < nl; l++) {
+ (*b) << "<TR>" << endnl;
+ for (int c = 0; c < nc; c++) {
+ (*b) << "<TD BGCOLOR=\"#" << (l % 2 ? "cccccc" : "dddddd") << "\">" << cls[l * nc + c] << "</TD>" << endnl;
+ }
+ (*b) << "</TR>" << endnl;
+ }
+
+ (*b) << "</TABLE>"
+
+"<FORM METHOD=\"POST\" ACTION=\"/bin/" << (Next ? Next->GetURL() : "start") << "\">" << endnl <<
+"<INPUT TYPE=\"SUBMIT\" VALUE=\" Ok \">" << endnl;
+(*b) << "</FORM></CENTER>" << endnl;
+
+ SendFoot(b);
+ Accessed();
+
+ return t;
+}