Changeset 5976


Ignore:
Timestamp:
2003-11-25T15:17:09+13:00 (20 years ago)
Author:
nzdl
Message:

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

Location:
trunk/gsdl/cgi-bin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/cgi-bin/perl.cgi

    r4158 r5976  
    4242$fileoutloc .= "etc/usability.txt";
    4343
    44 if(!(-e $fileoutloc)){
     44if(-e $fileoutloc){
    4545    open FILEOUT, (">>$fileoutloc");
    4646}
  • trunk/gsdl/cgi-bin/readresults.cgi

    r4131 r5976  
    2424
    2525print "<h2>The following technical information was automatically collected about your problem:</h2>\n";
    26 print "<table><width=\"100%\">\n";
     26print "<table width=\"100%\">\n";
    2727
    2828make_table_entry("The URL of the page where you were having problems","URL");
     
    4343print "<h2>You provided us with the following extra information about the problem</h2>\n";
    4444
    45 print"<table>\n";
     45print"<table width=\"100%\">\n";
    4646make_table_entry("How bad the problem was","severity");
    4747make_table_entry("What kind of problem it was","probtype");
     
    5151print "<h2>The following data was automatically collected from the form on the Greenstone interface</h2>\n";
    5252
    53 print"<table>\n";
     53print"<table width=\"100%\">\n";
    5454print "<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";
    5555
     
    5757    if($key ne "update"){
    5858    $key=~/-/;
    59     print "<tr><td>$`</td><td>$'</td><td>$reportvals{$key}</td></tr>\n";
     59    print "<tr><td width=\"33%\">$`</td><td width=\"33%\">$'</td><td width=\"34%\">$reportvals{$key}</td></tr>\n";
    6060    }
    6161}
     
    7171    local ($desc, $entry) = @_;
    7272    print "<tr><td class=\"sans\" width=\"50%\"><strong>$desc:</strong></td>";
    73     print "<td>$reportvals{$entry}</td></tr>\n";
     73    print "<td width=\"50%\">$reportvals{$entry}</td></tr>\n";
    7474    delete $reportvals{$entry};
    7575
  • trunk/gsdl/cgi-bin/usabcgi.pm

    r4820 r5976  
    9494    foreach $pair (@pairs) {
    9595    ($name, $value)= split(/ := /,$pair);
     96   
    9697    #this splits long values up for display purposes
    97         @tmplist = split(/ /,$value);
    98         foreach $item (@tmplist){
    99             if(length $item > 60){
    100                 $tmp="";
    101                 while(length $item > 60){
    102                     $tmp.= substr $item, 0, 60;
    103                     $tmp.=" ";
    104                     $item = substr $item, 60;
    105                 }
    106                 $tmp.=$item;
    107                 $item=$tmp;
    108             }       
     98    @tmplist = split(/ /,$value);
     99    foreach $item (@tmplist){
     100        if(length $item > 60){
     101        $tmp="";
     102        while(length $item > 60){
     103            $tmp.= substr $item, 0, 60;
     104            $tmp.=" ";
     105            $item = substr $item, 60;
     106        }
     107        $tmp.=$item;
     108        $item=$tmp;
     109        }
    109110    }
    110     $value = join(/ /,@tmplist);
    111 
     111    $value = join(' ',@tmplist);
     112   
    112113    #this adds html tags for breaks
    113114    $value =~ s/\n/\<br\>\n/g;
Note: See TracChangeset for help on using the changeset viewer.