Changeset 1502 for pykota/trunk/cgi-bin
- Timestamp:
- 05/26/04 16:50:12 (21 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/cgi-bin/printquota.cgi
r1419 r1502 23 23 # 24 24 # $Log$ 25 # Revision 1.27 2004/05/26 14:49:40 jalet 26 # First try at saving the job-originating-hostname in the database 27 # 25 28 # Revision 1.26 2004/03/24 19:37:04 jalet 26 29 # Doesn't retrieve users or printers objects to display the history, … … 266 269 else : 267 270 self.report.append('<table class="pykotatable" border="1">') 268 headers = ["Date", "User", "Printer", "PageCounter", "JobId", "JobSize", "JobPrice", "Copies", "Title", "Filename", "Options", " Action"]271 headers = ["Date", "User", "Printer", "PageCounter", "JobId", "JobSize", "JobPrice", "Copies", "Title", "Filename", "Options", "HostName", "Action"] 269 272 self.report.append('<tr class="pykotacolsheader">%s</tr>' % "".join(["<th>%s</th>" % h for h in headers])) 270 273 oddeven = 0 … … 280 283 oddevenclass = "warn" 281 284 username = '<a href="%s?%s">%s</a>' % (os.environ.get("SCRIPT_NAME", ""), urllib.urlencode({"history" : 1, "username" : job.UserName}), job.UserName) 282 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.Job Action)])))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)]))) 283 286 self.report.append('</table>') 284 287 dico = { "history" : 1,