comparison tests/makewebstatistics.d @ 256:26127a48bc09 trunk

[svn r273] added html header to web statistics
author ChristianK
date Thu, 12 Jun 2008 18:22:33 +0200
parents 4d14a1c84be7
children 4234b014a4f2
comparison
equal deleted inserted replaced
255:4d14a1c84be7 256:26127a48bc09
480 480
481 // collect all the stats.base files into a large table 481 // collect all the stats.base files into a large table
482 BufferedFile index = new BufferedFile(std.path.join(basedir, "index.html"), FileMode.Out); 482 BufferedFile index = new BufferedFile(std.path.join(basedir, "index.html"), FileMode.Out);
483 scope(exit) index.close(); 483 scope(exit) index.close();
484 index.writefln(` 484 index.writefln(`
485 <html><body>
485 <table style="border-collapse:collapse; text-align:center;"> 486 <table style="border-collapse:collapse; text-align:center;">
486 <colgroup> 487 <colgroup>
487 <col style="border-right: medium solid black;"> 488 <col style="border-right: medium solid black;">
488 <col style="background-color: #AAFFAA;"> 489 <col style="background-color: #AAFFAA;">
489 <col style="background-color: #AAFFAA; border-right: thin solid black;"> 490 <col style="background-color: #AAFFAA; border-right: thin solid black;">
513 char[] newid = std.path.getBaseName(args[i-1]); 514 char[] newid = std.path.getBaseName(args[i-1]);
514 statsname = std.path.join(std.path.join(basedir, newid ~ "-to-" ~ id), "stats.base"); 515 statsname = std.path.join(std.path.join(basedir, newid ~ "-to-" ~ id), "stats.base");
515 index.writef(cast(char[])std.file.read(statsname)); 516 index.writef(cast(char[])std.file.read(statsname));
516 } 517 }
517 518
518 index.writefln(`</table>`); 519 index.writefln(`</table></body></html>`);
519 520
520 return 0; 521 return 0;
521 } 522 }
522 523