2 rcs_id('$Id: navbar.tmpl,v 1.20 2003-11-20 20:05:53 carstenklapp Exp $');
4 $s = $Theme->getButtonSeparator();
6 <!-- The top navigation/search bar -->
7 <form action="<?= WikiURL(_("TitleSearch"))?>" target="_top"
8 method="get" accept-charset="<?=CHARSET?>">
10 <?= WikiLink(_("RecentChanges"), "button") ?>
11 <?=$s?><?= WikiLink(_("FindPage"), "button") ?>
12 <?=$s?><input type="hidden" name="auto_redirect" value="1" />
13 <?php if (! USE_PATH_INFO) { ?>
14 <input type="hidden" name="pagename" value="<?=_("TitleSearch")?>" />
16 <input type="text" name="s" size="12" maxlength="256"
17 title='<?=_("Quick Search")?>'
18 onmouseover="window.status='<?=_("Quick Search")?>'; return true;"
19 onmouseout="window.status=''; return true;" />
20 <?php if (!empty($revision)) { ?>
21 <?=$s?><?= Button(_("LikePages")) ?>
22 <?=$s?><?= Button(_("BackLinks")) ?>
24 <?php if (!empty($user)) { ?>
26 /* Today's calendar page for the user, if the Calender subpage is defined. */
27 $UserCalPageTitle = $user->getId() . SUBPAGE_SEPARATOR . _("Calendar");
28 $dbi = $request->getDbh();
29 if ($dbi->isWikiPage($UserCalPageTitle)) {
30 $UserCalPageTodayTitle = $UserCalPageTitle . SUBPAGE_SEPARATOR . strftime("%Y-%m-%d", time());
31 $UserCalPageTodayUrl = WikiURL($UserCalPageTodayTitle);
33 <?=$s?><?= WikiLink($UserCalPageTodayUrl, "button", _("Today")) ?>
35 <?php if (!empty($user) && $user->isAdmin()) { ?>
36 <?=$s?><?= WikiLink(_("PhpWikiAdministration"), "button", _("Admin")) ?>