| 33 |
|
bw.write("<html>"); |
| 34 |
|
bw.write("<head>"); |
| 35 |
|
bw.write("<title>"+title+"</title>"); |
| 36 |
+ |
bw.write("<meta http-equiv=\"pragma\" content=\"no-cache\">"); |
| 37 |
+ |
bw.write("<meta http-equiv=\"cache-control\" content=\"no-cache\">"); |
| 38 |
|
bw.write("<meta name=\"description\" content=\""+metaDescription+"\">"); |
| 39 |
|
bw.write("<meta name=\"keywords\" content=\""+metaKeywords+"\">"); |
| 40 |
|
bw.write("<meta name=\"generator\" content=\"pjm2's DBReporterMain\">"); |
| 80 |
|
graphTitle = "Hourly report from "+DateUtils.dateString(startDate)+" to "+DateUtils.dateString(endDate); |
| 81 |
|
scaleRow = " <tr><td> </td>"; |
| 82 |
|
for (long i = startDate; i < endDate; i+=DateUtils.secsPerHour/6){ |
| 83 |
< |
scaleRow += "<td><font size=\"2\">"+DateUtils.timeString(i)+"</font></td>"; |
| 83 |
> |
scaleRow += "<td align=\"center\"><font size=\"2\">"+DateUtils.timeString(i)+"</font></td>"; |
| 84 |
|
} |
| 85 |
|
scaleRow += "</tr>"; |
| 86 |
|
colspan = 6; |
| 89 |
|
graphTitle = "24 hour report from "+DateUtils.dateString(startDate)+" to "+DateUtils.dateString(endDate); |
| 90 |
|
scaleRow = " <tr><td> </td>"; |
| 91 |
|
for (int i = 0; i < 24; i++){ |
| 92 |
< |
scaleRow += "<td><font size=\"2\">"+i+"</font></td>"; |
| 92 |
> |
scaleRow += "<td align=\"center\"><font size=\"2\">"+i+"</font></td>"; |
| 93 |
|
} |
| 94 |
|
scaleRow += "</tr>"; |
| 95 |
|
colspan = 24; |
| 98 |
|
graphTitle = "7 day report from "+DateUtils.shortDateString(startDate)+" to "+DateUtils.shortDateString(endDate); |
| 99 |
|
scaleRow = " <tr><td> </td>"; |
| 100 |
|
for (long i = startDate; i < endDate; i+=DateUtils.secsPerDay){ |
| 101 |
< |
scaleRow += "<td>"+DateUtils.dayName(i)+"</td>"; |
| 101 |
> |
scaleRow += "<td align=\"center\">"+DateUtils.dayName(i)+"</td>"; |
| 102 |
|
} |
| 103 |
|
scaleRow += "</tr>"; |
| 104 |
|
colspan = 7; |
| 114 |
|
|
| 115 |
|
bw.write("<table border=\"0\">"); |
| 116 |
|
bw.write(" <tr><td> </td><td colspan=\""+colspan+"\"><b>"+graphTitle+"</b></td></tr>"); |
| 117 |
< |
bw.write(" <tr><td valign=\"top\">max</td><td colspan=\""+colspan+"\" rowspan=\"3\"><img src=\""+filename+"\" width=\""+width+"\" height=\""+height+"\"></td><td valign=\"middle\">"+yAxisTitle+"</td><td valign=\"bottom\">min</td></tr>"); |
| 117 |
> |
bw.write(" <tr><td valign=\"top\" align=\"right\">max</td><td colspan=\""+colspan+"\" rowspan=\"3\"><img src=\""+filename+"\" width=\""+width+"\" height=\""+height+"\"></td></tr><tr><td valign=\"middle\" align=\"right\">"+yAxisTitle+"</td></tr><tr><td valign=\"bottom\" align=\"right\">min</td></tr>"); |
| 118 |
|
bw.write(scaleRow); |
| 119 |
|
bw.write("</table>"); |
| 120 |
|
bw.newLine(); |