]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/blog/templates/actionbar.tmpl
new blog theme: Kubrick
[SourceForge/phpwiki.git] / themes / blog / templates / actionbar.tmpl
1 <?php // -*-php-*-
2   rcs_id('$Id: actionbar.tmpl,v 1.1 2004-12-14 21:30:37 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 $Sep = $WikiTheme->getButtonSeparator();
10 ?>
11 <?php /* I would like not to have to use these tables, and managed to
12        * get this stuff to work more or less correctly using
13        * CSSs float:left; and float:right;.  However float:right; seems
14        * to cause MSIE4.01/NT to hang. 
15        * So, we use tables...  */ ?>
16 <table summary="Toolbar 1: Page actions and user login."
17        width="100%" cellpadding="0" cellspacing="0" border="0">
18 <tr valign="baseline">
19   <td>
20   <div id="actionbuttons">
21     <?= $EditB ?>
22     <?php if ($user->isAdmin() or mayAccessPage('change',$page->getName())) { ?>
23       <?=$Sep?><?= Button($page->get('locked') ? 'unlock' : 'lock') ?>
24     <?php if (ENABLE_PAGEPERM) { ?>
25       <?=$Sep?><?= Button('chown') ?>
26       <?=$Sep?><?= Button('setacl') ?>
27     <?php }} ?>
28     <?php if ($user->isAdmin() or mayAccessPage('remove',$page->getName())) { ?>
29       <?=$Sep?><?= Button('remove') ?>
30     <?php } ?>
31     <?=$Sep?><?= Button("PageHistory", _("PageHistory")) ?>
32     <?=$Sep?><?= Button("diff") ?> 
33     <?=$Sep?><?= Button("PageInfo", _("PageInfo")) ?>
34 <?php if ((DEBUG and $request->getArg('action') == 'browse') || $user->isAdmin()) { ?> 
35     <!-- Buttons really only for debugging -->
36     <?=$Sep?><?= Button("DebugInfo", _("DebugInfo")) ?>
37     <?=$Sep?><?= Button("PageDump", _("PageDump")) ?>
38 <?php
39     if (DEBUG & _DEBUG_SQL and USECACHE) {
40       $PurgeCache = Button(array('nocache' => 'purge'),
41                      _("PurgeHtmlCache"), $page->getName());
42       $PurgeCache->addTooltip(_("Purge HTML cache for this page. Regenerate from WikiMarkup when next accessed."));
43 ?>
44       <?=$Sep?><?= $PurgeCache ?>
45 <?php } ?>
46     <!-- End debugging buttons -->
47 <?php } ?>
48   </div>
49   </td>
50   <td>
51 <!--{{{ Search-->
52 <div id="searchholder">
53 <form id="searchform" name="searchform" action="<?= WikiURL(_("TitleSearch"))?>"
54       method="get" accept-charset="<?=CHARSET?>">
55 <input type="text" id="livesearch" name="s" size="12" maxlength="256"
56    title="Search" value="Search" />
57    <br/>
58    <!-- Insert LiveSearch or similar code here -->
59    <div id="LSResult">
60    </div>
61    <input type="hidden" name="auto_redirect" value="0" />
62 </form>
63 </div>
64 <!--}}}-->
65   </td>
66 </tr>
67 </table>