]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/Crao/templates/navbar.tmpl
Valid XHTML code
[SourceForge/phpwiki.git] / themes / Crao / templates / navbar.tmpl
1 <?php // -*-html-*- ?>
2 <!-- $Id$ -->
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")?>" />
9 <?php } ?>
10 <div id="navbuttons">
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")) ?>
18 <?php } ?>
19 </td>
20 <td align="right" width="150">
21    <div id="search">
22     <?php if (!empty($user) && $user->isSignedIn()) { ?>
23      <?= WikiLink(_("UserPreferences"),'button',_("Preferences")) ?><?=$SEP?>
24 <?php } ?>
25 <?php if (!empty($user)) { ?>
26 <?php
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);
33 ?>
34 <?= WikiLink($UserCalPageTodayTitle, "button", _("Today")) ?><?=$SEP?>
35 <?php } ?>
36 <?php if (!empty($user) && $user->isAdmin()) { ?>
37 <?= WikiLink(_("PhpWikiAdministration"), "button", _("Admin")) ?><?=$SEP?>
38 <?php } ?>
39 <?php } ?>
40 <?= WikiLink(_("FindPage"), "button") ?><input type="text" id="livesearch" name="s" size="12" 
41    maxlength="256" 
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>
50 <?php } else { ?>
51    title="<?=_("TitleSearch")?>" />
52    </div>
53 <?php } ?>
54 </td></tr></table></div>
55 </form>
56