commit a4fdcf08962db7c6273db3abb29ddb044fa738d3
parent a1bae8bf4f3c018fe3bb32cb99e0f57ea122a8bd
Author: dankert <devnull@localhost>
Date: Wed, 11 Jan 2006 23:28:13 +0100
Vorlagen f?r neue Template-Engine
Diffstat:
8 files changed, 270 insertions(+), 0 deletions(-)
diff --git a/themes/default/templates/folder/new.tpl.src.php b/themes/default/templates/folder/new.tpl.src.php
@@ -0,0 +1,2 @@
+page
+ window title:GLOBAL_NEW name:global_new
diff --git a/themes/default/templates/folder/new/file.tpl.src.php b/themes/default/templates/folder/new/file.tpl.src.php
@@ -0,0 +1,14 @@
+page
+ form action:folder subaction:createnew enctype:multipart/form-data
+
+ window title: name:
+ row
+ cell class:fx
+ text text:global_NAME
+ cell class:fx
+ input type:file name:file
+ row
+ cell class:act colspan:2
+ button type:ok
+
+ focus field:file
diff --git a/themes/default/templates/folder/new/folder.tpl.src.php b/themes/default/templates/folder/new/folder.tpl.src.php
@@ -0,0 +1,14 @@
+page
+ form action:folder subaction:createnew
+
+ window title: name:
+ row
+ cell class:fx
+ text text:global_FOLDER
+ cell class:fx
+ input name:foldername size:20 default:
+ row
+ cell class:act colspan:2
+ button type:ok
+
+ focus field:foldername+
\ No newline at end of file
diff --git a/themes/default/templates/folder/new/link.tpl.src.php b/themes/default/templates/folder/new/link.tpl.src.php
@@ -0,0 +1,14 @@
+page
+ form action:folder subaction:createnew
+
+ window title: name:
+ row
+ cell class:fx
+ text text:global_NAME
+ cell class:fx
+ input name:linkname size:20 default:
+ row
+ cell class:act colspan:2
+ button type:ok
+
+ focus field:pagename+
\ No newline at end of file
diff --git a/themes/default/templates/folder/new/page.tpl.src.php b/themes/default/templates/folder/new/page.tpl.src.php
@@ -0,0 +1,19 @@
+page
+ form action:folder subaction:createnew
+
+ window title: name:
+ row
+ cell class:fx
+ text text:global_TEMPLATE
+ cell class:fx
+ selectbox name:templateid list:templates
+ row
+ cell class:fx
+ text text:global_NAME
+ cell class:fx
+ input name:pagename size:20 default:
+ row
+ cell class:act colspan:2
+ button type:ok
+
+ focus field:pagename
diff --git a/themes/default/templates/folder/order.tpl.src.php b/themes/default/templates/folder/order.tpl.src.php
@@ -0,0 +1,55 @@
+page
+ window
+ row
+ cell colspan:7 class:help
+ text text:GLOBAL_FOLDER_DESC
+
+ row
+ cell class:help
+ link url:orderbytype_url title:FOLDER_ORDERBYTYPE
+ text text:GLOBAL_TYPE
+ text raw:_/_
+ link url:orderbyname_url title:FOLDER_ORDERBYNAME
+ text text:GLOBAL_NAME
+ cell class:help
+ link url:orderbylastchange_url title:FOLDER_ORDERBYLASTCHANGE
+ text text:GLOBAL_LASTCHANGE
+ cell class:help colspan:4
+ link url:flip_url title:FOLDER_FLIP
+ text text:FOLDER_ORDER
+
+ list list:object extract:true
+ row
+ cell width:40% class:fx
+ image type:icon
+ text var:name
+ cell width:18% class:fx
+ text var:date
+ cell width:3% class:fx
+ if present:upurl
+ link url:upurl title:GLOBAL_UP
+ set var:bild value:arrow_up
+ image file:bild
+ if empty:upurl
+ text raw:_
+ cell width:3% class:fx
+ if present:topurl
+ link url:topurl title:GLOBAL_TOP
+ set var:bild value:arrow_top
+ image file:bild
+ if empty:topurl
+ text raw:_
+ cell width:3% class:fx
+ if present:bottomurl
+ link url:bottomurl title:GLOBAL_BOTTOM
+ set var:bild value:arrow_bottom
+ image file:bild
+ if empty:bottomurl
+ text raw:_
+ cell width:3% class:fx
+ if present:downurl
+ link url:downurl title:GLOBAL_DOWN
+ set var:bild value:arrow_down
+ image file:bild
+ if empty:downurl
+ text raw:_
diff --git a/themes/default/templates/folder/prop.tpl.src.php b/themes/default/templates/folder/prop.tpl.src.php
@@ -0,0 +1,42 @@
+insert file=header
+
+form action=folder subaction=save
+ focus field=name
+ window name=objectName title=global_prop icon=folder widths=50%,50% width=90%
+ row
+ cell class=fx
+ text text=global_name
+ cell class=fx
+ #input name=name type=text size=50
+ text var=name
+ row
+ cell class=fx
+ text text=global_filename
+ cell class=fx
+ text var=filename
+ row
+ cell class=fx
+ text text=global_description
+ cell class=fx
+ text var=description
+ row
+ cell class=fx
+ text text=global_created
+ cell class=fx
+ date date=create_date
+ text raw=,_
+ user user=create_user
+ row
+ cell class=fx
+ text text=global_lastchange
+ cell class=fx
+ date date=lastchange_date
+ text raw=,_
+ user user=lastchange_user
+
+RAW
+<?php //echo "jetzt ist es ".date('r')
+?>
+END
+
+insert file=footer+
\ No newline at end of file
diff --git a/themes/default/templates/folder/show.tpl.src.php b/themes/default/templates/folder/show.tpl.src.php
@@ -0,0 +1,107 @@
+page
+ form action:folder subaction:multiple
+ window name:bla title:titelso widths:5%,75%,20%
+ row
+ cell colspan:7 class:help
+ text text:GLOBAL_FOLDER_DESC
+ if present:up_url
+ row
+ cell width:50% colspan:8 class:fx
+ link url:up_url target:cms_main
+ image type:folder
+ text raw:_...
+ row
+ cell class:help
+ text raw:_
+ cell class:help
+ text text:GLOBAL_TYPE
+ text raw:_/_
+ text text:GLOBAL_NAME
+ cell class:help
+ text text:GLOBAL_LASTCHANGE
+
+ 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:_
+ cell class:fx
+ text var:date
+
+ if true:writable
+
+RAW
+<tr>
+ <td colspan="7" class="<?php echo $fx; ?>">
+ <img src="<?php echo $image_dir ?>tree_none_end.gif" align="left" />
+ <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></td>
+ <td colspan="1" class="<?php echo $fx; ?>">
+ <table>
+ <tr>
+ <td>
+ <input type="radio" name="type" value="move" />
+ <?php echo lang('GLOBAL_MOVE') ?> <?php echo lang('GLOBAL_TO') ?>
+ <br/>
+ <input type="radio" name="type" value="copy" />
+ <?php echo lang('GLOBAL_COPY') ?> <?php echo lang('GLOBAL_TO') ?>
+ <br/>
+ <input type="radio" name="type" value="link" />
+ <?php echo lang('GLOBAL_LINK') ?> <?php echo lang('GLOBAL_TO') ?>
+ <br/>
+ <input type="radio" name="type" value="delete" />
+ <?php echo lang('GLOBAL_DELETE') ?>
+ </td><td>
+ <?php echo Html::selectBox('targetobjectid',$folder,$act_objectid) ?>
+ </td><td>
+ </td></tr>
+ </table>
+</td>
+</tr>
+END
+ 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
+