Пример #1
0
function begin_document($path)
{
    global $PHP_SELF, $base_url, $id_pool, $assessments, $basepath, $collection;
    $id = get_full_path($basepath, $path);
    print_assessments($id);
    print "<a id='{$id}' href=\"{$base_url}/article?collection={$collection}&amp;id_pool={$id_pool}&amp;file={$id}\">";
}
Пример #2
0
function begin_subcollection($path)
{
    global $assessments;
    global $PHP_SELF, $id_pool, $thebasepath;
    $id = get_full_path($basepath, $path);
    $a =& $assessments[$id];
    print_assessments($a);
    print "<a " . ($a && $a[-1] + $a[1] > 0 ? " name='toAssess'" : "") . " id=\"" . xmlspecialchars($id) . "\" href=\"{$thebasepath}/{$path}?id_pool={$id_pool}\"> ";
}