Example #1
0
function grouped_display($areas)
{
    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) {
        $title = $area[0];
        if (sizeof($area) == 3) {
            $title .= $area[2];
        }
        list_bar($title);
        $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=\"popup('{$img} <b>Sponsor:</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) && strlen($p[6])) {
                $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();
}
Example #2
0
<?php

require_once "docutil.php";
require_once "projects.inc";
require_once "get_platforms.inc";
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;
Example #3
0
function show_platform($short_name, $p, $dev)
{
    global $min_version;
    global $max_version;
    $long_name = $p["name"];
    $description = $p["description"];
    if (array_key_exists('url', $p)) {
        $url = $p["url"];
        $long_name .= " <a href={$url}><span class=description>details</span></a>";
    }
    list_bar($long_name, $description);
    foreach ($p["versions"] as $i => $v) {
        if ($min_version && version_compare($v['num'], $min_version, "<")) {
            continue;
        }
        if ($max_version && version_compare($v['num'], $max_version, ">")) {
            continue;
        }
        if (!$dev && is_dev($v)) {
            continue;
        }
        show_version($short_name, $i, $v);
    }
}