]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/blog/templates/viewsource.tmpl
rcs_id no longer makes sense with Subversion global version number
[SourceForge/phpwiki.git] / themes / blog / templates / viewsource.tmpl
1 <?php // -*-php-*-
2 // rcs_id('$Id$');
3 ?>
4 <?php 
5 if (empty($revision)) $revision = $page->getCurrentRevision(false);
6 if ($page->get('locked') && !$user->isAdmin()) { ?>
7   <p><strong><?=_("Note:")?></strong>
8   <?=_("This page has been locked by the administrator and cannot be edited.")?>
9   </p>
10   <?php } ?>
11 <?php if (! $revision->isCurrent()) { ?>
12   <p><?=_("You are viewing an old revision of this page.")?>
13   <?= Button('edit', _("View the current version"), $page) ?>.
14   </p>
15   <?php } ?>
16 <!-- Dummy form else NS4 does not like the textarea -->
17 <form method="post" id="editcontent" 
18       action="<?=$request->getPostURL()?>" accept-charset="<?=CHARSET?>">
19 <?php /* To clear beyond a larger logo, such as in the Hawaiian theme */ ?>
20 <!br clear="all" class="clear-floats" />
21 <textarea class="wikiedit"
22 name="content" 
23 rows="<?=$request->getPref('editHeight')?>"
24 cols="<?=$request->getPref('editWidth')?>"
25 readonly="readonly"
26 ><?= $PAGE_SOURCE ?></textarea>
27 <?=$HIDDEN_INPUTS?>
28 </form>