2 rcs_id('$Id: actionbar.tmpl,v 1.36 2005-04-23 11:43:44 rurban Exp $');
4 <?php /* I would like not to have to use these tables, and managed to
5 * get this stuff to work more or less correctly using
6 * CSSs float:left; and float:right;. However float:right; seems
7 * to cause MSIE4.01/NT to hang.
8 * So, we use tables... */ ?>
9 <table summary="Toolbar 1: Page actions and user login."
10 width="100%" cellpadding="0" cellspacing="0" border="0">
11 <tr valign="baseline">
13 <div id="actionbuttons">
14 <?php if ((!$page->get('locked') || $user->isAdmin()) and $revision) { ?>
15 <?= Button("edit", $revision->isCurrent() ? _("Edit") : _("Edit Old Revision")) ?>
17 <?= Button("viewsource", _("View Source")) ?>
19 <?php if ($user->isAdmin() or mayAccessPage('change', $page->getName())) { ?>
20 <?=$SEP?><?= Button($page->get('locked') ? 'unlock' : 'lock') ?>
21 <?php if (ENABLE_PAGEPERM and mayAccessPage('change', $page->getName())) { ?>
22 <?=$SEP?><?= Button('chown') ?>
23 <?=$SEP?><?= Button('setacl') ?>
25 <?php if ($user->isAdmin() or mayAccessPage('remove', $page->getName())) { ?>
26 <?=$SEP?><?= Button('revert',_("Revert"), $revision->isCurrent() ? $page->GetRevisionBefore() : $revision) ?>
27 <?=$SEP?><?= Button('remove') ?>
29 <?=$SEP?><?= Button("PageHistory", _("PageHistory")) ?>
30 <?=$SEP?><?= Button("diff") ?>
31 <?=$SEP?><?= Button("PageInfo", _("PageInfo")) ?>
32 <?php if ((DEBUG and $request->getArg('action') == 'browse') || $user->isAdmin()) { ?>
33 <!-- Buttons really only for debugging -->
34 <?=$SEP?><?= Button("DebugInfo", _("DebugInfo")) ?>
35 <?=$SEP?><?= Button("PageDump", _("PageDump")) ?>
37 if (DEBUG & _DEBUG_SQL and USECACHE) {
38 $PurgeCache = Button(array('nocache' => 'purge'),
39 _("PurgeHtmlCache"), $page->getName());
40 $PurgeCache->addTooltip(_("Purge HTML cache for this page. Regenerate from WikiMarkup when next accessed."));
42 <?=$SEP?><?= $PurgeCache ?>
44 <!-- End debugging buttons -->
46 <?php if (defined('USE_EXTERNAL_HTML2PDF') and USE_EXTERNAL_HTML2PDF) { ?>
47 <?=$SEP?><?= Button("pdf") ?>
51 <?php if (empty($NOSIGNIN)) { ?>
53 /* valign="top" is not ideal here but required to get reasonable alignment
54 with the other action buttons in some browsers, like OmniWeb and Safari
55 (therefore probably Konquorer too) */ ?>
56 <td align="right" valign="top">
57 <div id="signin"><?= Template('signin') ?></div>