header() public static method

Generates and prints the page header.
public static header ( string $title )
$title string The page title.
Ejemplo n.º 1
0
 * populating the grid with branch revisions. */
for ($row = sizeof($trunk) - 1; $row >= 0; $row--) {
    $grid[$row][0] = $trunk[$row];
    _populateGrid($row, 0);
}
/* Sort the grid array into row order, and determine the maximum
 * column size that we need to render out in HTML. */
ksort($grid);
$maxCol = 0;
foreach ($grid as $cols) {
    krsort($cols);
    list($val) = each($cols);
    $maxCol = max($val, $maxCol);
}
$title = _("Source Branching View for:");
Chora::header($title);
echo Chora::getHistoryViews($where)->render('history');
require CHORA_TEMPLATES . '/history/header.inc';
foreach ($grid as $row) {
    echo '<tr>';
    /* Start traversing the grid of rows and columns. */
    for ($i = 0; $i <= $maxCol; ++$i) {
        /* If this column has nothing in it, require a blank cell. */
        if (!isset($row[$i])) {
            $bg = '';
            require CHORA_TEMPLATES . '/history/blank.inc';
            continue;
        }
        /* Otherwise, this cell has content; determine what it is. */
        $rev = $row[$i];
        //        if ($VC->isValidRevision($rev) && ($VC->sizeof($rev) % 2)) {