editpage.tmpl

来自「PhpWiki是sourceforge的一个开源项目」· TMPL 代码 · 共 105 行

TMPL
105
字号
<!-- -*-html-*- --><!-- $Id: editpage.tmpl,v 1.6 2005/01/25 07:22:49 rurban Exp $ --><?php if (isset($PREVIEW_CONTENT)) { ?>  <p><strong><?=_("Preview only!  Changes not saved.")?></strong><!-- FIXME: it would be nice to put a link to the #editarea anchor below,     but it does not work currently with the <base> declared in top.tmpl.     I think we need to do away with using <base> altogether... -->     <?= fmt("Please continue editing.  (You'll find your %s at the bottom of the page.)",          /* HTML::a(array("href" => "#editarea"), */ _("edit area") /*)  */) ?>  </p>  <hr class="printer" noshade="noshade" />  <?= $PREVIEW_CONTENT ?>  <hr class="printer" noshade="noshade" /><?php } ?><?= $PAGE_LOCKED_MESSAGE ?><?= $CONCURRENT_UPDATE_MESSAGE ?><?php if (! $IS_CURRENT) { ?>  <p><strong><?=_("Warning: You are editing an old revision.")?>        <?=_("Saving this page will overwrite the current version.")?></strong></p><?php } ?><?php /* * FIXME: Hack!  * The funky URL used for the form action parameter is bogus. * This is needed, otherwise the redirect to the real browser * page won't work with some browsers. (NS4 and Mozilla 0.97 won't accept * a redirect from a page to itself.) */ ?><form method="post" id="editpage" name="editpage"      action="<?= $request->getPostURL() ?>"      accept-charset="<?=CHARSET?>">  <?php if (!empty($_GET['start_debug'])) echo '<input type="hidden" name="start_debug" value="1" >'; ?>  <?php /* To clear beyond a larger logo, such as in the Hawaiian theme */ ?>  <br clear="all" class="clear-floats" />  <table width="100%">    <tr><td><?= $EDIT_TOOLBAR ?></td>        <td align="right"><div id="editarea-size">    <?=_("Size").':'?>    <label for="pref[editHeight]"><b><?=_("H")?></b></label> <?=$HEIGHT_PREF?>     <label for="pref[editWidth]"><b><?=_("W")?></b></label> <?=$WIDTH_PREF?>    <noscript><?=Button("submit:", _("Adjust"), 'wikiaction')?></noscript>  </div></td></tr></table>  <fieldset class="editarea">  <legend><?=_("Page Content: ")?></legend>  <a name="editarea"></a><?=$EDIT_TEXTAREA?></fieldset><!-- FIXME: fix layout, move CSS to CSS --> <fieldset class="editarea"><legend><?=_("Summary").':'?></legend><br /> <?=$SUMMARY_INPUT?></fieldset>  <fieldset class="toolbar">     <?=$MINOR_EDIT_CB ?> <label for="edit[minor_edit]"><?=_("This is a minor change.")?></label>&nbsp;&nbsp;    <?=$OLD_MARKUP_CB?>  <label for="useOldMarkup"><?=_("Use old markup")?></label> <?=$OLD_MARKUP_CONVERT?>  </fieldset>  <fieldset class="toolbar">    <?= $PREVIEW_B ?>    <?php if ($SAVE_B)  { ?>       <?=$SEP?><?= $SAVE_B ?>    <?php } ?>  </fieldset>  <fieldset class="toolbar">    <?=$AUTHOR_MESSAGE?>    <label><?= Template('signin', array('FORMNAME' => 'editpage')) ?></label>  </fieldset><?php if ($user->isAdmin()) { ?>  <fieldset class="toolbar">    <?= $LOCKED_CB ?> <label for="edit[lock]"><?=_("Locked")?></label>  </fieldset><?php } ?><hr noshade="noshade" /><script language="JavaScript1.3" type="text/javascript"><!--function showOldMarkupRules(show) {  if (document.getElementById) {    if (!show) {      document.getElementById('newMarkup').style.display="block";      document.getElementById('oldMarkup').style.display="none";    } else {      document.getElementById('newMarkup').style.display="none";      document.getElementById('oldMarkup').style.display="block";    }  }}// --></script><div id="oldMarkup" class="wiki-edithelp"><!-- FIXME: do we need this at all?  If so, it could probably be moved to TextFormattingRules --><p><?= fmt("See %s tips for editing.", WikiLink(_("GoodStyle"))) ?></p><?plugin IncludePage page=_("OldTextFormattingRules") section=_("Synopsis") quiet=1?></div><div id="newMarkup" class="wiki-edithelp"><!-- FIXME: do we need this at all?  If so, it could probably be moved to TextFormattingRules --><p><?= fmt("See %s tips for editing.", WikiLink(_("GoodStyle"))) ?></p><?plugin IncludePage page=_("TextFormattingRules") section=_("Synopsis") quiet=1?></div><?=$HIDDEN_INPUTS?></form><script language="JavaScript1.3" type="text/javascript"><!--if (document.getElementById) {  showOldMarkupRules(document.getElementById('useOldMarkup').checked);}// --></script>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?