steffen: server/kolab-horde-fbview/kolab-horde-fbview/fbview/kronolith/templates category_legend.inc, NONE, 1.1 common-header.inc, NONE, 1.1

cvs at intevation.de cvs at intevation.de
Mon Oct 31 12:43:24 CET 2005


Author: steffen

Update of /kolabrepository/server/kolab-horde-fbview/kolab-horde-fbview/fbview/kronolith/templates
In directory doto:/tmp/cvs-serv18388/kolab-horde-fbview/kolab-horde-fbview/fbview/kronolith/templates

Added Files:
	category_legend.inc common-header.inc 
Log Message:
Fbview in separate package

--- NEW FILE: category_legend.inc ---
<?php
if ($prefs->getValue('show_legend') && count($GLOBALS['display_calendars'])) {
    $html = '<tr><td class="light" align="center">';
    $html .= '<table border="0" cellpadding="0" cellspacing="4"><tr>';

    $colors = $cManager->colors();

    // Special handling for Unfiled events.
    $categoryColor = isset($colors['_unfiled_']) ? $colors['_unfiled_'] : $colors['_default_'];
    $html .= '<td class="legend-eventbox" style="background-color: ' . $categoryColor . '; ';
    $html .= 'border-color: ' . Kronolith::borderColor($categoryColor) . '"><span class="event">' . _("Unfiled") . '</span></td>';

    $categories = $cManager->get();
    foreach ($categories as $category) {
        $categoryColor = isset($colors[$category]) ? $colors[$category] : $colors['_default_'];
        $html .= '<td class="legend-eventbox" style="background-color: ' . $categoryColor . '; ';
        $html .= 'border-color: ' . Kronolith::borderColor($categoryColor) . '"><span class="event">' . htmlspecialchars($category) . '</span></td>';
    }
    $html .= "</tr>\n";

    echo $html . "</table></td></tr>\n";
}

--- NEW FILE: common-header.inc ---
<?php
if (isset($language)) {
    header('Content-type: text/html; charset=' . NLS::getCharset());
    header('Vary: Accept-Language');
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<!-- Kronolith: Copyright 2000-2004, The Horde Project. Kronolith is under the GPL. -->
<!--   Horde Project: http://horde.org/ | Kronolith: http://horde.org/kronolith/    -->
<!--            GNU Public License: http://www.fsf.org/copyleft/gpl.html            -->
<?php echo !empty($language) ? '<html lang="' . strtr($language, '_', '-') . '">' : '<html>' ?>
<head>
<?php

$page_title = $registry->getParam('name');
if (!empty($title)) $page_title .= ' :: ' . $title;
if (!empty($refresh_time) && ($refresh_time > 0) && !empty($refresh_url)) {
    echo "<meta http-equiv=\"refresh\" content=\"$refresh_time;url=$refresh_url\">\n";
}

Horde::includeScriptFiles();

?>
<title><?php echo $page_title ?></title>
<?php echo Horde::stylesheetLink('kronolith') ?>
</head>

<body<?php if (Util::nonInputVar('bodyClass')) echo ' class="' . $bodyClass . '"' ?>>





More information about the commits mailing list