1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
<?php
/**
* $Horde: kronolith/day.php,v 1.63.8.10 2008/01/10 22:01:20 chuck Exp $
*
* Copyright 1999-2008 The Horde Project (http://www.horde.org/)
*
* See the enclosed file COPYING for license information (GPL). If you
* did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
*
* @author Chuck Hagenbuch <chuck@horde.org>
*/
require_once dirname(__FILE__) . '/lib/base.php';
$view = Kronolith::getView('Day');
$title = $view->getTime($prefs->getValue('date_format'));
$print_view = (bool)Util::getFormData('print');
Horde::addScriptFile('tooltip.js', 'horde', true);
if (!$print_view) {
Horde::addScriptFile('popup.js', 'horde', true);
}
require KRONOLITH_TEMPLATES . '/common-header.inc';
if ($print_view) {
require $registry->get('templates', 'horde') . '/javascript/print.js';
} else {
require KRONOLITH_TEMPLATES . '/menu.inc';
}
echo '<div id="page">';
if (!$print_view) {
Kronolith::tabs();
}
$view->html(KRONOLITH_TEMPLATES);
echo '</div>';
if ($print_view) {
require KRONOLITH_TEMPLATES . '/calendar_titles.inc';
} else {
require KRONOLITH_TEMPLATES . '/panel.inc';
}
require $registry->get('templates', 'horde') . '/common-footer.inc';
|