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