[3905] | 1 | #!/usr/bin/perl
|
---|
| 2 |
|
---|
[4073] | 3 | use usabcgi;
|
---|
| 4 |
|
---|
[3905] | 5 | print "Content-type:text/html\n\n";
|
---|
| 6 |
|
---|
| 7 |
|
---|
| 8 | print "<html><head><title>Greenstone Usability - Report Details</title>\n";
|
---|
[4085] | 9 | usabcgi::printscript;
|
---|
| 10 | usabcgi::printstyle($ENV{HTTP_USER_AGENT});
|
---|
[3905] | 11 |
|
---|
[4085] | 12 | print "</head><body bgcolor=\"#ffffff\">\n";
|
---|
| 13 |
|
---|
[4131] | 14 | usabcgi::printbanner("Report Details");
|
---|
[4085] | 15 | usabcgi::printaplinks;
|
---|
[3905] | 16 |
|
---|
[4131] | 17 | usabcgi::checkidno;
|
---|
[3961] | 18 |
|
---|
[4131] | 19 | %reportvals=usabcgi::getusabreportdetails;
|
---|
[3961] | 20 |
|
---|
[3905] | 21 | print "<p>Your automatically generated report ID number is: <b>$reportvals{\"report-id\"}</b>";
|
---|
[4085] | 22 | $reportid = $reportvals{"report-id"};
|
---|
[3905] | 23 | delete $reportvals{"report-id"};
|
---|
| 24 |
|
---|
| 25 | print "<h2>The following technical information was automatically collected about your problem:</h2>\n";
|
---|
[5976] | 26 | print "<table width=\"100%\">\n";
|
---|
[3905] | 27 |
|
---|
[3961] | 28 | make_table_entry("The URL of the page where you were having problems","URL");
|
---|
[4114] | 29 | make_table_entry("the collection you were using when you had problems","collection");
|
---|
[3961] | 30 | make_table_entry("Time you opened the usability report window","opentime");
|
---|
| 31 | make_table_entry("Time you sent the usability report","sendtime");
|
---|
| 32 | make_table_entry("Time the report was received by the server","time");
|
---|
| 33 | make_table_entry("Your browser as it identifies itself","browser");
|
---|
| 34 | make_table_entry("Your browser as the server identifies it","browser-read-by-server");
|
---|
| 35 | make_table_entry("Your browser's IP number","browser-ip-no");
|
---|
| 36 | make_table_entry("The server's IP number","server-ip-no");
|
---|
| 37 | make_table_entry("Your language as recorded by your browser","language");
|
---|
| 38 | make_table_entry("The resolution of your screen","resolution");
|
---|
| 39 | make_table_entry("The colour of your screen","screencolour");
|
---|
| 40 | make_table_entry("The number of bits per pixel your display uses to represent colour","pixeldepth");
|
---|
[4085] | 41 | print "</table>";
|
---|
[3905] | 42 |
|
---|
[3961] | 43 | print "<h2>You provided us with the following extra information about the problem</h2>\n";
|
---|
[3905] | 44 |
|
---|
[5976] | 45 | print"<table width=\"100%\">\n";
|
---|
[3961] | 46 | make_table_entry("How bad the problem was","severity");
|
---|
| 47 | make_table_entry("What kind of problem it was","probtype");
|
---|
| 48 | make_table_entry("Other details","moredetails");
|
---|
| 49 | print "</table>\n";
|
---|
[3905] | 50 |
|
---|
[4085] | 51 | print "<h2>The following data was automatically collected from the form on the Greenstone interface</h2>\n";
|
---|
[3905] | 52 |
|
---|
[5976] | 53 | print"<table width=\"100%\">\n";
|
---|
[3905] | 54 | print "<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 |
|
---|
| 56 | foreach $key (keys(%reportvals)){
|
---|
[4131] | 57 | if($key ne "update"){
|
---|
| 58 | $key=~/-/;
|
---|
[5976] | 59 | print "<tr><td width=\"33%\">$`</td><td width=\"33%\">$'</td><td width=\"34%\">$reportvals{$key}</td></tr>\n";
|
---|
[4131] | 60 | }
|
---|
[3905] | 61 | }
|
---|
| 62 | print "</table>\n";
|
---|
[4085] | 63 |
|
---|
| 64 | print "<br><br><p class=\"sans\"><a href=\"mailto:dmn@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.";
|
---|
[3905] | 65 |
|
---|
| 66 | print "</body></html>";
|
---|
| 67 |
|
---|
[3961] | 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
|
---|
| 70 | sub make_table_entry {
|
---|
| 71 | local ($desc, $entry) = @_;
|
---|
[4131] | 72 | print "<tr><td class=\"sans\" width=\"50%\"><strong>$desc:</strong></td>";
|
---|
[5976] | 73 | print "<td width=\"50%\">$reportvals{$entry}</td></tr>\n";
|
---|
[3961] | 74 | delete $reportvals{$entry};
|
---|
[4073] | 75 |
|
---|
[3961] | 76 | }
|
---|
[3905] | 77 |
|
---|
| 78 |
|
---|
| 79 |
|
---|
| 80 |
|
---|
| 81 |
|
---|
| 82 |
|
---|
| 83 |
|
---|
| 84 |
|
---|
| 85 |
|
---|
| 86 |
|
---|
| 87 |
|
---|
| 88 |
|
---|
[3961] | 89 |
|
---|