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.3 by pjm2, Sun Jan 7 12:49:28 2001 UTC vs.
Revision 1.7 by pjm2, Sun Jan 7 13:28:19 2001 UTC

# Line 70 | Line 70 | public class IscreamLayout {
70          String graphTitle = "Unknown time period";
71          String xAxisTitle = "Time";
72          String yAxisTitle = "Value";
73 <        String scaleRow = " <tr><td>&nbsp;</td><td align=\"left\">"+startDate+"</td><td align=\"right\">"+endDate+"</td></tr>";
73 >        String scaleRow = " <tr><td>&nbsp;</td><td align=\"left\">"+DateUtils.dateString(startDate)+"</td><td align=\"right\">"+DateUtils.dateString(endDate)+"</td></tr>";
74          
75          switch (type) {
76              case ReportPage.HOUR:
77 <                graphTitle = "Hourly report from "+startDate+" to "+endDate;
77 >                graphTitle = "Hourly report from "+DateUtils.dateString(startDate)+" to "+DateUtils.dateString(endDate);
78                  break;
79              case ReportPage.DAY:
80 <                graphTitle = "24 hour report from "+startDate+" to "+endDate;
80 >                graphTitle = "24 hour report from "+DateUtils.dateString(startDate)+" to "+DateUtils.dateString(endDate);
81                  break;
82              case ReportPage.WEEK:
83 <                graphTitle = "7 day report from "+startDate+" to "+endDate;
83 >                graphTitle = "7 day report from "+DateUtils.shortDateString(startDate)+" to "+DateUtils.shortDateString(endDate);
84                  break;
85              case ReportPage.MONTH:
86 <                graphTitle = "30 day report from "+startDate+" to "+endDate;
86 >                graphTitle = "30 day report from "+DateUtils.shortDateString(startDate)+" to "+DateUtils.shortDateString(endDate);
87                  break;
88              default:
89 <                // Do nothing.
89 >                // Do nothing, leave values as they are.
90          }
91          
92          bw.write("<table border=\"0\">");
# Line 99 | Line 99 | public class IscreamLayout {
99      }
100      
101      public static void printTable(BufferedWriter bw, PlotData pd) throws IOException{
102 +
103          bw.write("<table border=\"0\"  align=\"center\">");
104          
105          bw.write("<tr bgcolor=\"black\"><td><font color=\"white\">Date</font></td><td><font color=\"white\">Value</font></td></tr>");
106          
107 +        // Alternating row colours.
108          String rowColour1 = "#ccccff";
109          String rowColour2 = "#ffffff";
110          

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines