1 | #!/usr/bin/perl
|
---|
2 |
|
---|
3 | use usabcgi;
|
---|
4 |
|
---|
5 | print "Content-type:text/html\n\n";
|
---|
6 |
|
---|
7 |
|
---|
8 | print "<html><head><title>Greenstone Usability - Report Details</title>\n";
|
---|
9 | usabcgi::printscript;
|
---|
10 | usabcgi::printstyle($ENV{HTTP_USER_AGENT});
|
---|
11 |
|
---|
12 | print "</head><body bgcolor=\"#ffffff\">\n";
|
---|
13 |
|
---|
14 | usabcgi::printbanner("Report Details");
|
---|
15 | usabcgi::printaplinks;
|
---|
16 |
|
---|
17 | usabcgi::checkidno;
|
---|
18 |
|
---|
19 | %reportvals=usabcgi::getusabreportdetails;
|
---|
20 |
|
---|
21 | print "<p>Your automatically generated report ID number is: <b>$reportvals{\"report-id\"}</b>";
|
---|
22 | $reportid = $reportvals{"report-id"};
|
---|
23 | delete $reportvals{"report-id"};
|
---|
24 |
|
---|
25 | print "<h2>The following technical information was automatically collected about your problem:</h2>\n";
|
---|
26 | print "<table width=\"100%\">\n";
|
---|
27 |
|
---|
28 | make_table_entry("The URL of the page where you were having problems","URL");
|
---|
29 | make_table_entry("the collection you were using when you had problems","collection");
|
---|
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");
|
---|
41 | print "</table>";
|
---|
42 |
|
---|
43 | print "<h2>You provided us with the following extra information about the problem</h2>\n";
|
---|
44 |
|
---|
45 | print"<table width=\"100%\">\n";
|
---|
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";
|
---|
50 |
|
---|
51 | print "<h2>The following data was automatically collected from the form on the Greenstone interface</h2>\n";
|
---|
52 |
|
---|
53 | print"<table width=\"100%\">\n";
|
---|
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)){
|
---|
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 | }
|
---|
62 | print "</table>\n";
|
---|
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.";
|
---|
65 |
|
---|
66 | print "</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
|
---|
70 | sub 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 |
|
---|