4 <div class="wikitext" id="viewform">
7 if (empty($revision)) $revision = $page->getCurrentRevision(false);
8 if ($page->get('locked') && !$user->isAdmin()) { ?>
9 <p><strong><?=_("Note:")?></strong>
10 <?=_("This page has been locked by the administrator and cannot be edited.")?></p>
13 <?php if (! $revision->isCurrent()) { ?>
14 <p><?=_("You are viewing an old revision of this page.")?>
15 <?= Button('viewsource', _("View the current version"), $page)?>.</p>
18 <!-- Dummy form else NS4 does not like the textarea -->
19 <form method="post" action="<?=$request->getPostURL()?>" accept-charset="<?=CHARSET?>">
20 <!-- wrap=virtual is not HTML4, but without it NS4 does not wrap long lines -->
21 <textarea class="wikiedit"
23 rows="<?=$request->getPref('editHeight')?>"
24 cols="<?=$request->getPref('editWidth')?>"
26 wrap="virtual"><?= $PAGE_SOURCE ?></textarea>
27 <?= HiddenInputs($request->getArgs()) ?>
30 <a href="<?=WikiURL($page,array('action'=>_("PageHistory")))?>"
31 ><?= $WikiTheme->getLastModifiedMessage($revision) ?></a>