2 <!-- $Id: viewsource.tmpl,v 1.5 2002-01-26 05:51:24 dairiki Exp $ -->
3 <p><strong><?=_("Note:")?></strong>
4 <?=_("This page has been locked by the administrator and cannot be edited.")?>
5 <?php if (! $revision->isCurrent()) { ?>
6 <br /><?=_("You are viewing an old revision of this page.")?>
7 <?= $ButtonFactory->makeActionButton('edit', _("View the current version"), $page->getName())?>.
10 <!-- Dummy form else NS4 doesn't like the textarea -->
11 <form method="post" action="<?=BASE_URL?>" accept-charset="<?=CHARSET?>">
12 <!-- wrap=virtual is not HTML4, but without it NS4 doesn't wrap long lines -->
13 <textarea class="wikiedit"
15 rows="<?=$request->getPref('editHeight')?>"
16 cols="<?=$request->getPref('editWidth')?>"
18 wrap="virtual"><?= $FORMVARS['content'] ?></textarea>
20 $mtime = $Theme->formatDateTime($revision->get('mtime'));
21 $PageHistoryB = $ButtonFactory->makeLabelActionPageButton($mtime, _("PageHistory"));
23 if ($revision->isCurrent())
24 $LastModifiedMsg = fmt("(last edited %s)", $PageHistoryB);
26 $LastModifiedMsg = fmt("(version %s, saved on %s)",
27 $revision->getVersion(), $PageHistoryB);
30 <input type="hidden" name="action" value="browse" />
31 <input type="hidden" name="pagename" value="<?=$FORMVARS['pagename']?>" />
32 <input type="hidden" name="version" value="<?=$FORMVARS['version']?>" />
35 <?= $LastModifiedMsg ?><br />