Example #1
0
page_head("Choosing BOINC projects");
echo "\n<p>\nBOINC is used by many volunteer computing <b>projects</b>.\nSome are based at universities and research labs,\nothers are run by companies and individuals.\nYou can participate in any number of these projects.\n<p>\nIn deciding whether to participate in a project,\nread its web site and consider the following questions:\n\n<ul>\n<li> Does it clearly describe its goals?\n    Are these goals important and beneficial?\n<li> Do they have any published results? See\n<a href=/wiki/Publications_by_BOINC_projects>\nA list of scientific publications of BOINC projects</a>.\n<li> Do you trust it to use proper security practices?\n<li> Who owns the results of the computation?\n  Will they be freely available to the public?\n  Will they belong to a company?\n</ul>\n<p>\n\nThe following projects are known to us at BOINC,\nand we believe that their descriptions are accurate.\nSee also\n<a href=wiki/Project_list>a complete list of projects</a>.\n\n<p>\nProjects have different requirements such as memory size;\na partial summary is <a href=http://boincfaq.mundayweb.com/index.php?view=67>here</a>.\n<p>\nIf your computer is equipped with a Graphics Processing Unit\n(GPU), you may be able to\n<a href=http://boinc.berkeley.edu/wiki/GPU_computing>use it to compute faster</a>.\n";
list_start("cellpadding=2 width=100%");
list_heading_array(array("Project<br><span class=note>Mouse over for details; click to visit web site</span>", "Home", "Research area", "Supported platforms"));
shuffle($areas);
foreach ($areas as $area) {
    list_bar($area[0]);
    $projects = $area[1];
    shuffle($projects);
    $n = 0;
    foreach ($projects as $p) {
        $img = "";
        if (array_key_exists(5, $p) && $p[5]) {
            $img = "<img align=right vspace=4 hspace=4 src=images/{$p['5']}>";
        }
        $desc = addslashes($p[4]);
        $x = "<a href={$p['1']} onmouseover=\"return escape('{$img} <b>Home:</b> {$p['2']}<hr><b>Area:</b> {$p['3']}<hr><b>Goal:</b> {$desc}')\">{$p['0']}</a>";
        $home = $p[2];
        $area = $p[3];
        $master_url = $p[1];
        if (array_key_exists(6, $p)) {
            $master_url = $p[6];
        }
        $p = get_platforms_string($master_url);
        echo "<tr class=row{$n}>\n            <td valign=top>{$x}</td>\n            <td valign=top>{$home}</td>\n            <td valign=top>{$area}</td>\n            <td width=30% valign=top>{$p}</td>\n            </tr>\n        ";
        $n = 1 - $n;
    }
}
list_end();
echo "\n</ul>\n\n<p>\nIf you run a BOINC-based project\nand would like it to be included on this list,\nplease <a href=http://boinc.berkeley.edu/trac/wiki/ProjectPeople>contact us</a>.\n<script language=\"JavaScript\" type=\"text/javascript\" src=\"wz_tooltip.js\"></script>\n";
page_tail();
Example #2
0
function ordered_display($areas, $sort)
{
    // make a list of projects
    //
    $projects = null;
    foreach ($areas as $area) {
        $title = $area[0];
        $projs = $area[1];
        foreach ($projs as $p) {
            $p['area'] = $title;
            $projects[] = $p;
        }
    }
    usort($projects, $sort == "area" ? 'comp_area' : 'comp_name');
    list_start("cellpadding=2 width=100%");
    list_heading_array(array(($sort == "area" ? "<a title='Sort by name' href=projects.php>Name</a>" : "Name") . "<br><span class=note>Mouse over for details; click to visit web site</span>", $sort != "area" ? "<a title='Sort by category' href=projects.php?sort=area>Category</a>" : "Category", "Area", "Sponsor", "Supported platforms"));
    $n = 0;
    foreach ($projects as $p) {
        $img = "";
        if (array_key_exists(5, $p) && $p[5]) {
            $img = "<img align=right vspace=4 hspace=4 src=images/{$p['5']}>";
        }
        $arg = "{$img} <b>Sponsor:</b> {$p['2']}<hr><b>Area:</b> {$p['3']}<hr><b>Goal:</b> {$p['4']}";
        $arg = addslashes($arg);
        $x = "<a href={$p['1']} onmouseover=\"popup('{$arg}')\">{$p['0']}</a>";
        $home = $p[2];
        $area = $p['area'];
        $spec_area = $p[3];
        $master_url = $p[1];
        if (array_key_exists(6, $p) && strlen($p[6])) {
            $master_url = $p[6];
        }
        $p = get_platform_icons($master_url);
        if (!$p) {
            $p = tra("Unknown");
        } else {
            $pd = get_platforms_string($master_url, false);
            $p .= "<br><a href=projects.php onmouseover=\"popup('Supported platforms:<br>{$pd}', 240)\">Details</a>";
        }
        echo "<tr class=row{$n}>\n            <td valign=top>{$x}</td>\n            <td valign=top>{$area}</td>\n            <td valign=top>{$spec_area}</td>\n            <td valign=top>{$home}</td>\n            <td width=30% valign=top>{$p}</td>\n            </tr>\n        ";
        $n = 1 - $n;
    }
    list_end();
}