header() 공개 정적인 메소드

Generates and prints the page header.
public static header ( string $title )
$title string The page title.
예제 #1
0
파일: history.php 프로젝트: raz0rsdge/horde
 * 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)) {