commit 7c7d9860730dcab6243177eada936bd10091a95e
parent ca9ead42476c4500656100d2571ae341259957ba
Author: dankert <devnull@localhost>
Date: Mon, 29 Nov 2004 22:30:43 +0100
Korrektur Checkboxen
Diffstat:
3 files changed, 45 insertions(+), 8 deletions(-)
diff --git a/themes/default/pages/html/file/pub.tpl.php b/themes/default/pages/html/file/pub.tpl.php
@@ -0,0 +1,36 @@
+<?php include( $tpl_dir.'header.tpl.php') ?>
+
+<center>
+
+<form action="<?php echo $self ?>" method="post" target="_self">
+
+<input type="hidden" name="<?php echo session_name() ?>" value="<?php echo session_id() ?>">
+<input type="hidden" name="subaction" value="pub2">
+
+<table class="main" width="90%" cellspacing="0" cellpadding="4">
+
+<tr>
+ <th colspan="2"><?php echo lang('GLOBAL_PUBLISH') ?></th>
+</tr>
+
+<tr>
+ <td width="50%" class="f1"> </td>
+ <td width="50%" class="f1"> </td>
+</tr>
+
+<tr>
+ <td class="act" colspan="2"><input type="submit" class="submit" value="<?php echo lang('GLOBAL_PUBLISH') ?>"></td>
+</tr>
+
+</table>
+
+</form>
+
+
+</center>
+
+<script name="JavaScript" type="text/javascript"><!--
+document.forms[0].subdirs.focus();
+//--></script>
+
+<?php include( $tpl_dir.'footer.tpl.php') ?>+
\ No newline at end of file
diff --git a/themes/default/pages/html/folder/pub.tpl.php b/themes/default/pages/html/folder/pub.tpl.php
@@ -14,9 +14,9 @@
</tr>
<tr>
-<td width="50%" class="f1"><input type="checkbox" name="pages" value="1" checked="checked"><?php echo lang('GLOBAL_pages') ?><br>
- <input type="checkbox" name="files" value="1" checked="checked"><?php echo lang('GLOBAL_files') ?></td>
-<td width="50%" class="f1"><input type="checkbox" name="subdirs" value="1"><?php echo lang('GLOBAL_PUBLISH_WITH_SUBDIRS') ?></td>
+<td width="50%" class="f1"><?php echo Html::checkbox('pages',true) ?> <?php echo lang('GLOBAL_pages') ?><br>
+ <?php echo Html::checkbox('files',true) ?> <?php echo lang('GLOBAL_files') ?></td>
+<td width="50%" class="f1"><?php echo Html::checkbox('subdirs',false) ?> <?php echo lang('GLOBAL_PUBLISH_WITH_SUBDIRS') ?></td>
</tr>
<tr>
diff --git a/themes/default/pages/html/page/pub.tpl.php b/themes/default/pages/html/page/pub.tpl.php
@@ -5,21 +5,21 @@
<form action="<?php echo $self ?>" method="post" target="_self">
<input type="hidden" name="<?php echo session_name() ?>" value="<?php echo session_id() ?>">
-<input type="hidden" name="subaction" value="pub">
-<input type="hidden" name="go" value="1">
+<input type="hidden" name="subaction" value="pub2">
<table class="main" width="90%" cellspacing="0" cellpadding="4">
<tr>
- <th><?php echo lang('PUBLISH') ?></th>
+ <th colspan="2"><?php echo lang('GLOBAL_PUBLISH') ?></th>
</tr>
<tr>
- <td class="f1"><input type="checkbox" name="files" value="1" checked="checked"><?php echo lang('files') ?></td>
+<td width="50%" class="f1"><?php echo Html::checkbox('files',false,false) ?> <?php echo lang('GLOBAL_files') ?></td>
+<td width="50%" class="f1"> </td>
</tr>
<tr>
- <td class="act"><input type="submit" class="submit" value="<?php echo lang('PUBLISH') ?>"></td>
+<td class="act" colspan="2"><input type="submit" class="submit" value="<?php echo lang('GLOBAL_PUBLISH') ?>"></td>
</tr>
</table>