openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 7c7d9860730dcab6243177eada936bd10091a95e
parent ca9ead42476c4500656100d2571ae341259957ba
Author: dankert <devnull@localhost>
Date:   Mon, 29 Nov 2004 22:30:43 +0100

Korrektur Checkboxen

Diffstat:
themes/default/pages/html/file/pub.tpl.php | 37+++++++++++++++++++++++++++++++++++++
themes/default/pages/html/folder/pub.tpl.php | 6+++---
themes/default/pages/html/page/pub.tpl.php | 10+++++-----
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">&nbsp;</td> + <td width="50%" class="f1">&nbsp;</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) ?>&nbsp;<?php echo lang('GLOBAL_pages') ?><br> + <?php echo Html::checkbox('files',true) ?>&nbsp;<?php echo lang('GLOBAL_files') ?></td> +<td width="50%" class="f1"><?php echo Html::checkbox('subdirs',false) ?>&nbsp;<?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) ?>&nbsp;<?php echo lang('GLOBAL_files') ?></td> +<td width="50%" class="f1">&nbsp;</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>