]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/default/templates/viewsource.tmpl
(committed the wrong file) Added page revision info and links from browse.tmpl.
[SourceForge/phpwiki.git] / themes / default / templates / viewsource.tmpl
1 <!-- -*-html-*- -->
2 <!-- $Id: viewsource.tmpl,v 1.3 2002-01-20 02:54:43 carstenklapp Exp $ -->
3 <p><strong><?=_("Note:")?></strong>
4 <?=_("This page has been locked by the administrator and cannot be edited.")?>
5 </p>
6 <?php if (! $IS_CURRENT) { ?>
7   <p><?=_("You are viewing an old revision of this page.")?>
8   <?= $ButtonFactory->makeActionButton('edit', _("View the current version"), $page->getCurrentRevision())?>.
9   <hr class="ignore" noshade="noshade" />
10 <?php } ?>
11 <!-- Dummy form else NS4 doesn't like the textarea -->
12 <form method="post" action="<?= WikiUrl($PAGE) ?>" accept-charset="<?=CHARSET?>">
13 <!-- wrap=virtual is not HTML4, but without it NS4 doesn't wrap long lines -->
14 <textarea class="wikiedit"
15           name="content"
16           rows="<?=$EDIT_AREA_HEIGHT?>"
17           cols="<?=$EDIT_AREA_WIDTH?>"
18           readonly="readonly"
19           wrap="virtual"><?= $FORMVARS['content'] ?></textarea>
20 <?php
21   $mtime = $Theme->formatDateTime($revision->get('mtime'));
22   if ($IS_CURRENT)
23       $LastModifiedMsg = sprintf(_("Last edited on %s."), $mtime);
24   else
25       $LastModifiedMsg = __sprintf("Version %s, saved on %s.",
26                                    $VERSION, $mtime);
27 ?>
28 <p><?= $LastModifiedMsg ?></p>
29 <hr class="toolbar" noshade="noshade" />
30 <?= new WikiTemplate('actionbar') ?>
31 <!-- RELATEDPAGES were here. -->
32 <input type="hidden" name="action" value="browse" />
33 <input type="hidden" name="pagename" value="<?=$FORMVARS['pagename']?>" />
34 <input type="hidden" name="version" value="<?=$FORMVARS['version']?>" />
35 </form>