ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/reports/DBReporter/IscreamLayout.java
(Generate patch)

Comparing projects/cms/source/reports/DBReporter/IscreamLayout.java (file contents):
Revision 1.15 by pjm2, Sun Jan 7 16:32:35 2001 UTC vs.
Revision 1.16 by pjm2, Sun Jan 7 17:12:43 2001 UTC

# Line 80 | Line 80 | public class IscreamLayout {
80                  graphTitle = "Hourly report from "+DateUtils.dateString(startDate)+" to "+DateUtils.dateString(endDate);
81                  scaleRow = " <tr><td>&nbsp;</td>";
82                  for (long i = startDate; i < endDate; i+=DateUtils.secsPerHour/6){
83 <                    scaleRow += "<td align=\"center\"><font size=\"2\">"+DateUtils.timeString(i)+"</font></td>";
83 >                    scaleRow += "<td align=\"center\" width=\""+(100/colspan)+"%\"><font size=\"2\">"+DateUtils.timeString(i)+"</font></td>";
84                  }
85                  scaleRow += "</tr>";
86                  colspan = 6;
# Line 89 | Line 89 | public class IscreamLayout {
89                  graphTitle = "24 hour report from "+DateUtils.dateString(startDate)+" to "+DateUtils.dateString(endDate);
90                  scaleRow = " <tr><td>&nbsp;</td>";
91                  for (int i = 0; i < 24; i++){
92 <                    scaleRow += "<td align=\"center\"><font size=\"2\">"+i+"</font></td>";
92 >                    scaleRow += "<td align=\"center\" width=\""+(100/colspan)+"%\"><font size=\"2\">"+i+"</font></td>";
93                  }
94                  scaleRow += "</tr>";
95                  colspan = 24;
96                  break;
97              case ReportPage.WEEK:
98                  graphTitle = "7 day report from "+DateUtils.shortDateString(startDate)+" to "+DateUtils.shortDateString(endDate);
99 +                colspan = 7;
100                  scaleRow = " <tr><td>&nbsp;</td>";
101                  for (long i = startDate; i < endDate; i+=DateUtils.secsPerDay){
102 <                    scaleRow += "<td align=\"center\">"+DateUtils.dayName(i)+"</td>";
102 >                    scaleRow += "<td align=\"center\" width=\""+(100/colspan)+"%\">"+DateUtils.dayName(i)+"</td>";
103                  }
104                  scaleRow += "</tr>";
104                colspan = 7;
105                  break;
106              case ReportPage.MONTH:
107                  graphTitle = "30 day report from "+DateUtils.shortDateString(startDate)+" to "+DateUtils.shortDateString(endDate);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines