openrat-cms

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

commit 3c9e410ee4c2f9eebb2ca7248d04c17e5c11411e
parent cfb46fc4a24d73a8e9d50e1dd8376c1855cfc721
Author: dankert <devnull@localhost>
Date:   Sun,  5 Feb 2006 12:32:34 +0100

Hinzuf?gen: Methode "select()"

Diffstat:
themes/default/templates/folder/select.tpl.src.php | 91+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 91 insertions(+), 0 deletions(-)

diff --git a/themes/default/templates/folder/select.tpl.src.php b/themes/default/templates/folder/select.tpl.src.php @@ -0,0 +1,91 @@ +page + form action:folder subaction:multiple + window name:bla title:titelso widths:5%,75% + row + cell class:help + text raw:_ + cell class:help + text text:GLOBAL_TYPE + text raw:_/_ + text text:GLOBAL_NAME + + list list:object extract:true + row + cell class:fx + if true:writable + checkbox prefix:obj name:id + if false:writable + text raw:_ + + cell class:fx + link url:url target:cms_main title:desc + image type:icon + text var:name + text raw:_ + + row + cell colspan:2 class:fx +RAW + <img src="<?php echo $image_dir ?>tree_none_end.gif" align="left" />&nbsp; + <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> +END + row + cell class:fx colspan:2 + radio name:type value:move + text raw:_ + text text:GLOBAL_MOVE + newline + radio name:type value:copy + text raw:_ + text text:GLOBAL_COPY + newline + radio name:type value:link + text raw:_ + text text:GLOBAL_LINK + newline + radio name:type value:archive + text raw:_ + text text:GLOBAL_ARCHIVE + newline + radio name:type value:delete + text raw:_ + text text:GLOBAL_DELETE + newline + row + cell class:act colspan:2 + button type:ok + if empty:object + + row + cell class:fx colspan:2 + text text:GLOBAL_NOT_FOUND + dummy + +RAW + +<script name="JavaScript"> +<!-- +function mark() +{ +<?php foreach( $object as $id=>$z ) { ?> +document.forms[0].obj<?php echo $id ?>.checked=true; +<?php } ?> +} +function unmark() +{ +<?php foreach( $object as $id=>$z ) { ?> +document.forms[0].obj<?php echo $id ?>.checked=false; +<?php } ?> +} +function flip() +{ +<?php foreach( $object as $id=>$z ) { ?> +if (document.forms[0].obj<?php echo $id ?>.checked==false) + document.forms[0].obj<?php echo $id ?>.checked=true; +else document.forms[0].obj<?php echo $id ?>.checked=false; +<?php } ?> +} +//--> +</script> +END +