3 <!-- The top navigation/search bar -->
4 <form action="<?= WikiURL(_("TitleSearch"))?>" target="_top"
5 method="get" accept-charset="<?=$charset?>" id="searchform" name="searchform">
6 <input type="hidden" name="auto_redirect" value="1" />
7 <?php if (! USE_PATH_INFO) { ?>
8 <input type="hidden" name="pagename" value="<?=_("TitleSearch")?>" />
11 <table width="100%" cellpadding="0" cellspacing="0" border="0">
12 <tr valign="middle"><td align="left">
13 <?= WikiLink(_("RecentChanges"), "button") ?>
14 <?php if (!empty($revision)) { ?>
15 <?=$SEP?><?= Button("RelatedChanges", _("RelatedChanges")) ?>
16 <?=$SEP?><?= Button("LikePages", _("LikePages")) ?>
17 <?=$SEP?><?= Button("BackLinks", _("BackLinks")) ?>
20 <td align="right" width="150">
22 <?php if (!empty($user) && $user->isSignedIn()) { ?>
23 <?= WikiLink(_("UserPreferences"),'button',_("Preferences")) ?><?=$SEP?>
25 <?php if (!empty($user)) { ?>
27 /* Today's calendar page for the user, if the Calender subpage is defined. */
28 $UserCalPageTitle = $user->getId() . SUBPAGE_SEPARATOR . _("Calendar");
29 $dbi = $request->getDbh();
30 if ($dbi->isWikiPage($UserCalPageTitle)) {
31 $UserCalPageTodayTitle = $UserCalPageTitle . SUBPAGE_SEPARATOR . strftime("%Y-%m-%d", time());
32 //$UserCalPageTodayUrl = WikiURL($UserCalPageTodayTitle);
34 <?= WikiLink($UserCalPageTodayTitle, "button", _("Today")) ?><?=$SEP?>
36 <?php if (!empty($user) && $user->isAdmin()) { ?>
37 <?= WikiLink(_("PhpWikiAdministration"), "button", _("Admin")) ?><?=$SEP?>
40 <?= WikiLink(_("FindPage"), "button") ?><input type="text" id="livesearch" name="s" size="12"
42 onfocus="if (this.value == '<?=_("Search")?>') {this.value = '';}"
43 onmouseout="window.status=''; return true;"
44 onmouseover="window.status='<?=_("Search")?>'; return true;"
45 <?php if (ENABLE_LIVESEARCH) { ?>
46 title="<?=_("LiveSearch")?>"
47 onKeypress="liveSearchStart()"
48 onblur="setTimeout('closeResults()',2000); if (this.value == '') {this.value = '<?=_("Search")?>';}" />
49 </div><br /><div align="left" id="LSResult"></div>
51 title="<?=_("TitleSearch")?>" />
54 </td></tr></table></div>