logo       

CVS: phpwiki/themes/Crao/templates editpage.tmpl,1.5,1.6: msg#00128

web.wiki.phpwiki.checkins

Subject: CVS: phpwiki/themes/Crao/templates editpage.tmpl,1.5,1.6

Update of /cvsroot/phpwiki/phpwiki/themes/Crao/templates
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv925/themes/Crao/templates

Modified Files:
editpage.tmpl
Log Message:
replace php vers with tags, better accessibility by using labels

Index: editpage.tmpl
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/themes/Crao/templates/editpage.tmpl,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -2 -b -p -d -r1.5 -r1.6
--- editpage.tmpl 4 Jan 2005 20:14:59 -0000 1.5
+++ editpage.tmpl 25 Jan 2005 07:22:49 -0000 1.6
@@ -1,24 +1,4 @@
<!-- -*-html-*- -->
<!-- $Id$ -->
-<?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 if (isset($PREVIEW_CONTENT)) { ?>
<p><strong><?=_("Preview only! Changes not saved.")?></strong>
@@ -49,4 +29,5 @@ $s = $WikiTheme->getButtonSeparator();
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" />
@@ -55,6 +36,6 @@ $s = $WikiTheme->getButtonSeparator();
<td align="right"><div id="editarea-size">
<?=_("Size").':'?>
- <b><?=_("H")?></b> <?=$HeightI?>
- <b><?=_("W")?></b> <?=$WidthI?>
+ <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>
@@ -69,22 +50,20 @@ $s = $WikiTheme->getButtonSeparator();
</fieldset>
<fieldset class="toolbar">
- <?=$MINOR_EDIT_CB ?> <?=_("This is a minor change.")?>&nbsp;&nbsp;
- <?=$OLD_MARKUP_CB?> <?=_("Use old markup")?>
+ <?=$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) { ?>
- <?=$s?><?= $SAVE_B ?>
+ <?=$SEP?><?= $SAVE_B ?>
<?php } ?>
</fieldset>
<fieldset class="toolbar">
- <?= $user->isSignedIn()
- ? ''
- : fmt("Author will be logged as %s.", HTML::em($user->getId())) ?>
+ <?=$AUTHOR_MESSAGE?>
<label><?= Template('signin', array('FORMNAME' => 'editpage')) ?></label>
</fieldset>
-<?php if ($user->isadmin()) { ?>
+<?php if ($user->isAdmin()) { ?>
<fieldset class="toolbar">
- <label><?= $LOCKED_CB ?> <?=_("Locked")?></label>
+ <?= $LOCKED_CB ?> <label for="edit[lock]"><?=_("Locked")?></label>
</fieldset>
<?php } ?>



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise