]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/Crao/templates/navbar.tmpl
rcs_id no longer makes sense with Subversion global version number
[SourceForge/phpwiki.git] / themes / Crao / templates / navbar.tmpl
1 <?php // -*-php-*-
2 // rcs_id('$Id$');
3 ?>
4 <!-- The top navigation/search bar -->
5 <form action="<?= WikiURL(_("TitleSearch"))?>" target="_top"
6       method="get" accept-charset="<?=$charset?>" id="searchform" name="searchform">
7 <input type="hidden" name="auto_redirect" value="1" />
8 <?php if (! USE_PATH_INFO) { ?>
9   <input type="hidden" name="pagename" value="<?=_("TitleSearch")?>" />
10 <?php } ?>
11 <div id="navbuttons">
12 <table width="100%" cellpadding="0" cellspacing="0" border="0">
13 <tr valign="middle"><td align="left">
14 <?= WikiLink(_("RecentChanges"), "button") ?>
15 <?php if (!empty($revision)) { ?>
16 <?=$SEP?><?= Button("RelatedChanges", _("RelatedChanges")) ?>
17 <?=$SEP?><?= Button("LikePages", _("LikePages")) ?>
18 <?=$SEP?><?= Button("BackLinks", _("BackLinks")) ?>
19 <?php } ?>
20 </td>
21 <td align="right" width="150">
22    <div id="search">
23     <?php if (!empty($user) && $user->isSignedIn()) { ?>
24      <?= WikiLink(_("UserPreferences"),'button',_("Preferences")) ?><?=$SEP?>
25 <?php } ?>
26 <?php if (!empty($user)) { ?>
27 <?php
28       /* Today's calendar page for the user, if the Calender subpage is defined. */
29       $UserCalPageTitle = $user->getId() . SUBPAGE_SEPARATOR . _("Calendar");
30       $dbi = $request->getDbh();
31       if ($dbi->isWikiPage($UserCalPageTitle)) {
32         $UserCalPageTodayTitle = $UserCalPageTitle . SUBPAGE_SEPARATOR . strftime("%Y-%m-%d", time());
33         //$UserCalPageTodayUrl = WikiURL($UserCalPageTodayTitle);
34 ?>
35 <?= WikiLink($UserCalPageTodayTitle, "button", _("Today")) ?><?=$SEP?>
36 <?php } ?>
37 <?php if (!empty($user) && $user->isAdmin()) { ?>
38 <?= WikiLink(_("PhpWikiAdministration"), "button", _("Admin")) ?><?=$SEP?>
39 <?php } ?>
40 <?php } ?>
41 <?= WikiLink(_("FindPage"), "button") ?><input type="text" id="livesearch" name="s" size="12" 
42    maxlength="256" 
43    onfocus="if (this.value == '<?=_("Search")?>') {this.value = '';}"
44    onmouseout="window.status=''; return true;" 
45    onmouseover="window.status='<?=_("Search")?>'; return true;"
46 <?php if (ENABLE_LIVESEARCH) { ?>
47    title="<?=_("LiveSearch")?>" 
48    onKeypress="liveSearchStart()"
49    onblur="setTimeout('closeResults()',2000); if (this.value == '') {this.value = '<?=_("Search")?>';}" />
50    </div><br /><div align="left" id="LSResult"></div>
51 <?php } else { ?>
52    title="<?=_("TitleSearch")?>" />
53    </div>
54 <?php } ?>
55 </td></tr></table></div>
56 </form>
57