source: gsdl/trunk/cgi-bin/readresults.cgi@ 20619

Last change on this file since 20619 was 5976, checked in by nzdl, 20 years ago

puka and cvs version were differenet and dana said that puka version was better, so committing it

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 3.1 KB
Line 
1#!/usr/bin/perl
2
3use usabcgi;
4
5print "Content-type:text/html\n\n";
6
7
8print "<html><head><title>Greenstone Usability - Report Details</title>\n";
9usabcgi::printscript;
10usabcgi::printstyle($ENV{HTTP_USER_AGENT});
11
12print "</head><body bgcolor=\"#ffffff\">\n";
13
14usabcgi::printbanner("Report Details");
15usabcgi::printaplinks;
16
17usabcgi::checkidno;
18
19%reportvals=usabcgi::getusabreportdetails;
20
21print "<p>Your automatically generated report ID number is: <b>$reportvals{\"report-id\"}</b>";
22$reportid = $reportvals{"report-id"};
23delete $reportvals{"report-id"};
24
25print "<h2>The following technical information was automatically collected about your problem:</h2>\n";
26print "<table width=\"100%\">\n";
27
28make_table_entry("The URL of the page where you were having problems","URL");
29make_table_entry("the collection you were using when you had problems","collection");
30make_table_entry("Time you opened the usability report window","opentime");
31make_table_entry("Time you sent the usability report","sendtime");
32make_table_entry("Time the report was received by the server","time");
33make_table_entry("Your browser as it identifies itself","browser");
34make_table_entry("Your browser as the server identifies it","browser-read-by-server");
35make_table_entry("Your browser's IP number","browser-ip-no");
36make_table_entry("The server's IP number","server-ip-no");
37make_table_entry("Your language as recorded by your browser","language");
38make_table_entry("The resolution of your screen","resolution");
39make_table_entry("The colour of your screen","screencolour");
40make_table_entry("The number of bits per pixel your display uses to represent colour","pixeldepth");
41print "</table>";
42
43print "<h2>You provided us with the following extra information about the problem</h2>\n";
44
45print"<table width=\"100%\">\n";
46make_table_entry("How bad the problem was","severity");
47make_table_entry("What kind of problem it was","probtype");
48make_table_entry("Other details","moredetails");
49print "</table>\n";
50
51print "<h2>The following data was automatically collected from the form on the Greenstone interface</h2>\n";
52
53print"<table width=\"100%\">\n";
54print "<tr><td class=\"sans\"><b>Type of input</b></td><td class=\"sans\"><b>Name of input</b></td><td class=\"sans\"><b>Value of input</b></td></tr>\n";
55
56foreach $key (keys(%reportvals)){
57 if($key ne "update"){
58 $key=~/-/;
59 print "<tr><td width=\"33%\">$`</td><td width=\"33%\">$'</td><td width=\"34%\">$reportvals{$key}</td></tr>\n";
60 }
61}
62print "</table>\n";
63
64print "<br><br><p class=\"sans\"><a href=\"mailto:dmn&#064;cs.waikato.ac.nz\">Contact us</a> with any queries or if you would like this report to be removed from the database. Please include your report ID number ($reportid) if your query concerns this report specifically.";
65
66print "</body></html>";
67
68#This function takes a key into the report values interface, and a desription
69# of what that entry means, and makes a properly formatted html table entry
70sub make_table_entry {
71 local ($desc, $entry) = @_;
72 print "<tr><td class=\"sans\" width=\"50%\"><strong>$desc:</strong></td>";
73 print "<td width=\"50%\">$reportvals{$entry}</td></tr>\n";
74 delete $reportvals{$entry};
75
76}
77
78
79
80
81
82
83
84
85
86
87
88
89
Note: See TracBrowser for help on using the repository browser.