Changeset 1524 for pykota/trunk/cgi-bin

Show
Ignore:
Timestamp:
06/06/04 00:42:41 (20 years ago)
Author:
jalet
Message:

Improved web history reports

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/cgi-bin/printquota.cgi

    r1502 r1524  
    2323# 
    2424# $Log$ 
     25# Revision 1.28  2004/06/05 22:42:41  jalet 
     26# Improved web history reports 
     27# 
    2528# Revision 1.27  2004/05/26 14:49:40  jalet 
    2629# First try at saving the job-originating-hostname in the database 
     
    269272            else : 
    270273                self.report.append('<table class="pykotatable" border="1">') 
    271                 headers = ["Date", "User", "Printer", "PageCounter", "JobId", "JobSize", "JobPrice", "Copies", "Title", "Filename", "Options", "HostName", "Action"] 
     274                headers = ["Date", "Action", "User", "Printer", "Hostname", "JobId", "JobSize", "JobPrice", "Copies", "JobBytes", "PageCounter", "Title", "Filename", "Options"] 
    272275                self.report.append('<tr class="pykotacolsheader">%s</tr>' % "".join(["<th>%s</th>" % h for h in headers])) 
    273276                oddeven = 0 
     
    283286                        oddevenclass = "warn" 
    284287                    username = '<a href="%s?%s">%s</a>' % (os.environ.get("SCRIPT_NAME", ""), urllib.urlencode({"history" : 1, "username" : job.UserName}), job.UserName) 
    285                     self.report.append('<tr class="%s">%s</tr>' % (oddevenclass, "".join(["<td>%s</td>" % h for h in (job.JobDate[:19], username, job.PrinterName, job.PrinterPageCounter, job.JobId, job.JobSize, job.JobPrice, job.JobCopies, job.JobTitle, job.JobFileName, job.JobOptions, job.JobHostName, job.JobAction)]))) 
     288                    self.report.append('<tr class="%s">%s</tr>' % (oddevenclass, "".join(["<td>%s</td>" % (h or "&nbsp;") for h in (job.JobDate[:19], job.JobAction, username, job.PrinterName, job.JobHostName, job.JobId, job.JobSize, job.JobPrice, job.JobCopies, job.JobSizeBytes, job.PrinterPageCounter, job.JobTitle, job.JobFileName, job.JobOptions)]))) 
    286289                self.report.append('</table>') 
    287290                dico = { "history" : 1,