function _buildTree(&$tree, $indent = 0, $parent = null)
{
- require_once dirname(__FILE__) . '/../base.php';
-
$tree->addNode($parent . '__add',
$parent,
_("Enter Time"),
$indent + 1,
false,
array('icon' => 'hermes.png',
- 'icondir' => $GLOBALS['registry']->getImageDir(),
'url' => Horde::applicationUrl('entry.php')));
$tree->addNode($parent . '__search',
$parent,
$indent + 1,
false,
array('icon' => 'search.png',
- 'icondir' => $GLOBALS['registry']->getImageDir('horde'),
'url' => Horde::applicationUrl('search.php')));
}
{
global $registry, $prefs;
- require_once dirname(__FILE__) . '/../base.php';
-
Horde::addScriptFile('popup.js', 'horde', true);
$entry = Horde::applicationUrl('entry.php');
- $icondir = $registry->getImageDir();
$tree->addNode($parent . '__start',
$parent,
$indent + 1,
false,
array('icon' => 'timer-start.png',
- 'icondir' => $icondir,
'url' => '#',
'onclick' => "popup('" . Horde::applicationUrl('start.php') . "', 400, 100); return false;"));
$indent + 1,
false,
array('icon' => 'timer-stop.png',
- 'icondir' => $icondir,
'url' => Horde_Util::addParameter($entry, 'timer', $i),
'target' => 'horde_main'));
}