Ticket #669: doc_download.php.patch

File doc_download.php.patch, 5.2 KB (added by Simek, 16 years ago)
  • download.php

     
    2929    $num = $v['num'];
    3030    $path = "dl/$file";
    3131    $url = $url_base.$file;
    32     $dlink = "<a href=$url>$file</a>";
     32    $dlink = "<a href=\"$url\">$file</a>";
    3333    $s = number_format(filesize($path)/1000000, 2);
    3434
    3535    echo "
    36         <table border=4 cellpadding=10><tr><td class=heading>
    37         <a href=$url><font size=4><u>".tra("Download BOINC")."</u></font></a>
     36        <table cellpadding=\"10\" style=\"border: 5px outset grey\"><tr><td class=\"heading\">
     37        <a href=\"$url\"><span style=\"font-size 4pt; text-decoration: underline\">".tra("Download BOINC")."</span></a>
    3838        <br>".
    3939        sprintf(tra("%s for %s (%s MB)"), $num, $long_name, $s )."
    40         </td></tr> </table>
     40        </td></tr></table>
    4141    ";
    4242    if ($pname == 'linux'||$pname == 'linuxx64') {
    4343        show_linux_info();
     
    4747function link_row($pname) {
    4848    echo "<tr><td>";
    4949    if ($pname=='win') {
    50         echo "<img src=images/ico-win.png> <b>Windows</b>";
     50        echo "<img src=\"images/ico-win.png\"> <span style=\"font-weight: bold\">Windows</span>";
    5151    } else if ($pname=='mac') {
    52         echo "<img src=images/ico-osx-uni.png> <b>Mac OS X</b>";
     52        echo "<img src=\"images/ico-osx-uni.png\"> <span style=\"font-weight: bold\">Mac OS X</span>";
    5353    } else if ($pname=='linux') {
    54         echo "<img src=images/ico-tux.png> <b>Linux/x86</b>";
     54        echo "<img src=\"images/ico-tux.png\"> <span style=\"font-weight: bold\">Linux/x86</span>";
    5555    }
    5656    echo "</td><td>";
    5757    download_link($pname);
     
    7676    $f1 = $a1[0];
    7777    echo "
    7878        <div style=\"max-height: 300px\">
    79         <img src=images/mgrwork.png><br>
     79        <img src=\"images/mgrwork.png\" alt=\"BOINC Manager Window\"><br>
    8080        <div style=\"position:relative; top:-80px; left:30px\">
    81             <img src=images/$f0><br>
     81            <img src=\"images/$f0\" alt=\"Sample projct screensaver\"><br>
    8282        </div>
    8383        <div style=\"position:relative; top:-160px; left:70px\">
    84             <img src=images/$f1><br>
     84            <img src=\"images/$f1\" alt=\"Sample projct screensaver\"><br>
    8585        </div>
    8686        </div>
    8787    ";
     
    8989
    9090function show_download($pname) {
    9191    echo "
    92         <table cellpadding=10><tr><td valign=top>
     92        <table cellpadding=\"10\"><tr><td style=\"vertical-align: top; text-align: left\">
    9393        ".tra("BOINC is a program that lets you donate your idle computer time to science projects like SETI@home, Climateprediction.net, Rosetta@home, World Community Grid, and many others. <p> After installing BOINC on your computer, you can connect it to as many of these projects as you like.").
    9494        "<p>"
    9595    ;
    9696    if ($pname) {
    9797        download_link($pname);
    9898    } else {
    99         echo "<table cellpadding=8>
     99        echo "<table cellpadding=\"8\">
    100100        ";
    101101        link_row('win');
    102102        link_row('winx64');
     
    108108        ";
    109109    }
    110110    echo "
    111         <p>
    112         <a href=wiki/System_requirements><nobr>".tra("System requirements")."</nobr></a>
    113         | <a href=trac/wiki/ReleaseNotes><nobr>".tra("Release notes")."</nobr></a>
    114         | <a href=wiki/BOINC_Help><nobr>".tra("Help")."</nobr></a>
     111        <p style=\"white-space: nowrap;\">
     112        <a href=\"wiki/System_requirements\">".tra("System requirements")."</a>
     113        | <a href=\"trac/wiki/ReleaseNotes\">".tra("Release notes")."</a>
     114        | <a href=\"wiki/BOINC_Help\">".tra("Help")."</a>
    115115    ";
    116116    if ($pname) {
    117         //echo " | <a href=download.php?all_platforms=1><nobr>".tra("Other systems")."</nobr></a>
    118         echo " | <a href=download_all.php><nobr>".tra("All versions")."</nobr></a>
     117        //echo " | <a href=\"download.php?all_platforms=1\">".tra("Other systems")."</a>
     118        echo " | <a href=\"download_all.php\">".tra("All versions")."</a>
    119119        ";
    120120    } else {
    121         echo " | <a href=download_all.php><nobr>".tra("All versions")."</nobr></a>
     121        echo " | <a href=\"download_all.php\">".tra("All versions")."</a>
    122122        <p>"
    123123        .tra("If your computer is not of one of the above types, you can")."
    124124        <ul>
    125         <li> ".sprintf(tra("%s make your own client software %s or"), "<a href=anonymous_platform.php>", "</a>")."
    126         <li> ".sprintf(tra("%s download executables from a third-party site %s (available for Solaris/Opteron, Linux/Opteron, Linux/PPC, HP-UX, and FreeBSD, and others)."), "<a href=download_other.php>", "</a>")."
     125        <li> ".sprintf(tra("%s make your own client software %s or"), "<a href=\"anonymous_platform.php\">", "</a>")."</li>
     126        <li> ".sprintf(tra("%s download executables from a third-party site %s (available for Solaris/Opteron, Linux/Opteron, Linux/PPC, HP-UX, and FreeBSD, and others)."), "<a href=\"download_other.php\">", "</a>")."</li>
    127127        </ul>
    128128        ";
    129129    }
    130130    echo "
    131         | <a href=trac/wiki/VersionHistory>Version history</a>
     131        | <a href=\"trac/wiki/VersionHistory\">Version history</a>
    132132        <p>
    133         </td><td valign=top>
     133        </td><td style=\"vertical-align: top; text-align: left\">
    134134    ";
    135135    show_pictures();
    136136    echo "