]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/blog/templates/actionbar.tmpl
livesearch.js support, fix calendar init
[SourceForge/phpwiki.git] / themes / blog / templates / actionbar.tmpl
1 <?php // -*-php-*-
2   rcs_id('$Id: actionbar.tmpl,v 1.3 2005-02-03 05:11:41 rurban Exp $');
3 if ((!$page->get('locked') || $user->isAdmin()) and $revision)
4     $EditB = Button("edit",
5                     $revision->isCurrent() ? _("Edit") : _("Edit Old Revision"));
6  else
7      $EditB = Button("viewsource", _("View Source"));
8 ?>
9 <table summary="Toolbar: Mani Navigation"
10        width="100%" cellpadding="0" cellspacing="0" border="0">
11 <tr valign="baseline">
12   <td>
13   <div class="actionbuttons">
14     <?= WikiLink(HOME_PAGE, "known",_("Home")) ?>
15     <?=$SEP?><?= WikiLink(_("About")) ?>
16     <?=$SEP?><?= WikiLink(_("BlogArchives"),'',_("Archives")) ?>
17     <?=$SEP?><?= WikiLink(_("Photos")) ?>
18     <?=$SEP?><?= WikiLink(_("HowTo")) ?>
19     <?=$SEP?><?= WikiLink(_("RecentChanges")) ?>
20     <?=$SEP?><?= Button("PageInfo", _("Info")) ?>
21     <?php if (!$revision and $user->isAuthenticated()) { ?>
22       <?= $SEP?><?= $EditB ?>
23     <?php } ?>
24   </div>
25   </td>
26   <td>
27 <!--{{{ Search-->
28 <div id="searchholder">
29 <form id="searchform" name="searchform" action="<?= WikiURL(_("TitleSearch"))?>"
30       method="get" accept-charset="<?=$charset?>">
31 <input type="text" id="livesearch" name="s" size="12" maxlength="256"
32    title="<?=_("TitleSearch")?>" value="<?=_("Search")?>"
33    onfocus="if (this.value == '<?=_("Search")?>') {this.value = '';}"
34    onmouseout="window.status=''; return true;" 
35    onmouseover="window.status='<?=_("Search")?>'; return true;"
36 <?php if (defined("ENABLE_LIVESEARCH") and ENABLE_LIVESEARCH) { ?>
37    onKeypress="liveSearchStart()"
38    onblur="setTimeout('closeResults()',2000); if (this.value == '') {this.value = '<?=_("Search")?>';}" />
39    <br/>
40    <div id="LSResult">
41    </div>
42 <?php } else { echo " />"; } ?>
43 </form>
44 </div>
45 <!--}}}-->
46   </td>
47 </tr>
48 </table>
49 <div id="pagetrail"><p><?=_("Page Trail")?>: <?plugin PageTrail numberlinks=7 ?></p></div>