editpage.tmpl

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

TMPL
123
字号
<!-- -*-html-*- --><!-- $Id: editpage.tmpl,v 1.3 2004/06/14 11:26:51 rurban Exp $ --><?php$WidthI = HTML::input(array('type' => 'text',                            'size' => 3,                            'maxlength' => 4,                            'class' => "numeric",                            'name' => 'pref[editWidth]',                            'value' => $request->getPref('editWidth'),                            'onchange' => 'this.form.submit();'));$HeightI = HTML::input(array('type' => 'text',                             'size' => 3,                             'maxlength' => 4,                             'class' => "numeric",                             'name' => 'pref[editHeight]',                             'value' => $request->getPref('editHeight'),                             'onchange' => 'this.form.submit();'));$s = $WikiTheme->getButtonSeparator();?><?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.) */ ?><div class="wikitext" id="editform"><form method="post" name="editpage" id="editpage"      action="<?= $request->getPostURL() ?>"      accept-charset="<?=CHARSET?>">  <?php if (!empty($_GET['start_debug'])) echo '<input type="hidden" name="start_debug" value="1" >'; ?><table summary="Toolbar: Save, Preview, and edit warnings." class="toolbar" width="100%"       cellpadding="0" cellspacing="0" border="0"><tr align="bottom">  <td>    <?= $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 } ?>  </td>  <td>    <?= $PREVIEW_B ?>    <?php if ($SAVE_B) { ?>      <?=$s?> <?= $SAVE_B ?>    <?php } ?>  </td></tr></table><table width="100%">    <tr><td><?= $EDIT_TOOLBAR ?></td>        <td align="right"><div id="editarea-size">    <?=_("Size").':'?>    <b><?=_("H")?></b> <?=$HeightI?>    <b><?=_("W")?></b> <?=$WidthI?>    <noscript><?=Button("submit:", _("Adjust"), 'wikiaction')?></noscript>  </div></td></tr></table><br />  <?=$OLD_MARKUP_CB?>  <?=_("Use old markup")?></p><a name="editarea" id="editarea"><?=$EDIT_TEXTAREA?></a><br /><?=_("Summary")?>: <?= $SUMMARY_INPUT ?><br /><?= fmt("Author will be logged as %s.", HTML::em($user->getId())) ?><br /><?= $MINOR_EDIT_CB ?><?= fmt("I'm just doing minor edits. Please divert the usual logging to %s instead.",        WikiLink(_("RecentEdits"))) ?><br /><?php if (isset($PREVIEW_CONTENT)) { ?>  <hr />  <p><strong><?=_("Preview only!  Changes not saved.")?></strong></p>  <?= $PREVIEW_CONTENT ?>  <hr /><?php } ?><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></div><script language="JavaScript1.3" type="text/javascript"><!--if (document.getElementById) {  showOldMarkupRules(document.getElementById('useOldMarkup').checked);}// --></script><hr />

⌨️ 快捷键说明

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