openrat-cms

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

commit 1759e6133a879ed74c30083d65dd8118c950b6e0
parent 5aff1a06574a03d6f8e229ff6236a7038af5f20e
Author: dankert <devnull@localhost>
Date:   Mon, 20 Dec 2004 23:30:03 +0100

Alle markieren per Javascript

Diffstat:
themes/default/pages/html/object/rights.tpl.php | 29+++++++++++++++++++++++++++++
1 file changed, 29 insertions(+), 0 deletions(-)

diff --git a/themes/default/pages/html/object/rights.tpl.php b/themes/default/pages/html/object/rights.tpl.php @@ -99,6 +99,9 @@ </tr> <?php } ?> <tr> + <td><a href="javascript:mark();"><?php echo lang('FOLDER_MARK_ALL') ?></a> | <a href="javascript:unmark();"><?php echo lang('FOLDER_UNMARK_ALL') ?></a> | <a href="javascript:flip();"><?php echo lang('FOLDER_FLIP_MARK') ?></a></td> +</tr> +<tr> <td class="act" colspan="3"><input type="submit" class="submit" value="<?php echo lang('GLOBAL_ADD') ?>"></td> </tr> @@ -107,6 +110,32 @@ </form> +<script name="JavaScript"> +<!-- +function mark() +{ +<?php foreach( $show as $t ) { if($t=='read') continue; ?> +document.forms[0].elements['<?php echo $t ?>'].checked=true; +<?php } ?> +} +function unmark() +{ +<?php foreach( $show as $t ) { if($t=='read') continue; ?> +document.forms[0].elements['<?php echo $t ?>'].checked=false; +<?php } ?> +} +function flip() +{ +<?php foreach( $show as $t ) { if($t=='read') continue; ?> +if (document.forms[0].elements['<?php echo $t ?>'].checked==false) + document.forms[0].elements['<?php echo $t ?>'].checked=true; +else document.forms[0].elements['<?php echo $t ?>'].checked=false; +<?php } ?> +} +//--> +</script> + + </center> <?php include( $tpl_dir.'footer.tpl.php') ?> \ No newline at end of file