]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/Portland/templates/viewsource.tmpl
More infiltration of new object-based HTML generation.
[SourceForge/phpwiki.git] / themes / Portland / templates / viewsource.tmpl
1 <!-- -*-html-*- -->
2 <!-- $Id: viewsource.tmpl,v 1.2 2002-01-21 06:55:47 dairiki Exp $ -->
3 <p><strong><?=_("Note:")?></strong>
4 <?=_("This page has been locked by the administrator and cannot be edited.")?>
5 <?php if (! $IS_CURRENT) { ?>
6   <br /><?=_("You are viewing an old revision of this page.")?>
7   <?= $ButtonFactory->makeActionButton('edit', _("View the current version"), $page->getCurrentRevision())?>.
8 <?php } ?>
9 </p>
10 <!-- Dummy form else NS4 doesn't like the textarea -->
11 <form method="post" action="<?= WikiUrl($PAGE) ?>" accept-charset="<?=CHARSET?>">
12 <!-- wrap=virtual is not HTML4, but without it NS4 doesn't wrap long lines -->
13 <textarea class="wikiedit"
14           name="content"
15           rows="<?=$EDIT_AREA_HEIGHT?>"
16           cols="<?=$EDIT_AREA_WIDTH?>"
17           readonly="readonly"
18           wrap="virtual"><?= $FORMVARS['content'] ?></textarea>
19 <?php
20   $mtime = $Theme->formatDateTime($revision->get('mtime'));
21   $PageHistoryB = $ButtonFactory->makeLabelActionPageButton($mtime, _("PageHistory"));
22
23   if ($IS_CURRENT)
24       $LastModifiedMsg = fmt("(last edited %s)", $PageHistoryB);
25   else
26       $LastModifiedMsg = fmt("(version %s, saved on %s)", $VERSION, $PageHistoryB);
27
28 ?>
29 <input type="hidden" name="action" value="browse" />
30 <input type="hidden" name="pagename" value="<?=$FORMVARS['pagename']?>" />
31 <input type="hidden" name="version" value="<?=$FORMVARS['version']?>" />
32 </form>
33 <hr />
34 <?= $LastModifiedMsg ?><br />