openrat-cms

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

commit dcd1fbbe5a3fe07f74709c233ea24b7a64392f2e
parent f7f69ae9986d046b38db8998c032ce70bcb87271
Author: dankert <devnull@localhost>
Date:   Mon,  5 Mar 2007 23:41:05 +0100

Neue Kompilierung der Seiten.

Diffstat:
themes/default/pages/html/element/remove.tpl.php | 554+++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------
themes/default/pages/html/file/pub.tpl.php | 111++++++++++++++++++++++++++++++++++++++++++-------------------------------------
themes/default/pages/html/folder/edit.tpl.php | 1205+++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------
themes/default/pages/html/folder/order.tpl.php | 2061++++++++++++++++++++++++++++++++++++++++++-------------------------------------
themes/default/pages/html/folder/pub.tpl.php | 1395++++++++++++++++++++++++++++++++++++++++++-------------------------------------
themes/default/pages/html/folder/select.tpl.php | 1620++++++++++++++++++++++++++++++++++++++++++++++++++-----------------------------
themes/default/pages/html/folder/show.tpl.php | 128++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------
themes/default/pages/html/index/projectmenu.tpl.php | 10+++++++++-
themes/default/pages/html/index/showlogin.tpl.php | 362++++++++++++++++++++++++++++++++++++++++++++++++++-----------------------------
themes/default/pages/html/mainmenu/show.tpl.php | 88++++++++++++++++++++++++++++++++++++++++++++++++++++++++-----------------------
themes/default/pages/html/page/el.tpl.php | 150+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------
themes/default/pages/html/page/pub.tpl.php | 268+++++++++++++++++++++++++++++++++++++++++--------------------------------------
themes/default/pages/html/pageelement/archive.tpl.php | 200+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------
themes/default/pages/html/pageelement/edit.tpl.php | 256+++++++++++++++++++++++++++++++++++++++++++++++--------------------------------
themes/default/pages/html/template/el.tpl.php | 2++
themes/default/pages/html/title/show.tpl.php | 52++++++++++++++++++++++++++++++++++++++++++++++------
themes/default/pages/html/treetitle/show.tpl.php | 34++++++++++++++++++++++++++++++----
17 files changed, 5171 insertions(+), 3325 deletions(-)

diff --git a/themes/default/pages/html/element/remove.tpl.php b/themes/default/pages/html/element/remove.tpl.php @@ -1,51 +1,71 @@ -<?php $attr = array('class'=>'') ?><?php $attr_class='' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<?php $attr1 = array('class'=>'main','title'=>$cms_title) ?><?php $attr1_class='main' ?><?php $attr1_title=$cms_title ?><?php header('Content-Type: text/html; charset='.lang('CHARSET')) +?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <!-- $Id$ --> <head> - <title><?php echo $cms_title ?></title> - <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> + <title><?php echo $attr1_title ?></title> + <meta http-equiv="content-type" content="text/html; charset=<?php echo lang('CHARSET') ?>" /> <meta name="MSSmartTagsPreventParsing" content="true" /> <meta name="robots" content="noindex,nofollow" /> +<?php if (is_array($windowMenu)) foreach( $windowMenu as $menu ) + { + ?> + <link rel="section" href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text']) ?>" /> +<?php + } +?> <link rel="stylesheet" type="text/css" href="./themes/default/css/default.css" /> <?php if($stylesheet!='default') { ?> <link rel="stylesheet" type="text/css" href="<?php echo $stylesheet ?>" /> <?php } ?> </head> -<body<?php echo !empty($$attr_class)?' class="'.$$attr_class.'"':' class="'.$attr_class.'"' ?>> +<body class="<?php echo $attr1_class ?>"> - -<?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('action'=>'','subaction'=>'','id'=>'','name'=>'','target'=>'_self','method'=>'post','enctype'=>'application/x-www-form-urlencoded') ?><?php $attr_action='' ?><?php $attr_subaction='' ?><?php $attr_id='' ?><?php $attr_name='' ?><?php $attr_target='_self' ?><?php $attr_method='post' ?><?php $attr_enctype='application/x-www-form-urlencoded' ?><?php - if (empty($attr_action)) - $attr_action = $actionName; - if (empty($attr_subaction)) - $attr_subaction = $targetSubActionName; - if (empty($attr_id)) - $attr_id = $this->getRequestId(); +<?php unset($attr1) ?><?php unset($attr1_class) ?><?php unset($attr1_title) ?><?php $attr2 = array('target'=>'_self','method'=>'post','enctype'=>'application/x-www-form-urlencoded') ?><?php $attr2_target='_self' ?><?php $attr2_method='post' ?><?php $attr2_enctype='application/x-www-form-urlencoded' ?><?php + if (empty($attr2_action)) + $attr2_action = $actionName; + if (empty($attr2_subaction)) + $attr2_subaction = $targetSubActionName; + if (empty($attr2_id)) + $attr2_id = $this->getRequestId(); -?><form name="<?php echo $attr_name ?>" - target="<?php echo $attr_target ?>" - action="<?php echo Html::url( $attr_action,$attr_subaction,$attr_id ) ?>" - method="<?php echo $attr_method ?>" - enctype="<?php echo $attr_enctype ?>"> -<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $attr_action ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $attr_subaction ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr_id ?>" /><?php +?><form name="<?php echo $attr2_name ?>" + target="<?php echo $attr2_target ?>" + action="<?php echo Html::url( $attr2_action,$attr2_subaction,$attr2_id ) ?>" + method="<?php echo $attr2_method ?>" + enctype="<?php echo $attr2_enctype ?>"> +<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $attr2_action ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $attr2_subaction ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr2_id ?>" /><?php if ( $conf['interface']['url_sessionid'] ) echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; -?><?php unset($attr) ?><?php unset($attr_action) ?><?php unset($attr_subaction) ?><?php unset($attr_id) ?><?php unset($attr_name) ?><?php unset($attr_target) ?><?php unset($attr_method) ?><?php unset($attr_enctype) ?><?php $attr = array('title'=>'','name'=>'','icon'=>'','widths'=>'','width'=>'85%') ?><?php $attr_title='' ?><?php $attr_name='' ?><?php $attr_icon='' ?><?php $attr_widths='' ?><?php $attr_width='85%' ?><?php +?><?php unset($attr2) ?><?php unset($attr2_target) ?><?php unset($attr2_method) ?><?php unset($attr2_enctype) ?><?php $attr3 = array('width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr3_width='93%' ?><?php $attr3_rowclasses='odd,even' ?><?php $attr3_columnclasses='1,2,3' ?><?php $coloumn_widths=array(); - if (!empty($attr_widths)) + if (!empty($attr3_widths)) + { + $column_widths = explode(',',$attr3_widths); + unset($attr3['widths']); + } + if (!empty($attr3_rowclasses)) { - $column_widths = explode(',',$attr_widths); - unset($attr['widths']); + $row_classes = explode(',',$attr3_rowclasses); + $row_class_idx = 999; + unset($attr3['rowclasses']); + } + if (!empty($attr3_columnclasses)) + { + $column_classes = explode(',',$attr3_columnclasses); + unset($attr3['columnclasses']); } global $image_dir; echo '<br/><br/><br/><center>'; - echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_width.'">'; + echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr3_width.'">'; echo '<tr><td class="menu">'; - if ( !empty($attr_icon) ) - echo '<img src="'.$image_dir.'icon_'.$attr_icon.IMG_ICON_EXT.'" align="left" border="0">'; + if ( !empty($attr3_icon) ) + echo '<img src="'.$image_dir.'icon_'.$attr3_icon.IMG_ICON_EXT.'" align="left" border="0">'; + if ( !is_array($path) ) + $path = array(); foreach( $path as $pathElement) { extract($pathElement); @@ -54,7 +74,13 @@ } echo '<span class="title">'.lang($windowTitle).'</span>'; ?> - </th> + </td><td class="menu" style="align:right;"> + <?php if (isset($windowIcons)) foreach( $windowIcons as $icon ) + { + ?><a href="<?php echo $icon['url'] ?>" title="<?php echo 'ICON_'.lang($menu['type'].'_DESC') ?>"><image border="0" src="<?php echo $image_dir.$icon['type'].IMG_ICON_EXT ?>"></a>&nbsp;<?php + } + ?> + </td> </tr> <tr><td class="subaction"> <?php foreach( $windowMenu as $menu ) @@ -90,221 +116,388 @@ <tr> <td> - <table class="n" cellspacing="0" width="100%" cellpadding="4"><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_name) ?><?php unset($attr_icon) ?><?php unset($attr_widths) ?><?php unset($attr_width) ?><?php $attr = array() ?><?php - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - + <table class="n" cellspacing="0" width="100%" cellpadding="4"><?php unset($attr3) ?><?php unset($attr3_width) ?><?php unset($attr3_rowclasses) ?><?php unset($attr3_columnclasses) ?><?php $attr4 = array() ?><?php + $row_class_idx++; + if ($row_class_idx > count($row_classes)) + $row_class_idx=1; + $row_class=$row_classes[$row_class_idx-1]; + + if (empty($attr4_class)) + $attr4_class=$row_class; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'','colspan'=>'') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='' ?><?php $attr_colspan='' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5 = array() ?><?php +// if (empty($attr5_class)) +// $attr5['class']=$row_class; + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr5_class)) + $attr5['class']=$column_class; global $cell_column_nr; $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) ) - $attr['width']=$column_widths[$cell_column_nr-1]; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'ELEMENT_NAME','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='ELEMENT_NAME' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php - if (!empty($attr_array)) +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6 = array('class'=>'text','text'=>'ELEMENT_NAME') ?><?php $attr6_class='text' ?><?php $attr6_text='ELEMENT_NAME' ?><?php + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key).'_HELP'; + else + $attr6_title = ''; + +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + + if (!empty($attr6_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr6_array[$attr6_var].'%'; + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; + else + $tmp_text = lang($tmpArray[$attr6_text]); + } + elseif (!empty($attr6_text)) + if ( isset($$attr6_text)) + $tmp_text = lang($$attr6_text); else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = lang($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = lang($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; + else + { + $tmp_text = '&nbsp;'; + //Html::debug($attr6);echo 'text error'; } - elseif (!empty($attr_text)) - $tmp_text = lang($attr_text); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?$$attr_var:'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - else echo 'text error'; - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><?php unset($attr_text) ?><?php unset($attr_raw) ?><?php unset($attr_maxlength) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'fx','colspan'=>'') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?php $attr_colspan='' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_text) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr5 = array('class'=>'fx') ?><?php $attr5_class='fx' ?><?php +// if (empty($attr5_class)) +// $attr5['class']=$row_class; + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr5_class)) + $attr5['class']=$column_class; global $cell_column_nr; $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) ) - $attr['width']=$column_widths[$cell_column_nr-1]; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'','class'=>'','var'=>'name','text'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='name' ?><?php $attr_text='' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php - if (!empty($attr_array)) +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('class'=>'text','var'=>'name') ?><?php $attr6_class='text' ?><?php $attr6_var='name' ?><?php + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key).'_HELP'; + else + $attr6_title = ''; + +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + + if (!empty($attr6_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr6_array[$attr6_var].'%'; + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr6_text]); + } + elseif (!empty($attr6_text)) + if ( isset($$attr6_text)) + $tmp_text = lang($$attr6_text); + else + $tmp_text = lang($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = lang($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = lang($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; + else + { + $tmp_text = '&nbsp;'; + //Html::debug($attr6);echo 'text error'; } - elseif (!empty($attr_text)) - $tmp_text = lang($attr_text); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?$$attr_var:'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - else echo 'text error'; - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><?php unset($attr_text) ?><?php unset($attr_raw) ?><?php unset($attr_maxlength) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - +?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_var) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4 = array() ?><?php + $row_class_idx++; + if ($row_class_idx > count($row_classes)) + $row_class_idx=1; + $row_class=$row_classes[$row_class_idx-1]; + + if (empty($attr4_class)) + $attr4_class=$row_class; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'','colspan'=>'') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='' ?><?php $attr_colspan='' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5 = array() ?><?php +// if (empty($attr5_class)) +// $attr5['class']=$row_class; + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr5_class)) + $attr5['class']=$column_class; global $cell_column_nr; $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) ) - $attr['width']=$column_widths[$cell_column_nr-1]; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; + +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6 = array('class'=>'text','text'=>'GLOBAL_DELETE') ?><?php $attr6_class='text' ?><?php $attr6_text='GLOBAL_DELETE' ?><?php + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key).'_HELP'; + else + $attr6_title = ''; + +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'GLOBAL_DELETE','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_DELETE' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php - if (!empty($attr_array)) + if (!empty($attr6_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr6_array[$attr6_var].'%'; + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; + else + $tmp_text = lang($tmpArray[$attr6_text]); + } + elseif (!empty($attr6_text)) + if ( isset($$attr6_text)) + $tmp_text = lang($$attr6_text); else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = lang($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = lang($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; + else + { + $tmp_text = '&nbsp;'; + //Html::debug($attr6);echo 'text error'; } - elseif (!empty($attr_text)) - $tmp_text = lang($attr_text); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?$$attr_var:'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - else echo 'text error'; - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><?php unset($attr_text) ?><?php unset($attr_raw) ?><?php unset($attr_maxlength) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'','colspan'=>'') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='' ?><?php $attr_colspan='' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_text) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr5 = array() ?><?php +// if (empty($attr5_class)) +// $attr5['class']=$row_class; + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr5_class)) + $attr5['class']=$column_class; global $cell_column_nr; $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) ) - $attr['width']=$column_widths[$cell_column_nr-1]; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('default'=>'false','var'=>'','readonly'=>'false','name'=>'delete','prefix'=>'') ?><?php $attr_default='false' ?><?php $attr_var='' ?><?php $attr_readonly='false' ?><?php $attr_name='delete' ?><?php $attr_prefix='' ?><input type="checkbox" name="<?php echo !empty($$attr_var)?$attr_prefix.$$attr_var:$attr_name ?>" <?php if ($attr_readonly=='true') echo ' disabled="disabled"' ?> value="1" <?php if( ($attr_default=='true')||(isset($$attr_name)&&$$attr_name) ) echo 'checked="checked"' ?> /><?php unset($attr) ?><?php unset($attr_default) ?><?php unset($attr_var) ?><?php unset($attr_readonly) ?><?php unset($attr_name) ?><?php unset($attr_prefix) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6 = array('default'=>'','readonly'=>'','name'=>'delete') ?><?php $attr6_default='' ?><?php $attr6_readonly='' ?><?php $attr6_name='delete' ?><?php + $attr6_default = ( $attr6_default == true ); + if ( isset($$attr6_name) ) + $checked = $$attr6_name == true; +// $checked = isset($$$attr6_name)&& $$$attr6_name==true; + else + $checked = $attr6_default == true; +?><input type="checkbox" name="<?php echo $attr6_name ?>" <?php if ($attr6_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php unset($attr6_name); unset($attr6_readonly); unset($attr6_default); ?><?php unset($attr6) ?><?php unset($attr6_default) ?><?php unset($attr6_readonly) ?><?php unset($attr6_name) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4 = array() ?><?php + $row_class_idx++; + if ($row_class_idx > count($row_classes)) + $row_class_idx=1; + $row_class=$row_classes[$row_class_idx-1]; + + if (empty($attr4_class)) + $attr4_class=$row_class; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'','colspan'=>'') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='' ?><?php $attr_colspan='' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5 = array() ?><?php +// if (empty($attr5_class)) +// $attr5['class']=$row_class; + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr5_class)) + $attr5['class']=$column_class; global $cell_column_nr; $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) ) - $attr['width']=$column_widths[$cell_column_nr-1]; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; + +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6 = array('class'=>'text','text'=>'ELEMENT_DELETE_VALUES') ?><?php $attr6_class='text' ?><?php $attr6_text='ELEMENT_DELETE_VALUES' ?><?php + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key).'_HELP'; + else + $attr6_title = ''; + +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'ELEMENT_DELETE_VALUES','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='ELEMENT_DELETE_VALUES' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php - if (!empty($attr_array)) + if (!empty($attr6_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr6_array[$attr6_var].'%'; + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr6_text]); + } + elseif (!empty($attr6_text)) + if ( isset($$attr6_text)) + $tmp_text = lang($$attr6_text); + else + $tmp_text = lang($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = lang($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = lang($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; + else + { + $tmp_text = '&nbsp;'; + //Html::debug($attr6);echo 'text error'; } - elseif (!empty($attr_text)) - $tmp_text = lang($attr_text); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?$$attr_var:'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - else echo 'text error'; - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><?php unset($attr_text) ?><?php unset($attr_raw) ?><?php unset($attr_maxlength) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'','colspan'=>'') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='' ?><?php $attr_colspan='' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_text) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr5 = array() ?><?php +// if (empty($attr5_class)) +// $attr5['class']=$row_class; + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr5_class)) + $attr5['class']=$column_class; global $cell_column_nr; $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) ) - $attr['width']=$column_widths[$cell_column_nr-1]; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('default'=>'false','var'=>'','readonly'=>'false','name'=>'deletevalues','prefix'=>'') ?><?php $attr_default='false' ?><?php $attr_var='' ?><?php $attr_readonly='false' ?><?php $attr_name='deletevalues' ?><?php $attr_prefix='' ?><input type="checkbox" name="<?php echo !empty($$attr_var)?$attr_prefix.$$attr_var:$attr_name ?>" <?php if ($attr_readonly=='true') echo ' disabled="disabled"' ?> value="1" <?php if( ($attr_default=='true')||(isset($$attr_name)&&$$attr_name) ) echo 'checked="checked"' ?> /><?php unset($attr) ?><?php unset($attr_default) ?><?php unset($attr_var) ?><?php unset($attr_readonly) ?><?php unset($attr_name) ?><?php unset($attr_prefix) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6 = array('default'=>'','readonly'=>'','name'=>'deletevalues') ?><?php $attr6_default='' ?><?php $attr6_readonly='' ?><?php $attr6_name='deletevalues' ?><?php + $attr6_default = ( $attr6_default == true ); + if ( isset($$attr6_name) ) + $checked = $$attr6_name == true; +// $checked = isset($$$attr6_name)&& $$$attr6_name==true; + else + $checked = $attr6_default == true; +?><input type="checkbox" name="<?php echo $attr6_name ?>" <?php if ($attr6_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php unset($attr6_name); unset($attr6_readonly); unset($attr6_default); ?><?php unset($attr6) ?><?php unset($attr6_default) ?><?php unset($attr6_readonly) ?><?php unset($attr6_name) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4 = array() ?><?php + $row_class_idx++; + if ($row_class_idx > count($row_classes)) + $row_class_idx=1; + $row_class=$row_classes[$row_class_idx-1]; + + if (empty($attr4_class)) + $attr4_class=$row_class; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'','colspan'=>'2') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='' ?><?php $attr_colspan='2' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5 = array('colspan'=>'2') ?><?php $attr5_colspan='2' ?><?php +// if (empty($attr5_class)) +// $attr5['class']=$row_class; + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr5_class)) + $attr5['class']=$column_class; global $cell_column_nr; $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) ) - $attr['width']=$column_widths[$cell_column_nr-1]; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('type'=>'ok') ?><?php $attr_type='ok' ?><?php - if ($attr_type=='ok') +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_colspan) ?><?php $attr6 = array('type'=>'ok','class'=>'ok','value'=>'ok','text'=>'button_ok') ?><?php $attr6_type='ok' ?><?php $attr6_class='ok' ?><?php $attr6_value='ok' ?><?php $attr6_text='button_ok' ?><?php + if ($attr6_type=='ok') { - $attr_type = 'submit'; - $attr_class = 'ok'; - $attr_text = 'BUTTON_OK'; - $attr_value = 'ok'; + $attr6_type = 'submit'; +// $attr6_class = 'ok'; +// $attr6_text = 'BUTTON_OK'; +// $attr6_value = 'ok'; } -?><input type="<?php echo $attr_type ?>" name="<?php echo $attr_value ?>" class="<?php echo $attr_class ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo lang($attr_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($attr) ?><?php unset($attr_type) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?> </table> +?><input type="<?php echo $attr6_type ?>" name="<?php echo $attr6_value ?>" class="<?php echo $attr6_class ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo lang($attr6_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($attr6) ?><?php unset($attr6_type) ?><?php unset($attr6_class) ?><?php unset($attr6_value) ?><?php unset($attr6_text) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr2 = array() ?> </table> </td> </tr> </table> @@ -318,11 +511,16 @@ <?php $dur = time()-START_TIME; echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small> <?php } ?> -<?php unset($attr) ?><?php $attr = array() ?></form><?php unset($attr) ?><?php $attr = array('field'=>'delete') ?><?php $attr_field='delete' ?><script name="JavaScript" type="text/javascript"><!-- -document.forms[0].<?php echo $attr_field ?>.focus(); -document.forms[0].<?php echo $attr_field ?>.select(); -//--></script> -<?php unset($attr) ?><?php unset($attr_field) ?><?php $attr = array() ?> +<?php unset($attr2) ?><?php $attr1 = array() ?></form> + +<?php unset($attr1) ?><?php $attr2 = array('field'=>'delete') ?><?php $attr2_field='delete' ?> +<script name="JavaScript" type="text/javascript"> +<!-- +document.forms[0].<?php echo $attr2_field ?>.focus(); +document.forms[0].<?php echo $attr2_field ?>.select(); +// --> +</script> +<?php unset($attr2) ?><?php unset($attr2_field) ?><?php $attr0 = array() ?> <!-- $Id$ --> <?php if ($showDuration) { ?> @@ -333,4 +531,4 @@ document.forms[0].<?php echo $attr_field ?>.select(); <?php } ?> </body> -</html><?php unset($attr) ?>- \ No newline at end of file +</html><?php unset($attr0) ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/file/pub.tpl.php b/themes/default/pages/html/file/pub.tpl.php @@ -1,62 +1,69 @@ -<?php $attr = array('class'=>'main','title'=>'var') ?><?php $attr_class='main' ?><?php $attr_title='var' ?><?php header('Content-Type: text/html; charset='.lang('CHARSET')) +<?php $attr1 = array('class'=>'main','title'=>$cms_title) ?><?php $attr1_class='main' ?><?php $attr1_title=$cms_title ?><?php header('Content-Type: text/html; charset='.lang('CHARSET')) ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <!-- $Id$ --> <head> - <title><?php echo $attr_title ?></title> + <title><?php echo $attr1_title ?></title> <meta http-equiv="content-type" content="text/html; charset=<?php echo lang('CHARSET') ?>" /> <meta name="MSSmartTagsPreventParsing" content="true" /> <meta name="robots" content="noindex,nofollow" /> +<?php if (is_array($windowMenu)) foreach( $windowMenu as $menu ) + { + ?> + <link rel="section" href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text']) ?>" /> +<?php + } +?> <link rel="stylesheet" type="text/css" href="./themes/default/css/default.css" /> <?php if($stylesheet!='default') { ?> <link rel="stylesheet" type="text/css" href="<?php echo $stylesheet ?>" /> <?php } ?> </head> -<body class="<?php echo $attr_class ?>"> +<body class="<?php echo $attr1_class ?>"> -<?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_title) ?><?php $attr = array('name'=>'','target'=>'_self','method'=>'post','enctype'=>'application/x-www-form-urlencoded') ?><?php $attr_name='' ?><?php $attr_target='_self' ?><?php $attr_method='post' ?><?php $attr_enctype='application/x-www-form-urlencoded' ?><?php - if (empty($attr_action)) - $attr_action = $actionName; - if (empty($attr_subaction)) - $attr_subaction = $targetSubActionName; - if (empty($attr_id)) - $attr_id = $this->getRequestId(); +<?php unset($attr1) ?><?php unset($attr1_class) ?><?php unset($attr1_title) ?><?php $attr2 = array('target'=>'_self','method'=>'post','enctype'=>'application/x-www-form-urlencoded') ?><?php $attr2_target='_self' ?><?php $attr2_method='post' ?><?php $attr2_enctype='application/x-www-form-urlencoded' ?><?php + if (empty($attr2_action)) + $attr2_action = $actionName; + if (empty($attr2_subaction)) + $attr2_subaction = $targetSubActionName; + if (empty($attr2_id)) + $attr2_id = $this->getRequestId(); -?><form name="<?php echo $attr_name ?>" - target="<?php echo $attr_target ?>" - action="<?php echo Html::url( $attr_action,$attr_subaction,$attr_id ) ?>" - method="<?php echo $attr_method ?>" - enctype="<?php echo $attr_enctype ?>"> -<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $attr_action ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $attr_subaction ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr_id ?>" /><?php +?><form name="<?php echo $attr2_name ?>" + target="<?php echo $attr2_target ?>" + action="<?php echo Html::url( $attr2_action,$attr2_subaction,$attr2_id ) ?>" + method="<?php echo $attr2_method ?>" + enctype="<?php echo $attr2_enctype ?>"> +<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $attr2_action ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $attr2_subaction ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr2_id ?>" /><?php if ( $conf['interface']['url_sessionid'] ) echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; -?><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_target) ?><?php unset($attr_method) ?><?php unset($attr_enctype) ?><?php $attr = array('width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr_width='93%' ?><?php $attr_rowclasses='odd,even' ?><?php $attr_columnclasses='1,2,3' ?><?php +?><?php unset($attr2) ?><?php unset($attr2_target) ?><?php unset($attr2_method) ?><?php unset($attr2_enctype) ?><?php $attr3 = array('width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr3_width='93%' ?><?php $attr3_rowclasses='odd,even' ?><?php $attr3_columnclasses='1,2,3' ?><?php $coloumn_widths=array(); - if (!empty($attr_widths)) + if (!empty($attr3_widths)) { - $column_widths = explode(',',$attr_widths); - unset($attr['widths']); + $column_widths = explode(',',$attr3_widths); + unset($attr3['widths']); } - if (!empty($attr_rowclasses)) + if (!empty($attr3_rowclasses)) { - $row_classes = explode(',',$attr_rowclasses); + $row_classes = explode(',',$attr3_rowclasses); $row_class_idx = 999; - unset($attr['rowclasses']); + unset($attr3['rowclasses']); } - if (!empty($attr_columnclasses)) + if (!empty($attr3_columnclasses)) { - $column_classes = explode(',',$attr_columnclasses); - unset($attr['columnclasses']); + $column_classes = explode(',',$attr3_columnclasses); + unset($attr3['columnclasses']); } global $image_dir; echo '<br/><br/><br/><center>'; - echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_width.'">'; + echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr3_width.'">'; echo '<tr><td class="menu">'; - if ( !empty($attr_icon) ) - echo '<img src="'.$image_dir.'icon_'.$attr_icon.IMG_ICON_EXT.'" align="left" border="0">'; + if ( !empty($attr3_icon) ) + echo '<img src="'.$image_dir.'icon_'.$attr3_icon.IMG_ICON_EXT.'" align="left" border="0">'; if ( !is_array($path) ) $path = array(); foreach( $path as $pathElement) @@ -109,44 +116,44 @@ <tr> <td> - <table class="n" cellspacing="0" width="100%" cellpadding="4"><?php unset($attr) ?><?php unset($attr_width) ?><?php unset($attr_rowclasses) ?><?php unset($attr_columnclasses) ?><?php $attr = array() ?><?php + <table class="n" cellspacing="0" width="100%" cellpadding="4"><?php unset($attr3) ?><?php unset($attr3_width) ?><?php unset($attr3_rowclasses) ?><?php unset($attr3_columnclasses) ?><?php $attr4 = array() ?><?php $row_class_idx++; if ($row_class_idx > count($row_classes)) $row_class_idx=1; $row_class=$row_classes[$row_class_idx-1]; - if (empty($attr_class)) - $attr_class=$row_class; + if (empty($attr4_class)) + $attr4_class=$row_class; global $cell_column_nr; $cell_column_nr=0; $column_class_idx = 999; -?><tr class="<?php echo $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'act') ?><?php $attr_class='act' ?><?php -// if (empty($attr_class)) -// $attr['class']=$row_class; +?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5 = array('class'=>'act') ?><?php $attr5_class='act' ?><?php +// if (empty($attr5_class)) +// $attr5['class']=$row_class; $column_class_idx++; if ($column_class_idx > count($column_classes)) $column_class_idx=1; $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr_class)) - $attr['class']=$column_class; + if (empty($attr5_class)) + $attr5['class']=$column_class; global $cell_column_nr; $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) ) - $attr['width']=$column_widths[$cell_column_nr-1]; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('type'=>'ok','class'=>'ok','value'=>'ok','text'=>'button_ok') ?><?php $attr_type='ok' ?><?php $attr_class='ok' ?><?php $attr_value='ok' ?><?php $attr_text='button_ok' ?><?php - if ($attr_type=='ok') +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('type'=>'ok','class'=>'ok','value'=>'ok','text'=>'button_ok') ?><?php $attr6_type='ok' ?><?php $attr6_class='ok' ?><?php $attr6_value='ok' ?><?php $attr6_text='button_ok' ?><?php + if ($attr6_type=='ok') { - $attr_type = 'submit'; -// $attr_class = 'ok'; -// $attr_text = 'BUTTON_OK'; -// $attr_value = 'ok'; + $attr6_type = 'submit'; +// $attr6_class = 'ok'; +// $attr6_text = 'BUTTON_OK'; +// $attr6_value = 'ok'; } -?><input type="<?php echo $attr_type ?>" name="<?php echo $attr_value ?>" class="<?php echo $attr_class ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo lang($attr_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($attr) ?><?php unset($attr_type) ?><?php unset($attr_class) ?><?php unset($attr_value) ?><?php unset($attr_text) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?> </table> +?><input type="<?php echo $attr6_type ?>" name="<?php echo $attr6_value ?>" class="<?php echo $attr6_class ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo lang($attr6_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($attr6) ?><?php unset($attr6_type) ?><?php unset($attr6_class) ?><?php unset($attr6_value) ?><?php unset($attr6_text) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr2 = array() ?> </table> </td> </tr> </table> @@ -160,9 +167,9 @@ <?php $dur = time()-START_TIME; echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small> <?php } ?> -<?php unset($attr) ?><?php $attr = array() ?></form> +<?php unset($attr2) ?><?php $attr1 = array() ?></form> -<?php unset($attr) ?><?php $attr = array() ?> +<?php unset($attr1) ?><?php $attr0 = array() ?> <!-- $Id$ --> <?php if ($showDuration) { ?> @@ -173,4 +180,4 @@ <?php } ?> </body> -</html><?php unset($attr) ?>- \ No newline at end of file +</html><?php unset($attr0) ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/folder/edit.tpl.php b/themes/default/pages/html/folder/edit.tpl.php @@ -1,51 +1,71 @@ -<?php $attr = array('class'=>'main') ?><?php $attr_class='main' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<?php $attr1 = array('class'=>'main','title'=>$cms_title) ?><?php $attr1_class='main' ?><?php $attr1_title=$cms_title ?><?php header('Content-Type: text/html; charset='.lang('CHARSET')) +?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <!-- $Id$ --> <head> - <title><?php echo $cms_title ?></title> - <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> + <title><?php echo $attr1_title ?></title> + <meta http-equiv="content-type" content="text/html; charset=<?php echo lang('CHARSET') ?>" /> <meta name="MSSmartTagsPreventParsing" content="true" /> <meta name="robots" content="noindex,nofollow" /> +<?php if (is_array($windowMenu)) foreach( $windowMenu as $menu ) + { + ?> + <link rel="section" href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text']) ?>" /> +<?php + } +?> <link rel="stylesheet" type="text/css" href="./themes/default/css/default.css" /> <?php if($stylesheet!='default') { ?> <link rel="stylesheet" type="text/css" href="<?php echo $stylesheet ?>" /> <?php } ?> </head> -<body class="<?php echo $attr_class ?>"> +<body class="<?php echo $attr1_class ?>"> - -<?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('action'=>'folder','subaction'=>'multiple','id'=>'','name'=>'','target'=>'_self','method'=>'post','enctype'=>'application/x-www-form-urlencoded') ?><?php $attr_action='folder' ?><?php $attr_subaction='multiple' ?><?php $attr_id='' ?><?php $attr_name='' ?><?php $attr_target='_self' ?><?php $attr_method='post' ?><?php $attr_enctype='application/x-www-form-urlencoded' ?><?php - if (empty($attr_action)) - $attr_action = $actionName; - if (empty($attr_subaction)) - $attr_subaction = $targetSubActionName; - if (empty($attr_id)) - $attr_id = $this->getRequestId(); +<?php unset($attr1) ?><?php unset($attr1_class) ?><?php unset($attr1_title) ?><?php $attr2 = array('action'=>'folder','subaction'=>'multiple','target'=>'_self','method'=>'post','enctype'=>'application/x-www-form-urlencoded') ?><?php $attr2_action='folder' ?><?php $attr2_subaction='multiple' ?><?php $attr2_target='_self' ?><?php $attr2_method='post' ?><?php $attr2_enctype='application/x-www-form-urlencoded' ?><?php + if (empty($attr2_action)) + $attr2_action = $actionName; + if (empty($attr2_subaction)) + $attr2_subaction = $targetSubActionName; + if (empty($attr2_id)) + $attr2_id = $this->getRequestId(); -?><form name="<?php echo $attr_name ?>" - target="<?php echo $attr_target ?>" - action="<?php echo Html::url( $attr_action,$attr_subaction,$attr_id ) ?>" - method="<?php echo $attr_method ?>" - enctype="<?php echo $attr_enctype ?>"> -<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $attr_action ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $attr_subaction ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr_id ?>" /><?php +?><form name="<?php echo $attr2_name ?>" + target="<?php echo $attr2_target ?>" + action="<?php echo Html::url( $attr2_action,$attr2_subaction,$attr2_id ) ?>" + method="<?php echo $attr2_method ?>" + enctype="<?php echo $attr2_enctype ?>"> +<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $attr2_action ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $attr2_subaction ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr2_id ?>" /><?php if ( $conf['interface']['url_sessionid'] ) echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; -?><?php unset($attr) ?><?php unset($attr_action) ?><?php unset($attr_subaction) ?><?php unset($attr_id) ?><?php unset($attr_name) ?><?php unset($attr_target) ?><?php unset($attr_method) ?><?php unset($attr_enctype) ?><?php $attr = array('name'=>'ids','default'=>'') ?><?php $attr_name='ids' ?><?php $attr_default='' ?><input type="hidden" name="<?php echo $attr_name ?>" value="<?php echo isset($$attr_name)?$$attr_name:$attr_default ?>" /><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_default) ?><?php $attr = array('name'=>'type','default'=>'') ?><?php $attr_name='type' ?><?php $attr_default='' ?><input type="hidden" name="<?php echo $attr_name ?>" value="<?php echo isset($$attr_name)?$$attr_name:$attr_default ?>" /><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_default) ?><?php $attr = array('title'=>'titelso','name'=>'bla','icon'=>'','widths'=>'5%,75%','width'=>'85%') ?><?php $attr_title='titelso' ?><?php $attr_name='bla' ?><?php $attr_icon='' ?><?php $attr_widths='5%,75%' ?><?php $attr_width='85%' ?><?php +?><?php unset($attr2) ?><?php unset($attr2_action) ?><?php unset($attr2_subaction) ?><?php unset($attr2_target) ?><?php unset($attr2_method) ?><?php unset($attr2_enctype) ?><?php $attr3 = array('name'=>'ids') ?><?php $attr3_name='ids' ?><input type="hidden" name="<?php echo $attr3_name ?>" value="<?php echo isset($$attr3_name)?$$attr3_name:$attr3_default ?>" /><?php unset($attr3) ?><?php unset($attr3_name) ?><?php $attr3 = array('name'=>'type') ?><?php $attr3_name='type' ?><input type="hidden" name="<?php echo $attr3_name ?>" value="<?php echo isset($$attr3_name)?$$attr3_name:$attr3_default ?>" /><?php unset($attr3) ?><?php unset($attr3_name) ?><?php $attr3 = array('title'=>'titelso','name'=>'bla','widths'=>'5%,75%','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr3_title='titelso' ?><?php $attr3_name='bla' ?><?php $attr3_widths='5%,75%' ?><?php $attr3_width='93%' ?><?php $attr3_rowclasses='odd,even' ?><?php $attr3_columnclasses='1,2,3' ?><?php $coloumn_widths=array(); - if (!empty($attr_widths)) + if (!empty($attr3_widths)) + { + $column_widths = explode(',',$attr3_widths); + unset($attr3['widths']); + } + if (!empty($attr3_rowclasses)) { - $column_widths = explode(',',$attr_widths); - unset($attr['widths']); + $row_classes = explode(',',$attr3_rowclasses); + $row_class_idx = 999; + unset($attr3['rowclasses']); + } + if (!empty($attr3_columnclasses)) + { + $column_classes = explode(',',$attr3_columnclasses); + unset($attr3['columnclasses']); } global $image_dir; echo '<br/><br/><br/><center>'; - echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_width.'">'; + echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr3_width.'">'; echo '<tr><td class="menu">'; - if ( !empty($attr_icon) ) - echo '<img src="'.$image_dir.'icon_'.$attr_icon.IMG_ICON_EXT.'" align="left" border="0">'; + if ( !empty($attr3_icon) ) + echo '<img src="'.$image_dir.'icon_'.$attr3_icon.IMG_ICON_EXT.'" align="left" border="0">'; + if ( !is_array($path) ) + $path = array(); foreach( $path as $pathElement) { extract($pathElement); @@ -54,7 +74,13 @@ } echo '<span class="title">'.lang($windowTitle).'</span>'; ?> - </th> + </td><td class="menu" style="align:right;"> + <?php if (isset($windowIcons)) foreach( $windowIcons as $icon ) + { + ?><a href="<?php echo $icon['url'] ?>" title="<?php echo 'ICON_'.lang($menu['type'].'_DESC') ?>"><image border="0" src="<?php echo $image_dir.$icon['type'].IMG_ICON_EXT ?>"></a>&nbsp;<?php + } + ?> + </td> </tr> <tr><td class="subaction"> <?php foreach( $windowMenu as $menu ) @@ -90,504 +116,951 @@ <tr> <td> - <table class="n" cellspacing="0" width="100%" cellpadding="4"><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_name) ?><?php unset($attr_icon) ?><?php unset($attr_widths) ?><?php unset($attr_width) ?><?php $attr = array() ?><?php - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - + <table class="n" cellspacing="0" width="100%" cellpadding="4"><?php unset($attr3) ?><?php unset($attr3_title) ?><?php unset($attr3_name) ?><?php unset($attr3_widths) ?><?php unset($attr3_width) ?><?php unset($attr3_rowclasses) ?><?php unset($attr3_columnclasses) ?><?php $attr4 = array() ?><?php + $row_class_idx++; + if ($row_class_idx > count($row_classes)) + $row_class_idx=1; + $row_class=$row_classes[$row_class_idx-1]; + + if (empty($attr4_class)) + $attr4_class=$row_class; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'help','colspan'=>'') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='help' ?><?php $attr_colspan='' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5 = array('class'=>'help') ?><?php $attr5_class='help' ?><?php +// if (empty($attr5_class)) +// $attr5['class']=$row_class; + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr5_class)) + $attr5['class']=$column_class; global $cell_column_nr; $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) ) - $attr['width']=$column_widths[$cell_column_nr-1]; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; + +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('class'=>'text','raw'=>'_') ?><?php $attr6_class='text' ?><?php $attr6_raw='_' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'','raw'=>'_','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='' ?><?php $attr_raw='_' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php - if (!empty($attr_array)) + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key.'_HELP'); + else + $attr6_title = ''; + +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; + + if (!empty($attr6_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; - else - $tmp_text = lang($tmpArray[$attr_text]); - } - elseif (!empty($attr_text)) - $tmp_text = lang($attr_text); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - else echo 'text error'; - - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + //echo $$attr6_array[$attr6_var].'%'; + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; + else + $tmp_text = lang($tmpArray[$attr6_text]); + } + elseif (!empty($attr6_text)) + if ( isset($$attr6_text)) + $tmp_text = lang($$attr6_text); + else + $tmp_text = lang($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = lang($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = lang($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; + else + { + $tmp_text = '&nbsp;'; + //Html::debug($attr6);echo 'text error'; + } + + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><?php unset($attr_text) ?><?php unset($attr_raw) ?><?php unset($attr_maxlength) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'help','colspan'=>'') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='help' ?><?php $attr_colspan='' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_raw) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr5 = array('class'=>'help') ?><?php $attr5_class='help' ?><?php +// if (empty($attr5_class)) +// $attr5['class']=$row_class; + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr5_class)) + $attr5['class']=$column_class; global $cell_column_nr; $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) ) - $attr['width']=$column_widths[$cell_column_nr-1]; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; + +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('class'=>'text','text'=>'GLOBAL_NAME') ?><?php $attr6_class='text' ?><?php $attr6_text='GLOBAL_NAME' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'GLOBAL_NAME','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_NAME' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php - if (!empty($attr_array)) + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key.'_HELP'); + else + $attr6_title = ''; + +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; + + if (!empty($attr6_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; - else - $tmp_text = lang($tmpArray[$attr_text]); - } - elseif (!empty($attr_text)) - $tmp_text = lang($attr_text); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - else echo 'text error'; - - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + //echo $$attr6_array[$attr6_var].'%'; + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; + else + $tmp_text = lang($tmpArray[$attr6_text]); + } + elseif (!empty($attr6_text)) + if ( isset($$attr6_text)) + $tmp_text = lang($$attr6_text); + else + $tmp_text = lang($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = lang($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = lang($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; + else + { + $tmp_text = '&nbsp;'; + //Html::debug($attr6);echo 'text error'; + } + + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><?php unset($attr_text) ?><?php unset($attr_raw) ?><?php unset($attr_maxlength) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array('list'=>'objectlist','extract'=>'true','key'=>'list_key','value'=>'list_value') ?><?php $attr_list='objectlist' ?><?php $attr_extract='true' ?><?php $attr_key='list_key' ?><?php $attr_value='list_value' ?><?php - $list_tmp_key = $attr_key; - $list_tmp_value = $attr_value; - $list_extract = ($attr_extract=='true'); +?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_text) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4 = array('list'=>'objectlist','extract'=>'1','key'=>'list_key','value'=>'list_value') ?><?php $attr4_list='objectlist' ?><?php $attr4_extract='1' ?><?php $attr4_key='list_key' ?><?php $attr4_value='list_value' ?><?php + $attr4_list_tmp_key = $attr4_key; + $attr4_list_tmp_value = $attr4_value; + $attr4_list_extract = ($attr4_extract==true); + if ( !is_array($$attr4_list) ) + $$attr4_list = array(); +// die('not an array in list,var='.$attr4_list); +// Html::debug($$attr4_list); - foreach( $$attr_list as $$list_tmp_key => $$list_tmp_value ) + foreach( $$attr4_list as $$attr4_list_tmp_key => $$attr4_list_tmp_value ) { - if ( $list_extract ) + if ( $attr4_list_extract ) { - if ( !is_array($$list_tmp_value) ) + if ( !is_array($$attr4_list_tmp_value) ) { - print_r($$list_tmp_value); - die( 'not an array at key: '.$$list_tmp_key ); + print_r($$attr4_list_tmp_value); + die( 'not an array at key: '.$$attr4_list_tmp_key ); } - extract($$list_tmp_value); + extract($$attr4_list_tmp_value); } -?><?php unset($attr) ?><?php unset($attr_list) ?><?php unset($attr_extract) ?><?php unset($attr_key) ?><?php unset($attr_value) ?><?php $attr = array() ?><?php - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - +?><?php unset($attr4) ?><?php unset($attr4_list) ?><?php unset($attr4_extract) ?><?php unset($attr4_key) ?><?php unset($attr4_value) ?><?php $attr5 = array() ?><?php + $row_class_idx++; + if ($row_class_idx > count($row_classes)) + $row_class_idx=1; + $row_class=$row_classes[$row_class_idx-1]; + + if (empty($attr5_class)) + $attr5_class=$row_class; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'fx','colspan'=>'') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?php $attr_colspan='' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><tr class="<?php echo $attr5_class ?>"><?php unset($attr5) ?><?php $attr6 = array() ?><?php +// if (empty($attr6_class)) +// $attr6['class']=$row_class; + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr6_class)) + $attr6['class']=$column_class; global $cell_column_nr; $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) ) - $attr['width']=$column_widths[$cell_column_nr-1]; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) ) + $attr6['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('file'=>'','url'=>'','align'=>'left','type'=>'icon','elementtype'=>'') ?><?php $attr_file='' ?><?php $attr_url='' ?><?php $attr_align='left' ?><?php $attr_type='icon' ?><?php $attr_elementtype='' ?><?php -if (!empty($attr_elementtype)) { -?><img src="<?php echo $image_dir.'icon_el_'.$$attr_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php -} elseif (!empty($attr_type)) { -?><img src="<?php echo $image_dir.'icon_'.$$attr_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php -} elseif (!empty($$attr_url)) { -?><img src="<?php echo $$attr_url ?>" border="0" align="<?php echo $attr_align ?>"><?php -} elseif (!empty($attr_file)) { -?><img src="<?php echo $image_dir.$$attr_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php } ?><?php unset($attr) ?><?php unset($attr_file) ?><?php unset($attr_url) ?><?php unset($attr_align) ?><?php unset($attr_type) ?><?php unset($attr_elementtype) ?><?php $attr = array('title'=>'','class'=>'','var'=>'name','text'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='name' ?><?php $attr_text='' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php - if (!empty($attr_array)) +?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php $attr7 = array('icon'=>$type,'align'=>'left') ?><?php $attr7_icon=$type ?><?php $attr7_align='left' ?><?php +if (isset($attr7_elementtype)) { +?><img src="<?php echo $image_dir.'icon_el_'.$attr7_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_type)) { +?><img src="<?php echo $image_dir.'icon_'.$attr7_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_icon)) { +?><img src="<?php echo $image_dir.'icon_'.$attr7_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_url)) { +?><img src="<?php echo $attr7_url ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_fileext)) { +?><img src="<?php echo $image_dir.$attr7_fileext ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_file)) { +?><img src="<?php echo $image_dir.$attr7_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php } ?><?php unset($attr7) ?><?php unset($attr7_icon) ?><?php unset($attr7_align) ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr6 = array() ?><?php +// if (empty($attr6_class)) +// $attr6['class']=$row_class; + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr6_class)) + $attr6['class']=$column_class; + + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) ) + $attr6['width']=$column_widths[$cell_column_nr-1]; + +?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php $attr7 = array('class'=>'text','var'=>'name') ?><?php $attr7_class='text' ?><?php $attr7_var='name' ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + + if(empty($attr7_title)) + if (!empty($attr7_key)) + $attr7_title = lang($attr7_key.'_HELP'); + else + $attr7_title = ''; + +?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php + $attr7_title = ''; + + if (!empty($attr7_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; - else - $tmp_text = lang($tmpArray[$attr_text]); - } - elseif (!empty($attr_text)) - $tmp_text = lang($attr_text); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - else echo 'text error'; - - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + //echo $$attr7_array[$attr7_var].'%'; + $tmpArray = $$attr7_array; + if (!empty($attr7_var)) + $tmp_text = $tmpArray[$attr7_var]; + else + $tmp_text = lang($tmpArray[$attr7_text]); + } + elseif (!empty($attr7_text)) + if ( isset($$attr7_text)) + $tmp_text = lang($$attr7_text); + else + $tmp_text = lang($attr7_text); + elseif (!empty($attr7_textvar)) + $tmp_text = lang($$attr7_textvar); + elseif (!empty($attr7_key)) + $tmp_text = lang($attr7_key); + elseif (!empty($attr7_var)) + $tmp_text = isset($$attr7_var)?htmlentities($$attr7_var):'error: variable '.$attr7_var.' not present'; + elseif (!empty($attr7_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr7_raw); + elseif (!empty($attr7_value)) + $tmp_text = $attr7_value; + else + { + $tmp_text = '&nbsp;'; + //Html::debug($attr7);echo 'text error'; + } + + if ( !empty($attr7_maxlength) && intval($attr7_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr7_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><?php unset($attr_text) ?><?php unset($attr_raw) ?><?php unset($attr_maxlength) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'','raw'=>'_','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='' ?><?php $attr_raw='_' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php - if (!empty($attr_array)) +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_var) ?><?php $attr7 = array('class'=>'text','raw'=>'_') ?><?php $attr7_class='text' ?><?php $attr7_raw='_' ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + + if(empty($attr7_title)) + if (!empty($attr7_key)) + $attr7_title = lang($attr7_key.'_HELP'); + else + $attr7_title = ''; + +?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php + $attr7_title = ''; + + if (!empty($attr7_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; - else - $tmp_text = lang($tmpArray[$attr_text]); - } - elseif (!empty($attr_text)) - $tmp_text = lang($attr_text); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - else echo 'text error'; - - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + //echo $$attr7_array[$attr7_var].'%'; + $tmpArray = $$attr7_array; + if (!empty($attr7_var)) + $tmp_text = $tmpArray[$attr7_var]; + else + $tmp_text = lang($tmpArray[$attr7_text]); + } + elseif (!empty($attr7_text)) + if ( isset($$attr7_text)) + $tmp_text = lang($$attr7_text); + else + $tmp_text = lang($attr7_text); + elseif (!empty($attr7_textvar)) + $tmp_text = lang($$attr7_textvar); + elseif (!empty($attr7_key)) + $tmp_text = lang($attr7_key); + elseif (!empty($attr7_var)) + $tmp_text = isset($$attr7_var)?htmlentities($$attr7_var):'error: variable '.$attr7_var.' not present'; + elseif (!empty($attr7_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr7_raw); + elseif (!empty($attr7_value)) + $tmp_text = $attr7_value; + else + { + $tmp_text = '&nbsp;'; + //Html::debug($attr7);echo 'text error'; + } + + if ( !empty($attr7_maxlength) && intval($attr7_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr7_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><?php unset($attr_text) ?><?php unset($attr_raw) ?><?php unset($attr_maxlength) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php } ?><?php unset($attr) ?><?php $attr = array('var'=>'','value'=>'','invert'=>'','empty'=>'','present'=>'folder','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='folder' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_raw) ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3 = array() ?><?php } ?><?php unset($attr3) ?><?php $attr4 = array('present'=>'folder') ?><?php $attr4_present='folder' ?><?php // Wahr-Vergleich - if ( !empty($attr_true) ) - $exec = $$attr_true == true; +// Html::debug($attr4); + + if ( isset($attr4_true) ) + { + if (gettype($attr4_true) === '' && gettype($attr4_true) === '1') + $exec = $$attr4_true == true; + else + $exec = $attr4_true == true; + } // Falsch-Vergleich - elseif ( !empty($attr_false) ) - $exec = $$attr_false != true; - + elseif ( isset($attr4_false) ) + { + if (gettype($attr4_false) === '' && gettype($attr4_false) === '1') + $exec = $$attr4_false == false; + else + $exec = $attr4_false == false; + } // Inhalt-Vergleich mit Wertliste - elseif( !empty($attr_contains) ) - $exec = in_array($$attr_var,explode(',',$attr_contains)); + elseif( isset($attr4_contains) ) + $exec = in_array($attr4_value,explode(',',$attr4_contains)); // Inhalt-Vergleich - elseif( !empty($attr_var) ) - $exec = $$attr_var == $attr_value; + elseif( isset($attr4_equals)&& isset($attr4_value) ) + $exec = $attr4_equals == $attr4_value; // Vergleich auf leer - elseif ( !empty($attr_empty) ) + elseif ( isset($attr4_empty) ) { - if ( !isset($$attr_empty) ) - $exec = true; - elseif ( is_array($$attr_empty) ) - $exec = (count($$attr_empty)==0); - elseif ( is_bool($$attr_empty) ) + if ( !isset($$attr4_empty) ) + $exec = empty($attr4_empty); + elseif ( is_array($$attr4_empty) ) + $exec = (count($$attr4_empty)==0); + elseif ( is_bool($$attr4_empty) ) $exec = true; else - $exec = empty( $$attr_empty ); + $exec = empty( $$attr4_empty ); } // Vergleich auf Vorhandensein - elseif ( !empty($attr_present) ) + elseif ( isset($attr4_present) ) { - if ( !isset($$attr_present) ) - $exec = false; - elseif ( is_array($$attr_present) ) - $exec = (count($$attr_present)>0); - elseif ( is_bool($$attr_present) ) - $exec = true; - elseif ( is_numeric($$attr_present) ) - $exec = $$attr_present>=0; - else - $exec = true; + $exec = isset($$attr4_present); +// if ( !isset($$attr4_present) ) +// $exec = false; +// elseif ( is_array($$attr4_present) ) +// $exec = (count($$attr4_present)>0); +// elseif ( is_bool($$attr4_present) ) +// $exec = $$attr4_present; +// elseif ( is_numeric($$attr4_present) ) +// $exec = $$attr4_present>=0; +// else +// $exec = true; } - // Vergleich auf nicht-leer - elseif ( !empty($attr_notempty) ) - { - if ( !isset($$attr_notempty) ) - $exec = false; - elseif ( is_array($$attr_notempty) ) - $exec = (count($$attr_notempty)>0); - elseif ( is_bool($$attr_notempty) ) - $exec = true; - elseif ( is_numeric($$attr_notempty) ) - $exec = $$attr_notempty>=0; - else - $exec = !empty( $$attr_notempty ); - } else { - die("error in IF"); + Html::debug( $attr4 ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; } // Ergebnis umdrehen - if ( !empty($attr_invert) ) + // TODO: Bald ausbauen, stattdessen "not" verwenden. + if ( !empty($attr4_invert) ) $exec = !$exec; + // Ergebnis umdrehen + if ( !empty($attr4_not) ) + $exec = !$exec; + + unset($attr4_true); + unset($attr4_false); + unset($attr4_notempty); + unset($attr4_empty); + unset($attr4_contains); + unset($attr4_present); + unset($attr4_invert); + unset($attr4_not); + unset($attr4_value); + unset($attr4_equals); + + $last_exec = $exec; + if ( $exec ) { -?><?php unset($attr) ?><?php unset($attr_var) ?><?php unset($attr_value) ?><?php unset($attr_invert) ?><?php unset($attr_empty) ?><?php unset($attr_present) ?><?php unset($attr_contains) ?><?php unset($attr_true) ?><?php unset($attr_false) ?><?php $attr = array() ?><?php - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - +?><?php unset($attr4) ?><?php unset($attr4_present) ?><?php $attr5 = array() ?><?php + $row_class_idx++; + if ($row_class_idx > count($row_classes)) + $row_class_idx=1; + $row_class=$row_classes[$row_class_idx-1]; + + if (empty($attr5_class)) + $attr5_class=$row_class; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'fx','colspan'=>'') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?php $attr_colspan='' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><tr class="<?php echo $attr5_class ?>"><?php unset($attr5) ?><?php $attr6 = array('colspan'=>'2') ?><?php $attr6_colspan='2' ?><?php +// if (empty($attr6_class)) +// $attr6['class']=$row_class; + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr6_class)) + $attr6['class']=$column_class; global $cell_column_nr; $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) ) - $attr['width']=$column_widths[$cell_column_nr-1]; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) ) + $attr6['width']=$column_widths[$cell_column_nr-1]; + +?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_colspan) ?><?php $attr7 = array('class'=>'text','text'=>lang('folder_select_target_folder')) ?><?php $attr7_class='text' ?><?php $attr7_text=lang('folder_select_target_folder') ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + + if(empty($attr7_title)) + if (!empty($attr7_key)) + $attr7_title = lang($attr7_key.'_HELP'); + else + $attr7_title = ''; + +?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php + $attr7_title = ''; + + if (!empty($attr7_array)) + { + //geht nicht: + //echo $$attr7_array[$attr7_var].'%'; + $tmpArray = $$attr7_array; + if (!empty($attr7_var)) + $tmp_text = $tmpArray[$attr7_var]; + else + $tmp_text = lang($tmpArray[$attr7_text]); + } + elseif (!empty($attr7_text)) + if ( isset($$attr7_text)) + $tmp_text = lang($$attr7_text); + else + $tmp_text = lang($attr7_text); + elseif (!empty($attr7_textvar)) + $tmp_text = lang($$attr7_textvar); + elseif (!empty($attr7_key)) + $tmp_text = lang($attr7_key); + elseif (!empty($attr7_var)) + $tmp_text = isset($$attr7_var)?htmlentities($$attr7_var):'error: variable '.$attr7_var.' not present'; + elseif (!empty($attr7_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr7_raw); + elseif (!empty($attr7_value)) + $tmp_text = $attr7_value; + else + { + $tmp_text = '&nbsp;'; + //Html::debug($attr7);echo 'text error'; + } + + if ( !empty($attr7_maxlength) && intval($attr7_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr7_maxlength) ); -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('list'=>'folder','name'=>'targetobjectid','default'=>'','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='folder' ?><?php $attr_name='targetobjectid' ?><?php $attr_default='' ?><?php $attr_onchange='' ?><?php $attr_title='' ?><?php $attr_class='' ?><select size="1" name="<?php echo $attr_name ?>" onchange="<?php echo $attr_onchange ?>" title="<?php echo $attr_title ?>" class="<?php echo $attr_class ?>"<?php -if (count($$attr_list)==1) echo ' disabled="disabled"' + echo $tmp_text; +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_text) ?><?php $attr7 = array('class'=>'text','raw'=>'_') ?><?php $attr7_class='text' ?><?php $attr7_raw='_' ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + + if(empty($attr7_title)) + if (!empty($attr7_key)) + $attr7_title = lang($attr7_key.'_HELP'); + else + $attr7_title = ''; + +?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php + $attr7_title = ''; + + if (!empty($attr7_array)) + { + //geht nicht: + //echo $$attr7_array[$attr7_var].'%'; + $tmpArray = $$attr7_array; + if (!empty($attr7_var)) + $tmp_text = $tmpArray[$attr7_var]; + else + $tmp_text = lang($tmpArray[$attr7_text]); + } + elseif (!empty($attr7_text)) + if ( isset($$attr7_text)) + $tmp_text = lang($$attr7_text); + else + $tmp_text = lang($attr7_text); + elseif (!empty($attr7_textvar)) + $tmp_text = lang($$attr7_textvar); + elseif (!empty($attr7_key)) + $tmp_text = lang($attr7_key); + elseif (!empty($attr7_var)) + $tmp_text = isset($$attr7_var)?htmlentities($$attr7_var):'error: variable '.$attr7_var.' not present'; + elseif (!empty($attr7_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr7_raw); + elseif (!empty($attr7_value)) + $tmp_text = $attr7_value; + else + { + $tmp_text = '&nbsp;'; + //Html::debug($attr7);echo 'text error'; + } + + if ( !empty($attr7_maxlength) && intval($attr7_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr7_maxlength) ); + + echo $tmp_text; +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_raw) ?><?php $attr7 = array('list'=>'folder','name'=>'targetobjectid') ?><?php $attr7_list='folder' ?><?php $attr7_name='targetobjectid' ?><select size="1" id="id_<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" onchange="<?php echo $attr7_onchange ?>" title="<?php echo $attr7_title ?>" class="<?php echo $attr7_class ?>"<?php +if (count($$attr7_list)==1) echo ' disabled="disabled"' ?>><?php - foreach( $$attr_list as $box_key=>$box_value ) + foreach( $$attr7_list as $box_key=>$box_value ) { - echo '<option class="'.$attr_class.'" value="'.$box_key.'"'; - if (isset($$attr_name)&&$box_key==$$attr_name || isset($$attr_default)&&$box_key == $$attr_default) + echo '<option class="'.$attr7_class.'" value="'.$box_key.'"'; + if (isset($$attr7_name)&&$box_key==$$attr7_name || isset($attr7_default)&&$box_key == $attr7_default) echo ' selected="selected"'; echo '>'.$box_value.'</option>'; } ?></select><?php -if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" value="'.$box_key.'" />' -?><?php unset($attr) ?><?php unset($attr_list) ?><?php unset($attr_name) ?><?php unset($attr_default) ?><?php unset($attr_onchange) ?><?php unset($attr_title) ?><?php unset($attr_class) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php +if (count($$attr7_list)==1) echo '<input type="hidden" name="'.$attr7_name.'" value="'.$box_key.'" />' +?><?php unset($attr7) ?><?php unset($attr7_list) ?><?php unset($attr7_name) ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array('var'=>'','value'=>'','invert'=>'','empty'=>'','present'=>'ask_filename','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='ask_filename' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php + +?><?php unset($attr3) ?><?php $attr4 = array('present'=>'ask_filename') ?><?php $attr4_present='ask_filename' ?><?php // Wahr-Vergleich - if ( !empty($attr_true) ) - $exec = $$attr_true == true; +// Html::debug($attr4); + + if ( isset($attr4_true) ) + { + if (gettype($attr4_true) === '' && gettype($attr4_true) === '1') + $exec = $$attr4_true == true; + else + $exec = $attr4_true == true; + } // Falsch-Vergleich - elseif ( !empty($attr_false) ) - $exec = $$attr_false != true; - + elseif ( isset($attr4_false) ) + { + if (gettype($attr4_false) === '' && gettype($attr4_false) === '1') + $exec = $$attr4_false == false; + else + $exec = $attr4_false == false; + } // Inhalt-Vergleich mit Wertliste - elseif( !empty($attr_contains) ) - $exec = in_array($$attr_var,explode(',',$attr_contains)); + elseif( isset($attr4_contains) ) + $exec = in_array($attr4_value,explode(',',$attr4_contains)); // Inhalt-Vergleich - elseif( !empty($attr_var) ) - $exec = $$attr_var == $attr_value; + elseif( isset($attr4_equals)&& isset($attr4_value) ) + $exec = $attr4_equals == $attr4_value; // Vergleich auf leer - elseif ( !empty($attr_empty) ) + elseif ( isset($attr4_empty) ) { - if ( !isset($$attr_empty) ) - $exec = true; - elseif ( is_array($$attr_empty) ) - $exec = (count($$attr_empty)==0); - elseif ( is_bool($$attr_empty) ) + if ( !isset($$attr4_empty) ) + $exec = empty($attr4_empty); + elseif ( is_array($$attr4_empty) ) + $exec = (count($$attr4_empty)==0); + elseif ( is_bool($$attr4_empty) ) $exec = true; else - $exec = empty( $$attr_empty ); + $exec = empty( $$attr4_empty ); } // Vergleich auf Vorhandensein - elseif ( !empty($attr_present) ) + elseif ( isset($attr4_present) ) { - if ( !isset($$attr_present) ) - $exec = false; - elseif ( is_array($$attr_present) ) - $exec = (count($$attr_present)>0); - elseif ( is_bool($$attr_present) ) - $exec = true; - elseif ( is_numeric($$attr_present) ) - $exec = $$attr_present>=0; - else - $exec = true; + $exec = isset($$attr4_present); +// if ( !isset($$attr4_present) ) +// $exec = false; +// elseif ( is_array($$attr4_present) ) +// $exec = (count($$attr4_present)>0); +// elseif ( is_bool($$attr4_present) ) +// $exec = $$attr4_present; +// elseif ( is_numeric($$attr4_present) ) +// $exec = $$attr4_present>=0; +// else +// $exec = true; } - // Vergleich auf nicht-leer - elseif ( !empty($attr_notempty) ) - { - if ( !isset($$attr_notempty) ) - $exec = false; - elseif ( is_array($$attr_notempty) ) - $exec = (count($$attr_notempty)>0); - elseif ( is_bool($$attr_notempty) ) - $exec = true; - elseif ( is_numeric($$attr_notempty) ) - $exec = $$attr_notempty>=0; - else - $exec = !empty( $$attr_notempty ); - } else { - die("error in IF"); + Html::debug( $attr4 ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; } // Ergebnis umdrehen - if ( !empty($attr_invert) ) + // TODO: Bald ausbauen, stattdessen "not" verwenden. + if ( !empty($attr4_invert) ) $exec = !$exec; + // Ergebnis umdrehen + if ( !empty($attr4_not) ) + $exec = !$exec; + + unset($attr4_true); + unset($attr4_false); + unset($attr4_notempty); + unset($attr4_empty); + unset($attr4_contains); + unset($attr4_present); + unset($attr4_invert); + unset($attr4_not); + unset($attr4_value); + unset($attr4_equals); + + $last_exec = $exec; + if ( $exec ) { -?><?php unset($attr) ?><?php unset($attr_var) ?><?php unset($attr_value) ?><?php unset($attr_invert) ?><?php unset($attr_empty) ?><?php unset($attr_present) ?><?php unset($attr_contains) ?><?php unset($attr_true) ?><?php unset($attr_false) ?><?php $attr = array() ?><?php - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - +?><?php unset($attr4) ?><?php unset($attr4_present) ?><?php $attr5 = array() ?><?php + $row_class_idx++; + if ($row_class_idx > count($row_classes)) + $row_class_idx=1; + $row_class=$row_classes[$row_class_idx-1]; + + if (empty($attr5_class)) + $attr5_class=$row_class; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'fx','colspan'=>'') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?php $attr_colspan='' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><tr class="<?php echo $attr5_class ?>"><?php unset($attr5) ?><?php $attr6 = array('colspan'=>'2') ?><?php $attr6_colspan='2' ?><?php +// if (empty($attr6_class)) +// $attr6['class']=$row_class; + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr6_class)) + $attr6['class']=$column_class; global $cell_column_nr; $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) ) - $attr['width']=$column_widths[$cell_column_nr-1]; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) ) + $attr6['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('class'=>'','default'=>'','type'=>'text','index'=>'','name'=>'filename','prefix'=>'','value'=>'','size'=>'40','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_index='' ?><?php $attr_name='filename' ?><?php $attr_prefix='' ?><?php $attr_value='' ?><?php $attr_size='40' ?><?php $attr_maxlength='256' ?><?php $attr_onchange='' ?><input name="<?php echo $attr_name ?>" size="<?php echo $attr_size ?>" maxlength="<?php echo $attr_maxlength ?>" class="<?php echo $attr_class ?>" value="<?php echo isset($$attr_name)?$$attr_name:$attr_default ?>" /><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><?php unset($attr_type) ?><?php unset($attr_index) ?><?php unset($attr_name) ?><?php unset($attr_prefix) ?><?php unset($attr_value) ?><?php unset($attr_size) ?><?php unset($attr_maxlength) ?><?php unset($attr_onchange) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php +?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_colspan) ?><?php $attr7 = array('type'=>'text','name'=>'filename','size'=>'40','maxlength'=>'256') ?><?php $attr7_type='text' ?><?php $attr7_name='filename' ?><?php $attr7_size='40' ?><?php $attr7_maxlength='256' ?><input id="id_<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" type="<?php echo $attr7_type ?>" size="<?php echo $attr7_size ?>" maxlength="<?php echo $attr7_maxlength ?>" class="<?php echo $attr7_class ?>" value="<?php echo isset($$attr7_name)?$$attr7_name:$attr7_default ?>" onxxxMouseOver="this.focus();" /><?php unset($attr7) ?><?php unset($attr7_type) ?><?php unset($attr7_name) ?><?php unset($attr7_size) ?><?php unset($attr7_maxlength) ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array('var'=>'','value'=>'','invert'=>'','empty'=>'','present'=>'ask_commit','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='ask_commit' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php + +?><?php unset($attr3) ?><?php $attr4 = array('present'=>'ask_commit') ?><?php $attr4_present='ask_commit' ?><?php // Wahr-Vergleich - if ( !empty($attr_true) ) - $exec = $$attr_true == true; +// Html::debug($attr4); + + if ( isset($attr4_true) ) + { + if (gettype($attr4_true) === '' && gettype($attr4_true) === '1') + $exec = $$attr4_true == true; + else + $exec = $attr4_true == true; + } // Falsch-Vergleich - elseif ( !empty($attr_false) ) - $exec = $$attr_false != true; - + elseif ( isset($attr4_false) ) + { + if (gettype($attr4_false) === '' && gettype($attr4_false) === '1') + $exec = $$attr4_false == false; + else + $exec = $attr4_false == false; + } // Inhalt-Vergleich mit Wertliste - elseif( !empty($attr_contains) ) - $exec = in_array($$attr_var,explode(',',$attr_contains)); + elseif( isset($attr4_contains) ) + $exec = in_array($attr4_value,explode(',',$attr4_contains)); // Inhalt-Vergleich - elseif( !empty($attr_var) ) - $exec = $$attr_var == $attr_value; + elseif( isset($attr4_equals)&& isset($attr4_value) ) + $exec = $attr4_equals == $attr4_value; // Vergleich auf leer - elseif ( !empty($attr_empty) ) + elseif ( isset($attr4_empty) ) { - if ( !isset($$attr_empty) ) - $exec = true; - elseif ( is_array($$attr_empty) ) - $exec = (count($$attr_empty)==0); - elseif ( is_bool($$attr_empty) ) + if ( !isset($$attr4_empty) ) + $exec = empty($attr4_empty); + elseif ( is_array($$attr4_empty) ) + $exec = (count($$attr4_empty)==0); + elseif ( is_bool($$attr4_empty) ) $exec = true; else - $exec = empty( $$attr_empty ); + $exec = empty( $$attr4_empty ); } // Vergleich auf Vorhandensein - elseif ( !empty($attr_present) ) + elseif ( isset($attr4_present) ) { - if ( !isset($$attr_present) ) - $exec = false; - elseif ( is_array($$attr_present) ) - $exec = (count($$attr_present)>0); - elseif ( is_bool($$attr_present) ) - $exec = true; - elseif ( is_numeric($$attr_present) ) - $exec = $$attr_present>=0; - else - $exec = true; + $exec = isset($$attr4_present); +// if ( !isset($$attr4_present) ) +// $exec = false; +// elseif ( is_array($$attr4_present) ) +// $exec = (count($$attr4_present)>0); +// elseif ( is_bool($$attr4_present) ) +// $exec = $$attr4_present; +// elseif ( is_numeric($$attr4_present) ) +// $exec = $$attr4_present>=0; +// else +// $exec = true; } - // Vergleich auf nicht-leer - elseif ( !empty($attr_notempty) ) - { - if ( !isset($$attr_notempty) ) - $exec = false; - elseif ( is_array($$attr_notempty) ) - $exec = (count($$attr_notempty)>0); - elseif ( is_bool($$attr_notempty) ) - $exec = true; - elseif ( is_numeric($$attr_notempty) ) - $exec = $$attr_notempty>=0; - else - $exec = !empty( $$attr_notempty ); - } else { - die("error in IF"); + Html::debug( $attr4 ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; } // Ergebnis umdrehen - if ( !empty($attr_invert) ) + // TODO: Bald ausbauen, stattdessen "not" verwenden. + if ( !empty($attr4_invert) ) + $exec = !$exec; + + // Ergebnis umdrehen + if ( !empty($attr4_not) ) $exec = !$exec; + unset($attr4_true); + unset($attr4_false); + unset($attr4_notempty); + unset($attr4_empty); + unset($attr4_contains); + unset($attr4_present); + unset($attr4_invert); + unset($attr4_not); + unset($attr4_value); + unset($attr4_equals); + + $last_exec = $exec; + if ( $exec ) { -?><?php unset($attr) ?><?php unset($attr_var) ?><?php unset($attr_value) ?><?php unset($attr_invert) ?><?php unset($attr_empty) ?><?php unset($attr_present) ?><?php unset($attr_contains) ?><?php unset($attr_true) ?><?php unset($attr_false) ?><?php $attr = array() ?><?php - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - +?><?php unset($attr4) ?><?php unset($attr4_present) ?><?php $attr5 = array() ?><?php + $row_class_idx++; + if ($row_class_idx > count($row_classes)) + $row_class_idx=1; + $row_class=$row_classes[$row_class_idx-1]; + + if (empty($attr5_class)) + $attr5_class=$row_class; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'fx','colspan'=>'') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?php $attr_colspan='' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><tr class="<?php echo $attr5_class ?>"><?php unset($attr5) ?><?php $attr6 = array('colspan'=>'2') ?><?php $attr6_colspan='2' ?><?php +// if (empty($attr6_class)) +// $attr6['class']=$row_class; + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr6_class)) + $attr6['class']=$column_class; global $cell_column_nr; $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) ) - $attr['width']=$column_widths[$cell_column_nr-1]; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) ) + $attr6['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('default'=>'false','readonly'=>'false','name'=>'commit') ?><?php $attr_default='false' ?><?php $attr_readonly='false' ?><?php $attr_name='commit' ?><?php - $attr_name = !empty($$attr_name)?$$attr_name:$attr_name; - $attr_readonly = ( $attr_readonly == 'true' ); - $attr_default = ( $attr_default == 'true' ); +?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_colspan) ?><?php $attr7 = array('default'=>'','readonly'=>'','name'=>'commit') ?><?php $attr7_default='' ?><?php $attr7_readonly='' ?><?php $attr7_name='commit' ?><?php + $attr7_default = ( $attr7_default == true ); - if ( isset($$attr_name) ) - $checked = isset($$$attr_name)&& $$$attr_name==true; + if ( isset($$attr7_name) ) + $checked = $$attr7_name == true; +// $checked = isset($$$attr7_name)&& $$$attr7_name==true; else - $checked = $attr_default; -?><input type="checkbox" name="<?php echo $attr_name ?>" <?php if ($attr_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php unset($attr) ?><?php unset($attr_default) ?><?php unset($attr_readonly) ?><?php unset($attr_name) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php + $checked = $attr7_default == true; +?><input type="checkbox" id="id_<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" <?php if ($attr7_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php unset($attr7_name); unset($attr7_readonly); unset($attr7_default); ?><?php unset($attr7) ?><?php unset($attr7_default) ?><?php unset($attr7_readonly) ?><?php unset($attr7_name) ?><?php $attr7 = array('for'=>'commit') ?><?php $attr7_for='commit' ?><label for="id_<?php echo $attr7_for ?><?php if (!empty($attr7_value)) echo '_' ?><?php echo $attr7_value ?>"><?php unset($attr7) ?><?php unset($attr7_for) ?><?php $attr8 = array('class'=>'text','raw'=>'_') ?><?php $attr8_class='text' ?><?php $attr8_raw='_' ?><?php + if ( isset($attr8_prefix)&& isset($attr8_key)) + $attr8_key = $attr8_prefix.$attr8_key; + if ( isset($attr8_suffix)&& isset($attr8_key)) + $attr8_key = $attr8_key.$attr8_suffix; + + if(empty($attr8_title)) + if (!empty($attr8_key)) + $attr8_title = lang($attr8_key.'_HELP'); + else + $attr8_title = ''; + +?><span class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php + $attr8_title = ''; + + if (!empty($attr8_array)) + { + //geht nicht: + //echo $$attr8_array[$attr8_var].'%'; + $tmpArray = $$attr8_array; + if (!empty($attr8_var)) + $tmp_text = $tmpArray[$attr8_var]; + else + $tmp_text = lang($tmpArray[$attr8_text]); + } + elseif (!empty($attr8_text)) + if ( isset($$attr8_text)) + $tmp_text = lang($$attr8_text); + else + $tmp_text = lang($attr8_text); + elseif (!empty($attr8_textvar)) + $tmp_text = lang($$attr8_textvar); + elseif (!empty($attr8_key)) + $tmp_text = lang($attr8_key); + elseif (!empty($attr8_var)) + $tmp_text = isset($$attr8_var)?htmlentities($$attr8_var):'error: variable '.$attr8_var.' not present'; + elseif (!empty($attr8_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr8_raw); + elseif (!empty($attr8_value)) + $tmp_text = $attr8_value; + else + { + $tmp_text = '&nbsp;'; + //Html::debug($attr8);echo 'text error'; } -?><?php unset($attr) ?><?php $attr = array() ?><?php - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; + if ( !empty($attr8_maxlength) && intval($attr8_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr8_maxlength) ); + + echo $tmp_text; +?></span><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_raw) ?><?php $attr8 = array('class'=>'text','text'=>lang('FOLDER_SELECT_DELETE_COMMIT')) ?><?php $attr8_class='text' ?><?php $attr8_text=lang('FOLDER_SELECT_DELETE_COMMIT') ?><?php + if ( isset($attr8_prefix)&& isset($attr8_key)) + $attr8_key = $attr8_prefix.$attr8_key; + if ( isset($attr8_suffix)&& isset($attr8_key)) + $attr8_key = $attr8_key.$attr8_suffix; + + if(empty($attr8_title)) + if (!empty($attr8_key)) + $attr8_title = lang($attr8_key.'_HELP'); + else + $attr8_title = ''; + +?><span class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php + $attr8_title = ''; + + if (!empty($attr8_array)) + { + //geht nicht: + //echo $$attr8_array[$attr8_var].'%'; + $tmpArray = $$attr8_array; + if (!empty($attr8_var)) + $tmp_text = $tmpArray[$attr8_var]; + else + $tmp_text = lang($tmpArray[$attr8_text]); + } + elseif (!empty($attr8_text)) + if ( isset($$attr8_text)) + $tmp_text = lang($$attr8_text); + else + $tmp_text = lang($attr8_text); + elseif (!empty($attr8_textvar)) + $tmp_text = lang($$attr8_textvar); + elseif (!empty($attr8_key)) + $tmp_text = lang($attr8_key); + elseif (!empty($attr8_var)) + $tmp_text = isset($$attr8_var)?htmlentities($$attr8_var):'error: variable '.$attr8_var.' not present'; + elseif (!empty($attr8_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr8_raw); + elseif (!empty($attr8_value)) + $tmp_text = $attr8_value; + else + { + $tmp_text = '&nbsp;'; + //Html::debug($attr8);echo 'text error'; + } + + if ( !empty($attr8_maxlength) && intval($attr8_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr8_maxlength) ); + + echo $tmp_text; +?></span><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_text) ?><?php $attr6 = array() ?></label><?php unset($attr6) ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3 = array() ?><?php + } + +?><?php unset($attr3) ?><?php $attr4 = array() ?><?php + $row_class_idx++; + if ($row_class_idx > count($row_classes)) + $row_class_idx=1; + $row_class=$row_classes[$row_class_idx-1]; + + if (empty($attr4_class)) + $attr4_class=$row_class; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'act','colspan'=>'2') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='act' ?><?php $attr_colspan='2' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5 = array('class'=>'act','colspan'=>'2') ?><?php $attr5_class='act' ?><?php $attr5_colspan='2' ?><?php +// if (empty($attr5_class)) +// $attr5['class']=$row_class; + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($attr5_class)) + $attr5['class']=$column_class; global $cell_column_nr; $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) ) - $attr['width']=$column_widths[$cell_column_nr-1]; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('type'=>'ok') ?><?php $attr_type='ok' ?><?php - if ($attr_type=='ok') +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_colspan) ?><?php $attr6 = array('type'=>'ok','class'=>'ok','value'=>'ok','text'=>'button_ok') ?><?php $attr6_type='ok' ?><?php $attr6_class='ok' ?><?php $attr6_value='ok' ?><?php $attr6_text='button_ok' ?><?php + if ($attr6_type=='ok') { - $attr_type = 'submit'; - $attr_class = 'ok'; - $attr_text = 'BUTTON_OK'; - $attr_value = 'ok'; + $attr6_type = 'submit'; +// $attr6_class = 'ok'; +// $attr6_text = 'BUTTON_OK'; +// $attr6_value = 'ok'; } -?><input type="<?php echo $attr_type ?>" name="<?php echo $attr_value ?>" class="<?php echo $attr_class ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo lang($attr_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($attr) ?><?php unset($attr_type) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?> </table> +?><input type="<?php echo $attr6_type ?>" name="<?php echo $attr6_value ?>" class="<?php echo $attr6_class ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo lang($attr6_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($attr6) ?><?php unset($attr6_type) ?><?php unset($attr6_class) ?><?php unset($attr6_value) ?><?php unset($attr6_text) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr2 = array() ?> </table> </td> </tr> </table> @@ -601,7 +1074,9 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu <?php $dur = time()-START_TIME; echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small> <?php } ?> -<?php unset($attr) ?><?php $attr = array() ?></form><?php unset($attr) ?><?php $attr = array() ?><?php unset($attr) ?><?php $attr = array() ?> +<?php unset($attr2) ?><?php $attr1 = array() ?></form> + +<?php unset($attr1) ?><?php $attr2 = array() ?><?php unset($attr2) ?><?php $attr0 = array() ?> <!-- $Id$ --> <?php if ($showDuration) { ?> @@ -612,4 +1087,4 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu <?php } ?> </body> -</html><?php unset($attr) ?>- \ No newline at end of file +</html><?php unset($attr0) ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/folder/order.tpl.php b/themes/default/pages/html/folder/order.tpl.php @@ -1,44 +1,51 @@ -<?php $attr = array('class'=>'main','title'=>'var') ?><?php $attr_class='main' ?><?php $attr_title='var' ?><?php header('Content-Type: text/html; charset='.lang('CHARSET')) +<?php $attr1 = array('class'=>'main','title'=>$cms_title) ?><?php $attr1_class='main' ?><?php $attr1_title=$cms_title ?><?php header('Content-Type: text/html; charset='.lang('CHARSET')) ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <!-- $Id$ --> <head> - <title><?php echo $attr_title ?></title> + <title><?php echo $attr1_title ?></title> <meta http-equiv="content-type" content="text/html; charset=<?php echo lang('CHARSET') ?>" /> <meta name="MSSmartTagsPreventParsing" content="true" /> <meta name="robots" content="noindex,nofollow" /> +<?php if (is_array($windowMenu)) foreach( $windowMenu as $menu ) + { + ?> + <link rel="section" href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text']) ?>" /> +<?php + } +?> <link rel="stylesheet" type="text/css" href="./themes/default/css/default.css" /> <?php if($stylesheet!='default') { ?> <link rel="stylesheet" type="text/css" href="<?php echo $stylesheet ?>" /> <?php } ?> </head> -<body class="<?php echo $attr_class ?>"> +<body class="<?php echo $attr1_class ?>"> -<?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_title) ?><?php $attr = array('width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr_width='93%' ?><?php $attr_rowclasses='odd,even' ?><?php $attr_columnclasses='1,2,3' ?><?php +<?php unset($attr1) ?><?php unset($attr1_class) ?><?php unset($attr1_title) ?><?php $attr2 = array('width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr2_width='93%' ?><?php $attr2_rowclasses='odd,even' ?><?php $attr2_columnclasses='1,2,3' ?><?php $coloumn_widths=array(); - if (!empty($attr_widths)) + if (!empty($attr2_widths)) { - $column_widths = explode(',',$attr_widths); - unset($attr['widths']); + $column_widths = explode(',',$attr2_widths); + unset($attr2['widths']); } - if (!empty($attr_rowclasses)) + if (!empty($attr2_rowclasses)) { - $row_classes = explode(',',$attr_rowclasses); + $row_classes = explode(',',$attr2_rowclasses); $row_class_idx = 999; - unset($attr['rowclasses']); + unset($attr2['rowclasses']); } - if (!empty($attr_columnclasses)) + if (!empty($attr2_columnclasses)) { - $column_classes = explode(',',$attr_columnclasses); - unset($attr['columnclasses']); + $column_classes = explode(',',$attr2_columnclasses); + unset($attr2['columnclasses']); } global $image_dir; echo '<br/><br/><br/><center>'; - echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_width.'">'; + echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr2_width.'">'; echo '<tr><td class="menu">'; - if ( !empty($attr_icon) ) - echo '<img src="'.$image_dir.'icon_'.$attr_icon.IMG_ICON_EXT.'" align="left" border="0">'; + if ( !empty($attr2_icon) ) + echo '<img src="'.$image_dir.'icon_'.$attr2_icon.IMG_ICON_EXT.'" align="left" border="0">'; if ( !is_array($path) ) $path = array(); foreach( $path as $pathElement) @@ -91,1538 +98,1664 @@ <tr> <td> - <table class="n" cellspacing="0" width="100%" cellpadding="4"><?php unset($attr) ?><?php unset($attr_width) ?><?php unset($attr_rowclasses) ?><?php unset($attr_columnclasses) ?><?php $attr = array() ?><?php + <table class="n" cellspacing="0" width="100%" cellpadding="4"><?php unset($attr2) ?><?php unset($attr2_width) ?><?php unset($attr2_rowclasses) ?><?php unset($attr2_columnclasses) ?><?php $attr3 = array() ?><?php $row_class_idx++; if ($row_class_idx > count($row_classes)) $row_class_idx=1; $row_class=$row_classes[$row_class_idx-1]; - if (empty($attr_class)) - $attr_class=$row_class; + if (empty($attr3_class)) + $attr3_class=$row_class; global $cell_column_nr; $cell_column_nr=0; $column_class_idx = 999; -?><tr class="<?php echo $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'help','colspan'=>'7') ?><?php $attr_class='help' ?><?php $attr_colspan='7' ?><?php -// if (empty($attr_class)) -// $attr['class']=$row_class; +?><tr class="<?php echo $attr3_class ?>"><?php unset($attr3) ?><?php $attr4 = array('class'=>'help','colspan'=>'7') ?><?php $attr4_class='help' ?><?php $attr4_colspan='7' ?><?php +// if (empty($attr4_class)) +// $attr4['class']=$row_class; $column_class_idx++; if ($column_class_idx > count($column_classes)) $column_class_idx=1; $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr_class)) - $attr['class']=$column_class; + if (empty($attr4_class)) + $attr4['class']=$column_class; global $cell_column_nr; $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) ) - $attr['width']=$column_widths[$cell_column_nr-1]; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr4_rowspan) ) + $attr4['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('class'=>'text','text'=>'GLOBAL_FOLDER_DESC') ?><?php $attr_class='text' ?><?php $attr_text='GLOBAL_FOLDER_DESC' ?><?php - if(empty($attr_title)) - if (!empty($attr_key)) - $attr_title = lang($attr_key).'_HELP'; +?><td <?php foreach( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_class) ?><?php unset($attr4_colspan) ?><?php $attr5 = array('class'=>'text','text'=>'GLOBAL_FOLDER_DESC') ?><?php $attr5_class='text' ?><?php $attr5_text='GLOBAL_FOLDER_DESC' ?><?php + if ( isset($attr5_prefix)&& isset($attr5_key)) + $attr5_key = $attr5_prefix.$attr5_key; + if ( isset($attr5_suffix)&& isset($attr5_key)) + $attr5_key = $attr5_key.$attr5_suffix; + + if(empty($attr5_title)) + if (!empty($attr5_key)) + $attr5_title = lang($attr5_key.'_HELP'); else - $attr_title = ''; + $attr5_title = ''; + +?><span class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php + $attr5_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) + if (!empty($attr5_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; - else - $tmp_text = lang($tmpArray[$attr_text]); - } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); - else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + //echo $$attr5_array[$attr5_var].'%'; + $tmpArray = $$attr5_array; + if (!empty($attr5_var)) + $tmp_text = $tmpArray[$attr5_var]; + else + $tmp_text = lang($tmpArray[$attr5_text]); + } + elseif (!empty($attr5_text)) + if ( isset($$attr5_text)) + $tmp_text = lang($$attr5_text); + else + $tmp_text = lang($attr5_text); + elseif (!empty($attr5_textvar)) + $tmp_text = lang($$attr5_textvar); + elseif (!empty($attr5_key)) + $tmp_text = lang($attr5_key); + elseif (!empty($attr5_var)) + $tmp_text = isset($$attr5_var)?htmlentities($$attr5_var):'error: variable '.$attr5_var.' not present'; + elseif (!empty($attr5_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr5_raw); + elseif (!empty($attr5_value)) + $tmp_text = $attr5_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr5);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr5_maxlength) && intval($attr5_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr5_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php +?></span><?php unset($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_text) ?><?php $attr3 = array() ?></td><?php unset($attr3) ?><?php $attr2 = array() ?></tr><?php unset($attr2) ?><?php $attr3 = array() ?><?php $row_class_idx++; if ($row_class_idx > count($row_classes)) $row_class_idx=1; $row_class=$row_classes[$row_class_idx-1]; - if (empty($attr_class)) - $attr_class=$row_class; + if (empty($attr3_class)) + $attr3_class=$row_class; global $cell_column_nr; $cell_column_nr=0; $column_class_idx = 999; -?><tr class="<?php echo $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'help') ?><?php $attr_class='help' ?><?php -// if (empty($attr_class)) -// $attr['class']=$row_class; +?><tr class="<?php echo $attr3_class ?>"><?php unset($attr3) ?><?php $attr4 = array('class'=>'help') ?><?php $attr4_class='help' ?><?php +// if (empty($attr4_class)) +// $attr4['class']=$row_class; $column_class_idx++; if ($column_class_idx > count($column_classes)) $column_class_idx=1; $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr_class)) - $attr['class']=$column_class; + if (empty($attr4_class)) + $attr4['class']=$column_class; global $cell_column_nr; $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) ) - $attr['width']=$column_widths[$cell_column_nr-1]; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr4_rowspan) ) + $attr4['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('title'=>'FOLDER_ORDERBYTYPE','target'=>'_self','url'=>$orderbytype_url,'class'=>'') ?><?php $attr_title='FOLDER_ORDERBYTYPE' ?><?php $attr_target='_self' ?><?php $attr_url=$orderbytype_url ?><?php $attr_class='' ?><?php - if(!empty($attr_url)) - $tmp_url = $attr_url; +?><td <?php foreach( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_class) ?><?php $attr5 = array('title'=>'FOLDER_ORDERBYTYPE','target'=>'_self','url'=>$orderbytype_url) ?><?php $attr5_title='FOLDER_ORDERBYTYPE' ?><?php $attr5_target='_self' ?><?php $attr5_url=$orderbytype_url ?><?php + if(!empty($attr5_url)) + $tmp_url = $attr5_url; else - $tmp_url = Html::url($attr_action,$attr_subaction,!empty($$attr_id)?$$attr_id:$this->getRequestId(),array(!empty($var1)?$var1:'asdf'=>!empty($value1)?$$value1:'')); -?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr_class ?>" target="<?php echo $attr_target ?>" title="<?php echo $attr_title ?>"><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_target) ?><?php unset($attr_url) ?><?php unset($attr_class) ?><?php $attr = array('class'=>'text','text'=>'GLOBAL_TYPE') ?><?php $attr_class='text' ?><?php $attr_text='GLOBAL_TYPE' ?><?php - if(empty($attr_title)) - if (!empty($attr_key)) - $attr_title = lang($attr_key).'_HELP'; + $tmp_url = Html::url($attr5_action,$attr5_subaction,!empty($$attr5_id)?$$attr5_id:$this->getRequestId(),array(!empty($var1)?$var1:'asdf'=>!empty($value1)?$$value1:'')); +?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr5_class ?>" target="<?php echo $attr5_target ?>" title="<?php echo $attr5_title ?>"><?php unset($attr5) ?><?php unset($attr5_title) ?><?php unset($attr5_target) ?><?php unset($attr5_url) ?><?php $attr6 = array('class'=>'text','text'=>'GLOBAL_TYPE') ?><?php $attr6_class='text' ?><?php $attr6_text='GLOBAL_TYPE' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key.'_HELP'); else - $attr_title = ''; + $attr6_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; + + if (!empty($attr6_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; - else - $tmp_text = lang($tmpArray[$attr_text]); - } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); - else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + //echo $$attr6_array[$attr6_var].'%'; + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; + else + $tmp_text = lang($tmpArray[$attr6_text]); + } + elseif (!empty($attr6_text)) + if ( isset($$attr6_text)) + $tmp_text = lang($$attr6_text); + else + $tmp_text = lang($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = lang($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = lang($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr6);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?php $attr = array() ?></a><?php unset($attr) ?><?php $attr = array('class'=>'text','raw'=>'_/_') ?><?php $attr_class='text' ?><?php $attr_raw='_/_' ?><?php - if(empty($attr_title)) - if (!empty($attr_key)) - $attr_title = lang($attr_key).'_HELP'; +?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_text) ?><?php $attr4 = array() ?></a><?php unset($attr4) ?><?php $attr5 = array('class'=>'text','raw'=>'_/_') ?><?php $attr5_class='text' ?><?php $attr5_raw='_/_' ?><?php + if ( isset($attr5_prefix)&& isset($attr5_key)) + $attr5_key = $attr5_prefix.$attr5_key; + if ( isset($attr5_suffix)&& isset($attr5_key)) + $attr5_key = $attr5_key.$attr5_suffix; + + if(empty($attr5_title)) + if (!empty($attr5_key)) + $attr5_title = lang($attr5_key.'_HELP'); else - $attr_title = ''; + $attr5_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) +?><span class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php + $attr5_title = ''; + + if (!empty($attr5_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; - else - $tmp_text = lang($tmpArray[$attr_text]); - } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); - else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + //echo $$attr5_array[$attr5_var].'%'; + $tmpArray = $$attr5_array; + if (!empty($attr5_var)) + $tmp_text = $tmpArray[$attr5_var]; + else + $tmp_text = lang($tmpArray[$attr5_text]); + } + elseif (!empty($attr5_text)) + if ( isset($$attr5_text)) + $tmp_text = lang($$attr5_text); + else + $tmp_text = lang($attr5_text); + elseif (!empty($attr5_textvar)) + $tmp_text = lang($$attr5_textvar); + elseif (!empty($attr5_key)) + $tmp_text = lang($attr5_key); + elseif (!empty($attr5_var)) + $tmp_text = isset($$attr5_var)?htmlentities($$attr5_var):'error: variable '.$attr5_var.' not present'; + elseif (!empty($attr5_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr5_raw); + elseif (!empty($attr5_value)) + $tmp_text = $attr5_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr5);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr5_maxlength) && intval($attr5_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr5_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_raw) ?><?php $attr = array('title'=>'FOLDER_ORDERBYNAME','target'=>'_self','url'=>$orderbyname_url,'class'=>'') ?><?php $attr_title='FOLDER_ORDERBYNAME' ?><?php $attr_target='_self' ?><?php $attr_url=$orderbyname_url ?><?php $attr_class='' ?><?php - if(!empty($attr_url)) - $tmp_url = $attr_url; +?></span><?php unset($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_raw) ?><?php $attr5 = array('title'=>'FOLDER_ORDERBYNAME','target'=>'_self','url'=>$orderbyname_url) ?><?php $attr5_title='FOLDER_ORDERBYNAME' ?><?php $attr5_target='_self' ?><?php $attr5_url=$orderbyname_url ?><?php + if(!empty($attr5_url)) + $tmp_url = $attr5_url; else - $tmp_url = Html::url($attr_action,$attr_subaction,!empty($$attr_id)?$$attr_id:$this->getRequestId(),array(!empty($var1)?$var1:'asdf'=>!empty($value1)?$$value1:'')); -?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr_class ?>" target="<?php echo $attr_target ?>" title="<?php echo $attr_title ?>"><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_target) ?><?php unset($attr_url) ?><?php unset($attr_class) ?><?php $attr = array('class'=>'text','text'=>'GLOBAL_NAME') ?><?php $attr_class='text' ?><?php $attr_text='GLOBAL_NAME' ?><?php - if(empty($attr_title)) - if (!empty($attr_key)) - $attr_title = lang($attr_key).'_HELP'; + $tmp_url = Html::url($attr5_action,$attr5_subaction,!empty($$attr5_id)?$$attr5_id:$this->getRequestId(),array(!empty($var1)?$var1:'asdf'=>!empty($value1)?$$value1:'')); +?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr5_class ?>" target="<?php echo $attr5_target ?>" title="<?php echo $attr5_title ?>"><?php unset($attr5) ?><?php unset($attr5_title) ?><?php unset($attr5_target) ?><?php unset($attr5_url) ?><?php $attr6 = array('class'=>'text','text'=>'GLOBAL_NAME') ?><?php $attr6_class='text' ?><?php $attr6_text='GLOBAL_NAME' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key.'_HELP'); else - $attr_title = ''; + $attr6_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; + + if (!empty($attr6_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; - else - $tmp_text = lang($tmpArray[$attr_text]); - } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); - else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + //echo $$attr6_array[$attr6_var].'%'; + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; + else + $tmp_text = lang($tmpArray[$attr6_text]); + } + elseif (!empty($attr6_text)) + if ( isset($$attr6_text)) + $tmp_text = lang($$attr6_text); + else + $tmp_text = lang($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = lang($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = lang($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr6);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?php $attr = array() ?></a><?php unset($attr) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('class'=>'help') ?><?php $attr_class='help' ?><?php -// if (empty($attr_class)) -// $attr['class']=$row_class; +?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_text) ?><?php $attr4 = array() ?></a><?php unset($attr4) ?><?php $attr3 = array() ?></td><?php unset($attr3) ?><?php $attr4 = array('class'=>'help') ?><?php $attr4_class='help' ?><?php +// if (empty($attr4_class)) +// $attr4['class']=$row_class; $column_class_idx++; if ($column_class_idx > count($column_classes)) $column_class_idx=1; $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr_class)) - $attr['class']=$column_class; + if (empty($attr4_class)) + $attr4['class']=$column_class; global $cell_column_nr; $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) ) - $attr['width']=$column_widths[$cell_column_nr-1]; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr4_rowspan) ) + $attr4['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('title'=>'FOLDER_ORDERBYLASTCHANGE','target'=>'_self','url'=>$orderbylastchange_url,'class'=>'') ?><?php $attr_title='FOLDER_ORDERBYLASTCHANGE' ?><?php $attr_target='_self' ?><?php $attr_url=$orderbylastchange_url ?><?php $attr_class='' ?><?php - if(!empty($attr_url)) - $tmp_url = $attr_url; +?><td <?php foreach( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_class) ?><?php $attr5 = array('title'=>'FOLDER_ORDERBYLASTCHANGE','target'=>'_self','url'=>$orderbylastchange_url) ?><?php $attr5_title='FOLDER_ORDERBYLASTCHANGE' ?><?php $attr5_target='_self' ?><?php $attr5_url=$orderbylastchange_url ?><?php + if(!empty($attr5_url)) + $tmp_url = $attr5_url; else - $tmp_url = Html::url($attr_action,$attr_subaction,!empty($$attr_id)?$$attr_id:$this->getRequestId(),array(!empty($var1)?$var1:'asdf'=>!empty($value1)?$$value1:'')); -?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr_class ?>" target="<?php echo $attr_target ?>" title="<?php echo $attr_title ?>"><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_target) ?><?php unset($attr_url) ?><?php unset($attr_class) ?><?php $attr = array('class'=>'text','text'=>'GLOBAL_LASTCHANGE') ?><?php $attr_class='text' ?><?php $attr_text='GLOBAL_LASTCHANGE' ?><?php - if(empty($attr_title)) - if (!empty($attr_key)) - $attr_title = lang($attr_key).'_HELP'; + $tmp_url = Html::url($attr5_action,$attr5_subaction,!empty($$attr5_id)?$$attr5_id:$this->getRequestId(),array(!empty($var1)?$var1:'asdf'=>!empty($value1)?$$value1:'')); +?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr5_class ?>" target="<?php echo $attr5_target ?>" title="<?php echo $attr5_title ?>"><?php unset($attr5) ?><?php unset($attr5_title) ?><?php unset($attr5_target) ?><?php unset($attr5_url) ?><?php $attr6 = array('class'=>'text','text'=>'GLOBAL_LASTCHANGE') ?><?php $attr6_class='text' ?><?php $attr6_text='GLOBAL_LASTCHANGE' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key.'_HELP'); else - $attr_title = ''; + $attr6_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; + + if (!empty($attr6_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; - else - $tmp_text = lang($tmpArray[$attr_text]); - } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); - else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + //echo $$attr6_array[$attr6_var].'%'; + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; + else + $tmp_text = lang($tmpArray[$attr6_text]); + } + elseif (!empty($attr6_text)) + if ( isset($$attr6_text)) + $tmp_text = lang($$attr6_text); + else + $tmp_text = lang($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = lang($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = lang($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr6);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?php $attr = array() ?></a><?php unset($attr) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('class'=>'help','colspan'=>'4') ?><?php $attr_class='help' ?><?php $attr_colspan='4' ?><?php -// if (empty($attr_class)) -// $attr['class']=$row_class; +?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_text) ?><?php $attr4 = array() ?></a><?php unset($attr4) ?><?php $attr3 = array() ?></td><?php unset($attr3) ?><?php $attr4 = array('class'=>'help','colspan'=>'4') ?><?php $attr4_class='help' ?><?php $attr4_colspan='4' ?><?php +// if (empty($attr4_class)) +// $attr4['class']=$row_class; $column_class_idx++; if ($column_class_idx > count($column_classes)) $column_class_idx=1; $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr_class)) - $attr['class']=$column_class; + if (empty($attr4_class)) + $attr4['class']=$column_class; global $cell_column_nr; $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) ) - $attr['width']=$column_widths[$cell_column_nr-1]; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr4_rowspan) ) + $attr4['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'FOLDER_FLIP','target'=>'_self','url'=>$flip_url,'class'=>'') ?><?php $attr_title='FOLDER_FLIP' ?><?php $attr_target='_self' ?><?php $attr_url=$flip_url ?><?php $attr_class='' ?><?php - if(!empty($attr_url)) - $tmp_url = $attr_url; +?><td <?php foreach( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_class) ?><?php unset($attr4_colspan) ?><?php $attr5 = array('title'=>'FOLDER_FLIP','target'=>'_self','url'=>$flip_url) ?><?php $attr5_title='FOLDER_FLIP' ?><?php $attr5_target='_self' ?><?php $attr5_url=$flip_url ?><?php + if(!empty($attr5_url)) + $tmp_url = $attr5_url; else - $tmp_url = Html::url($attr_action,$attr_subaction,!empty($$attr_id)?$$attr_id:$this->getRequestId(),array(!empty($var1)?$var1:'asdf'=>!empty($value1)?$$value1:'')); -?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr_class ?>" target="<?php echo $attr_target ?>" title="<?php echo $attr_title ?>"><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_target) ?><?php unset($attr_url) ?><?php unset($attr_class) ?><?php $attr = array('class'=>'text','text'=>'FOLDER_ORDER') ?><?php $attr_class='text' ?><?php $attr_text='FOLDER_ORDER' ?><?php - if(empty($attr_title)) - if (!empty($attr_key)) - $attr_title = lang($attr_key).'_HELP'; + $tmp_url = Html::url($attr5_action,$attr5_subaction,!empty($$attr5_id)?$$attr5_id:$this->getRequestId(),array(!empty($var1)?$var1:'asdf'=>!empty($value1)?$$value1:'')); +?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr5_class ?>" target="<?php echo $attr5_target ?>" title="<?php echo $attr5_title ?>"><?php unset($attr5) ?><?php unset($attr5_title) ?><?php unset($attr5_target) ?><?php unset($attr5_url) ?><?php $attr6 = array('class'=>'text','text'=>'FOLDER_ORDER') ?><?php $attr6_class='text' ?><?php $attr6_text='FOLDER_ORDER' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key.'_HELP'); else - $attr_title = ''; + $attr6_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; + + if (!empty($attr6_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; - else - $tmp_text = lang($tmpArray[$attr_text]); - } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); - else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + //echo $$attr6_array[$attr6_var].'%'; + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; + else + $tmp_text = lang($tmpArray[$attr6_text]); + } + elseif (!empty($attr6_text)) + if ( isset($$attr6_text)) + $tmp_text = lang($$attr6_text); + else + $tmp_text = lang($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = lang($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = lang($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr6);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?php $attr = array() ?></a><?php unset($attr) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array('list'=>'object','extract'=>'1','key'=>'list_key','value'=>'list_value') ?><?php $attr_list='object' ?><?php $attr_extract='1' ?><?php $attr_key='list_key' ?><?php $attr_value='list_value' ?><?php - $list_tmp_key = $attr_key; - $list_tmp_value = $attr_value; - $list_extract = ($attr_extract==true); - +?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_text) ?><?php $attr4 = array() ?></a><?php unset($attr4) ?><?php $attr3 = array() ?></td><?php unset($attr3) ?><?php $attr2 = array() ?></tr><?php unset($attr2) ?><?php $attr3 = array('list'=>'object','extract'=>'1','key'=>'list_key','value'=>'list_value') ?><?php $attr3_list='object' ?><?php $attr3_extract='1' ?><?php $attr3_key='list_key' ?><?php $attr3_value='list_value' ?><?php + $attr3_list_tmp_key = $attr3_key; + $attr3_list_tmp_value = $attr3_value; + $attr3_list_extract = ($attr3_extract==true); + + if ( !is_array($$attr3_list) ) + $$attr3_list = array(); +// die('not an array in list,var='.$attr3_list); +// Html::debug($$attr3_list); - foreach( $$attr_list as $$list_tmp_key => $$list_tmp_value ) + foreach( $$attr3_list as $$attr3_list_tmp_key => $$attr3_list_tmp_value ) { - if ( $list_extract ) + if ( $attr3_list_extract ) { - if ( !is_array($$list_tmp_value) ) + if ( !is_array($$attr3_list_tmp_value) ) { - print_r($$list_tmp_value); - die( 'not an array at key: '.$$list_tmp_key ); + print_r($$attr3_list_tmp_value); + die( 'not an array at key: '.$$attr3_list_tmp_key ); } - extract($$list_tmp_value); + extract($$attr3_list_tmp_value); } -?><?php unset($attr) ?><?php unset($attr_list) ?><?php unset($attr_extract) ?><?php unset($attr_key) ?><?php unset($attr_value) ?><?php $attr = array() ?><?php +?><?php unset($attr3) ?><?php unset($attr3_list) ?><?php unset($attr3_extract) ?><?php unset($attr3_key) ?><?php unset($attr3_value) ?><?php $attr4 = array() ?><?php $row_class_idx++; if ($row_class_idx > count($row_classes)) $row_class_idx=1; $row_class=$row_classes[$row_class_idx-1]; - if (empty($attr_class)) - $attr_class=$row_class; + if (empty($attr4_class)) + $attr4_class=$row_class; global $cell_column_nr; $cell_column_nr=0; $column_class_idx = 999; -?><tr class="<?php echo $attr_class ?>"><?php unset($attr) ?><?php $attr = array('width'=>'40%','class'=>'fx') ?><?php $attr_width='40%' ?><?php $attr_class='fx' ?><?php -// if (empty($attr_class)) -// $attr['class']=$row_class; +?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5 = array('width'=>'40%','class'=>'fx') ?><?php $attr5_width='40%' ?><?php $attr5_class='fx' ?><?php +// if (empty($attr5_class)) +// $attr5['class']=$row_class; $column_class_idx++; if ($column_class_idx > count($column_classes)) $column_class_idx=1; $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr_class)) - $attr['class']=$column_class; + if (empty($attr5_class)) + $attr5['class']=$column_class; global $cell_column_nr; $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) ) - $attr['width']=$column_widths[$cell_column_nr-1]; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_width) ?><?php unset($attr_class) ?><?php $attr = array('align'=>'left','type'=>$icon) ?><?php $attr_align='left' ?><?php $attr_type=$icon ?><?php -if (isset($attr_elementtype)) { -?><img src="<?php echo $image_dir.'icon_el_'.$attr_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php -} elseif (isset($attr_type)) { -?><img src="<?php echo $image_dir.'icon_'.$attr_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php -} elseif (isset($attr_icon)) { -?><img src="<?php echo $image_dir.'icon_'.$attr_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php -} elseif (isset($attr_url)) { -?><img src="<?php echo $attr_url ?>" border="0" align="<?php echo $attr_align ?>"><?php -} elseif (isset($attr_file)) { -?><img src="<?php echo $image_dir.$attr_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php } ?><?php unset($attr) ?><?php unset($attr_align) ?><?php unset($attr_type) ?><?php $attr = array('class'=>'text','var'=>'name') ?><?php $attr_class='text' ?><?php $attr_var='name' ?><?php - if(empty($attr_title)) - if (!empty($attr_key)) - $attr_title = lang($attr_key).'_HELP'; +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_width) ?><?php unset($attr5_class) ?><?php $attr6 = array('align'=>'left','type'=>$icon) ?><?php $attr6_align='left' ?><?php $attr6_type=$icon ?><?php +if (isset($attr6_elementtype)) { +?><img src="<?php echo $image_dir.'icon_el_'.$attr6_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr6_align ?>"><?php +} elseif (isset($attr6_type)) { +?><img src="<?php echo $image_dir.'icon_'.$attr6_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr6_align ?>"><?php +} elseif (isset($attr6_icon)) { +?><img src="<?php echo $image_dir.'icon_'.$attr6_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr6_align ?>"><?php +} elseif (isset($attr6_url)) { +?><img src="<?php echo $attr6_url ?>" border="0" align="<?php echo $attr6_align ?>"><?php +} elseif (isset($attr6_fileext)) { +?><img src="<?php echo $image_dir.$attr6_fileext ?>" border="0" align="<?php echo $attr6_align ?>"><?php +} elseif (isset($attr6_file)) { +?><img src="<?php echo $image_dir.$attr6_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr6_align ?>"><?php } ?><?php unset($attr6) ?><?php unset($attr6_align) ?><?php unset($attr6_type) ?><?php $attr6 = array('class'=>'text','var'=>'name') ?><?php $attr6_class='text' ?><?php $attr6_var='name' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key.'_HELP'); else - $attr_title = ''; + $attr6_title = ''; + +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) + if (!empty($attr6_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; - else - $tmp_text = lang($tmpArray[$attr_text]); - } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); - else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + //echo $$attr6_array[$attr6_var].'%'; + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; + else + $tmp_text = lang($tmpArray[$attr6_text]); + } + elseif (!empty($attr6_text)) + if ( isset($$attr6_text)) + $tmp_text = lang($$attr6_text); + else + $tmp_text = lang($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = lang($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = lang($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr6);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('width'=>'18%','class'=>'fx') ?><?php $attr_width='18%' ?><?php $attr_class='fx' ?><?php -// if (empty($attr_class)) -// $attr['class']=$row_class; +?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_var) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr5 = array('width'=>'18%','class'=>'fx') ?><?php $attr5_width='18%' ?><?php $attr5_class='fx' ?><?php +// if (empty($attr5_class)) +// $attr5['class']=$row_class; $column_class_idx++; if ($column_class_idx > count($column_classes)) $column_class_idx=1; $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr_class)) - $attr['class']=$column_class; + if (empty($attr5_class)) + $attr5['class']=$column_class; global $cell_column_nr; $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) ) - $attr['width']=$column_widths[$cell_column_nr-1]; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_width) ?><?php unset($attr_class) ?><?php $attr = array('class'=>'text','var'=>'date') ?><?php $attr_class='text' ?><?php $attr_var='date' ?><?php - if(empty($attr_title)) - if (!empty($attr_key)) - $attr_title = lang($attr_key).'_HELP'; +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_width) ?><?php unset($attr5_class) ?><?php $attr6 = array('class'=>'text','var'=>'date') ?><?php $attr6_class='text' ?><?php $attr6_var='date' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key.'_HELP'); else - $attr_title = ''; + $attr6_title = ''; + +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) + if (!empty($attr6_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; - else - $tmp_text = lang($tmpArray[$attr_text]); - } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); - else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + //echo $$attr6_array[$attr6_var].'%'; + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; + else + $tmp_text = lang($tmpArray[$attr6_text]); + } + elseif (!empty($attr6_text)) + if ( isset($$attr6_text)) + $tmp_text = lang($$attr6_text); + else + $tmp_text = lang($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = lang($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = lang($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr6);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('width'=>'3%','class'=>'fx') ?><?php $attr_width='3%' ?><?php $attr_class='fx' ?><?php -// if (empty($attr_class)) -// $attr['class']=$row_class; +?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_var) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr5 = array('width'=>'3%','class'=>'fx') ?><?php $attr5_width='3%' ?><?php $attr5_class='fx' ?><?php +// if (empty($attr5_class)) +// $attr5['class']=$row_class; $column_class_idx++; if ($column_class_idx > count($column_classes)) $column_class_idx=1; $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr_class)) - $attr['class']=$column_class; + if (empty($attr5_class)) + $attr5['class']=$column_class; global $cell_column_nr; $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) ) - $attr['width']=$column_widths[$cell_column_nr-1]; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_width) ?><?php unset($attr_class) ?><?php $attr = array('present'=>'upurl') ?><?php $attr_present='upurl' ?><?php +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_width) ?><?php unset($attr5_class) ?><?php $attr6 = array('present'=>'upurl') ?><?php $attr6_present='upurl' ?><?php // Wahr-Vergleich -// Html::debug($attr); +// Html::debug($attr6); - if ( isset($attr_true) ) + if ( isset($attr6_true) ) { - if (gettype($attr_true) === '' && gettype($attr_true) === '1') - $exec = $$attr_true == true; + if (gettype($attr6_true) === '' && gettype($attr6_true) === '1') + $exec = $$attr6_true == true; else - $exec = $attr_true == true; + $exec = $attr6_true == true; } // Falsch-Vergleich - elseif ( isset($attr_false) ) + elseif ( isset($attr6_false) ) { - if (gettype($attr_false) === '' && gettype($attr_false) === '1') - $exec = $$attr_false == false; + if (gettype($attr6_false) === '' && gettype($attr6_false) === '1') + $exec = $$attr6_false == false; else - $exec = $attr_false == false; + $exec = $attr6_false == false; } // Inhalt-Vergleich mit Wertliste - elseif( isset($attr_contains) ) - $exec = in_array($$attr_var,explode(',',$attr_contains)); + elseif( isset($attr6_contains) ) + $exec = in_array($attr6_value,explode(',',$attr6_contains)); // Inhalt-Vergleich - elseif( isset($attr_var) ) - $exec = $$attr_var == $attr_value; + elseif( isset($attr6_equals)&& isset($attr6_value) ) + $exec = $attr6_equals == $attr6_value; // Vergleich auf leer - elseif ( isset($attr_empty) ) + elseif ( isset($attr6_empty) ) { - if ( !isset($$attr_empty) ) - $exec = empty($attr_empty); - elseif ( is_array($$attr_empty) ) - $exec = (count($$attr_empty)==0); - elseif ( is_bool($$attr_empty) ) + if ( !isset($$attr6_empty) ) + $exec = empty($attr6_empty); + elseif ( is_array($$attr6_empty) ) + $exec = (count($$attr6_empty)==0); + elseif ( is_bool($$attr6_empty) ) $exec = true; else - $exec = empty( $$attr_empty ); + $exec = empty( $$attr6_empty ); } // Vergleich auf Vorhandensein - elseif ( isset($attr_present) ) - { - if ( !isset($$attr_present) ) - $exec = false; - elseif ( is_array($$attr_present) ) - $exec = (count($$attr_present)>0); - elseif ( is_bool($$attr_present) ) - $exec = $$attr_present; - elseif ( is_numeric($$attr_present) ) - $exec = $$attr_present>=0; - else - $exec = true; + elseif ( isset($attr6_present) ) + { + $exec = isset($$attr6_present); +// if ( !isset($$attr6_present) ) +// $exec = false; +// elseif ( is_array($$attr6_present) ) +// $exec = (count($$attr6_present)>0); +// elseif ( is_bool($$attr6_present) ) +// $exec = $$attr6_present; +// elseif ( is_numeric($$attr6_present) ) +// $exec = $$attr6_present>=0; +// else +// $exec = true; } else { - Html::debug( $attr ); + Html::debug( $attr6 ); echo("error in IF line ".__LINE__); echo("assume: FALSE"); $exec = false; } // Ergebnis umdrehen - if ( !empty($attr_invert) ) + // TODO: Bald ausbauen, stattdessen "not" verwenden. + if ( !empty($attr6_invert) ) $exec = !$exec; // Ergebnis umdrehen - if ( !empty($attr_not) ) + if ( !empty($attr6_not) ) $exec = !$exec; - unset($attr_true); - unset($attr_false); - unset($attr_notempty); - unset($attr_empty); - unset($attr_contains); - unset($attr_present); - unset($attr_invert); - unset($attr_not); - unset($attr_value); - unset($attr_var); + unset($attr6_true); + unset($attr6_false); + unset($attr6_notempty); + unset($attr6_empty); + unset($attr6_contains); + unset($attr6_present); + unset($attr6_invert); + unset($attr6_not); + unset($attr6_value); + unset($attr6_equals); $last_exec = $exec; if ( $exec ) { -?><?php unset($attr) ?><?php unset($attr_present) ?><?php $attr = array('title'=>'GLOBAL_UP','target'=>'_self','url'=>$upurl,'class'=>'') ?><?php $attr_title='GLOBAL_UP' ?><?php $attr_target='_self' ?><?php $attr_url=$upurl ?><?php $attr_class='' ?><?php - if(!empty($attr_url)) - $tmp_url = $attr_url; +?><?php unset($attr6) ?><?php unset($attr6_present) ?><?php $attr7 = array('title'=>'GLOBAL_UP','target'=>'_self','url'=>$upurl) ?><?php $attr7_title='GLOBAL_UP' ?><?php $attr7_target='_self' ?><?php $attr7_url=$upurl ?><?php + if(!empty($attr7_url)) + $tmp_url = $attr7_url; else - $tmp_url = Html::url($attr_action,$attr_subaction,!empty($$attr_id)?$$attr_id:$this->getRequestId(),array(!empty($var1)?$var1:'asdf'=>!empty($value1)?$$value1:'')); -?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr_class ?>" target="<?php echo $attr_target ?>" title="<?php echo $attr_title ?>"><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_target) ?><?php unset($attr_url) ?><?php unset($attr_class) ?><?php $attr = array('var'=>'bild','value'=>'arrow_up') ?><?php $attr_var='bild' ?><?php $attr_value='arrow_up' ?><?php $$attr_var = $attr_value ?><?php unset($attr) ?><?php unset($attr_var) ?><?php unset($attr_value) ?><?php $attr = array('file'=>$bild,'align'=>'left') ?><?php $attr_file=$bild ?><?php $attr_align='left' ?><?php -if (isset($attr_elementtype)) { -?><img src="<?php echo $image_dir.'icon_el_'.$attr_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php -} elseif (isset($attr_type)) { -?><img src="<?php echo $image_dir.'icon_'.$attr_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php -} elseif (isset($attr_icon)) { -?><img src="<?php echo $image_dir.'icon_'.$attr_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php -} elseif (isset($attr_url)) { -?><img src="<?php echo $attr_url ?>" border="0" align="<?php echo $attr_align ?>"><?php -} elseif (isset($attr_file)) { -?><img src="<?php echo $image_dir.$attr_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php } ?><?php unset($attr) ?><?php unset($attr_file) ?><?php unset($attr_align) ?><?php $attr = array() ?></a><?php unset($attr) ?><?php $attr = array() ?><?php + $tmp_url = Html::url($attr7_action,$attr7_subaction,!empty($$attr7_id)?$$attr7_id:$this->getRequestId(),array(!empty($var1)?$var1:'asdf'=>!empty($value1)?$$value1:'')); +?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr7_class ?>" target="<?php echo $attr7_target ?>" title="<?php echo $attr7_title ?>"><?php unset($attr7) ?><?php unset($attr7_title) ?><?php unset($attr7_target) ?><?php unset($attr7_url) ?><?php $attr8 = array('var'=>'bild','value'=>'arrow_up') ?><?php $attr8_var='bild' ?><?php $attr8_value='arrow_up' ?><?php $$attr8_var = $attr8_value ?><?php unset($attr8) ?><?php unset($attr8_var) ?><?php unset($attr8_value) ?><?php $attr8 = array('file'=>$bild,'align'=>'left') ?><?php $attr8_file=$bild ?><?php $attr8_align='left' ?><?php +if (isset($attr8_elementtype)) { +?><img src="<?php echo $image_dir.'icon_el_'.$attr8_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_type)) { +?><img src="<?php echo $image_dir.'icon_'.$attr8_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_icon)) { +?><img src="<?php echo $image_dir.'icon_'.$attr8_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_url)) { +?><img src="<?php echo $attr8_url ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_fileext)) { +?><img src="<?php echo $image_dir.$attr8_fileext ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_file)) { +?><img src="<?php echo $image_dir.$attr8_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php } ?><?php unset($attr8) ?><?php unset($attr8_file) ?><?php unset($attr8_align) ?><?php $attr6 = array() ?></a><?php unset($attr6) ?><?php $attr5 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array('empty'=>'upurl') ?><?php $attr_empty='upurl' ?><?php +?><?php unset($attr5) ?><?php $attr6 = array('empty'=>'upurl') ?><?php $attr6_empty='upurl' ?><?php // Wahr-Vergleich -// Html::debug($attr); +// Html::debug($attr6); - if ( isset($attr_true) ) + if ( isset($attr6_true) ) { - if (gettype($attr_true) === '' && gettype($attr_true) === '1') - $exec = $$attr_true == true; + if (gettype($attr6_true) === '' && gettype($attr6_true) === '1') + $exec = $$attr6_true == true; else - $exec = $attr_true == true; + $exec = $attr6_true == true; } // Falsch-Vergleich - elseif ( isset($attr_false) ) + elseif ( isset($attr6_false) ) { - if (gettype($attr_false) === '' && gettype($attr_false) === '1') - $exec = $$attr_false == false; + if (gettype($attr6_false) === '' && gettype($attr6_false) === '1') + $exec = $$attr6_false == false; else - $exec = $attr_false == false; + $exec = $attr6_false == false; } // Inhalt-Vergleich mit Wertliste - elseif( isset($attr_contains) ) - $exec = in_array($$attr_var,explode(',',$attr_contains)); + elseif( isset($attr6_contains) ) + $exec = in_array($attr6_value,explode(',',$attr6_contains)); // Inhalt-Vergleich - elseif( isset($attr_var) ) - $exec = $$attr_var == $attr_value; + elseif( isset($attr6_equals)&& isset($attr6_value) ) + $exec = $attr6_equals == $attr6_value; // Vergleich auf leer - elseif ( isset($attr_empty) ) + elseif ( isset($attr6_empty) ) { - if ( !isset($$attr_empty) ) - $exec = empty($attr_empty); - elseif ( is_array($$attr_empty) ) - $exec = (count($$attr_empty)==0); - elseif ( is_bool($$attr_empty) ) + if ( !isset($$attr6_empty) ) + $exec = empty($attr6_empty); + elseif ( is_array($$attr6_empty) ) + $exec = (count($$attr6_empty)==0); + elseif ( is_bool($$attr6_empty) ) $exec = true; else - $exec = empty( $$attr_empty ); + $exec = empty( $$attr6_empty ); } // Vergleich auf Vorhandensein - elseif ( isset($attr_present) ) - { - if ( !isset($$attr_present) ) - $exec = false; - elseif ( is_array($$attr_present) ) - $exec = (count($$attr_present)>0); - elseif ( is_bool($$attr_present) ) - $exec = $$attr_present; - elseif ( is_numeric($$attr_present) ) - $exec = $$attr_present>=0; - else - $exec = true; + elseif ( isset($attr6_present) ) + { + $exec = isset($$attr6_present); +// if ( !isset($$attr6_present) ) +// $exec = false; +// elseif ( is_array($$attr6_present) ) +// $exec = (count($$attr6_present)>0); +// elseif ( is_bool($$attr6_present) ) +// $exec = $$attr6_present; +// elseif ( is_numeric($$attr6_present) ) +// $exec = $$attr6_present>=0; +// else +// $exec = true; } else { - Html::debug( $attr ); + Html::debug( $attr6 ); echo("error in IF line ".__LINE__); echo("assume: FALSE"); $exec = false; } // Ergebnis umdrehen - if ( !empty($attr_invert) ) + // TODO: Bald ausbauen, stattdessen "not" verwenden. + if ( !empty($attr6_invert) ) $exec = !$exec; // Ergebnis umdrehen - if ( !empty($attr_not) ) + if ( !empty($attr6_not) ) $exec = !$exec; - unset($attr_true); - unset($attr_false); - unset($attr_notempty); - unset($attr_empty); - unset($attr_contains); - unset($attr_present); - unset($attr_invert); - unset($attr_not); - unset($attr_value); - unset($attr_var); + unset($attr6_true); + unset($attr6_false); + unset($attr6_notempty); + unset($attr6_empty); + unset($attr6_contains); + unset($attr6_present); + unset($attr6_invert); + unset($attr6_not); + unset($attr6_value); + unset($attr6_equals); $last_exec = $exec; if ( $exec ) { -?><?php unset($attr) ?><?php unset($attr_empty) ?><?php $attr = array('class'=>'text','raw'=>'_') ?><?php $attr_class='text' ?><?php $attr_raw='_' ?><?php - if(empty($attr_title)) - if (!empty($attr_key)) - $attr_title = lang($attr_key).'_HELP'; +?><?php unset($attr6) ?><?php unset($attr6_empty) ?><?php $attr7 = array('class'=>'text','raw'=>'_') ?><?php $attr7_class='text' ?><?php $attr7_raw='_' ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + + if(empty($attr7_title)) + if (!empty($attr7_key)) + $attr7_title = lang($attr7_key.'_HELP'); else - $attr_title = ''; + $attr7_title = ''; + +?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php + $attr7_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) + if (!empty($attr7_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; - else - $tmp_text = lang($tmpArray[$attr_text]); - } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); - else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + //echo $$attr7_array[$attr7_var].'%'; + $tmpArray = $$attr7_array; + if (!empty($attr7_var)) + $tmp_text = $tmpArray[$attr7_var]; + else + $tmp_text = lang($tmpArray[$attr7_text]); + } + elseif (!empty($attr7_text)) + if ( isset($$attr7_text)) + $tmp_text = lang($$attr7_text); + else + $tmp_text = lang($attr7_text); + elseif (!empty($attr7_textvar)) + $tmp_text = lang($$attr7_textvar); + elseif (!empty($attr7_key)) + $tmp_text = lang($attr7_key); + elseif (!empty($attr7_var)) + $tmp_text = isset($$attr7_var)?htmlentities($$attr7_var):'error: variable '.$attr7_var.' not present'; + elseif (!empty($attr7_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr7_raw); + elseif (!empty($attr7_value)) + $tmp_text = $attr7_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr7);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr7_maxlength) && intval($attr7_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr7_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_raw) ?><?php $attr = array() ?><?php +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_raw) ?><?php $attr5 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('width'=>'3%','class'=>'fx') ?><?php $attr_width='3%' ?><?php $attr_class='fx' ?><?php -// if (empty($attr_class)) -// $attr['class']=$row_class; +?><?php unset($attr5) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr5 = array('width'=>'3%','class'=>'fx') ?><?php $attr5_width='3%' ?><?php $attr5_class='fx' ?><?php +// if (empty($attr5_class)) +// $attr5['class']=$row_class; $column_class_idx++; if ($column_class_idx > count($column_classes)) $column_class_idx=1; $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr_class)) - $attr['class']=$column_class; + if (empty($attr5_class)) + $attr5['class']=$column_class; global $cell_column_nr; $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) ) - $attr['width']=$column_widths[$cell_column_nr-1]; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_width) ?><?php unset($attr_class) ?><?php $attr = array('present'=>'topurl') ?><?php $attr_present='topurl' ?><?php +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_width) ?><?php unset($attr5_class) ?><?php $attr6 = array('present'=>'topurl') ?><?php $attr6_present='topurl' ?><?php // Wahr-Vergleich -// Html::debug($attr); +// Html::debug($attr6); - if ( isset($attr_true) ) + if ( isset($attr6_true) ) { - if (gettype($attr_true) === '' && gettype($attr_true) === '1') - $exec = $$attr_true == true; + if (gettype($attr6_true) === '' && gettype($attr6_true) === '1') + $exec = $$attr6_true == true; else - $exec = $attr_true == true; + $exec = $attr6_true == true; } // Falsch-Vergleich - elseif ( isset($attr_false) ) + elseif ( isset($attr6_false) ) { - if (gettype($attr_false) === '' && gettype($attr_false) === '1') - $exec = $$attr_false == false; + if (gettype($attr6_false) === '' && gettype($attr6_false) === '1') + $exec = $$attr6_false == false; else - $exec = $attr_false == false; + $exec = $attr6_false == false; } // Inhalt-Vergleich mit Wertliste - elseif( isset($attr_contains) ) - $exec = in_array($$attr_var,explode(',',$attr_contains)); + elseif( isset($attr6_contains) ) + $exec = in_array($attr6_value,explode(',',$attr6_contains)); // Inhalt-Vergleich - elseif( isset($attr_var) ) - $exec = $$attr_var == $attr_value; + elseif( isset($attr6_equals)&& isset($attr6_value) ) + $exec = $attr6_equals == $attr6_value; // Vergleich auf leer - elseif ( isset($attr_empty) ) + elseif ( isset($attr6_empty) ) { - if ( !isset($$attr_empty) ) - $exec = empty($attr_empty); - elseif ( is_array($$attr_empty) ) - $exec = (count($$attr_empty)==0); - elseif ( is_bool($$attr_empty) ) + if ( !isset($$attr6_empty) ) + $exec = empty($attr6_empty); + elseif ( is_array($$attr6_empty) ) + $exec = (count($$attr6_empty)==0); + elseif ( is_bool($$attr6_empty) ) $exec = true; else - $exec = empty( $$attr_empty ); + $exec = empty( $$attr6_empty ); } // Vergleich auf Vorhandensein - elseif ( isset($attr_present) ) - { - if ( !isset($$attr_present) ) - $exec = false; - elseif ( is_array($$attr_present) ) - $exec = (count($$attr_present)>0); - elseif ( is_bool($$attr_present) ) - $exec = $$attr_present; - elseif ( is_numeric($$attr_present) ) - $exec = $$attr_present>=0; - else - $exec = true; + elseif ( isset($attr6_present) ) + { + $exec = isset($$attr6_present); +// if ( !isset($$attr6_present) ) +// $exec = false; +// elseif ( is_array($$attr6_present) ) +// $exec = (count($$attr6_present)>0); +// elseif ( is_bool($$attr6_present) ) +// $exec = $$attr6_present; +// elseif ( is_numeric($$attr6_present) ) +// $exec = $$attr6_present>=0; +// else +// $exec = true; } else { - Html::debug( $attr ); + Html::debug( $attr6 ); echo("error in IF line ".__LINE__); echo("assume: FALSE"); $exec = false; } // Ergebnis umdrehen - if ( !empty($attr_invert) ) + // TODO: Bald ausbauen, stattdessen "not" verwenden. + if ( !empty($attr6_invert) ) $exec = !$exec; // Ergebnis umdrehen - if ( !empty($attr_not) ) + if ( !empty($attr6_not) ) $exec = !$exec; - unset($attr_true); - unset($attr_false); - unset($attr_notempty); - unset($attr_empty); - unset($attr_contains); - unset($attr_present); - unset($attr_invert); - unset($attr_not); - unset($attr_value); - unset($attr_var); + unset($attr6_true); + unset($attr6_false); + unset($attr6_notempty); + unset($attr6_empty); + unset($attr6_contains); + unset($attr6_present); + unset($attr6_invert); + unset($attr6_not); + unset($attr6_value); + unset($attr6_equals); $last_exec = $exec; if ( $exec ) { -?><?php unset($attr) ?><?php unset($attr_present) ?><?php $attr = array('title'=>'GLOBAL_TOP','target'=>'_self','url'=>$topurl,'class'=>'') ?><?php $attr_title='GLOBAL_TOP' ?><?php $attr_target='_self' ?><?php $attr_url=$topurl ?><?php $attr_class='' ?><?php - if(!empty($attr_url)) - $tmp_url = $attr_url; +?><?php unset($attr6) ?><?php unset($attr6_present) ?><?php $attr7 = array('title'=>'GLOBAL_TOP','target'=>'_self','url'=>$topurl) ?><?php $attr7_title='GLOBAL_TOP' ?><?php $attr7_target='_self' ?><?php $attr7_url=$topurl ?><?php + if(!empty($attr7_url)) + $tmp_url = $attr7_url; else - $tmp_url = Html::url($attr_action,$attr_subaction,!empty($$attr_id)?$$attr_id:$this->getRequestId(),array(!empty($var1)?$var1:'asdf'=>!empty($value1)?$$value1:'')); -?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr_class ?>" target="<?php echo $attr_target ?>" title="<?php echo $attr_title ?>"><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_target) ?><?php unset($attr_url) ?><?php unset($attr_class) ?><?php $attr = array('var'=>'bild','value'=>'arrow_top') ?><?php $attr_var='bild' ?><?php $attr_value='arrow_top' ?><?php $$attr_var = $attr_value ?><?php unset($attr) ?><?php unset($attr_var) ?><?php unset($attr_value) ?><?php $attr = array('file'=>$bild,'align'=>'left') ?><?php $attr_file=$bild ?><?php $attr_align='left' ?><?php -if (isset($attr_elementtype)) { -?><img src="<?php echo $image_dir.'icon_el_'.$attr_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php -} elseif (isset($attr_type)) { -?><img src="<?php echo $image_dir.'icon_'.$attr_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php -} elseif (isset($attr_icon)) { -?><img src="<?php echo $image_dir.'icon_'.$attr_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php -} elseif (isset($attr_url)) { -?><img src="<?php echo $attr_url ?>" border="0" align="<?php echo $attr_align ?>"><?php -} elseif (isset($attr_file)) { -?><img src="<?php echo $image_dir.$attr_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php } ?><?php unset($attr) ?><?php unset($attr_file) ?><?php unset($attr_align) ?><?php $attr = array() ?></a><?php unset($attr) ?><?php $attr = array() ?><?php + $tmp_url = Html::url($attr7_action,$attr7_subaction,!empty($$attr7_id)?$$attr7_id:$this->getRequestId(),array(!empty($var1)?$var1:'asdf'=>!empty($value1)?$$value1:'')); +?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr7_class ?>" target="<?php echo $attr7_target ?>" title="<?php echo $attr7_title ?>"><?php unset($attr7) ?><?php unset($attr7_title) ?><?php unset($attr7_target) ?><?php unset($attr7_url) ?><?php $attr8 = array('var'=>'bild','value'=>'arrow_top') ?><?php $attr8_var='bild' ?><?php $attr8_value='arrow_top' ?><?php $$attr8_var = $attr8_value ?><?php unset($attr8) ?><?php unset($attr8_var) ?><?php unset($attr8_value) ?><?php $attr8 = array('file'=>$bild,'align'=>'left') ?><?php $attr8_file=$bild ?><?php $attr8_align='left' ?><?php +if (isset($attr8_elementtype)) { +?><img src="<?php echo $image_dir.'icon_el_'.$attr8_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_type)) { +?><img src="<?php echo $image_dir.'icon_'.$attr8_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_icon)) { +?><img src="<?php echo $image_dir.'icon_'.$attr8_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_url)) { +?><img src="<?php echo $attr8_url ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_fileext)) { +?><img src="<?php echo $image_dir.$attr8_fileext ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_file)) { +?><img src="<?php echo $image_dir.$attr8_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php } ?><?php unset($attr8) ?><?php unset($attr8_file) ?><?php unset($attr8_align) ?><?php $attr6 = array() ?></a><?php unset($attr6) ?><?php $attr5 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array('empty'=>'topurl') ?><?php $attr_empty='topurl' ?><?php +?><?php unset($attr5) ?><?php $attr6 = array('empty'=>'topurl') ?><?php $attr6_empty='topurl' ?><?php // Wahr-Vergleich -// Html::debug($attr); +// Html::debug($attr6); - if ( isset($attr_true) ) + if ( isset($attr6_true) ) { - if (gettype($attr_true) === '' && gettype($attr_true) === '1') - $exec = $$attr_true == true; + if (gettype($attr6_true) === '' && gettype($attr6_true) === '1') + $exec = $$attr6_true == true; else - $exec = $attr_true == true; + $exec = $attr6_true == true; } // Falsch-Vergleich - elseif ( isset($attr_false) ) + elseif ( isset($attr6_false) ) { - if (gettype($attr_false) === '' && gettype($attr_false) === '1') - $exec = $$attr_false == false; + if (gettype($attr6_false) === '' && gettype($attr6_false) === '1') + $exec = $$attr6_false == false; else - $exec = $attr_false == false; + $exec = $attr6_false == false; } // Inhalt-Vergleich mit Wertliste - elseif( isset($attr_contains) ) - $exec = in_array($$attr_var,explode(',',$attr_contains)); + elseif( isset($attr6_contains) ) + $exec = in_array($attr6_value,explode(',',$attr6_contains)); // Inhalt-Vergleich - elseif( isset($attr_var) ) - $exec = $$attr_var == $attr_value; + elseif( isset($attr6_equals)&& isset($attr6_value) ) + $exec = $attr6_equals == $attr6_value; // Vergleich auf leer - elseif ( isset($attr_empty) ) + elseif ( isset($attr6_empty) ) { - if ( !isset($$attr_empty) ) - $exec = empty($attr_empty); - elseif ( is_array($$attr_empty) ) - $exec = (count($$attr_empty)==0); - elseif ( is_bool($$attr_empty) ) + if ( !isset($$attr6_empty) ) + $exec = empty($attr6_empty); + elseif ( is_array($$attr6_empty) ) + $exec = (count($$attr6_empty)==0); + elseif ( is_bool($$attr6_empty) ) $exec = true; else - $exec = empty( $$attr_empty ); + $exec = empty( $$attr6_empty ); } // Vergleich auf Vorhandensein - elseif ( isset($attr_present) ) - { - if ( !isset($$attr_present) ) - $exec = false; - elseif ( is_array($$attr_present) ) - $exec = (count($$attr_present)>0); - elseif ( is_bool($$attr_present) ) - $exec = $$attr_present; - elseif ( is_numeric($$attr_present) ) - $exec = $$attr_present>=0; - else - $exec = true; + elseif ( isset($attr6_present) ) + { + $exec = isset($$attr6_present); +// if ( !isset($$attr6_present) ) +// $exec = false; +// elseif ( is_array($$attr6_present) ) +// $exec = (count($$attr6_present)>0); +// elseif ( is_bool($$attr6_present) ) +// $exec = $$attr6_present; +// elseif ( is_numeric($$attr6_present) ) +// $exec = $$attr6_present>=0; +// else +// $exec = true; } else { - Html::debug( $attr ); + Html::debug( $attr6 ); echo("error in IF line ".__LINE__); echo("assume: FALSE"); $exec = false; } // Ergebnis umdrehen - if ( !empty($attr_invert) ) + // TODO: Bald ausbauen, stattdessen "not" verwenden. + if ( !empty($attr6_invert) ) $exec = !$exec; // Ergebnis umdrehen - if ( !empty($attr_not) ) + if ( !empty($attr6_not) ) $exec = !$exec; - unset($attr_true); - unset($attr_false); - unset($attr_notempty); - unset($attr_empty); - unset($attr_contains); - unset($attr_present); - unset($attr_invert); - unset($attr_not); - unset($attr_value); - unset($attr_var); + unset($attr6_true); + unset($attr6_false); + unset($attr6_notempty); + unset($attr6_empty); + unset($attr6_contains); + unset($attr6_present); + unset($attr6_invert); + unset($attr6_not); + unset($attr6_value); + unset($attr6_equals); $last_exec = $exec; if ( $exec ) { -?><?php unset($attr) ?><?php unset($attr_empty) ?><?php $attr = array('class'=>'text','raw'=>'_') ?><?php $attr_class='text' ?><?php $attr_raw='_' ?><?php - if(empty($attr_title)) - if (!empty($attr_key)) - $attr_title = lang($attr_key).'_HELP'; +?><?php unset($attr6) ?><?php unset($attr6_empty) ?><?php $attr7 = array('class'=>'text','raw'=>'_') ?><?php $attr7_class='text' ?><?php $attr7_raw='_' ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + + if(empty($attr7_title)) + if (!empty($attr7_key)) + $attr7_title = lang($attr7_key.'_HELP'); else - $attr_title = ''; + $attr7_title = ''; + +?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php + $attr7_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) + if (!empty($attr7_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; - else - $tmp_text = lang($tmpArray[$attr_text]); - } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); - else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + //echo $$attr7_array[$attr7_var].'%'; + $tmpArray = $$attr7_array; + if (!empty($attr7_var)) + $tmp_text = $tmpArray[$attr7_var]; + else + $tmp_text = lang($tmpArray[$attr7_text]); + } + elseif (!empty($attr7_text)) + if ( isset($$attr7_text)) + $tmp_text = lang($$attr7_text); + else + $tmp_text = lang($attr7_text); + elseif (!empty($attr7_textvar)) + $tmp_text = lang($$attr7_textvar); + elseif (!empty($attr7_key)) + $tmp_text = lang($attr7_key); + elseif (!empty($attr7_var)) + $tmp_text = isset($$attr7_var)?htmlentities($$attr7_var):'error: variable '.$attr7_var.' not present'; + elseif (!empty($attr7_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr7_raw); + elseif (!empty($attr7_value)) + $tmp_text = $attr7_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr7);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr7_maxlength) && intval($attr7_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr7_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_raw) ?><?php $attr = array() ?><?php +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_raw) ?><?php $attr5 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('width'=>'3%','class'=>'fx') ?><?php $attr_width='3%' ?><?php $attr_class='fx' ?><?php -// if (empty($attr_class)) -// $attr['class']=$row_class; +?><?php unset($attr5) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr5 = array('width'=>'3%','class'=>'fx') ?><?php $attr5_width='3%' ?><?php $attr5_class='fx' ?><?php +// if (empty($attr5_class)) +// $attr5['class']=$row_class; $column_class_idx++; if ($column_class_idx > count($column_classes)) $column_class_idx=1; $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr_class)) - $attr['class']=$column_class; + if (empty($attr5_class)) + $attr5['class']=$column_class; global $cell_column_nr; $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) ) - $attr['width']=$column_widths[$cell_column_nr-1]; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_width) ?><?php unset($attr_class) ?><?php $attr = array('present'=>'bottomurl') ?><?php $attr_present='bottomurl' ?><?php +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_width) ?><?php unset($attr5_class) ?><?php $attr6 = array('present'=>'bottomurl') ?><?php $attr6_present='bottomurl' ?><?php // Wahr-Vergleich -// Html::debug($attr); +// Html::debug($attr6); - if ( isset($attr_true) ) + if ( isset($attr6_true) ) { - if (gettype($attr_true) === '' && gettype($attr_true) === '1') - $exec = $$attr_true == true; + if (gettype($attr6_true) === '' && gettype($attr6_true) === '1') + $exec = $$attr6_true == true; else - $exec = $attr_true == true; + $exec = $attr6_true == true; } // Falsch-Vergleich - elseif ( isset($attr_false) ) + elseif ( isset($attr6_false) ) { - if (gettype($attr_false) === '' && gettype($attr_false) === '1') - $exec = $$attr_false == false; + if (gettype($attr6_false) === '' && gettype($attr6_false) === '1') + $exec = $$attr6_false == false; else - $exec = $attr_false == false; + $exec = $attr6_false == false; } // Inhalt-Vergleich mit Wertliste - elseif( isset($attr_contains) ) - $exec = in_array($$attr_var,explode(',',$attr_contains)); + elseif( isset($attr6_contains) ) + $exec = in_array($attr6_value,explode(',',$attr6_contains)); // Inhalt-Vergleich - elseif( isset($attr_var) ) - $exec = $$attr_var == $attr_value; + elseif( isset($attr6_equals)&& isset($attr6_value) ) + $exec = $attr6_equals == $attr6_value; // Vergleich auf leer - elseif ( isset($attr_empty) ) + elseif ( isset($attr6_empty) ) { - if ( !isset($$attr_empty) ) - $exec = empty($attr_empty); - elseif ( is_array($$attr_empty) ) - $exec = (count($$attr_empty)==0); - elseif ( is_bool($$attr_empty) ) + if ( !isset($$attr6_empty) ) + $exec = empty($attr6_empty); + elseif ( is_array($$attr6_empty) ) + $exec = (count($$attr6_empty)==0); + elseif ( is_bool($$attr6_empty) ) $exec = true; else - $exec = empty( $$attr_empty ); + $exec = empty( $$attr6_empty ); } // Vergleich auf Vorhandensein - elseif ( isset($attr_present) ) - { - if ( !isset($$attr_present) ) - $exec = false; - elseif ( is_array($$attr_present) ) - $exec = (count($$attr_present)>0); - elseif ( is_bool($$attr_present) ) - $exec = $$attr_present; - elseif ( is_numeric($$attr_present) ) - $exec = $$attr_present>=0; - else - $exec = true; + elseif ( isset($attr6_present) ) + { + $exec = isset($$attr6_present); +// if ( !isset($$attr6_present) ) +// $exec = false; +// elseif ( is_array($$attr6_present) ) +// $exec = (count($$attr6_present)>0); +// elseif ( is_bool($$attr6_present) ) +// $exec = $$attr6_present; +// elseif ( is_numeric($$attr6_present) ) +// $exec = $$attr6_present>=0; +// else +// $exec = true; } else { - Html::debug( $attr ); + Html::debug( $attr6 ); echo("error in IF line ".__LINE__); echo("assume: FALSE"); $exec = false; } // Ergebnis umdrehen - if ( !empty($attr_invert) ) + // TODO: Bald ausbauen, stattdessen "not" verwenden. + if ( !empty($attr6_invert) ) $exec = !$exec; // Ergebnis umdrehen - if ( !empty($attr_not) ) + if ( !empty($attr6_not) ) $exec = !$exec; - unset($attr_true); - unset($attr_false); - unset($attr_notempty); - unset($attr_empty); - unset($attr_contains); - unset($attr_present); - unset($attr_invert); - unset($attr_not); - unset($attr_value); - unset($attr_var); + unset($attr6_true); + unset($attr6_false); + unset($attr6_notempty); + unset($attr6_empty); + unset($attr6_contains); + unset($attr6_present); + unset($attr6_invert); + unset($attr6_not); + unset($attr6_value); + unset($attr6_equals); $last_exec = $exec; if ( $exec ) { -?><?php unset($attr) ?><?php unset($attr_present) ?><?php $attr = array('title'=>'GLOBAL_BOTTOM','target'=>'_self','url'=>$bottomurl,'class'=>'') ?><?php $attr_title='GLOBAL_BOTTOM' ?><?php $attr_target='_self' ?><?php $attr_url=$bottomurl ?><?php $attr_class='' ?><?php - if(!empty($attr_url)) - $tmp_url = $attr_url; +?><?php unset($attr6) ?><?php unset($attr6_present) ?><?php $attr7 = array('title'=>'GLOBAL_BOTTOM','target'=>'_self','url'=>$bottomurl) ?><?php $attr7_title='GLOBAL_BOTTOM' ?><?php $attr7_target='_self' ?><?php $attr7_url=$bottomurl ?><?php + if(!empty($attr7_url)) + $tmp_url = $attr7_url; else - $tmp_url = Html::url($attr_action,$attr_subaction,!empty($$attr_id)?$$attr_id:$this->getRequestId(),array(!empty($var1)?$var1:'asdf'=>!empty($value1)?$$value1:'')); -?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr_class ?>" target="<?php echo $attr_target ?>" title="<?php echo $attr_title ?>"><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_target) ?><?php unset($attr_url) ?><?php unset($attr_class) ?><?php $attr = array('var'=>'bild','value'=>'arrow_bottom') ?><?php $attr_var='bild' ?><?php $attr_value='arrow_bottom' ?><?php $$attr_var = $attr_value ?><?php unset($attr) ?><?php unset($attr_var) ?><?php unset($attr_value) ?><?php $attr = array('file'=>$bild,'align'=>'left') ?><?php $attr_file=$bild ?><?php $attr_align='left' ?><?php -if (isset($attr_elementtype)) { -?><img src="<?php echo $image_dir.'icon_el_'.$attr_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php -} elseif (isset($attr_type)) { -?><img src="<?php echo $image_dir.'icon_'.$attr_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php -} elseif (isset($attr_icon)) { -?><img src="<?php echo $image_dir.'icon_'.$attr_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php -} elseif (isset($attr_url)) { -?><img src="<?php echo $attr_url ?>" border="0" align="<?php echo $attr_align ?>"><?php -} elseif (isset($attr_file)) { -?><img src="<?php echo $image_dir.$attr_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php } ?><?php unset($attr) ?><?php unset($attr_file) ?><?php unset($attr_align) ?><?php $attr = array() ?></a><?php unset($attr) ?><?php $attr = array() ?><?php + $tmp_url = Html::url($attr7_action,$attr7_subaction,!empty($$attr7_id)?$$attr7_id:$this->getRequestId(),array(!empty($var1)?$var1:'asdf'=>!empty($value1)?$$value1:'')); +?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr7_class ?>" target="<?php echo $attr7_target ?>" title="<?php echo $attr7_title ?>"><?php unset($attr7) ?><?php unset($attr7_title) ?><?php unset($attr7_target) ?><?php unset($attr7_url) ?><?php $attr8 = array('var'=>'bild','value'=>'arrow_bottom') ?><?php $attr8_var='bild' ?><?php $attr8_value='arrow_bottom' ?><?php $$attr8_var = $attr8_value ?><?php unset($attr8) ?><?php unset($attr8_var) ?><?php unset($attr8_value) ?><?php $attr8 = array('file'=>$bild,'align'=>'left') ?><?php $attr8_file=$bild ?><?php $attr8_align='left' ?><?php +if (isset($attr8_elementtype)) { +?><img src="<?php echo $image_dir.'icon_el_'.$attr8_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_type)) { +?><img src="<?php echo $image_dir.'icon_'.$attr8_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_icon)) { +?><img src="<?php echo $image_dir.'icon_'.$attr8_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_url)) { +?><img src="<?php echo $attr8_url ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_fileext)) { +?><img src="<?php echo $image_dir.$attr8_fileext ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_file)) { +?><img src="<?php echo $image_dir.$attr8_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php } ?><?php unset($attr8) ?><?php unset($attr8_file) ?><?php unset($attr8_align) ?><?php $attr6 = array() ?></a><?php unset($attr6) ?><?php $attr5 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array('empty'=>'bottomurl') ?><?php $attr_empty='bottomurl' ?><?php +?><?php unset($attr5) ?><?php $attr6 = array('empty'=>'bottomurl') ?><?php $attr6_empty='bottomurl' ?><?php // Wahr-Vergleich -// Html::debug($attr); +// Html::debug($attr6); - if ( isset($attr_true) ) + if ( isset($attr6_true) ) { - if (gettype($attr_true) === '' && gettype($attr_true) === '1') - $exec = $$attr_true == true; + if (gettype($attr6_true) === '' && gettype($attr6_true) === '1') + $exec = $$attr6_true == true; else - $exec = $attr_true == true; + $exec = $attr6_true == true; } // Falsch-Vergleich - elseif ( isset($attr_false) ) + elseif ( isset($attr6_false) ) { - if (gettype($attr_false) === '' && gettype($attr_false) === '1') - $exec = $$attr_false == false; + if (gettype($attr6_false) === '' && gettype($attr6_false) === '1') + $exec = $$attr6_false == false; else - $exec = $attr_false == false; + $exec = $attr6_false == false; } // Inhalt-Vergleich mit Wertliste - elseif( isset($attr_contains) ) - $exec = in_array($$attr_var,explode(',',$attr_contains)); + elseif( isset($attr6_contains) ) + $exec = in_array($attr6_value,explode(',',$attr6_contains)); // Inhalt-Vergleich - elseif( isset($attr_var) ) - $exec = $$attr_var == $attr_value; + elseif( isset($attr6_equals)&& isset($attr6_value) ) + $exec = $attr6_equals == $attr6_value; // Vergleich auf leer - elseif ( isset($attr_empty) ) + elseif ( isset($attr6_empty) ) { - if ( !isset($$attr_empty) ) - $exec = empty($attr_empty); - elseif ( is_array($$attr_empty) ) - $exec = (count($$attr_empty)==0); - elseif ( is_bool($$attr_empty) ) + if ( !isset($$attr6_empty) ) + $exec = empty($attr6_empty); + elseif ( is_array($$attr6_empty) ) + $exec = (count($$attr6_empty)==0); + elseif ( is_bool($$attr6_empty) ) $exec = true; else - $exec = empty( $$attr_empty ); + $exec = empty( $$attr6_empty ); } // Vergleich auf Vorhandensein - elseif ( isset($attr_present) ) - { - if ( !isset($$attr_present) ) - $exec = false; - elseif ( is_array($$attr_present) ) - $exec = (count($$attr_present)>0); - elseif ( is_bool($$attr_present) ) - $exec = $$attr_present; - elseif ( is_numeric($$attr_present) ) - $exec = $$attr_present>=0; - else - $exec = true; + elseif ( isset($attr6_present) ) + { + $exec = isset($$attr6_present); +// if ( !isset($$attr6_present) ) +// $exec = false; +// elseif ( is_array($$attr6_present) ) +// $exec = (count($$attr6_present)>0); +// elseif ( is_bool($$attr6_present) ) +// $exec = $$attr6_present; +// elseif ( is_numeric($$attr6_present) ) +// $exec = $$attr6_present>=0; +// else +// $exec = true; } else { - Html::debug( $attr ); + Html::debug( $attr6 ); echo("error in IF line ".__LINE__); echo("assume: FALSE"); $exec = false; } // Ergebnis umdrehen - if ( !empty($attr_invert) ) + // TODO: Bald ausbauen, stattdessen "not" verwenden. + if ( !empty($attr6_invert) ) $exec = !$exec; // Ergebnis umdrehen - if ( !empty($attr_not) ) + if ( !empty($attr6_not) ) $exec = !$exec; - unset($attr_true); - unset($attr_false); - unset($attr_notempty); - unset($attr_empty); - unset($attr_contains); - unset($attr_present); - unset($attr_invert); - unset($attr_not); - unset($attr_value); - unset($attr_var); + unset($attr6_true); + unset($attr6_false); + unset($attr6_notempty); + unset($attr6_empty); + unset($attr6_contains); + unset($attr6_present); + unset($attr6_invert); + unset($attr6_not); + unset($attr6_value); + unset($attr6_equals); $last_exec = $exec; if ( $exec ) { -?><?php unset($attr) ?><?php unset($attr_empty) ?><?php $attr = array('class'=>'text','raw'=>'_') ?><?php $attr_class='text' ?><?php $attr_raw='_' ?><?php - if(empty($attr_title)) - if (!empty($attr_key)) - $attr_title = lang($attr_key).'_HELP'; +?><?php unset($attr6) ?><?php unset($attr6_empty) ?><?php $attr7 = array('class'=>'text','raw'=>'_') ?><?php $attr7_class='text' ?><?php $attr7_raw='_' ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + + if(empty($attr7_title)) + if (!empty($attr7_key)) + $attr7_title = lang($attr7_key.'_HELP'); else - $attr_title = ''; + $attr7_title = ''; + +?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php + $attr7_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) + if (!empty($attr7_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; - else - $tmp_text = lang($tmpArray[$attr_text]); - } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); - else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + //echo $$attr7_array[$attr7_var].'%'; + $tmpArray = $$attr7_array; + if (!empty($attr7_var)) + $tmp_text = $tmpArray[$attr7_var]; + else + $tmp_text = lang($tmpArray[$attr7_text]); + } + elseif (!empty($attr7_text)) + if ( isset($$attr7_text)) + $tmp_text = lang($$attr7_text); + else + $tmp_text = lang($attr7_text); + elseif (!empty($attr7_textvar)) + $tmp_text = lang($$attr7_textvar); + elseif (!empty($attr7_key)) + $tmp_text = lang($attr7_key); + elseif (!empty($attr7_var)) + $tmp_text = isset($$attr7_var)?htmlentities($$attr7_var):'error: variable '.$attr7_var.' not present'; + elseif (!empty($attr7_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr7_raw); + elseif (!empty($attr7_value)) + $tmp_text = $attr7_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr7);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr7_maxlength) && intval($attr7_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr7_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_raw) ?><?php $attr = array() ?><?php +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_raw) ?><?php $attr5 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('width'=>'3%','class'=>'fx') ?><?php $attr_width='3%' ?><?php $attr_class='fx' ?><?php -// if (empty($attr_class)) -// $attr['class']=$row_class; +?><?php unset($attr5) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr5 = array('width'=>'3%','class'=>'fx') ?><?php $attr5_width='3%' ?><?php $attr5_class='fx' ?><?php +// if (empty($attr5_class)) +// $attr5['class']=$row_class; $column_class_idx++; if ($column_class_idx > count($column_classes)) $column_class_idx=1; $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr_class)) - $attr['class']=$column_class; + if (empty($attr5_class)) + $attr5['class']=$column_class; global $cell_column_nr; $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) ) - $attr['width']=$column_widths[$cell_column_nr-1]; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_width) ?><?php unset($attr_class) ?><?php $attr = array('present'=>'downurl') ?><?php $attr_present='downurl' ?><?php +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_width) ?><?php unset($attr5_class) ?><?php $attr6 = array('present'=>'downurl') ?><?php $attr6_present='downurl' ?><?php // Wahr-Vergleich -// Html::debug($attr); +// Html::debug($attr6); - if ( isset($attr_true) ) + if ( isset($attr6_true) ) { - if (gettype($attr_true) === '' && gettype($attr_true) === '1') - $exec = $$attr_true == true; + if (gettype($attr6_true) === '' && gettype($attr6_true) === '1') + $exec = $$attr6_true == true; else - $exec = $attr_true == true; + $exec = $attr6_true == true; } // Falsch-Vergleich - elseif ( isset($attr_false) ) + elseif ( isset($attr6_false) ) { - if (gettype($attr_false) === '' && gettype($attr_false) === '1') - $exec = $$attr_false == false; + if (gettype($attr6_false) === '' && gettype($attr6_false) === '1') + $exec = $$attr6_false == false; else - $exec = $attr_false == false; + $exec = $attr6_false == false; } // Inhalt-Vergleich mit Wertliste - elseif( isset($attr_contains) ) - $exec = in_array($$attr_var,explode(',',$attr_contains)); + elseif( isset($attr6_contains) ) + $exec = in_array($attr6_value,explode(',',$attr6_contains)); // Inhalt-Vergleich - elseif( isset($attr_var) ) - $exec = $$attr_var == $attr_value; + elseif( isset($attr6_equals)&& isset($attr6_value) ) + $exec = $attr6_equals == $attr6_value; // Vergleich auf leer - elseif ( isset($attr_empty) ) + elseif ( isset($attr6_empty) ) { - if ( !isset($$attr_empty) ) - $exec = empty($attr_empty); - elseif ( is_array($$attr_empty) ) - $exec = (count($$attr_empty)==0); - elseif ( is_bool($$attr_empty) ) + if ( !isset($$attr6_empty) ) + $exec = empty($attr6_empty); + elseif ( is_array($$attr6_empty) ) + $exec = (count($$attr6_empty)==0); + elseif ( is_bool($$attr6_empty) ) $exec = true; else - $exec = empty( $$attr_empty ); + $exec = empty( $$attr6_empty ); } // Vergleich auf Vorhandensein - elseif ( isset($attr_present) ) - { - if ( !isset($$attr_present) ) - $exec = false; - elseif ( is_array($$attr_present) ) - $exec = (count($$attr_present)>0); - elseif ( is_bool($$attr_present) ) - $exec = $$attr_present; - elseif ( is_numeric($$attr_present) ) - $exec = $$attr_present>=0; - else - $exec = true; + elseif ( isset($attr6_present) ) + { + $exec = isset($$attr6_present); +// if ( !isset($$attr6_present) ) +// $exec = false; +// elseif ( is_array($$attr6_present) ) +// $exec = (count($$attr6_present)>0); +// elseif ( is_bool($$attr6_present) ) +// $exec = $$attr6_present; +// elseif ( is_numeric($$attr6_present) ) +// $exec = $$attr6_present>=0; +// else +// $exec = true; } else { - Html::debug( $attr ); + Html::debug( $attr6 ); echo("error in IF line ".__LINE__); echo("assume: FALSE"); $exec = false; } // Ergebnis umdrehen - if ( !empty($attr_invert) ) + // TODO: Bald ausbauen, stattdessen "not" verwenden. + if ( !empty($attr6_invert) ) $exec = !$exec; // Ergebnis umdrehen - if ( !empty($attr_not) ) + if ( !empty($attr6_not) ) $exec = !$exec; - unset($attr_true); - unset($attr_false); - unset($attr_notempty); - unset($attr_empty); - unset($attr_contains); - unset($attr_present); - unset($attr_invert); - unset($attr_not); - unset($attr_value); - unset($attr_var); + unset($attr6_true); + unset($attr6_false); + unset($attr6_notempty); + unset($attr6_empty); + unset($attr6_contains); + unset($attr6_present); + unset($attr6_invert); + unset($attr6_not); + unset($attr6_value); + unset($attr6_equals); $last_exec = $exec; if ( $exec ) { -?><?php unset($attr) ?><?php unset($attr_present) ?><?php $attr = array('title'=>'GLOBAL_DOWN','target'=>'_self','url'=>$downurl,'class'=>'') ?><?php $attr_title='GLOBAL_DOWN' ?><?php $attr_target='_self' ?><?php $attr_url=$downurl ?><?php $attr_class='' ?><?php - if(!empty($attr_url)) - $tmp_url = $attr_url; +?><?php unset($attr6) ?><?php unset($attr6_present) ?><?php $attr7 = array('title'=>'GLOBAL_DOWN','target'=>'_self','url'=>$downurl) ?><?php $attr7_title='GLOBAL_DOWN' ?><?php $attr7_target='_self' ?><?php $attr7_url=$downurl ?><?php + if(!empty($attr7_url)) + $tmp_url = $attr7_url; else - $tmp_url = Html::url($attr_action,$attr_subaction,!empty($$attr_id)?$$attr_id:$this->getRequestId(),array(!empty($var1)?$var1:'asdf'=>!empty($value1)?$$value1:'')); -?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr_class ?>" target="<?php echo $attr_target ?>" title="<?php echo $attr_title ?>"><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_target) ?><?php unset($attr_url) ?><?php unset($attr_class) ?><?php $attr = array('var'=>'bild','value'=>'arrow_down') ?><?php $attr_var='bild' ?><?php $attr_value='arrow_down' ?><?php $$attr_var = $attr_value ?><?php unset($attr) ?><?php unset($attr_var) ?><?php unset($attr_value) ?><?php $attr = array('file'=>$bild,'align'=>'left') ?><?php $attr_file=$bild ?><?php $attr_align='left' ?><?php -if (isset($attr_elementtype)) { -?><img src="<?php echo $image_dir.'icon_el_'.$attr_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php -} elseif (isset($attr_type)) { -?><img src="<?php echo $image_dir.'icon_'.$attr_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php -} elseif (isset($attr_icon)) { -?><img src="<?php echo $image_dir.'icon_'.$attr_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php -} elseif (isset($attr_url)) { -?><img src="<?php echo $attr_url ?>" border="0" align="<?php echo $attr_align ?>"><?php -} elseif (isset($attr_file)) { -?><img src="<?php echo $image_dir.$attr_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php } ?><?php unset($attr) ?><?php unset($attr_file) ?><?php unset($attr_align) ?><?php $attr = array() ?></a><?php unset($attr) ?><?php $attr = array() ?><?php + $tmp_url = Html::url($attr7_action,$attr7_subaction,!empty($$attr7_id)?$$attr7_id:$this->getRequestId(),array(!empty($var1)?$var1:'asdf'=>!empty($value1)?$$value1:'')); +?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr7_class ?>" target="<?php echo $attr7_target ?>" title="<?php echo $attr7_title ?>"><?php unset($attr7) ?><?php unset($attr7_title) ?><?php unset($attr7_target) ?><?php unset($attr7_url) ?><?php $attr8 = array('var'=>'bild','value'=>'arrow_down') ?><?php $attr8_var='bild' ?><?php $attr8_value='arrow_down' ?><?php $$attr8_var = $attr8_value ?><?php unset($attr8) ?><?php unset($attr8_var) ?><?php unset($attr8_value) ?><?php $attr8 = array('file'=>$bild,'align'=>'left') ?><?php $attr8_file=$bild ?><?php $attr8_align='left' ?><?php +if (isset($attr8_elementtype)) { +?><img src="<?php echo $image_dir.'icon_el_'.$attr8_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_type)) { +?><img src="<?php echo $image_dir.'icon_'.$attr8_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_icon)) { +?><img src="<?php echo $image_dir.'icon_'.$attr8_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_url)) { +?><img src="<?php echo $attr8_url ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_fileext)) { +?><img src="<?php echo $image_dir.$attr8_fileext ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_file)) { +?><img src="<?php echo $image_dir.$attr8_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php } ?><?php unset($attr8) ?><?php unset($attr8_file) ?><?php unset($attr8_align) ?><?php $attr6 = array() ?></a><?php unset($attr6) ?><?php $attr5 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array('empty'=>'downurl') ?><?php $attr_empty='downurl' ?><?php +?><?php unset($attr5) ?><?php $attr6 = array('empty'=>'downurl') ?><?php $attr6_empty='downurl' ?><?php // Wahr-Vergleich -// Html::debug($attr); +// Html::debug($attr6); - if ( isset($attr_true) ) + if ( isset($attr6_true) ) { - if (gettype($attr_true) === '' && gettype($attr_true) === '1') - $exec = $$attr_true == true; + if (gettype($attr6_true) === '' && gettype($attr6_true) === '1') + $exec = $$attr6_true == true; else - $exec = $attr_true == true; + $exec = $attr6_true == true; } // Falsch-Vergleich - elseif ( isset($attr_false) ) + elseif ( isset($attr6_false) ) { - if (gettype($attr_false) === '' && gettype($attr_false) === '1') - $exec = $$attr_false == false; + if (gettype($attr6_false) === '' && gettype($attr6_false) === '1') + $exec = $$attr6_false == false; else - $exec = $attr_false == false; + $exec = $attr6_false == false; } // Inhalt-Vergleich mit Wertliste - elseif( isset($attr_contains) ) - $exec = in_array($$attr_var,explode(',',$attr_contains)); + elseif( isset($attr6_contains) ) + $exec = in_array($attr6_value,explode(',',$attr6_contains)); // Inhalt-Vergleich - elseif( isset($attr_var) ) - $exec = $$attr_var == $attr_value; + elseif( isset($attr6_equals)&& isset($attr6_value) ) + $exec = $attr6_equals == $attr6_value; // Vergleich auf leer - elseif ( isset($attr_empty) ) + elseif ( isset($attr6_empty) ) { - if ( !isset($$attr_empty) ) - $exec = empty($attr_empty); - elseif ( is_array($$attr_empty) ) - $exec = (count($$attr_empty)==0); - elseif ( is_bool($$attr_empty) ) + if ( !isset($$attr6_empty) ) + $exec = empty($attr6_empty); + elseif ( is_array($$attr6_empty) ) + $exec = (count($$attr6_empty)==0); + elseif ( is_bool($$attr6_empty) ) $exec = true; else - $exec = empty( $$attr_empty ); + $exec = empty( $$attr6_empty ); } // Vergleich auf Vorhandensein - elseif ( isset($attr_present) ) - { - if ( !isset($$attr_present) ) - $exec = false; - elseif ( is_array($$attr_present) ) - $exec = (count($$attr_present)>0); - elseif ( is_bool($$attr_present) ) - $exec = $$attr_present; - elseif ( is_numeric($$attr_present) ) - $exec = $$attr_present>=0; - else - $exec = true; + elseif ( isset($attr6_present) ) + { + $exec = isset($$attr6_present); +// if ( !isset($$attr6_present) ) +// $exec = false; +// elseif ( is_array($$attr6_present) ) +// $exec = (count($$attr6_present)>0); +// elseif ( is_bool($$attr6_present) ) +// $exec = $$attr6_present; +// elseif ( is_numeric($$attr6_present) ) +// $exec = $$attr6_present>=0; +// else +// $exec = true; } else { - Html::debug( $attr ); + Html::debug( $attr6 ); echo("error in IF line ".__LINE__); echo("assume: FALSE"); $exec = false; } // Ergebnis umdrehen - if ( !empty($attr_invert) ) + // TODO: Bald ausbauen, stattdessen "not" verwenden. + if ( !empty($attr6_invert) ) $exec = !$exec; // Ergebnis umdrehen - if ( !empty($attr_not) ) + if ( !empty($attr6_not) ) $exec = !$exec; - unset($attr_true); - unset($attr_false); - unset($attr_notempty); - unset($attr_empty); - unset($attr_contains); - unset($attr_present); - unset($attr_invert); - unset($attr_not); - unset($attr_value); - unset($attr_var); + unset($attr6_true); + unset($attr6_false); + unset($attr6_notempty); + unset($attr6_empty); + unset($attr6_contains); + unset($attr6_present); + unset($attr6_invert); + unset($attr6_not); + unset($attr6_value); + unset($attr6_equals); $last_exec = $exec; if ( $exec ) { -?><?php unset($attr) ?><?php unset($attr_empty) ?><?php $attr = array('class'=>'text','raw'=>'_') ?><?php $attr_class='text' ?><?php $attr_raw='_' ?><?php - if(empty($attr_title)) - if (!empty($attr_key)) - $attr_title = lang($attr_key).'_HELP'; +?><?php unset($attr6) ?><?php unset($attr6_empty) ?><?php $attr7 = array('class'=>'text','raw'=>'_') ?><?php $attr7_class='text' ?><?php $attr7_raw='_' ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + + if(empty($attr7_title)) + if (!empty($attr7_key)) + $attr7_title = lang($attr7_key.'_HELP'); else - $attr_title = ''; + $attr7_title = ''; + +?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php + $attr7_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) + if (!empty($attr7_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; - else - $tmp_text = lang($tmpArray[$attr_text]); - } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); - else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + //echo $$attr7_array[$attr7_var].'%'; + $tmpArray = $$attr7_array; + if (!empty($attr7_var)) + $tmp_text = $tmpArray[$attr7_var]; + else + $tmp_text = lang($tmpArray[$attr7_text]); + } + elseif (!empty($attr7_text)) + if ( isset($$attr7_text)) + $tmp_text = lang($$attr7_text); + else + $tmp_text = lang($attr7_text); + elseif (!empty($attr7_textvar)) + $tmp_text = lang($$attr7_textvar); + elseif (!empty($attr7_key)) + $tmp_text = lang($attr7_key); + elseif (!empty($attr7_var)) + $tmp_text = isset($$attr7_var)?htmlentities($$attr7_var):'error: variable '.$attr7_var.' not present'; + elseif (!empty($attr7_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr7_raw); + elseif (!empty($attr7_value)) + $tmp_text = $attr7_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr7);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr7_maxlength) && intval($attr7_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr7_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_raw) ?><?php $attr = array() ?><?php +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_raw) ?><?php $attr5 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php } ?><?php unset($attr) ?><?php $attr = array() ?> </table> +?><?php unset($attr5) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr2 = array() ?><?php } ?><?php unset($attr2) ?><?php $attr1 = array() ?> </table> </td> </tr> </table> @@ -1636,7 +1769,7 @@ if (isset($attr_elementtype)) { <?php $dur = time()-START_TIME; echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small> <?php } ?> -<?php unset($attr) ?><?php $attr = array() ?> +<?php unset($attr1) ?><?php $attr0 = array() ?> <!-- $Id$ --> <?php if ($showDuration) { ?> @@ -1647,4 +1780,4 @@ if (isset($attr_elementtype)) { <?php } ?> </body> -</html><?php unset($attr) ?>- \ No newline at end of file +</html><?php unset($attr0) ?>+ \ 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 @@ -1,62 +1,69 @@ -<?php $attr = array('class'=>'main','title'=>'var') ?><?php $attr_class='main' ?><?php $attr_title='var' ?><?php header('Content-Type: text/html; charset='.lang('CHARSET')) +<?php $attr1 = array('class'=>'main','title'=>$cms_title) ?><?php $attr1_class='main' ?><?php $attr1_title=$cms_title ?><?php header('Content-Type: text/html; charset='.lang('CHARSET')) ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <!-- $Id$ --> <head> - <title><?php echo $attr_title ?></title> + <title><?php echo $attr1_title ?></title> <meta http-equiv="content-type" content="text/html; charset=<?php echo lang('CHARSET') ?>" /> <meta name="MSSmartTagsPreventParsing" content="true" /> <meta name="robots" content="noindex,nofollow" /> +<?php if (is_array($windowMenu)) foreach( $windowMenu as $menu ) + { + ?> + <link rel="section" href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text']) ?>" /> +<?php + } +?> <link rel="stylesheet" type="text/css" href="./themes/default/css/default.css" /> <?php if($stylesheet!='default') { ?> <link rel="stylesheet" type="text/css" href="<?php echo $stylesheet ?>" /> <?php } ?> </head> -<body class="<?php echo $attr_class ?>"> +<body class="<?php echo $attr1_class ?>"> -<?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_title) ?><?php $attr = array('name'=>'','target'=>'_self','method'=>'post','enctype'=>'application/x-www-form-urlencoded') ?><?php $attr_name='' ?><?php $attr_target='_self' ?><?php $attr_method='post' ?><?php $attr_enctype='application/x-www-form-urlencoded' ?><?php - if (empty($attr_action)) - $attr_action = $actionName; - if (empty($attr_subaction)) - $attr_subaction = $targetSubActionName; - if (empty($attr_id)) - $attr_id = $this->getRequestId(); +<?php unset($attr1) ?><?php unset($attr1_class) ?><?php unset($attr1_title) ?><?php $attr2 = array('target'=>'_self','method'=>'post','enctype'=>'application/x-www-form-urlencoded') ?><?php $attr2_target='_self' ?><?php $attr2_method='post' ?><?php $attr2_enctype='application/x-www-form-urlencoded' ?><?php + if (empty($attr2_action)) + $attr2_action = $actionName; + if (empty($attr2_subaction)) + $attr2_subaction = $targetSubActionName; + if (empty($attr2_id)) + $attr2_id = $this->getRequestId(); -?><form name="<?php echo $attr_name ?>" - target="<?php echo $attr_target ?>" - action="<?php echo Html::url( $attr_action,$attr_subaction,$attr_id ) ?>" - method="<?php echo $attr_method ?>" - enctype="<?php echo $attr_enctype ?>"> -<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $attr_action ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $attr_subaction ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr_id ?>" /><?php +?><form name="<?php echo $attr2_name ?>" + target="<?php echo $attr2_target ?>" + action="<?php echo Html::url( $attr2_action,$attr2_subaction,$attr2_id ) ?>" + method="<?php echo $attr2_method ?>" + enctype="<?php echo $attr2_enctype ?>"> +<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $attr2_action ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $attr2_subaction ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr2_id ?>" /><?php if ( $conf['interface']['url_sessionid'] ) echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; -?><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_target) ?><?php unset($attr_method) ?><?php unset($attr_enctype) ?><?php $attr = array('width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr_width='93%' ?><?php $attr_rowclasses='odd,even' ?><?php $attr_columnclasses='1,2,3' ?><?php +?><?php unset($attr2) ?><?php unset($attr2_target) ?><?php unset($attr2_method) ?><?php unset($attr2_enctype) ?><?php $attr3 = array('width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr3_width='93%' ?><?php $attr3_rowclasses='odd,even' ?><?php $attr3_columnclasses='1,2,3' ?><?php $coloumn_widths=array(); - if (!empty($attr_widths)) + if (!empty($attr3_widths)) { - $column_widths = explode(',',$attr_widths); - unset($attr['widths']); + $column_widths = explode(',',$attr3_widths); + unset($attr3['widths']); } - if (!empty($attr_rowclasses)) + if (!empty($attr3_rowclasses)) { - $row_classes = explode(',',$attr_rowclasses); + $row_classes = explode(',',$attr3_rowclasses); $row_class_idx = 999; - unset($attr['rowclasses']); + unset($attr3['rowclasses']); } - if (!empty($attr_columnclasses)) + if (!empty($attr3_columnclasses)) { - $column_classes = explode(',',$attr_columnclasses); - unset($attr['columnclasses']); + $column_classes = explode(',',$attr3_columnclasses); + unset($attr3['columnclasses']); } global $image_dir; echo '<br/><br/><br/><center>'; - echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_width.'">'; + echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr3_width.'">'; echo '<tr><td class="menu">'; - if ( !empty($attr_icon) ) - echo '<img src="'.$image_dir.'icon_'.$attr_icon.IMG_ICON_EXT.'" align="left" border="0">'; + if ( !empty($attr3_icon) ) + echo '<img src="'.$image_dir.'icon_'.$attr3_icon.IMG_ICON_EXT.'" align="left" border="0">'; if ( !is_array($path) ) $path = array(); foreach( $path as $pathElement) @@ -109,1087 +116,1171 @@ <tr> <td> - <table class="n" cellspacing="0" width="100%" cellpadding="4"><?php unset($attr) ?><?php unset($attr_width) ?><?php unset($attr_rowclasses) ?><?php unset($attr_columnclasses) ?><?php $attr = array() ?><?php + <table class="n" cellspacing="0" width="100%" cellpadding="4"><?php unset($attr3) ?><?php unset($attr3_width) ?><?php unset($attr3_rowclasses) ?><?php unset($attr3_columnclasses) ?><?php $attr4 = array() ?><?php $row_class_idx++; if ($row_class_idx > count($row_classes)) $row_class_idx=1; $row_class=$row_classes[$row_class_idx-1]; - if (empty($attr_class)) - $attr_class=$row_class; + if (empty($attr4_class)) + $attr4_class=$row_class; global $cell_column_nr; $cell_column_nr=0; $column_class_idx = 999; -?><tr class="<?php echo $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?php -// if (empty($attr_class)) -// $attr['class']=$row_class; +?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5 = array('class'=>'fx') ?><?php $attr5_class='fx' ?><?php +// if (empty($attr5_class)) +// $attr5['class']=$row_class; $column_class_idx++; if ($column_class_idx > count($column_classes)) $column_class_idx=1; $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr_class)) - $attr['class']=$column_class; + if (empty($attr5_class)) + $attr5['class']=$column_class; global $cell_column_nr; $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) ) - $attr['width']=$column_widths[$cell_column_nr-1]; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('present'=>'pages') ?><?php $attr_present='pages' ?><?php +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('present'=>'pages') ?><?php $attr6_present='pages' ?><?php // Wahr-Vergleich -// Html::debug($attr); +// Html::debug($attr6); - if ( isset($attr_true) ) + if ( isset($attr6_true) ) { - if (gettype($attr_true) === '' && gettype($attr_true) === '1') - $exec = $$attr_true == true; + if (gettype($attr6_true) === '' && gettype($attr6_true) === '1') + $exec = $$attr6_true == true; else - $exec = $attr_true == true; + $exec = $attr6_true == true; } // Falsch-Vergleich - elseif ( isset($attr_false) ) + elseif ( isset($attr6_false) ) { - if (gettype($attr_false) === '' && gettype($attr_false) === '1') - $exec = $$attr_false == false; + if (gettype($attr6_false) === '' && gettype($attr6_false) === '1') + $exec = $$attr6_false == false; else - $exec = $attr_false == false; + $exec = $attr6_false == false; } // Inhalt-Vergleich mit Wertliste - elseif( isset($attr_contains) ) - $exec = in_array($$attr_var,explode(',',$attr_contains)); + elseif( isset($attr6_contains) ) + $exec = in_array($attr6_value,explode(',',$attr6_contains)); // Inhalt-Vergleich - elseif( isset($attr_var) ) - $exec = $$attr_var == $attr_value; + elseif( isset($attr6_equals)&& isset($attr6_value) ) + $exec = $attr6_equals == $attr6_value; // Vergleich auf leer - elseif ( isset($attr_empty) ) + elseif ( isset($attr6_empty) ) { - if ( !isset($$attr_empty) ) - $exec = empty($attr_empty); - elseif ( is_array($$attr_empty) ) - $exec = (count($$attr_empty)==0); - elseif ( is_bool($$attr_empty) ) + if ( !isset($$attr6_empty) ) + $exec = empty($attr6_empty); + elseif ( is_array($$attr6_empty) ) + $exec = (count($$attr6_empty)==0); + elseif ( is_bool($$attr6_empty) ) $exec = true; else - $exec = empty( $$attr_empty ); + $exec = empty( $$attr6_empty ); } // Vergleich auf Vorhandensein - elseif ( isset($attr_present) ) + elseif ( isset($attr6_present) ) { - if ( !isset($$attr_present) ) - $exec = false; - elseif ( is_array($$attr_present) ) - $exec = (count($$attr_present)>0); - elseif ( is_bool($$attr_present) ) - $exec = $$attr_present; - elseif ( is_numeric($$attr_present) ) - $exec = $$attr_present>=0; - else - $exec = true; + $exec = isset($$attr6_present); +// if ( !isset($$attr6_present) ) +// $exec = false; +// elseif ( is_array($$attr6_present) ) +// $exec = (count($$attr6_present)>0); +// elseif ( is_bool($$attr6_present) ) +// $exec = $$attr6_present; +// elseif ( is_numeric($$attr6_present) ) +// $exec = $$attr6_present>=0; +// else +// $exec = true; } else { - Html::debug( $attr ); + Html::debug( $attr6 ); echo("error in IF line ".__LINE__); echo("assume: FALSE"); $exec = false; } // Ergebnis umdrehen - if ( !empty($attr_invert) ) + // TODO: Bald ausbauen, stattdessen "not" verwenden. + if ( !empty($attr6_invert) ) $exec = !$exec; // Ergebnis umdrehen - if ( !empty($attr_not) ) + if ( !empty($attr6_not) ) $exec = !$exec; - unset($attr_true); - unset($attr_false); - unset($attr_notempty); - unset($attr_empty); - unset($attr_contains); - unset($attr_present); - unset($attr_invert); - unset($attr_not); - unset($attr_value); - unset($attr_var); + unset($attr6_true); + unset($attr6_false); + unset($attr6_notempty); + unset($attr6_empty); + unset($attr6_contains); + unset($attr6_present); + unset($attr6_invert); + unset($attr6_not); + unset($attr6_value); + unset($attr6_equals); $last_exec = $exec; if ( $exec ) { -?><?php unset($attr) ?><?php unset($attr_present) ?><?php $attr = array('present'=>'subdirs') ?><?php $attr_present='subdirs' ?><?php +?><?php unset($attr6) ?><?php unset($attr6_present) ?><?php $attr7 = array('present'=>'subdirs') ?><?php $attr7_present='subdirs' ?><?php // Wahr-Vergleich -// Html::debug($attr); +// Html::debug($attr7); - if ( isset($attr_true) ) + if ( isset($attr7_true) ) { - if (gettype($attr_true) === '' && gettype($attr_true) === '1') - $exec = $$attr_true == true; + if (gettype($attr7_true) === '' && gettype($attr7_true) === '1') + $exec = $$attr7_true == true; else - $exec = $attr_true == true; + $exec = $attr7_true == true; } // Falsch-Vergleich - elseif ( isset($attr_false) ) + elseif ( isset($attr7_false) ) { - if (gettype($attr_false) === '' && gettype($attr_false) === '1') - $exec = $$attr_false == false; + if (gettype($attr7_false) === '' && gettype($attr7_false) === '1') + $exec = $$attr7_false == false; else - $exec = $attr_false == false; + $exec = $attr7_false == false; } // Inhalt-Vergleich mit Wertliste - elseif( isset($attr_contains) ) - $exec = in_array($$attr_var,explode(',',$attr_contains)); + elseif( isset($attr7_contains) ) + $exec = in_array($attr7_value,explode(',',$attr7_contains)); // Inhalt-Vergleich - elseif( isset($attr_var) ) - $exec = $$attr_var == $attr_value; + elseif( isset($attr7_equals)&& isset($attr7_value) ) + $exec = $attr7_equals == $attr7_value; // Vergleich auf leer - elseif ( isset($attr_empty) ) + elseif ( isset($attr7_empty) ) { - if ( !isset($$attr_empty) ) - $exec = empty($attr_empty); - elseif ( is_array($$attr_empty) ) - $exec = (count($$attr_empty)==0); - elseif ( is_bool($$attr_empty) ) + if ( !isset($$attr7_empty) ) + $exec = empty($attr7_empty); + elseif ( is_array($$attr7_empty) ) + $exec = (count($$attr7_empty)==0); + elseif ( is_bool($$attr7_empty) ) $exec = true; else - $exec = empty( $$attr_empty ); + $exec = empty( $$attr7_empty ); } // Vergleich auf Vorhandensein - elseif ( isset($attr_present) ) + elseif ( isset($attr7_present) ) { - if ( !isset($$attr_present) ) - $exec = false; - elseif ( is_array($$attr_present) ) - $exec = (count($$attr_present)>0); - elseif ( is_bool($$attr_present) ) - $exec = $$attr_present; - elseif ( is_numeric($$attr_present) ) - $exec = $$attr_present>=0; - else - $exec = true; + $exec = isset($$attr7_present); +// if ( !isset($$attr7_present) ) +// $exec = false; +// elseif ( is_array($$attr7_present) ) +// $exec = (count($$attr7_present)>0); +// elseif ( is_bool($$attr7_present) ) +// $exec = $$attr7_present; +// elseif ( is_numeric($$attr7_present) ) +// $exec = $$attr7_present>=0; +// else +// $exec = true; } else { - Html::debug( $attr ); + Html::debug( $attr7 ); echo("error in IF line ".__LINE__); echo("assume: FALSE"); $exec = false; } // Ergebnis umdrehen - if ( !empty($attr_invert) ) + // TODO: Bald ausbauen, stattdessen "not" verwenden. + if ( !empty($attr7_invert) ) $exec = !$exec; // Ergebnis umdrehen - if ( !empty($attr_not) ) + if ( !empty($attr7_not) ) $exec = !$exec; - unset($attr_true); - unset($attr_false); - unset($attr_notempty); - unset($attr_empty); - unset($attr_contains); - unset($attr_present); - unset($attr_invert); - unset($attr_not); - unset($attr_value); - unset($attr_var); + unset($attr7_true); + unset($attr7_false); + unset($attr7_notempty); + unset($attr7_empty); + unset($attr7_contains); + unset($attr7_present); + unset($attr7_invert); + unset($attr7_not); + unset($attr7_value); + unset($attr7_equals); $last_exec = $exec; if ( $exec ) { -?><?php unset($attr) ?><?php unset($attr_present) ?><?php $attr = array('default'=>'','readonly'=>'','name'=>'pages') ?><?php $attr_default='' ?><?php $attr_readonly='' ?><?php $attr_name='pages' ?><?php - $attr_default = ( $attr_default == true ); +?><?php unset($attr7) ?><?php unset($attr7_present) ?><?php $attr8 = array('default'=>'','readonly'=>'','name'=>'pages') ?><?php $attr8_default='' ?><?php $attr8_readonly='' ?><?php $attr8_name='pages' ?><?php + $attr8_default = ( $attr8_default == true ); - if ( isset($$attr_name) ) - $checked = $$attr_name == true; -// $checked = isset($$$attr_name)&& $$$attr_name==true; + if ( isset($$attr8_name) ) + $checked = $$attr8_name == true; +// $checked = isset($$$attr8_name)&& $$$attr8_name==true; else - $checked = $attr_default == true; -?><input type="checkbox" name="<?php echo $attr_name ?>" <?php if ($attr_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php unset($attr_name); unset($attr_readonly); unset($attr_default); ?><?php unset($attr) ?><?php unset($attr_default) ?><?php unset($attr_readonly) ?><?php unset($attr_name) ?><?php $attr = array('class'=>'text','raw'=>'_') ?><?php $attr_class='text' ?><?php $attr_raw='_' ?><?php - if(empty($attr_title)) - if (!empty($attr_key)) - $attr_title = lang($attr_key).'_HELP'; + $checked = $attr8_default == true; +?><input type="checkbox" id="id_<?php echo $attr8_name ?>" name="<?php echo $attr8_name ?>" <?php if ($attr8_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php unset($attr8_name); unset($attr8_readonly); unset($attr8_default); ?><?php unset($attr8) ?><?php unset($attr8_default) ?><?php unset($attr8_readonly) ?><?php unset($attr8_name) ?><?php $attr8 = array('class'=>'text','raw'=>'_') ?><?php $attr8_class='text' ?><?php $attr8_raw='_' ?><?php + if ( isset($attr8_prefix)&& isset($attr8_key)) + $attr8_key = $attr8_prefix.$attr8_key; + if ( isset($attr8_suffix)&& isset($attr8_key)) + $attr8_key = $attr8_key.$attr8_suffix; + + if(empty($attr8_title)) + if (!empty($attr8_key)) + $attr8_title = lang($attr8_key.'_HELP'); else - $attr_title = ''; + $attr8_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) +?><span class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php + $attr8_title = ''; + + if (!empty($attr8_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr8_array[$attr8_var].'%'; + $tmpArray = $$attr8_array; + if (!empty($attr8_var)) + $tmp_text = $tmpArray[$attr8_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr8_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr8_text)) + if ( isset($$attr8_text)) + $tmp_text = lang($$attr8_text); else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + $tmp_text = lang($attr8_text); + elseif (!empty($attr8_textvar)) + $tmp_text = lang($$attr8_textvar); + elseif (!empty($attr8_key)) + $tmp_text = lang($attr8_key); + elseif (!empty($attr8_var)) + $tmp_text = isset($$attr8_var)?htmlentities($$attr8_var):'error: variable '.$attr8_var.' not present'; + elseif (!empty($attr8_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr8_raw); + elseif (!empty($attr8_value)) + $tmp_text = $attr8_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr8);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr8_maxlength) && intval($attr8_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr8_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_raw) ?><?php $attr = array('class'=>'text','text'=>'global_pages') ?><?php $attr_class='text' ?><?php $attr_text='global_pages' ?><?php - if(empty($attr_title)) - if (!empty($attr_key)) - $attr_title = lang($attr_key).'_HELP'; +?></span><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_raw) ?><?php $attr8 = array('class'=>'text','text'=>'global_pages') ?><?php $attr8_class='text' ?><?php $attr8_text='global_pages' ?><?php + if ( isset($attr8_prefix)&& isset($attr8_key)) + $attr8_key = $attr8_prefix.$attr8_key; + if ( isset($attr8_suffix)&& isset($attr8_key)) + $attr8_key = $attr8_key.$attr8_suffix; + + if(empty($attr8_title)) + if (!empty($attr8_key)) + $attr8_title = lang($attr8_key.'_HELP'); else - $attr_title = ''; + $attr8_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) +?><span class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php + $attr8_title = ''; + + if (!empty($attr8_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr8_array[$attr8_var].'%'; + $tmpArray = $$attr8_array; + if (!empty($attr8_var)) + $tmp_text = $tmpArray[$attr8_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr8_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr8_text)) + if ( isset($$attr8_text)) + $tmp_text = lang($$attr8_text); else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + $tmp_text = lang($attr8_text); + elseif (!empty($attr8_textvar)) + $tmp_text = lang($$attr8_textvar); + elseif (!empty($attr8_key)) + $tmp_text = lang($attr8_key); + elseif (!empty($attr8_var)) + $tmp_text = isset($$attr8_var)?htmlentities($$attr8_var):'error: variable '.$attr8_var.' not present'; + elseif (!empty($attr8_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr8_raw); + elseif (!empty($attr8_value)) + $tmp_text = $attr8_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr8);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr8_maxlength) && intval($attr8_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr8_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?php $attr = array() ?><br/><?php unset($attr) ?><?php $attr = array() ?><?php +?></span><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_text) ?><?php $attr8 = array() ?><br/><?php unset($attr8) ?><?php $attr6 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array() ?><?php +?><?php unset($attr6) ?><?php $attr5 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array('present'=>'files') ?><?php $attr_present='files' ?><?php +?><?php unset($attr5) ?><?php $attr6 = array('present'=>'files') ?><?php $attr6_present='files' ?><?php // Wahr-Vergleich -// Html::debug($attr); +// Html::debug($attr6); - if ( isset($attr_true) ) + if ( isset($attr6_true) ) { - if (gettype($attr_true) === '' && gettype($attr_true) === '1') - $exec = $$attr_true == true; + if (gettype($attr6_true) === '' && gettype($attr6_true) === '1') + $exec = $$attr6_true == true; else - $exec = $attr_true == true; + $exec = $attr6_true == true; } // Falsch-Vergleich - elseif ( isset($attr_false) ) + elseif ( isset($attr6_false) ) { - if (gettype($attr_false) === '' && gettype($attr_false) === '1') - $exec = $$attr_false == false; + if (gettype($attr6_false) === '' && gettype($attr6_false) === '1') + $exec = $$attr6_false == false; else - $exec = $attr_false == false; + $exec = $attr6_false == false; } // Inhalt-Vergleich mit Wertliste - elseif( isset($attr_contains) ) - $exec = in_array($$attr_var,explode(',',$attr_contains)); + elseif( isset($attr6_contains) ) + $exec = in_array($attr6_value,explode(',',$attr6_contains)); // Inhalt-Vergleich - elseif( isset($attr_var) ) - $exec = $$attr_var == $attr_value; + elseif( isset($attr6_equals)&& isset($attr6_value) ) + $exec = $attr6_equals == $attr6_value; // Vergleich auf leer - elseif ( isset($attr_empty) ) + elseif ( isset($attr6_empty) ) { - if ( !isset($$attr_empty) ) - $exec = empty($attr_empty); - elseif ( is_array($$attr_empty) ) - $exec = (count($$attr_empty)==0); - elseif ( is_bool($$attr_empty) ) + if ( !isset($$attr6_empty) ) + $exec = empty($attr6_empty); + elseif ( is_array($$attr6_empty) ) + $exec = (count($$attr6_empty)==0); + elseif ( is_bool($$attr6_empty) ) $exec = true; else - $exec = empty( $$attr_empty ); + $exec = empty( $$attr6_empty ); } // Vergleich auf Vorhandensein - elseif ( isset($attr_present) ) + elseif ( isset($attr6_present) ) { - if ( !isset($$attr_present) ) - $exec = false; - elseif ( is_array($$attr_present) ) - $exec = (count($$attr_present)>0); - elseif ( is_bool($$attr_present) ) - $exec = $$attr_present; - elseif ( is_numeric($$attr_present) ) - $exec = $$attr_present>=0; - else - $exec = true; + $exec = isset($$attr6_present); +// if ( !isset($$attr6_present) ) +// $exec = false; +// elseif ( is_array($$attr6_present) ) +// $exec = (count($$attr6_present)>0); +// elseif ( is_bool($$attr6_present) ) +// $exec = $$attr6_present; +// elseif ( is_numeric($$attr6_present) ) +// $exec = $$attr6_present>=0; +// else +// $exec = true; } else { - Html::debug( $attr ); + Html::debug( $attr6 ); echo("error in IF line ".__LINE__); echo("assume: FALSE"); $exec = false; } // Ergebnis umdrehen - if ( !empty($attr_invert) ) + // TODO: Bald ausbauen, stattdessen "not" verwenden. + if ( !empty($attr6_invert) ) $exec = !$exec; // Ergebnis umdrehen - if ( !empty($attr_not) ) + if ( !empty($attr6_not) ) $exec = !$exec; - unset($attr_true); - unset($attr_false); - unset($attr_notempty); - unset($attr_empty); - unset($attr_contains); - unset($attr_present); - unset($attr_invert); - unset($attr_not); - unset($attr_value); - unset($attr_var); + unset($attr6_true); + unset($attr6_false); + unset($attr6_notempty); + unset($attr6_empty); + unset($attr6_contains); + unset($attr6_present); + unset($attr6_invert); + unset($attr6_not); + unset($attr6_value); + unset($attr6_equals); $last_exec = $exec; if ( $exec ) { -?><?php unset($attr) ?><?php unset($attr_present) ?><?php $attr = array('true'=>'subdirs') ?><?php $attr_true='subdirs' ?><?php +?><?php unset($attr6) ?><?php unset($attr6_present) ?><?php $attr7 = array('true'=>'subdirs') ?><?php $attr7_true='subdirs' ?><?php // Wahr-Vergleich -// Html::debug($attr); +// Html::debug($attr7); - if ( isset($attr_true) ) + if ( isset($attr7_true) ) { - if (gettype($attr_true) === '' && gettype($attr_true) === '1') - $exec = $$attr_true == true; + if (gettype($attr7_true) === '' && gettype($attr7_true) === '1') + $exec = $$attr7_true == true; else - $exec = $attr_true == true; + $exec = $attr7_true == true; } // Falsch-Vergleich - elseif ( isset($attr_false) ) + elseif ( isset($attr7_false) ) { - if (gettype($attr_false) === '' && gettype($attr_false) === '1') - $exec = $$attr_false == false; + if (gettype($attr7_false) === '' && gettype($attr7_false) === '1') + $exec = $$attr7_false == false; else - $exec = $attr_false == false; + $exec = $attr7_false == false; } // Inhalt-Vergleich mit Wertliste - elseif( isset($attr_contains) ) - $exec = in_array($$attr_var,explode(',',$attr_contains)); + elseif( isset($attr7_contains) ) + $exec = in_array($attr7_value,explode(',',$attr7_contains)); // Inhalt-Vergleich - elseif( isset($attr_var) ) - $exec = $$attr_var == $attr_value; + elseif( isset($attr7_equals)&& isset($attr7_value) ) + $exec = $attr7_equals == $attr7_value; // Vergleich auf leer - elseif ( isset($attr_empty) ) + elseif ( isset($attr7_empty) ) { - if ( !isset($$attr_empty) ) - $exec = empty($attr_empty); - elseif ( is_array($$attr_empty) ) - $exec = (count($$attr_empty)==0); - elseif ( is_bool($$attr_empty) ) + if ( !isset($$attr7_empty) ) + $exec = empty($attr7_empty); + elseif ( is_array($$attr7_empty) ) + $exec = (count($$attr7_empty)==0); + elseif ( is_bool($$attr7_empty) ) $exec = true; else - $exec = empty( $$attr_empty ); + $exec = empty( $$attr7_empty ); } // Vergleich auf Vorhandensein - elseif ( isset($attr_present) ) + elseif ( isset($attr7_present) ) { - if ( !isset($$attr_present) ) - $exec = false; - elseif ( is_array($$attr_present) ) - $exec = (count($$attr_present)>0); - elseif ( is_bool($$attr_present) ) - $exec = $$attr_present; - elseif ( is_numeric($$attr_present) ) - $exec = $$attr_present>=0; - else - $exec = true; + $exec = isset($$attr7_present); +// if ( !isset($$attr7_present) ) +// $exec = false; +// elseif ( is_array($$attr7_present) ) +// $exec = (count($$attr7_present)>0); +// elseif ( is_bool($$attr7_present) ) +// $exec = $$attr7_present; +// elseif ( is_numeric($$attr7_present) ) +// $exec = $$attr7_present>=0; +// else +// $exec = true; } else { - Html::debug( $attr ); + Html::debug( $attr7 ); echo("error in IF line ".__LINE__); echo("assume: FALSE"); $exec = false; } // Ergebnis umdrehen - if ( !empty($attr_invert) ) + // TODO: Bald ausbauen, stattdessen "not" verwenden. + if ( !empty($attr7_invert) ) $exec = !$exec; // Ergebnis umdrehen - if ( !empty($attr_not) ) + if ( !empty($attr7_not) ) $exec = !$exec; - unset($attr_true); - unset($attr_false); - unset($attr_notempty); - unset($attr_empty); - unset($attr_contains); - unset($attr_present); - unset($attr_invert); - unset($attr_not); - unset($attr_value); - unset($attr_var); + unset($attr7_true); + unset($attr7_false); + unset($attr7_notempty); + unset($attr7_empty); + unset($attr7_contains); + unset($attr7_present); + unset($attr7_invert); + unset($attr7_not); + unset($attr7_value); + unset($attr7_equals); $last_exec = $exec; if ( $exec ) { -?><?php unset($attr) ?><?php unset($attr_true) ?><?php $attr = array('default'=>'','readonly'=>'','name'=>'files') ?><?php $attr_default='' ?><?php $attr_readonly='' ?><?php $attr_name='files' ?><?php - $attr_default = ( $attr_default == true ); +?><?php unset($attr7) ?><?php unset($attr7_true) ?><?php $attr8 = array('default'=>'','readonly'=>'','name'=>'files') ?><?php $attr8_default='' ?><?php $attr8_readonly='' ?><?php $attr8_name='files' ?><?php + $attr8_default = ( $attr8_default == true ); - if ( isset($$attr_name) ) - $checked = $$attr_name == true; -// $checked = isset($$$attr_name)&& $$$attr_name==true; + if ( isset($$attr8_name) ) + $checked = $$attr8_name == true; +// $checked = isset($$$attr8_name)&& $$$attr8_name==true; else - $checked = $attr_default == true; -?><input type="checkbox" name="<?php echo $attr_name ?>" <?php if ($attr_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php unset($attr_name); unset($attr_readonly); unset($attr_default); ?><?php unset($attr) ?><?php unset($attr_default) ?><?php unset($attr_readonly) ?><?php unset($attr_name) ?><?php $attr = array('class'=>'text','raw'=>'_') ?><?php $attr_class='text' ?><?php $attr_raw='_' ?><?php - if(empty($attr_title)) - if (!empty($attr_key)) - $attr_title = lang($attr_key).'_HELP'; + $checked = $attr8_default == true; +?><input type="checkbox" id="id_<?php echo $attr8_name ?>" name="<?php echo $attr8_name ?>" <?php if ($attr8_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php unset($attr8_name); unset($attr8_readonly); unset($attr8_default); ?><?php unset($attr8) ?><?php unset($attr8_default) ?><?php unset($attr8_readonly) ?><?php unset($attr8_name) ?><?php $attr8 = array('class'=>'text','raw'=>'_') ?><?php $attr8_class='text' ?><?php $attr8_raw='_' ?><?php + if ( isset($attr8_prefix)&& isset($attr8_key)) + $attr8_key = $attr8_prefix.$attr8_key; + if ( isset($attr8_suffix)&& isset($attr8_key)) + $attr8_key = $attr8_key.$attr8_suffix; + + if(empty($attr8_title)) + if (!empty($attr8_key)) + $attr8_title = lang($attr8_key.'_HELP'); else - $attr_title = ''; + $attr8_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) +?><span class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php + $attr8_title = ''; + + if (!empty($attr8_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr8_array[$attr8_var].'%'; + $tmpArray = $$attr8_array; + if (!empty($attr8_var)) + $tmp_text = $tmpArray[$attr8_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr8_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr8_text)) + if ( isset($$attr8_text)) + $tmp_text = lang($$attr8_text); else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + $tmp_text = lang($attr8_text); + elseif (!empty($attr8_textvar)) + $tmp_text = lang($$attr8_textvar); + elseif (!empty($attr8_key)) + $tmp_text = lang($attr8_key); + elseif (!empty($attr8_var)) + $tmp_text = isset($$attr8_var)?htmlentities($$attr8_var):'error: variable '.$attr8_var.' not present'; + elseif (!empty($attr8_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr8_raw); + elseif (!empty($attr8_value)) + $tmp_text = $attr8_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr8);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr8_maxlength) && intval($attr8_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr8_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_raw) ?><?php $attr = array('class'=>'text','text'=>'global_files') ?><?php $attr_class='text' ?><?php $attr_text='global_files' ?><?php - if(empty($attr_title)) - if (!empty($attr_key)) - $attr_title = lang($attr_key).'_HELP'; +?></span><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_raw) ?><?php $attr8 = array('class'=>'text','text'=>'global_files') ?><?php $attr8_class='text' ?><?php $attr8_text='global_files' ?><?php + if ( isset($attr8_prefix)&& isset($attr8_key)) + $attr8_key = $attr8_prefix.$attr8_key; + if ( isset($attr8_suffix)&& isset($attr8_key)) + $attr8_key = $attr8_key.$attr8_suffix; + + if(empty($attr8_title)) + if (!empty($attr8_key)) + $attr8_title = lang($attr8_key.'_HELP'); else - $attr_title = ''; + $attr8_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) +?><span class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php + $attr8_title = ''; + + if (!empty($attr8_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr8_array[$attr8_var].'%'; + $tmpArray = $$attr8_array; + if (!empty($attr8_var)) + $tmp_text = $tmpArray[$attr8_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr8_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr8_text)) + if ( isset($$attr8_text)) + $tmp_text = lang($$attr8_text); else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + $tmp_text = lang($attr8_text); + elseif (!empty($attr8_textvar)) + $tmp_text = lang($$attr8_textvar); + elseif (!empty($attr8_key)) + $tmp_text = lang($attr8_key); + elseif (!empty($attr8_var)) + $tmp_text = isset($$attr8_var)?htmlentities($$attr8_var):'error: variable '.$attr8_var.' not present'; + elseif (!empty($attr8_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr8_raw); + elseif (!empty($attr8_value)) + $tmp_text = $attr8_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr8);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr8_maxlength) && intval($attr8_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr8_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?php $attr = array() ?><br/><?php unset($attr) ?><?php $attr = array() ?><?php +?></span><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_text) ?><?php $attr8 = array() ?><br/><?php unset($attr8) ?><?php $attr6 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array() ?><?php +?><?php unset($attr6) ?><?php $attr5 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php +?><?php unset($attr5) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4 = array() ?><?php $row_class_idx++; if ($row_class_idx > count($row_classes)) $row_class_idx=1; $row_class=$row_classes[$row_class_idx-1]; - if (empty($attr_class)) - $attr_class=$row_class; + if (empty($attr4_class)) + $attr4_class=$row_class; global $cell_column_nr; $cell_column_nr=0; $column_class_idx = 999; -?><tr class="<?php echo $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?php -// if (empty($attr_class)) -// $attr['class']=$row_class; +?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5 = array('class'=>'fx') ?><?php $attr5_class='fx' ?><?php +// if (empty($attr5_class)) +// $attr5['class']=$row_class; $column_class_idx++; if ($column_class_idx > count($column_classes)) $column_class_idx=1; $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr_class)) - $attr['class']=$column_class; + if (empty($attr5_class)) + $attr5['class']=$column_class; global $cell_column_nr; $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) ) - $attr['width']=$column_widths[$cell_column_nr-1]; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('present'=>'subdirs') ?><?php $attr_present='subdirs' ?><?php +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('present'=>'subdirs') ?><?php $attr6_present='subdirs' ?><?php // Wahr-Vergleich -// Html::debug($attr); +// Html::debug($attr6); - if ( isset($attr_true) ) + if ( isset($attr6_true) ) { - if (gettype($attr_true) === '' && gettype($attr_true) === '1') - $exec = $$attr_true == true; + if (gettype($attr6_true) === '' && gettype($attr6_true) === '1') + $exec = $$attr6_true == true; else - $exec = $attr_true == true; + $exec = $attr6_true == true; } // Falsch-Vergleich - elseif ( isset($attr_false) ) + elseif ( isset($attr6_false) ) { - if (gettype($attr_false) === '' && gettype($attr_false) === '1') - $exec = $$attr_false == false; + if (gettype($attr6_false) === '' && gettype($attr6_false) === '1') + $exec = $$attr6_false == false; else - $exec = $attr_false == false; + $exec = $attr6_false == false; } // Inhalt-Vergleich mit Wertliste - elseif( isset($attr_contains) ) - $exec = in_array($$attr_var,explode(',',$attr_contains)); + elseif( isset($attr6_contains) ) + $exec = in_array($attr6_value,explode(',',$attr6_contains)); // Inhalt-Vergleich - elseif( isset($attr_var) ) - $exec = $$attr_var == $attr_value; + elseif( isset($attr6_equals)&& isset($attr6_value) ) + $exec = $attr6_equals == $attr6_value; // Vergleich auf leer - elseif ( isset($attr_empty) ) + elseif ( isset($attr6_empty) ) { - if ( !isset($$attr_empty) ) - $exec = empty($attr_empty); - elseif ( is_array($$attr_empty) ) - $exec = (count($$attr_empty)==0); - elseif ( is_bool($$attr_empty) ) + if ( !isset($$attr6_empty) ) + $exec = empty($attr6_empty); + elseif ( is_array($$attr6_empty) ) + $exec = (count($$attr6_empty)==0); + elseif ( is_bool($$attr6_empty) ) $exec = true; else - $exec = empty( $$attr_empty ); + $exec = empty( $$attr6_empty ); } // Vergleich auf Vorhandensein - elseif ( isset($attr_present) ) + elseif ( isset($attr6_present) ) { - if ( !isset($$attr_present) ) - $exec = false; - elseif ( is_array($$attr_present) ) - $exec = (count($$attr_present)>0); - elseif ( is_bool($$attr_present) ) - $exec = $$attr_present; - elseif ( is_numeric($$attr_present) ) - $exec = $$attr_present>=0; - else - $exec = true; + $exec = isset($$attr6_present); +// if ( !isset($$attr6_present) ) +// $exec = false; +// elseif ( is_array($$attr6_present) ) +// $exec = (count($$attr6_present)>0); +// elseif ( is_bool($$attr6_present) ) +// $exec = $$attr6_present; +// elseif ( is_numeric($$attr6_present) ) +// $exec = $$attr6_present>=0; +// else +// $exec = true; } else { - Html::debug( $attr ); + Html::debug( $attr6 ); echo("error in IF line ".__LINE__); echo("assume: FALSE"); $exec = false; } // Ergebnis umdrehen - if ( !empty($attr_invert) ) + // TODO: Bald ausbauen, stattdessen "not" verwenden. + if ( !empty($attr6_invert) ) $exec = !$exec; // Ergebnis umdrehen - if ( !empty($attr_not) ) + if ( !empty($attr6_not) ) $exec = !$exec; - unset($attr_true); - unset($attr_false); - unset($attr_notempty); - unset($attr_empty); - unset($attr_contains); - unset($attr_present); - unset($attr_invert); - unset($attr_not); - unset($attr_value); - unset($attr_var); + unset($attr6_true); + unset($attr6_false); + unset($attr6_notempty); + unset($attr6_empty); + unset($attr6_contains); + unset($attr6_present); + unset($attr6_invert); + unset($attr6_not); + unset($attr6_value); + unset($attr6_equals); $last_exec = $exec; if ( $exec ) { -?><?php unset($attr) ?><?php unset($attr_present) ?><?php $attr = array('default'=>'','readonly'=>'','name'=>'subdirs') ?><?php $attr_default='' ?><?php $attr_readonly='' ?><?php $attr_name='subdirs' ?><?php - $attr_default = ( $attr_default == true ); +?><?php unset($attr6) ?><?php unset($attr6_present) ?><?php $attr7 = array('default'=>'','readonly'=>'','name'=>'subdirs') ?><?php $attr7_default='' ?><?php $attr7_readonly='' ?><?php $attr7_name='subdirs' ?><?php + $attr7_default = ( $attr7_default == true ); - if ( isset($$attr_name) ) - $checked = $$attr_name == true; -// $checked = isset($$$attr_name)&& $$$attr_name==true; + if ( isset($$attr7_name) ) + $checked = $$attr7_name == true; +// $checked = isset($$$attr7_name)&& $$$attr7_name==true; else - $checked = $attr_default == true; -?><input type="checkbox" name="<?php echo $attr_name ?>" <?php if ($attr_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php unset($attr_name); unset($attr_readonly); unset($attr_default); ?><?php unset($attr) ?><?php unset($attr_default) ?><?php unset($attr_readonly) ?><?php unset($attr_name) ?><?php $attr = array('class'=>'text','raw'=>'_') ?><?php $attr_class='text' ?><?php $attr_raw='_' ?><?php - if(empty($attr_title)) - if (!empty($attr_key)) - $attr_title = lang($attr_key).'_HELP'; + $checked = $attr7_default == true; +?><input type="checkbox" id="id_<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" <?php if ($attr7_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php unset($attr7_name); unset($attr7_readonly); unset($attr7_default); ?><?php unset($attr7) ?><?php unset($attr7_default) ?><?php unset($attr7_readonly) ?><?php unset($attr7_name) ?><?php $attr7 = array('class'=>'text','raw'=>'_') ?><?php $attr7_class='text' ?><?php $attr7_raw='_' ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + + if(empty($attr7_title)) + if (!empty($attr7_key)) + $attr7_title = lang($attr7_key.'_HELP'); else - $attr_title = ''; + $attr7_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) +?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php + $attr7_title = ''; + + if (!empty($attr7_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr7_array[$attr7_var].'%'; + $tmpArray = $$attr7_array; + if (!empty($attr7_var)) + $tmp_text = $tmpArray[$attr7_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr7_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr7_text)) + if ( isset($$attr7_text)) + $tmp_text = lang($$attr7_text); else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + $tmp_text = lang($attr7_text); + elseif (!empty($attr7_textvar)) + $tmp_text = lang($$attr7_textvar); + elseif (!empty($attr7_key)) + $tmp_text = lang($attr7_key); + elseif (!empty($attr7_var)) + $tmp_text = isset($$attr7_var)?htmlentities($$attr7_var):'error: variable '.$attr7_var.' not present'; + elseif (!empty($attr7_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr7_raw); + elseif (!empty($attr7_value)) + $tmp_text = $attr7_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr7);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr7_maxlength) && intval($attr7_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr7_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_raw) ?><?php $attr = array('class'=>'text','text'=>'GLOBAL_PUBLISH_WITH_SUBDIRS') ?><?php $attr_class='text' ?><?php $attr_text='GLOBAL_PUBLISH_WITH_SUBDIRS' ?><?php - if(empty($attr_title)) - if (!empty($attr_key)) - $attr_title = lang($attr_key).'_HELP'; +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_raw) ?><?php $attr7 = array('class'=>'text','text'=>'GLOBAL_PUBLISH_WITH_SUBDIRS') ?><?php $attr7_class='text' ?><?php $attr7_text='GLOBAL_PUBLISH_WITH_SUBDIRS' ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + + if(empty($attr7_title)) + if (!empty($attr7_key)) + $attr7_title = lang($attr7_key.'_HELP'); else - $attr_title = ''; + $attr7_title = ''; + +?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php + $attr7_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) + if (!empty($attr7_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr7_array[$attr7_var].'%'; + $tmpArray = $$attr7_array; + if (!empty($attr7_var)) + $tmp_text = $tmpArray[$attr7_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr7_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr7_text)) + if ( isset($$attr7_text)) + $tmp_text = lang($$attr7_text); else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + $tmp_text = lang($attr7_text); + elseif (!empty($attr7_textvar)) + $tmp_text = lang($$attr7_textvar); + elseif (!empty($attr7_key)) + $tmp_text = lang($attr7_key); + elseif (!empty($attr7_var)) + $tmp_text = isset($$attr7_var)?htmlentities($$attr7_var):'error: variable '.$attr7_var.' not present'; + elseif (!empty($attr7_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr7_raw); + elseif (!empty($attr7_value)) + $tmp_text = $attr7_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr7);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr7_maxlength) && intval($attr7_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr7_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?php $attr = array() ?><br/><?php unset($attr) ?><?php $attr = array() ?><?php +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_text) ?><?php $attr7 = array() ?><br/><?php unset($attr7) ?><?php $attr5 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array('present'=>'clean') ?><?php $attr_present='clean' ?><?php +?><?php unset($attr5) ?><?php $attr6 = array('present'=>'clean') ?><?php $attr6_present='clean' ?><?php // Wahr-Vergleich -// Html::debug($attr); +// Html::debug($attr6); - if ( isset($attr_true) ) + if ( isset($attr6_true) ) { - if (gettype($attr_true) === '' && gettype($attr_true) === '1') - $exec = $$attr_true == true; + if (gettype($attr6_true) === '' && gettype($attr6_true) === '1') + $exec = $$attr6_true == true; else - $exec = $attr_true == true; + $exec = $attr6_true == true; } // Falsch-Vergleich - elseif ( isset($attr_false) ) + elseif ( isset($attr6_false) ) { - if (gettype($attr_false) === '' && gettype($attr_false) === '1') - $exec = $$attr_false == false; + if (gettype($attr6_false) === '' && gettype($attr6_false) === '1') + $exec = $$attr6_false == false; else - $exec = $attr_false == false; + $exec = $attr6_false == false; } // Inhalt-Vergleich mit Wertliste - elseif( isset($attr_contains) ) - $exec = in_array($$attr_var,explode(',',$attr_contains)); + elseif( isset($attr6_contains) ) + $exec = in_array($attr6_value,explode(',',$attr6_contains)); // Inhalt-Vergleich - elseif( isset($attr_var) ) - $exec = $$attr_var == $attr_value; + elseif( isset($attr6_equals)&& isset($attr6_value) ) + $exec = $attr6_equals == $attr6_value; // Vergleich auf leer - elseif ( isset($attr_empty) ) + elseif ( isset($attr6_empty) ) { - if ( !isset($$attr_empty) ) - $exec = empty($attr_empty); - elseif ( is_array($$attr_empty) ) - $exec = (count($$attr_empty)==0); - elseif ( is_bool($$attr_empty) ) + if ( !isset($$attr6_empty) ) + $exec = empty($attr6_empty); + elseif ( is_array($$attr6_empty) ) + $exec = (count($$attr6_empty)==0); + elseif ( is_bool($$attr6_empty) ) $exec = true; else - $exec = empty( $$attr_empty ); + $exec = empty( $$attr6_empty ); } // Vergleich auf Vorhandensein - elseif ( isset($attr_present) ) + elseif ( isset($attr6_present) ) { - if ( !isset($$attr_present) ) - $exec = false; - elseif ( is_array($$attr_present) ) - $exec = (count($$attr_present)>0); - elseif ( is_bool($$attr_present) ) - $exec = $$attr_present; - elseif ( is_numeric($$attr_present) ) - $exec = $$attr_present>=0; - else - $exec = true; + $exec = isset($$attr6_present); +// if ( !isset($$attr6_present) ) +// $exec = false; +// elseif ( is_array($$attr6_present) ) +// $exec = (count($$attr6_present)>0); +// elseif ( is_bool($$attr6_present) ) +// $exec = $$attr6_present; +// elseif ( is_numeric($$attr6_present) ) +// $exec = $$attr6_present>=0; +// else +// $exec = true; } else { - Html::debug( $attr ); + Html::debug( $attr6 ); echo("error in IF line ".__LINE__); echo("assume: FALSE"); $exec = false; } // Ergebnis umdrehen - if ( !empty($attr_invert) ) + // TODO: Bald ausbauen, stattdessen "not" verwenden. + if ( !empty($attr6_invert) ) $exec = !$exec; // Ergebnis umdrehen - if ( !empty($attr_not) ) + if ( !empty($attr6_not) ) $exec = !$exec; - unset($attr_true); - unset($attr_false); - unset($attr_notempty); - unset($attr_empty); - unset($attr_contains); - unset($attr_present); - unset($attr_invert); - unset($attr_not); - unset($attr_value); - unset($attr_var); + unset($attr6_true); + unset($attr6_false); + unset($attr6_notempty); + unset($attr6_empty); + unset($attr6_contains); + unset($attr6_present); + unset($attr6_invert); + unset($attr6_not); + unset($attr6_value); + unset($attr6_equals); $last_exec = $exec; if ( $exec ) { -?><?php unset($attr) ?><?php unset($attr_present) ?><?php $attr = array('default'=>'','readonly'=>'','name'=>'clean') ?><?php $attr_default='' ?><?php $attr_readonly='' ?><?php $attr_name='clean' ?><?php - $attr_default = ( $attr_default == true ); +?><?php unset($attr6) ?><?php unset($attr6_present) ?><?php $attr7 = array('default'=>'','readonly'=>'','name'=>'clean') ?><?php $attr7_default='' ?><?php $attr7_readonly='' ?><?php $attr7_name='clean' ?><?php + $attr7_default = ( $attr7_default == true ); - if ( isset($$attr_name) ) - $checked = $$attr_name == true; -// $checked = isset($$$attr_name)&& $$$attr_name==true; + if ( isset($$attr7_name) ) + $checked = $$attr7_name == true; +// $checked = isset($$$attr7_name)&& $$$attr7_name==true; else - $checked = $attr_default == true; -?><input type="checkbox" name="<?php echo $attr_name ?>" <?php if ($attr_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php unset($attr_name); unset($attr_readonly); unset($attr_default); ?><?php unset($attr) ?><?php unset($attr_default) ?><?php unset($attr_readonly) ?><?php unset($attr_name) ?><?php $attr = array('class'=>'text','raw'=>'_') ?><?php $attr_class='text' ?><?php $attr_raw='_' ?><?php - if(empty($attr_title)) - if (!empty($attr_key)) - $attr_title = lang($attr_key).'_HELP'; + $checked = $attr7_default == true; +?><input type="checkbox" id="id_<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" <?php if ($attr7_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php unset($attr7_name); unset($attr7_readonly); unset($attr7_default); ?><?php unset($attr7) ?><?php unset($attr7_default) ?><?php unset($attr7_readonly) ?><?php unset($attr7_name) ?><?php $attr7 = array('class'=>'text','raw'=>'_') ?><?php $attr7_class='text' ?><?php $attr7_raw='_' ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + + if(empty($attr7_title)) + if (!empty($attr7_key)) + $attr7_title = lang($attr7_key.'_HELP'); else - $attr_title = ''; + $attr7_title = ''; + +?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php + $attr7_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) + if (!empty($attr7_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr7_array[$attr7_var].'%'; + $tmpArray = $$attr7_array; + if (!empty($attr7_var)) + $tmp_text = $tmpArray[$attr7_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr7_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr7_text)) + if ( isset($$attr7_text)) + $tmp_text = lang($$attr7_text); else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + $tmp_text = lang($attr7_text); + elseif (!empty($attr7_textvar)) + $tmp_text = lang($$attr7_textvar); + elseif (!empty($attr7_key)) + $tmp_text = lang($attr7_key); + elseif (!empty($attr7_var)) + $tmp_text = isset($$attr7_var)?htmlentities($$attr7_var):'error: variable '.$attr7_var.' not present'; + elseif (!empty($attr7_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr7_raw); + elseif (!empty($attr7_value)) + $tmp_text = $attr7_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr7);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr7_maxlength) && intval($attr7_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr7_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_raw) ?><?php $attr = array('class'=>'text','text'=>'global_CLEAN_AFTER_PUBLISH') ?><?php $attr_class='text' ?><?php $attr_text='global_CLEAN_AFTER_PUBLISH' ?><?php - if(empty($attr_title)) - if (!empty($attr_key)) - $attr_title = lang($attr_key).'_HELP'; +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_raw) ?><?php $attr7 = array('class'=>'text','text'=>'global_CLEAN_AFTER_PUBLISH') ?><?php $attr7_class='text' ?><?php $attr7_text='global_CLEAN_AFTER_PUBLISH' ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + + if(empty($attr7_title)) + if (!empty($attr7_key)) + $attr7_title = lang($attr7_key.'_HELP'); else - $attr_title = ''; + $attr7_title = ''; + +?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php + $attr7_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) + if (!empty($attr7_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr7_array[$attr7_var].'%'; + $tmpArray = $$attr7_array; + if (!empty($attr7_var)) + $tmp_text = $tmpArray[$attr7_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr7_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr7_text)) + if ( isset($$attr7_text)) + $tmp_text = lang($$attr7_text); else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + $tmp_text = lang($attr7_text); + elseif (!empty($attr7_textvar)) + $tmp_text = lang($$attr7_textvar); + elseif (!empty($attr7_key)) + $tmp_text = lang($attr7_key); + elseif (!empty($attr7_var)) + $tmp_text = isset($$attr7_var)?htmlentities($$attr7_var):'error: variable '.$attr7_var.' not present'; + elseif (!empty($attr7_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr7_raw); + elseif (!empty($attr7_value)) + $tmp_text = $attr7_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr7);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr7_maxlength) && intval($attr7_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr7_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?php $attr = array() ?><br/><?php unset($attr) ?><?php $attr = array() ?><?php +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_text) ?><?php $attr7 = array() ?><br/><?php unset($attr7) ?><?php $attr5 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php +?><?php unset($attr5) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4 = array() ?><?php $row_class_idx++; if ($row_class_idx > count($row_classes)) $row_class_idx=1; $row_class=$row_classes[$row_class_idx-1]; - if (empty($attr_class)) - $attr_class=$row_class; + if (empty($attr4_class)) + $attr4_class=$row_class; global $cell_column_nr; $cell_column_nr=0; $column_class_idx = 999; -?><tr class="<?php echo $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'help') ?><?php $attr_class='help' ?><?php -// if (empty($attr_class)) -// $attr['class']=$row_class; +?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5 = array('class'=>'help') ?><?php $attr5_class='help' ?><?php +// if (empty($attr5_class)) +// $attr5['class']=$row_class; $column_class_idx++; if ($column_class_idx > count($column_classes)) $column_class_idx=1; $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr_class)) - $attr['class']=$column_class; + if (empty($attr5_class)) + $attr5['class']=$column_class; global $cell_column_nr; $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) ) - $attr['width']=$column_widths[$cell_column_nr-1]; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; + +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('class'=>'text','text'=>'GLOBAL_MUCH_TIME') ?><?php $attr6_class='text' ?><?php $attr6_text='GLOBAL_MUCH_TIME' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('class'=>'text','text'=>'GLOBAL_MUCH_TIME') ?><?php $attr_class='text' ?><?php $attr_text='GLOBAL_MUCH_TIME' ?><?php - if(empty($attr_title)) - if (!empty($attr_key)) - $attr_title = lang($attr_key).'_HELP'; + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key.'_HELP'); else - $attr_title = ''; + $attr6_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; + + if (!empty($attr6_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr6_array[$attr6_var].'%'; + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr6_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr6_text)) + if ( isset($$attr6_text)) + $tmp_text = lang($$attr6_text); else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + $tmp_text = lang($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = lang($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = lang($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr6);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php +?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_text) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4 = array() ?><?php $row_class_idx++; if ($row_class_idx > count($row_classes)) $row_class_idx=1; $row_class=$row_classes[$row_class_idx-1]; - if (empty($attr_class)) - $attr_class=$row_class; + if (empty($attr4_class)) + $attr4_class=$row_class; global $cell_column_nr; $cell_column_nr=0; $column_class_idx = 999; -?><tr class="<?php echo $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'act') ?><?php $attr_class='act' ?><?php -// if (empty($attr_class)) -// $attr['class']=$row_class; +?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5 = array('class'=>'act') ?><?php $attr5_class='act' ?><?php +// if (empty($attr5_class)) +// $attr5['class']=$row_class; $column_class_idx++; if ($column_class_idx > count($column_classes)) $column_class_idx=1; $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr_class)) - $attr['class']=$column_class; + if (empty($attr5_class)) + $attr5['class']=$column_class; global $cell_column_nr; $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) ) - $attr['width']=$column_widths[$cell_column_nr-1]; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('type'=>'ok','class'=>'ok','value'=>'ok','text'=>'button_ok') ?><?php $attr_type='ok' ?><?php $attr_class='ok' ?><?php $attr_value='ok' ?><?php $attr_text='button_ok' ?><?php - if ($attr_type=='ok') +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('type'=>'ok','class'=>'ok','value'=>'ok','text'=>'button_ok') ?><?php $attr6_type='ok' ?><?php $attr6_class='ok' ?><?php $attr6_value='ok' ?><?php $attr6_text='button_ok' ?><?php + if ($attr6_type=='ok') { - $attr_type = 'submit'; -// $attr_class = 'ok'; -// $attr_text = 'BUTTON_OK'; -// $attr_value = 'ok'; + $attr6_type = 'submit'; +// $attr6_class = 'ok'; +// $attr6_text = 'BUTTON_OK'; +// $attr6_value = 'ok'; } -?><input type="<?php echo $attr_type ?>" name="<?php echo $attr_value ?>" class="<?php echo $attr_class ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo lang($attr_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($attr) ?><?php unset($attr_type) ?><?php unset($attr_class) ?><?php unset($attr_value) ?><?php unset($attr_text) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?> </table> +?><input type="<?php echo $attr6_type ?>" name="<?php echo $attr6_value ?>" class="<?php echo $attr6_class ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo lang($attr6_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($attr6) ?><?php unset($attr6_type) ?><?php unset($attr6_class) ?><?php unset($attr6_value) ?><?php unset($attr6_text) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr2 = array() ?> </table> </td> </tr> </table> @@ -1203,9 +1294,9 @@ <?php $dur = time()-START_TIME; echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small> <?php } ?> -<?php unset($attr) ?><?php $attr = array() ?></form> +<?php unset($attr2) ?><?php $attr1 = array() ?></form> -<?php unset($attr) ?><?php $attr = array() ?> +<?php unset($attr1) ?><?php $attr0 = array() ?> <!-- $Id$ --> <?php if ($showDuration) { ?> @@ -1216,4 +1307,4 @@ <?php } ?> </body> -</html><?php unset($attr) ?>- \ No newline at end of file +</html><?php unset($attr0) ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/folder/select.tpl.php b/themes/default/pages/html/folder/select.tpl.php @@ -1,62 +1,69 @@ -<?php $attr = array('class'=>'main','title'=>'var') ?><?php $attr_class='main' ?><?php $attr_title='var' ?><?php header('Content-Type: text/html; charset='.lang('CHARSET')) +<?php $attr1 = array('class'=>'main','title'=>$cms_title) ?><?php $attr1_class='main' ?><?php $attr1_title=$cms_title ?><?php header('Content-Type: text/html; charset='.lang('CHARSET')) ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <!-- $Id$ --> <head> - <title><?php echo $attr_title ?></title> + <title><?php echo $attr1_title ?></title> <meta http-equiv="content-type" content="text/html; charset=<?php echo lang('CHARSET') ?>" /> <meta name="MSSmartTagsPreventParsing" content="true" /> <meta name="robots" content="noindex,nofollow" /> +<?php if (is_array($windowMenu)) foreach( $windowMenu as $menu ) + { + ?> + <link rel="section" href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text']) ?>" /> +<?php + } +?> <link rel="stylesheet" type="text/css" href="./themes/default/css/default.css" /> <?php if($stylesheet!='default') { ?> <link rel="stylesheet" type="text/css" href="<?php echo $stylesheet ?>" /> <?php } ?> </head> -<body class="<?php echo $attr_class ?>"> +<body class="<?php echo $attr1_class ?>"> -<?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_title) ?><?php $attr = array('action'=>'folder','subaction'=>'edit','name'=>'','target'=>'_self','method'=>'post','enctype'=>'application/x-www-form-urlencoded') ?><?php $attr_action='folder' ?><?php $attr_subaction='edit' ?><?php $attr_name='' ?><?php $attr_target='_self' ?><?php $attr_method='post' ?><?php $attr_enctype='application/x-www-form-urlencoded' ?><?php - if (empty($attr_action)) - $attr_action = $actionName; - if (empty($attr_subaction)) - $attr_subaction = $targetSubActionName; - if (empty($attr_id)) - $attr_id = $this->getRequestId(); +<?php unset($attr1) ?><?php unset($attr1_class) ?><?php unset($attr1_title) ?><?php $attr2 = array('action'=>'folder','subaction'=>'edit','target'=>'_self','method'=>'post','enctype'=>'application/x-www-form-urlencoded') ?><?php $attr2_action='folder' ?><?php $attr2_subaction='edit' ?><?php $attr2_target='_self' ?><?php $attr2_method='post' ?><?php $attr2_enctype='application/x-www-form-urlencoded' ?><?php + if (empty($attr2_action)) + $attr2_action = $actionName; + if (empty($attr2_subaction)) + $attr2_subaction = $targetSubActionName; + if (empty($attr2_id)) + $attr2_id = $this->getRequestId(); -?><form name="<?php echo $attr_name ?>" - target="<?php echo $attr_target ?>" - action="<?php echo Html::url( $attr_action,$attr_subaction,$attr_id ) ?>" - method="<?php echo $attr_method ?>" - enctype="<?php echo $attr_enctype ?>"> -<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $attr_action ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $attr_subaction ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr_id ?>" /><?php +?><form name="<?php echo $attr2_name ?>" + target="<?php echo $attr2_target ?>" + action="<?php echo Html::url( $attr2_action,$attr2_subaction,$attr2_id ) ?>" + method="<?php echo $attr2_method ?>" + enctype="<?php echo $attr2_enctype ?>"> +<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $attr2_action ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $attr2_subaction ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr2_id ?>" /><?php if ( $conf['interface']['url_sessionid'] ) echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; -?><?php unset($attr) ?><?php unset($attr_action) ?><?php unset($attr_subaction) ?><?php unset($attr_name) ?><?php unset($attr_target) ?><?php unset($attr_method) ?><?php unset($attr_enctype) ?><?php $attr = array('title'=>'titelso','name'=>'bla','widths'=>'5%,75%','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr_title='titelso' ?><?php $attr_name='bla' ?><?php $attr_widths='5%,75%' ?><?php $attr_width='93%' ?><?php $attr_rowclasses='odd,even' ?><?php $attr_columnclasses='1,2,3' ?><?php +?><?php unset($attr2) ?><?php unset($attr2_action) ?><?php unset($attr2_subaction) ?><?php unset($attr2_target) ?><?php unset($attr2_method) ?><?php unset($attr2_enctype) ?><?php $attr3 = array('title'=>'titelso','name'=>'bla','widths'=>'5%,75%','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr3_title='titelso' ?><?php $attr3_name='bla' ?><?php $attr3_widths='5%,75%' ?><?php $attr3_width='93%' ?><?php $attr3_rowclasses='odd,even' ?><?php $attr3_columnclasses='1,2,3' ?><?php $coloumn_widths=array(); - if (!empty($attr_widths)) + if (!empty($attr3_widths)) { - $column_widths = explode(',',$attr_widths); - unset($attr['widths']); + $column_widths = explode(',',$attr3_widths); + unset($attr3['widths']); } - if (!empty($attr_rowclasses)) + if (!empty($attr3_rowclasses)) { - $row_classes = explode(',',$attr_rowclasses); + $row_classes = explode(',',$attr3_rowclasses); $row_class_idx = 999; - unset($attr['rowclasses']); + unset($attr3['rowclasses']); } - if (!empty($attr_columnclasses)) + if (!empty($attr3_columnclasses)) { - $column_classes = explode(',',$attr_columnclasses); - unset($attr['columnclasses']); + $column_classes = explode(',',$attr3_columnclasses); + unset($attr3['columnclasses']); } global $image_dir; echo '<br/><br/><br/><center>'; - echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_width.'">'; + echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr3_width.'">'; echo '<tr><td class="menu">'; - if ( !empty($attr_icon) ) - echo '<img src="'.$image_dir.'icon_'.$attr_icon.IMG_ICON_EXT.'" align="left" border="0">'; + if ( !empty($attr3_icon) ) + echo '<img src="'.$image_dir.'icon_'.$attr3_icon.IMG_ICON_EXT.'" align="left" border="0">'; if ( !is_array($path) ) $path = array(); foreach( $path as $pathElement) @@ -109,972 +116,1387 @@ <tr> <td> - <table class="n" cellspacing="0" width="100%" cellpadding="4"><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_name) ?><?php unset($attr_widths) ?><?php unset($attr_width) ?><?php unset($attr_rowclasses) ?><?php unset($attr_columnclasses) ?><?php $attr = array() ?><?php + <table class="n" cellspacing="0" width="100%" cellpadding="4"><?php unset($attr3) ?><?php unset($attr3_title) ?><?php unset($attr3_name) ?><?php unset($attr3_widths) ?><?php unset($attr3_width) ?><?php unset($attr3_rowclasses) ?><?php unset($attr3_columnclasses) ?><?php $attr4 = array() ?><?php $row_class_idx++; if ($row_class_idx > count($row_classes)) $row_class_idx=1; $row_class=$row_classes[$row_class_idx-1]; - if (empty($attr_class)) - $attr_class=$row_class; + if (empty($attr4_class)) + $attr4_class=$row_class; global $cell_column_nr; $cell_column_nr=0; $column_class_idx = 999; -?><tr class="<?php echo $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'help') ?><?php $attr_class='help' ?><?php -// if (empty($attr_class)) -// $attr['class']=$row_class; +?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5 = array('class'=>'help') ?><?php $attr5_class='help' ?><?php +// if (empty($attr5_class)) +// $attr5['class']=$row_class; $column_class_idx++; if ($column_class_idx > count($column_classes)) $column_class_idx=1; $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr_class)) - $attr['class']=$column_class; + if (empty($attr5_class)) + $attr5['class']=$column_class; global $cell_column_nr; $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) ) - $attr['width']=$column_widths[$cell_column_nr-1]; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('class'=>'text','raw'=>'_') ?><?php $attr_class='text' ?><?php $attr_raw='_' ?><?php - if(empty($attr_title)) - if (!empty($attr_key)) - $attr_title = lang($attr_key).'_HELP'; +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('class'=>'text','raw'=>'_') ?><?php $attr6_class='text' ?><?php $attr6_raw='_' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key.'_HELP'); else - $attr_title = ''; + $attr6_title = ''; + +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) + if (!empty($attr6_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr6_array[$attr6_var].'%'; + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr6_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr6_text)) + if ( isset($$attr6_text)) + $tmp_text = lang($$attr6_text); else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + $tmp_text = lang($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = lang($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = lang($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr6);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_raw) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('class'=>'help') ?><?php $attr_class='help' ?><?php -// if (empty($attr_class)) -// $attr['class']=$row_class; +?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_raw) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr5 = array('class'=>'help') ?><?php $attr5_class='help' ?><?php +// if (empty($attr5_class)) +// $attr5['class']=$row_class; $column_class_idx++; if ($column_class_idx > count($column_classes)) $column_class_idx=1; $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr_class)) - $attr['class']=$column_class; + if (empty($attr5_class)) + $attr5['class']=$column_class; global $cell_column_nr; $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) ) - $attr['width']=$column_widths[$cell_column_nr-1]; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('class'=>'text','text'=>'GLOBAL_TYPE') ?><?php $attr_class='text' ?><?php $attr_text='GLOBAL_TYPE' ?><?php - if(empty($attr_title)) - if (!empty($attr_key)) - $attr_title = lang($attr_key).'_HELP'; +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('class'=>'text','text'=>'GLOBAL_TYPE') ?><?php $attr6_class='text' ?><?php $attr6_text='GLOBAL_TYPE' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key.'_HELP'); else - $attr_title = ''; + $attr6_title = ''; + +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) + if (!empty($attr6_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr6_array[$attr6_var].'%'; + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr6_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr6_text)) + if ( isset($$attr6_text)) + $tmp_text = lang($$attr6_text); else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + $tmp_text = lang($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = lang($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = lang($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr6);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?php $attr = array('class'=>'text','raw'=>'_/_') ?><?php $attr_class='text' ?><?php $attr_raw='_/_' ?><?php - if(empty($attr_title)) - if (!empty($attr_key)) - $attr_title = lang($attr_key).'_HELP'; +?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_text) ?><?php $attr6 = array('class'=>'text','raw'=>'_/_') ?><?php $attr6_class='text' ?><?php $attr6_raw='_/_' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key.'_HELP'); else - $attr_title = ''; + $attr6_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; + + if (!empty($attr6_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr6_array[$attr6_var].'%'; + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr6_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr6_text)) + if ( isset($$attr6_text)) + $tmp_text = lang($$attr6_text); else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + $tmp_text = lang($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = lang($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = lang($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr6);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_raw) ?><?php $attr = array('class'=>'text','text'=>'GLOBAL_NAME') ?><?php $attr_class='text' ?><?php $attr_text='GLOBAL_NAME' ?><?php - if(empty($attr_title)) - if (!empty($attr_key)) - $attr_title = lang($attr_key).'_HELP'; +?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_raw) ?><?php $attr6 = array('class'=>'text','text'=>'GLOBAL_NAME') ?><?php $attr6_class='text' ?><?php $attr6_text='GLOBAL_NAME' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key.'_HELP'); else - $attr_title = ''; + $attr6_title = ''; + +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) + if (!empty($attr6_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr6_array[$attr6_var].'%'; + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr6_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr6_text)) + if ( isset($$attr6_text)) + $tmp_text = lang($$attr6_text); else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + $tmp_text = lang($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = lang($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = lang($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr6);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array('list'=>'object','extract'=>'1','key'=>'list_key','value'=>'list_value') ?><?php $attr_list='object' ?><?php $attr_extract='1' ?><?php $attr_key='list_key' ?><?php $attr_value='list_value' ?><?php - $list_tmp_key = $attr_key; - $list_tmp_value = $attr_value; - $list_extract = ($attr_extract==true); +?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_text) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4 = array('list'=>'object','extract'=>'1','key'=>'list_key','value'=>'list_value') ?><?php $attr4_list='object' ?><?php $attr4_extract='1' ?><?php $attr4_key='list_key' ?><?php $attr4_value='list_value' ?><?php + $attr4_list_tmp_key = $attr4_key; + $attr4_list_tmp_value = $attr4_value; + $attr4_list_extract = ($attr4_extract==true); + if ( !is_array($$attr4_list) ) + $$attr4_list = array(); +// die('not an array in list,var='.$attr4_list); +// Html::debug($$attr4_list); - foreach( $$attr_list as $$list_tmp_key => $$list_tmp_value ) + foreach( $$attr4_list as $$attr4_list_tmp_key => $$attr4_list_tmp_value ) { - if ( $list_extract ) + if ( $attr4_list_extract ) { - if ( !is_array($$list_tmp_value) ) + if ( !is_array($$attr4_list_tmp_value) ) { - print_r($$list_tmp_value); - die( 'not an array at key: '.$$list_tmp_key ); + print_r($$attr4_list_tmp_value); + die( 'not an array at key: '.$$attr4_list_tmp_key ); } - extract($$list_tmp_value); + extract($$attr4_list_tmp_value); } -?><?php unset($attr) ?><?php unset($attr_list) ?><?php unset($attr_extract) ?><?php unset($attr_key) ?><?php unset($attr_value) ?><?php $attr = array() ?><?php +?><?php unset($attr4) ?><?php unset($attr4_list) ?><?php unset($attr4_extract) ?><?php unset($attr4_key) ?><?php unset($attr4_value) ?><?php $attr5 = array() ?><?php $row_class_idx++; if ($row_class_idx > count($row_classes)) $row_class_idx=1; $row_class=$row_classes[$row_class_idx-1]; - if (empty($attr_class)) - $attr_class=$row_class; + if (empty($attr5_class)) + $attr5_class=$row_class; global $cell_column_nr; $cell_column_nr=0; $column_class_idx = 999; -?><tr class="<?php echo $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?php -// if (empty($attr_class)) -// $attr['class']=$row_class; +?><tr class="<?php echo $attr5_class ?>"><?php unset($attr5) ?><?php $attr6 = array('class'=>'fx') ?><?php $attr6_class='fx' ?><?php +// if (empty($attr6_class)) +// $attr6['class']=$row_class; $column_class_idx++; if ($column_class_idx > count($column_classes)) $column_class_idx=1; $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr_class)) - $attr['class']=$column_class; + if (empty($attr6_class)) + $attr6['class']=$column_class; global $cell_column_nr; $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) ) - $attr['width']=$column_widths[$cell_column_nr-1]; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) ) + $attr6['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('true'=>'writable') ?><?php $attr_true='writable' ?><?php +?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php $attr7 = array('true'=>'writable') ?><?php $attr7_true='writable' ?><?php // Wahr-Vergleich -// Html::debug($attr); +// Html::debug($attr7); - if ( isset($attr_true) ) + if ( isset($attr7_true) ) { - if (gettype($attr_true) === '' && gettype($attr_true) === '1') - $exec = $$attr_true == true; + if (gettype($attr7_true) === '' && gettype($attr7_true) === '1') + $exec = $$attr7_true == true; else - $exec = $attr_true == true; + $exec = $attr7_true == true; } // Falsch-Vergleich - elseif ( isset($attr_false) ) + elseif ( isset($attr7_false) ) { - if (gettype($attr_false) === '' && gettype($attr_false) === '1') - $exec = $$attr_false == false; + if (gettype($attr7_false) === '' && gettype($attr7_false) === '1') + $exec = $$attr7_false == false; else - $exec = $attr_false == false; + $exec = $attr7_false == false; } // Inhalt-Vergleich mit Wertliste - elseif( isset($attr_contains) ) - $exec = in_array($$attr_var,explode(',',$attr_contains)); + elseif( isset($attr7_contains) ) + $exec = in_array($attr7_value,explode(',',$attr7_contains)); // Inhalt-Vergleich - elseif( isset($attr_var) ) - $exec = $$attr_var == $attr_value; + elseif( isset($attr7_equals)&& isset($attr7_value) ) + $exec = $attr7_equals == $attr7_value; // Vergleich auf leer - elseif ( isset($attr_empty) ) + elseif ( isset($attr7_empty) ) { - if ( !isset($$attr_empty) ) - $exec = empty($attr_empty); - elseif ( is_array($$attr_empty) ) - $exec = (count($$attr_empty)==0); - elseif ( is_bool($$attr_empty) ) + if ( !isset($$attr7_empty) ) + $exec = empty($attr7_empty); + elseif ( is_array($$attr7_empty) ) + $exec = (count($$attr7_empty)==0); + elseif ( is_bool($$attr7_empty) ) $exec = true; else - $exec = empty( $$attr_empty ); + $exec = empty( $$attr7_empty ); } // Vergleich auf Vorhandensein - elseif ( isset($attr_present) ) + elseif ( isset($attr7_present) ) { - if ( !isset($$attr_present) ) - $exec = false; - elseif ( is_array($$attr_present) ) - $exec = (count($$attr_present)>0); - elseif ( is_bool($$attr_present) ) - $exec = $$attr_present; - elseif ( is_numeric($$attr_present) ) - $exec = $$attr_present>=0; - else - $exec = true; + $exec = isset($$attr7_present); +// if ( !isset($$attr7_present) ) +// $exec = false; +// elseif ( is_array($$attr7_present) ) +// $exec = (count($$attr7_present)>0); +// elseif ( is_bool($$attr7_present) ) +// $exec = $$attr7_present; +// elseif ( is_numeric($$attr7_present) ) +// $exec = $$attr7_present>=0; +// else +// $exec = true; } else { - Html::debug( $attr ); + Html::debug( $attr7 ); echo("error in IF line ".__LINE__); echo("assume: FALSE"); $exec = false; } // Ergebnis umdrehen - if ( !empty($attr_invert) ) + // TODO: Bald ausbauen, stattdessen "not" verwenden. + if ( !empty($attr7_invert) ) $exec = !$exec; // Ergebnis umdrehen - if ( !empty($attr_not) ) + if ( !empty($attr7_not) ) $exec = !$exec; - unset($attr_true); - unset($attr_false); - unset($attr_notempty); - unset($attr_empty); - unset($attr_contains); - unset($attr_present); - unset($attr_invert); - unset($attr_not); - unset($attr_value); - unset($attr_var); + unset($attr7_true); + unset($attr7_false); + unset($attr7_notempty); + unset($attr7_empty); + unset($attr7_contains); + unset($attr7_present); + unset($attr7_invert); + unset($attr7_not); + unset($attr7_value); + unset($attr7_equals); $last_exec = $exec; if ( $exec ) { -?><?php unset($attr) ?><?php unset($attr_true) ?><?php $attr = array('default'=>'','readonly'=>'','name'=>$id) ?><?php $attr_default='' ?><?php $attr_readonly='' ?><?php $attr_name=$id ?><?php - $attr_default = ( $attr_default == true ); +?><?php unset($attr7) ?><?php unset($attr7_true) ?><?php $attr8 = array('default'=>'','readonly'=>'','name'=>$id) ?><?php $attr8_default='' ?><?php $attr8_readonly='' ?><?php $attr8_name=$id ?><?php + $attr8_default = ( $attr8_default == true ); - if ( isset($$attr_name) ) - $checked = $$attr_name == true; -// $checked = isset($$$attr_name)&& $$$attr_name==true; + if ( isset($$attr8_name) ) + $checked = $$attr8_name == true; +// $checked = isset($$$attr8_name)&& $$$attr8_name==true; else - $checked = $attr_default == true; -?><input type="checkbox" name="<?php echo $attr_name ?>" <?php if ($attr_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php unset($attr_name); unset($attr_readonly); unset($attr_default); ?><?php unset($attr) ?><?php unset($attr_default) ?><?php unset($attr_readonly) ?><?php unset($attr_name) ?><?php $attr = array() ?><?php + $checked = $attr8_default == true; +?><input type="checkbox" id="id_<?php echo $attr8_name ?>" name="<?php echo $attr8_name ?>" <?php if ($attr8_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php unset($attr8_name); unset($attr8_readonly); unset($attr8_default); ?><?php unset($attr8) ?><?php unset($attr8_default) ?><?php unset($attr8_readonly) ?><?php unset($attr8_name) ?><?php $attr6 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array('false'=>'writable') ?><?php $attr_false='writable' ?><?php +?><?php unset($attr6) ?><?php $attr7 = array('false'=>'writable') ?><?php $attr7_false='writable' ?><?php // Wahr-Vergleich -// Html::debug($attr); +// Html::debug($attr7); - if ( isset($attr_true) ) + if ( isset($attr7_true) ) { - if (gettype($attr_true) === '' && gettype($attr_true) === '1') - $exec = $$attr_true == true; + if (gettype($attr7_true) === '' && gettype($attr7_true) === '1') + $exec = $$attr7_true == true; else - $exec = $attr_true == true; + $exec = $attr7_true == true; } // Falsch-Vergleich - elseif ( isset($attr_false) ) + elseif ( isset($attr7_false) ) { - if (gettype($attr_false) === '' && gettype($attr_false) === '1') - $exec = $$attr_false == false; + if (gettype($attr7_false) === '' && gettype($attr7_false) === '1') + $exec = $$attr7_false == false; else - $exec = $attr_false == false; + $exec = $attr7_false == false; } // Inhalt-Vergleich mit Wertliste - elseif( isset($attr_contains) ) - $exec = in_array($$attr_var,explode(',',$attr_contains)); + elseif( isset($attr7_contains) ) + $exec = in_array($attr7_value,explode(',',$attr7_contains)); // Inhalt-Vergleich - elseif( isset($attr_var) ) - $exec = $$attr_var == $attr_value; + elseif( isset($attr7_equals)&& isset($attr7_value) ) + $exec = $attr7_equals == $attr7_value; // Vergleich auf leer - elseif ( isset($attr_empty) ) + elseif ( isset($attr7_empty) ) { - if ( !isset($$attr_empty) ) - $exec = empty($attr_empty); - elseif ( is_array($$attr_empty) ) - $exec = (count($$attr_empty)==0); - elseif ( is_bool($$attr_empty) ) + if ( !isset($$attr7_empty) ) + $exec = empty($attr7_empty); + elseif ( is_array($$attr7_empty) ) + $exec = (count($$attr7_empty)==0); + elseif ( is_bool($$attr7_empty) ) $exec = true; else - $exec = empty( $$attr_empty ); + $exec = empty( $$attr7_empty ); } // Vergleich auf Vorhandensein - elseif ( isset($attr_present) ) + elseif ( isset($attr7_present) ) { - if ( !isset($$attr_present) ) - $exec = false; - elseif ( is_array($$attr_present) ) - $exec = (count($$attr_present)>0); - elseif ( is_bool($$attr_present) ) - $exec = $$attr_present; - elseif ( is_numeric($$attr_present) ) - $exec = $$attr_present>=0; - else - $exec = true; + $exec = isset($$attr7_present); +// if ( !isset($$attr7_present) ) +// $exec = false; +// elseif ( is_array($$attr7_present) ) +// $exec = (count($$attr7_present)>0); +// elseif ( is_bool($$attr7_present) ) +// $exec = $$attr7_present; +// elseif ( is_numeric($$attr7_present) ) +// $exec = $$attr7_present>=0; +// else +// $exec = true; } else { - Html::debug( $attr ); + Html::debug( $attr7 ); echo("error in IF line ".__LINE__); echo("assume: FALSE"); $exec = false; } // Ergebnis umdrehen - if ( !empty($attr_invert) ) + // TODO: Bald ausbauen, stattdessen "not" verwenden. + if ( !empty($attr7_invert) ) $exec = !$exec; // Ergebnis umdrehen - if ( !empty($attr_not) ) + if ( !empty($attr7_not) ) $exec = !$exec; - unset($attr_true); - unset($attr_false); - unset($attr_notempty); - unset($attr_empty); - unset($attr_contains); - unset($attr_present); - unset($attr_invert); - unset($attr_not); - unset($attr_value); - unset($attr_var); + unset($attr7_true); + unset($attr7_false); + unset($attr7_notempty); + unset($attr7_empty); + unset($attr7_contains); + unset($attr7_present); + unset($attr7_invert); + unset($attr7_not); + unset($attr7_value); + unset($attr7_equals); $last_exec = $exec; if ( $exec ) { -?><?php unset($attr) ?><?php unset($attr_false) ?><?php $attr = array('class'=>'text','raw'=>'_') ?><?php $attr_class='text' ?><?php $attr_raw='_' ?><?php - if(empty($attr_title)) - if (!empty($attr_key)) - $attr_title = lang($attr_key).'_HELP'; +?><?php unset($attr7) ?><?php unset($attr7_false) ?><?php $attr8 = array('class'=>'text','raw'=>'_') ?><?php $attr8_class='text' ?><?php $attr8_raw='_' ?><?php + if ( isset($attr8_prefix)&& isset($attr8_key)) + $attr8_key = $attr8_prefix.$attr8_key; + if ( isset($attr8_suffix)&& isset($attr8_key)) + $attr8_key = $attr8_key.$attr8_suffix; + + if(empty($attr8_title)) + if (!empty($attr8_key)) + $attr8_title = lang($attr8_key.'_HELP'); else - $attr_title = ''; + $attr8_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) +?><span class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php + $attr8_title = ''; + + if (!empty($attr8_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr8_array[$attr8_var].'%'; + $tmpArray = $$attr8_array; + if (!empty($attr8_var)) + $tmp_text = $tmpArray[$attr8_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr8_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr8_text)) + if ( isset($$attr8_text)) + $tmp_text = lang($$attr8_text); else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + $tmp_text = lang($attr8_text); + elseif (!empty($attr8_textvar)) + $tmp_text = lang($$attr8_textvar); + elseif (!empty($attr8_key)) + $tmp_text = lang($attr8_key); + elseif (!empty($attr8_var)) + $tmp_text = isset($$attr8_var)?htmlentities($$attr8_var):'error: variable '.$attr8_var.' not present'; + elseif (!empty($attr8_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr8_raw); + elseif (!empty($attr8_value)) + $tmp_text = $attr8_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr8);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr8_maxlength) && intval($attr8_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr8_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_raw) ?><?php $attr = array() ?><?php +?></span><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_raw) ?><?php $attr6 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?php -// if (empty($attr_class)) -// $attr['class']=$row_class; +?><?php unset($attr6) ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr6 = array('class'=>'fx') ?><?php $attr6_class='fx' ?><?php +// if (empty($attr6_class)) +// $attr6['class']=$row_class; $column_class_idx++; if ($column_class_idx > count($column_classes)) $column_class_idx=1; $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr_class)) - $attr['class']=$column_class; + if (empty($attr6_class)) + $attr6['class']=$column_class; global $cell_column_nr; $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) ) - $attr['width']=$column_widths[$cell_column_nr-1]; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) ) + $attr6['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('title'=>'desc','target'=>'cms_main','url'=>$url,'class'=>'') ?><?php $attr_title='desc' ?><?php $attr_target='cms_main' ?><?php $attr_url=$url ?><?php $attr_class='' ?><?php - if(!empty($attr_url)) - $tmp_url = $attr_url; - else - $tmp_url = Html::url($attr_action,$attr_subaction,!empty($$attr_id)?$$attr_id:$this->getRequestId(),array(!empty($var1)?$var1:'asdf'=>!empty($value1)?$$value1:'')); -?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr_class ?>" target="<?php echo $attr_target ?>" title="<?php echo $attr_title ?>"><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_target) ?><?php unset($attr_url) ?><?php unset($attr_class) ?><?php $attr = array('align'=>'left','type'=>$icon) ?><?php $attr_align='left' ?><?php $attr_type=$icon ?><?php -if (isset($attr_elementtype)) { -?><img src="<?php echo $image_dir.'icon_el_'.$attr_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php -} elseif (isset($attr_type)) { -?><img src="<?php echo $image_dir.'icon_'.$attr_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php -} elseif (isset($attr_icon)) { -?><img src="<?php echo $image_dir.'icon_'.$attr_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php -} elseif (isset($attr_url)) { -?><img src="<?php echo $attr_url ?>" border="0" align="<?php echo $attr_align ?>"><?php -} elseif (isset($attr_file)) { -?><img src="<?php echo $image_dir.$attr_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php } ?><?php unset($attr) ?><?php unset($attr_align) ?><?php unset($attr_type) ?><?php $attr = array('class'=>'text','var'=>'name') ?><?php $attr_class='text' ?><?php $attr_var='name' ?><?php - if(empty($attr_title)) - if (!empty($attr_key)) - $attr_title = lang($attr_key).'_HELP'; +?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php $attr7 = array('for'=>$id) ?><?php $attr7_for=$id ?><label for="id_<?php echo $attr7_for ?><?php if (!empty($attr7_value)) echo '_' ?><?php echo $attr7_value ?>"><?php unset($attr7) ?><?php unset($attr7_for) ?><?php $attr8 = array('align'=>'left','type'=>$icon) ?><?php $attr8_align='left' ?><?php $attr8_type=$icon ?><?php +if (isset($attr8_elementtype)) { +?><img src="<?php echo $image_dir.'icon_el_'.$attr8_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_type)) { +?><img src="<?php echo $image_dir.'icon_'.$attr8_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_icon)) { +?><img src="<?php echo $image_dir.'icon_'.$attr8_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_url)) { +?><img src="<?php echo $attr8_url ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_fileext)) { +?><img src="<?php echo $image_dir.$attr8_fileext ?>" border="0" align="<?php echo $attr8_align ?>"><?php +} elseif (isset($attr8_file)) { +?><img src="<?php echo $image_dir.$attr8_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr8_align ?>"><?php } ?><?php unset($attr8) ?><?php unset($attr8_align) ?><?php unset($attr8_type) ?><?php $attr8 = array('class'=>'text','var'=>'name') ?><?php $attr8_class='text' ?><?php $attr8_var='name' ?><?php + if ( isset($attr8_prefix)&& isset($attr8_key)) + $attr8_key = $attr8_prefix.$attr8_key; + if ( isset($attr8_suffix)&& isset($attr8_key)) + $attr8_key = $attr8_key.$attr8_suffix; + + if(empty($attr8_title)) + if (!empty($attr8_key)) + $attr8_title = lang($attr8_key.'_HELP'); else - $attr_title = ''; + $attr8_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) +?><span class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php + $attr8_title = ''; + + if (!empty($attr8_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr8_array[$attr8_var].'%'; + $tmpArray = $$attr8_array; + if (!empty($attr8_var)) + $tmp_text = $tmpArray[$attr8_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr8_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr8_text)) + if ( isset($$attr8_text)) + $tmp_text = lang($$attr8_text); else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + $tmp_text = lang($attr8_text); + elseif (!empty($attr8_textvar)) + $tmp_text = lang($$attr8_textvar); + elseif (!empty($attr8_key)) + $tmp_text = lang($attr8_key); + elseif (!empty($attr8_var)) + $tmp_text = isset($$attr8_var)?htmlentities($$attr8_var):'error: variable '.$attr8_var.' not present'; + elseif (!empty($attr8_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr8_raw); + elseif (!empty($attr8_value)) + $tmp_text = $attr8_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr8);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr8_maxlength) && intval($attr8_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr8_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><?php $attr = array('class'=>'text','raw'=>'_') ?><?php $attr_class='text' ?><?php $attr_raw='_' ?><?php - if(empty($attr_title)) - if (!empty($attr_key)) - $attr_title = lang($attr_key).'_HELP'; +?></span><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_var) ?><?php $attr8 = array('class'=>'text','raw'=>'_') ?><?php $attr8_class='text' ?><?php $attr8_raw='_' ?><?php + if ( isset($attr8_prefix)&& isset($attr8_key)) + $attr8_key = $attr8_prefix.$attr8_key; + if ( isset($attr8_suffix)&& isset($attr8_key)) + $attr8_key = $attr8_key.$attr8_suffix; + + if(empty($attr8_title)) + if (!empty($attr8_key)) + $attr8_title = lang($attr8_key.'_HELP'); else - $attr_title = ''; + $attr8_title = ''; + +?><span class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php + $attr8_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) + if (!empty($attr8_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr8_array[$attr8_var].'%'; + $tmpArray = $$attr8_array; + if (!empty($attr8_var)) + $tmp_text = $tmpArray[$attr8_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr8_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr8_text)) + if ( isset($$attr8_text)) + $tmp_text = lang($$attr8_text); else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + $tmp_text = lang($attr8_text); + elseif (!empty($attr8_textvar)) + $tmp_text = lang($$attr8_textvar); + elseif (!empty($attr8_key)) + $tmp_text = lang($attr8_key); + elseif (!empty($attr8_var)) + $tmp_text = isset($$attr8_var)?htmlentities($$attr8_var):'error: variable '.$attr8_var.' not present'; + elseif (!empty($attr8_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr8_raw); + elseif (!empty($attr8_value)) + $tmp_text = $attr8_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr8);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr8_maxlength) && intval($attr8_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr8_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_raw) ?><?php $attr = array() ?></a><?php unset($attr) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php } ?><?php unset($attr) ?><?php $attr = array() ?><?php +?></span><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_raw) ?><?php $attr6 = array() ?></label><?php unset($attr6) ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3 = array() ?><?php } ?><?php unset($attr3) ?><?php $attr4 = array() ?><?php $row_class_idx++; if ($row_class_idx > count($row_classes)) $row_class_idx=1; $row_class=$row_classes[$row_class_idx-1]; - if (empty($attr_class)) - $attr_class=$row_class; + if (empty($attr4_class)) + $attr4_class=$row_class; global $cell_column_nr; $cell_column_nr=0; $column_class_idx = 999; -?><tr class="<?php echo $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'fx','colspan'=>'2') ?><?php $attr_class='fx' ?><?php $attr_colspan='2' ?><?php -// if (empty($attr_class)) -// $attr['class']=$row_class; +?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5 = array('class'=>'fx','colspan'=>'2') ?><?php $attr5_class='fx' ?><?php $attr5_colspan='2' ?><?php +// if (empty($attr5_class)) +// $attr5['class']=$row_class; $column_class_idx++; if ($column_class_idx > count($column_classes)) $column_class_idx=1; $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr_class)) - $attr['class']=$column_class; + if (empty($attr5_class)) + $attr5['class']=$column_class; global $cell_column_nr; $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) ) - $attr['width']=$column_widths[$cell_column_nr-1]; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; + +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_colspan) ?><?php $attr6 = array('align'=>'left','fileext'=>'tree_none_end.gif') ?><?php $attr6_align='left' ?><?php $attr6_fileext='tree_none_end.gif' ?><?php +if (isset($attr6_elementtype)) { +?><img src="<?php echo $image_dir.'icon_el_'.$attr6_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr6_align ?>"><?php +} elseif (isset($attr6_type)) { +?><img src="<?php echo $image_dir.'icon_'.$attr6_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr6_align ?>"><?php +} elseif (isset($attr6_icon)) { +?><img src="<?php echo $image_dir.'icon_'.$attr6_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr6_align ?>"><?php +} elseif (isset($attr6_url)) { +?><img src="<?php echo $attr6_url ?>" border="0" align="<?php echo $attr6_align ?>"><?php +} elseif (isset($attr6_fileext)) { +?><img src="<?php echo $image_dir.$attr6_fileext ?>" border="0" align="<?php echo $attr6_align ?>"><?php +} elseif (isset($attr6_file)) { +?><img src="<?php echo $image_dir.$attr6_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr6_align ?>"><?php } ?><?php unset($attr6) ?><?php unset($attr6_align) ?><?php unset($attr6_fileext) ?><?php $attr6 = array('class'=>'text','raw'=>'_') ?><?php $attr6_class='text' ?><?php $attr6_raw='_' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key.'_HELP'); + else + $attr6_title = ''; + +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; + + if (!empty($attr6_array)) + { + //geht nicht: + //echo $$attr6_array[$attr6_var].'%'; + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; + else + $tmp_text = lang($tmpArray[$attr6_text]); + } + elseif (!empty($attr6_text)) + if ( isset($$attr6_text)) + $tmp_text = lang($$attr6_text); + else + $tmp_text = lang($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = lang($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = lang($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; + else + { + $tmp_text = '&nbsp;'; + //Html::debug($attr6);echo 'text error'; + } + + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); + + echo $tmp_text; +?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_raw) ?><?php $attr6 = array('target'=>'_self','url'=>'javascript:mark();') ?><?php $attr6_target='_self' ?><?php $attr6_url='javascript:mark();' ?><?php + if(!empty($attr6_url)) + $tmp_url = $attr6_url; + else + $tmp_url = Html::url($attr6_action,$attr6_subaction,!empty($$attr6_id)?$$attr6_id:$this->getRequestId(),array(!empty($var1)?$var1:'asdf'=>!empty($value1)?$$value1:'')); +?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr6_class ?>" target="<?php echo $attr6_target ?>" title="<?php echo $attr6_title ?>"><?php unset($attr6) ?><?php unset($attr6_target) ?><?php unset($attr6_url) ?><?php $attr7 = array('class'=>'text','text'=>lang('FOLDER_MARK_ALL')) ?><?php $attr7_class='text' ?><?php $attr7_text=lang('FOLDER_MARK_ALL') ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + + if(empty($attr7_title)) + if (!empty($attr7_key)) + $attr7_title = lang($attr7_key.'_HELP'); + else + $attr7_title = ''; + +?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php + $attr7_title = ''; + + if (!empty($attr7_array)) + { + //geht nicht: + //echo $$attr7_array[$attr7_var].'%'; + $tmpArray = $$attr7_array; + if (!empty($attr7_var)) + $tmp_text = $tmpArray[$attr7_var]; + else + $tmp_text = lang($tmpArray[$attr7_text]); + } + elseif (!empty($attr7_text)) + if ( isset($$attr7_text)) + $tmp_text = lang($$attr7_text); + else + $tmp_text = lang($attr7_text); + elseif (!empty($attr7_textvar)) + $tmp_text = lang($$attr7_textvar); + elseif (!empty($attr7_key)) + $tmp_text = lang($attr7_key); + elseif (!empty($attr7_var)) + $tmp_text = isset($$attr7_var)?htmlentities($$attr7_var):'error: variable '.$attr7_var.' not present'; + elseif (!empty($attr7_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr7_raw); + elseif (!empty($attr7_value)) + $tmp_text = $attr7_value; + else + { + $tmp_text = '&nbsp;'; + //Html::debug($attr7);echo 'text error'; + } + + if ( !empty($attr7_maxlength) && intval($attr7_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr7_maxlength) ); + + echo $tmp_text; +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_text) ?><?php $attr5 = array() ?></a><?php unset($attr5) ?><?php $attr6 = array('class'=>'text','raw'=>'_|_') ?><?php $attr6_class='text' ?><?php $attr6_raw='_|_' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key.'_HELP'); + else + $attr6_title = ''; + +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; + + if (!empty($attr6_array)) + { + //geht nicht: + //echo $$attr6_array[$attr6_var].'%'; + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; + else + $tmp_text = lang($tmpArray[$attr6_text]); + } + elseif (!empty($attr6_text)) + if ( isset($$attr6_text)) + $tmp_text = lang($$attr6_text); + else + $tmp_text = lang($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = lang($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = lang($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; + else + { + $tmp_text = '&nbsp;'; + //Html::debug($attr6);echo 'text error'; + } + + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); + + echo $tmp_text; +?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_raw) ?><?php $attr6 = array('target'=>'_self','url'=>'javascript:unmark();') ?><?php $attr6_target='_self' ?><?php $attr6_url='javascript:unmark();' ?><?php + if(!empty($attr6_url)) + $tmp_url = $attr6_url; + else + $tmp_url = Html::url($attr6_action,$attr6_subaction,!empty($$attr6_id)?$$attr6_id:$this->getRequestId(),array(!empty($var1)?$var1:'asdf'=>!empty($value1)?$$value1:'')); +?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr6_class ?>" target="<?php echo $attr6_target ?>" title="<?php echo $attr6_title ?>"><?php unset($attr6) ?><?php unset($attr6_target) ?><?php unset($attr6_url) ?><?php $attr7 = array('class'=>'text','text'=>lang('FOLDER_UNMARK_ALL')) ?><?php $attr7_class='text' ?><?php $attr7_text=lang('FOLDER_UNMARK_ALL') ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><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> -<?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php + if(empty($attr7_title)) + if (!empty($attr7_key)) + $attr7_title = lang($attr7_key.'_HELP'); + else + $attr7_title = ''; + +?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php + $attr7_title = ''; + + if (!empty($attr7_array)) + { + //geht nicht: + //echo $$attr7_array[$attr7_var].'%'; + $tmpArray = $$attr7_array; + if (!empty($attr7_var)) + $tmp_text = $tmpArray[$attr7_var]; + else + $tmp_text = lang($tmpArray[$attr7_text]); + } + elseif (!empty($attr7_text)) + if ( isset($$attr7_text)) + $tmp_text = lang($$attr7_text); + else + $tmp_text = lang($attr7_text); + elseif (!empty($attr7_textvar)) + $tmp_text = lang($$attr7_textvar); + elseif (!empty($attr7_key)) + $tmp_text = lang($attr7_key); + elseif (!empty($attr7_var)) + $tmp_text = isset($$attr7_var)?htmlentities($$attr7_var):'error: variable '.$attr7_var.' not present'; + elseif (!empty($attr7_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr7_raw); + elseif (!empty($attr7_value)) + $tmp_text = $attr7_value; + else + { + $tmp_text = '&nbsp;'; + //Html::debug($attr7);echo 'text error'; + } + + if ( !empty($attr7_maxlength) && intval($attr7_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr7_maxlength) ); + + echo $tmp_text; +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_text) ?><?php $attr5 = array() ?></a><?php unset($attr5) ?><?php $attr6 = array('class'=>'text','raw'=>'_|_') ?><?php $attr6_class='text' ?><?php $attr6_raw='_|_' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key.'_HELP'); + else + $attr6_title = ''; + +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; + + if (!empty($attr6_array)) + { + //geht nicht: + //echo $$attr6_array[$attr6_var].'%'; + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; + else + $tmp_text = lang($tmpArray[$attr6_text]); + } + elseif (!empty($attr6_text)) + if ( isset($$attr6_text)) + $tmp_text = lang($$attr6_text); + else + $tmp_text = lang($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = lang($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = lang($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; + else + { + $tmp_text = '&nbsp;'; + //Html::debug($attr6);echo 'text error'; + } + + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); + + echo $tmp_text; +?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_raw) ?><?php $attr6 = array('target'=>'_self','url'=>'javascript:flip();') ?><?php $attr6_target='_self' ?><?php $attr6_url='javascript:flip();' ?><?php + if(!empty($attr6_url)) + $tmp_url = $attr6_url; + else + $tmp_url = Html::url($attr6_action,$attr6_subaction,!empty($$attr6_id)?$$attr6_id:$this->getRequestId(),array(!empty($var1)?$var1:'asdf'=>!empty($value1)?$$value1:'')); +?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr6_class ?>" target="<?php echo $attr6_target ?>" title="<?php echo $attr6_title ?>"><?php unset($attr6) ?><?php unset($attr6_target) ?><?php unset($attr6_url) ?><?php $attr7 = array('class'=>'text','text'=>lang('FOLDER_FLIP_MARK')) ?><?php $attr7_class='text' ?><?php $attr7_text=lang('FOLDER_FLIP_MARK') ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + + if(empty($attr7_title)) + if (!empty($attr7_key)) + $attr7_title = lang($attr7_key.'_HELP'); + else + $attr7_title = ''; + +?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php + $attr7_title = ''; + + if (!empty($attr7_array)) + { + //geht nicht: + //echo $$attr7_array[$attr7_var].'%'; + $tmpArray = $$attr7_array; + if (!empty($attr7_var)) + $tmp_text = $tmpArray[$attr7_var]; + else + $tmp_text = lang($tmpArray[$attr7_text]); + } + elseif (!empty($attr7_text)) + if ( isset($$attr7_text)) + $tmp_text = lang($$attr7_text); + else + $tmp_text = lang($attr7_text); + elseif (!empty($attr7_textvar)) + $tmp_text = lang($$attr7_textvar); + elseif (!empty($attr7_key)) + $tmp_text = lang($attr7_key); + elseif (!empty($attr7_var)) + $tmp_text = isset($$attr7_var)?htmlentities($$attr7_var):'error: variable '.$attr7_var.' not present'; + elseif (!empty($attr7_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr7_raw); + elseif (!empty($attr7_value)) + $tmp_text = $attr7_value; + else + { + $tmp_text = '&nbsp;'; + //Html::debug($attr7);echo 'text error'; + } + + if ( !empty($attr7_maxlength) && intval($attr7_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr7_maxlength) ); + + echo $tmp_text; +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_text) ?><?php $attr5 = array() ?></a><?php unset($attr5) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4 = array() ?><?php $row_class_idx++; if ($row_class_idx > count($row_classes)) $row_class_idx=1; $row_class=$row_classes[$row_class_idx-1]; - if (empty($attr_class)) - $attr_class=$row_class; + if (empty($attr4_class)) + $attr4_class=$row_class; global $cell_column_nr; $cell_column_nr=0; $column_class_idx = 999; -?><tr class="<?php echo $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'fx','colspan'=>'2') ?><?php $attr_class='fx' ?><?php $attr_colspan='2' ?><?php -// if (empty($attr_class)) -// $attr['class']=$row_class; +?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5 = array('class'=>'fx','colspan'=>'2') ?><?php $attr5_class='fx' ?><?php $attr5_colspan='2' ?><?php +// if (empty($attr5_class)) +// $attr5['class']=$row_class; $column_class_idx++; if ($column_class_idx > count($column_classes)) $column_class_idx=1; $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr_class)) - $attr['class']=$column_class; + if (empty($attr5_class)) + $attr5['class']=$column_class; global $cell_column_nr; $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) ) - $attr['width']=$column_widths[$cell_column_nr-1]; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('list'=>'actionlist','extract'=>'1','key'=>'list_key','value'=>'list_value') ?><?php $attr_list='actionlist' ?><?php $attr_extract='1' ?><?php $attr_key='list_key' ?><?php $attr_value='list_value' ?><?php - $list_tmp_key = $attr_key; - $list_tmp_value = $attr_value; - $list_extract = ($attr_extract==true); +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_colspan) ?><?php $attr6 = array('list'=>'actionlist','extract'=>'1','key'=>'list_key','value'=>'list_value') ?><?php $attr6_list='actionlist' ?><?php $attr6_extract='1' ?><?php $attr6_key='list_key' ?><?php $attr6_value='list_value' ?><?php + $attr6_list_tmp_key = $attr6_key; + $attr6_list_tmp_value = $attr6_value; + $attr6_list_extract = ($attr6_extract==true); + if ( !is_array($$attr6_list) ) + $$attr6_list = array(); +// die('not an array in list,var='.$attr6_list); +// Html::debug($$attr6_list); - foreach( $$attr_list as $$list_tmp_key => $$list_tmp_value ) + foreach( $$attr6_list as $$attr6_list_tmp_key => $$attr6_list_tmp_value ) { - if ( $list_extract ) + if ( $attr6_list_extract ) { - if ( !is_array($$list_tmp_value) ) + if ( !is_array($$attr6_list_tmp_value) ) { - print_r($$list_tmp_value); - die( 'not an array at key: '.$$list_tmp_key ); + print_r($$attr6_list_tmp_value); + die( 'not an array at key: '.$$attr6_list_tmp_key ); } - extract($$list_tmp_value); + extract($$attr6_list_tmp_value); } -?><?php unset($attr) ?><?php unset($attr_list) ?><?php unset($attr_extract) ?><?php unset($attr_key) ?><?php unset($attr_value) ?><?php $attr = array('name'=>$type,'value'=>$type) ?><?php $attr_name=$type ?><?php $attr_value=$type ?><?php -?><input type="radio" name="<?php echo $attr_prefix.$attr_name ?>"<?php if ( $attr_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $attr_value ?>" <?php if( $attr_value == $$attr_name ) echo 'checked="checked"' ?> /><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_value) ?><?php $attr = array('class'=>'text','raw'=>'_') ?><?php $attr_class='text' ?><?php $attr_raw='_' ?><?php - if(empty($attr_title)) - if (!empty($attr_key)) - $attr_title = lang($attr_key).'_HELP'; +?><?php unset($attr6) ?><?php unset($attr6_list) ?><?php unset($attr6_extract) ?><?php unset($attr6_key) ?><?php unset($attr6_value) ?><?php $attr7 = array('name'=>'type','value'=>$type) ?><?php $attr7_name='type' ?><?php $attr7_value=$type ?><input type="radio" id="id_<?php echo $attr7_name.'_'.$attr7_value ?>" name="<?php echo $attr7_prefix.$attr7_name ?>"<?php if ( $attr7_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $attr7_value ?>" <?php if($attr7_value==$default) echo 'checked="checked"' ?> /><?php unset($attr7) ?><?php unset($attr7_name) ?><?php unset($attr7_value) ?><?php $attr7 = array('for'=>'type','value'=>$type) ?><?php $attr7_for='type' ?><?php $attr7_value=$type ?><label for="id_<?php echo $attr7_for ?><?php if (!empty($attr7_value)) echo '_' ?><?php echo $attr7_value ?>"><?php unset($attr7) ?><?php unset($attr7_for) ?><?php unset($attr7_value) ?><?php $attr8 = array('class'=>'text','raw'=>'_') ?><?php $attr8_class='text' ?><?php $attr8_raw='_' ?><?php + if ( isset($attr8_prefix)&& isset($attr8_key)) + $attr8_key = $attr8_prefix.$attr8_key; + if ( isset($attr8_suffix)&& isset($attr8_key)) + $attr8_key = $attr8_key.$attr8_suffix; + + if(empty($attr8_title)) + if (!empty($attr8_key)) + $attr8_title = lang($attr8_key.'_HELP'); else - $attr_title = ''; + $attr8_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) +?><span class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php + $attr8_title = ''; + + if (!empty($attr8_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr8_array[$attr8_var].'%'; + $tmpArray = $$attr8_array; + if (!empty($attr8_var)) + $tmp_text = $tmpArray[$attr8_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr8_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr8_text)) + if ( isset($$attr8_text)) + $tmp_text = lang($$attr8_text); else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + $tmp_text = lang($attr8_text); + elseif (!empty($attr8_textvar)) + $tmp_text = lang($$attr8_textvar); + elseif (!empty($attr8_key)) + $tmp_text = lang($attr8_key); + elseif (!empty($attr8_var)) + $tmp_text = isset($$attr8_var)?htmlentities($$attr8_var):'error: variable '.$attr8_var.' not present'; + elseif (!empty($attr8_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr8_raw); + elseif (!empty($attr8_value)) + $tmp_text = $attr8_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr8);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr8_maxlength) && intval($attr8_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr8_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_raw) ?><?php $attr = array('class'=>'text','text'=>$type) ?><?php $attr_class='text' ?><?php $attr_text=$type ?><?php - if(empty($attr_title)) - if (!empty($attr_key)) - $attr_title = lang($attr_key).'_HELP'; +?></span><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_raw) ?><?php $attr8 = array('class'=>'text','key'=>$type,'prefix'=>'FOLDER_SELECT_') ?><?php $attr8_class='text' ?><?php $attr8_key=$type ?><?php $attr8_prefix='FOLDER_SELECT_' ?><?php + if ( isset($attr8_prefix)&& isset($attr8_key)) + $attr8_key = $attr8_prefix.$attr8_key; + if ( isset($attr8_suffix)&& isset($attr8_key)) + $attr8_key = $attr8_key.$attr8_suffix; + + if(empty($attr8_title)) + if (!empty($attr8_key)) + $attr8_title = lang($attr8_key.'_HELP'); else - $attr_title = ''; + $attr8_title = ''; + +?><span class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php + $attr8_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) + if (!empty($attr8_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr8_array[$attr8_var].'%'; + $tmpArray = $$attr8_array; + if (!empty($attr8_var)) + $tmp_text = $tmpArray[$attr8_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr8_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr8_text)) + if ( isset($$attr8_text)) + $tmp_text = lang($$attr8_text); else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + $tmp_text = lang($attr8_text); + elseif (!empty($attr8_textvar)) + $tmp_text = lang($$attr8_textvar); + elseif (!empty($attr8_key)) + $tmp_text = lang($attr8_key); + elseif (!empty($attr8_var)) + $tmp_text = isset($$attr8_var)?htmlentities($$attr8_var):'error: variable '.$attr8_var.' not present'; + elseif (!empty($attr8_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr8_raw); + elseif (!empty($attr8_value)) + $tmp_text = $attr8_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr8);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr8_maxlength) && intval($attr8_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr8_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?php $attr = array() ?><br/><?php unset($attr) ?><?php $attr = array() ?><?php } ?><?php unset($attr) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php +?></span><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_key) ?><?php unset($attr8_prefix) ?><?php $attr6 = array() ?></label><?php unset($attr6) ?><?php $attr7 = array() ?><br/><?php unset($attr7) ?><?php $attr5 = array() ?><?php } ?><?php unset($attr5) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4 = array() ?><?php $row_class_idx++; if ($row_class_idx > count($row_classes)) $row_class_idx=1; $row_class=$row_classes[$row_class_idx-1]; - if (empty($attr_class)) - $attr_class=$row_class; + if (empty($attr4_class)) + $attr4_class=$row_class; global $cell_column_nr; $cell_column_nr=0; $column_class_idx = 999; -?><tr class="<?php echo $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'act','colspan'=>'2') ?><?php $attr_class='act' ?><?php $attr_colspan='2' ?><?php -// if (empty($attr_class)) -// $attr['class']=$row_class; +?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5 = array('class'=>'act','colspan'=>'2') ?><?php $attr5_class='act' ?><?php $attr5_colspan='2' ?><?php +// if (empty($attr5_class)) +// $attr5['class']=$row_class; $column_class_idx++; if ($column_class_idx > count($column_classes)) $column_class_idx=1; $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr_class)) - $attr['class']=$column_class; + if (empty($attr5_class)) + $attr5['class']=$column_class; global $cell_column_nr; $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) ) - $attr['width']=$column_widths[$cell_column_nr-1]; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('type'=>'ok','class'=>'ok','value'=>'ok','text'=>'button_ok') ?><?php $attr_type='ok' ?><?php $attr_class='ok' ?><?php $attr_value='ok' ?><?php $attr_text='button_ok' ?><?php - if ($attr_type=='ok') +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_colspan) ?><?php $attr6 = array('type'=>'ok','class'=>'ok','value'=>'ok','text'=>'button_next') ?><?php $attr6_type='ok' ?><?php $attr6_class='ok' ?><?php $attr6_value='ok' ?><?php $attr6_text='button_next' ?><?php + if ($attr6_type=='ok') { - $attr_type = 'submit'; -// $attr_class = 'ok'; -// $attr_text = 'BUTTON_OK'; -// $attr_value = 'ok'; + $attr6_type = 'submit'; +// $attr6_class = 'ok'; +// $attr6_text = 'BUTTON_OK'; +// $attr6_value = 'ok'; } -?><input type="<?php echo $attr_type ?>" name="<?php echo $attr_value ?>" class="<?php echo $attr_class ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo lang($attr_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($attr) ?><?php unset($attr_type) ?><?php unset($attr_class) ?><?php unset($attr_value) ?><?php unset($attr_text) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array('empty'=>'object') ?><?php $attr_empty='object' ?><?php +?><input type="<?php echo $attr6_type ?>" name="<?php echo $attr6_value ?>" class="<?php echo $attr6_class ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo lang($attr6_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($attr6) ?><?php unset($attr6_type) ?><?php unset($attr6_class) ?><?php unset($attr6_value) ?><?php unset($attr6_text) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4 = array('empty'=>'object') ?><?php $attr4_empty='object' ?><?php // Wahr-Vergleich -// Html::debug($attr); +// Html::debug($attr4); - if ( isset($attr_true) ) + if ( isset($attr4_true) ) { - if (gettype($attr_true) === '' && gettype($attr_true) === '1') - $exec = $$attr_true == true; + if (gettype($attr4_true) === '' && gettype($attr4_true) === '1') + $exec = $$attr4_true == true; else - $exec = $attr_true == true; + $exec = $attr4_true == true; } // Falsch-Vergleich - elseif ( isset($attr_false) ) + elseif ( isset($attr4_false) ) { - if (gettype($attr_false) === '' && gettype($attr_false) === '1') - $exec = $$attr_false == false; + if (gettype($attr4_false) === '' && gettype($attr4_false) === '1') + $exec = $$attr4_false == false; else - $exec = $attr_false == false; + $exec = $attr4_false == false; } // Inhalt-Vergleich mit Wertliste - elseif( isset($attr_contains) ) - $exec = in_array($$attr_var,explode(',',$attr_contains)); + elseif( isset($attr4_contains) ) + $exec = in_array($attr4_value,explode(',',$attr4_contains)); // Inhalt-Vergleich - elseif( isset($attr_var) ) - $exec = $$attr_var == $attr_value; + elseif( isset($attr4_equals)&& isset($attr4_value) ) + $exec = $attr4_equals == $attr4_value; // Vergleich auf leer - elseif ( isset($attr_empty) ) + elseif ( isset($attr4_empty) ) { - if ( !isset($$attr_empty) ) - $exec = empty($attr_empty); - elseif ( is_array($$attr_empty) ) - $exec = (count($$attr_empty)==0); - elseif ( is_bool($$attr_empty) ) + if ( !isset($$attr4_empty) ) + $exec = empty($attr4_empty); + elseif ( is_array($$attr4_empty) ) + $exec = (count($$attr4_empty)==0); + elseif ( is_bool($$attr4_empty) ) $exec = true; else - $exec = empty( $$attr_empty ); + $exec = empty( $$attr4_empty ); } // Vergleich auf Vorhandensein - elseif ( isset($attr_present) ) + elseif ( isset($attr4_present) ) { - if ( !isset($$attr_present) ) - $exec = false; - elseif ( is_array($$attr_present) ) - $exec = (count($$attr_present)>0); - elseif ( is_bool($$attr_present) ) - $exec = $$attr_present; - elseif ( is_numeric($$attr_present) ) - $exec = $$attr_present>=0; - else - $exec = true; + $exec = isset($$attr4_present); +// if ( !isset($$attr4_present) ) +// $exec = false; +// elseif ( is_array($$attr4_present) ) +// $exec = (count($$attr4_present)>0); +// elseif ( is_bool($$attr4_present) ) +// $exec = $$attr4_present; +// elseif ( is_numeric($$attr4_present) ) +// $exec = $$attr4_present>=0; +// else +// $exec = true; } else { - Html::debug( $attr ); + Html::debug( $attr4 ); echo("error in IF line ".__LINE__); echo("assume: FALSE"); $exec = false; } // Ergebnis umdrehen - if ( !empty($attr_invert) ) + // TODO: Bald ausbauen, stattdessen "not" verwenden. + if ( !empty($attr4_invert) ) $exec = !$exec; // Ergebnis umdrehen - if ( !empty($attr_not) ) + if ( !empty($attr4_not) ) $exec = !$exec; - unset($attr_true); - unset($attr_false); - unset($attr_notempty); - unset($attr_empty); - unset($attr_contains); - unset($attr_present); - unset($attr_invert); - unset($attr_not); - unset($attr_value); - unset($attr_var); + unset($attr4_true); + unset($attr4_false); + unset($attr4_notempty); + unset($attr4_empty); + unset($attr4_contains); + unset($attr4_present); + unset($attr4_invert); + unset($attr4_not); + unset($attr4_value); + unset($attr4_equals); $last_exec = $exec; if ( $exec ) { -?><?php unset($attr) ?><?php unset($attr_empty) ?><?php $attr = array() ?><?php +?><?php unset($attr4) ?><?php unset($attr4_empty) ?><?php $attr5 = array() ?><?php $row_class_idx++; if ($row_class_idx > count($row_classes)) $row_class_idx=1; $row_class=$row_classes[$row_class_idx-1]; - if (empty($attr_class)) - $attr_class=$row_class; + if (empty($attr5_class)) + $attr5_class=$row_class; global $cell_column_nr; $cell_column_nr=0; $column_class_idx = 999; -?><tr class="<?php echo $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'fx','colspan'=>'2') ?><?php $attr_class='fx' ?><?php $attr_colspan='2' ?><?php -// if (empty($attr_class)) -// $attr['class']=$row_class; +?><tr class="<?php echo $attr5_class ?>"><?php unset($attr5) ?><?php $attr6 = array('class'=>'fx','colspan'=>'2') ?><?php $attr6_class='fx' ?><?php $attr6_colspan='2' ?><?php +// if (empty($attr6_class)) +// $attr6['class']=$row_class; $column_class_idx++; if ($column_class_idx > count($column_classes)) $column_class_idx=1; $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr_class)) - $attr['class']=$column_class; + if (empty($attr6_class)) + $attr6['class']=$column_class; global $cell_column_nr; $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) ) - $attr['width']=$column_widths[$cell_column_nr-1]; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) ) + $attr6['width']=$column_widths[$cell_column_nr-1]; + +?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_colspan) ?><?php $attr7 = array('class'=>'text','text'=>'GLOBAL_NOT_FOUND') ?><?php $attr7_class='text' ?><?php $attr7_text='GLOBAL_NOT_FOUND' ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('class'=>'text','text'=>'GLOBAL_NOT_FOUND') ?><?php $attr_class='text' ?><?php $attr_text='GLOBAL_NOT_FOUND' ?><?php - if(empty($attr_title)) - if (!empty($attr_key)) - $attr_title = lang($attr_key).'_HELP'; + if(empty($attr7_title)) + if (!empty($attr7_key)) + $attr7_title = lang($attr7_key.'_HELP'); else - $attr_title = ''; + $attr7_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) +?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php + $attr7_title = ''; + + if (!empty($attr7_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr7_array[$attr7_var].'%'; + $tmpArray = $$attr7_array; + if (!empty($attr7_var)) + $tmp_text = $tmpArray[$attr7_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr7_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr7_text)) + if ( isset($$attr7_text)) + $tmp_text = lang($$attr7_text); else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + $tmp_text = lang($attr7_text); + elseif (!empty($attr7_textvar)) + $tmp_text = lang($$attr7_textvar); + elseif (!empty($attr7_key)) + $tmp_text = lang($attr7_key); + elseif (!empty($attr7_var)) + $tmp_text = isset($$attr7_var)?htmlentities($$attr7_var):'error: variable '.$attr7_var.' not present'; + elseif (!empty($attr7_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr7_raw); + elseif (!empty($attr7_value)) + $tmp_text = $attr7_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr7);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr7_maxlength) && intval($attr7_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr7_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_text) ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array() ?> </table> +?><?php unset($attr3) ?><?php $attr2 = array() ?> </table> </td> </tr> </table> @@ -1088,9 +1510,9 @@ if (isset($attr_elementtype)) { <?php $dur = time()-START_TIME; echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small> <?php } ?> -<?php unset($attr) ?><?php $attr = array() ?></form> +<?php unset($attr2) ?><?php $attr1 = array() ?></form> -<?php unset($attr) ?><?php $attr = array() ?><?php unset($attr) ?><script name="JavaScript"> +<?php unset($attr1) ?><?php $attr2 = array() ?><?php unset($attr2) ?><script name="JavaScript" type="text/javascript"> <!-- function mark() { @@ -1114,7 +1536,7 @@ else document.forms[0].obj<?php echo $id ?>.checked=false; } //--> </script> -<?php $attr = array() ?> +<?php $attr0 = array() ?> <!-- $Id$ --> <?php if ($showDuration) { ?> @@ -1125,4 +1547,4 @@ else document.forms[0].obj<?php echo $id ?>.checked=false; <?php } ?> </body> -</html><?php unset($attr) ?>- \ No newline at end of file +</html><?php unset($attr0) ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/folder/show.tpl.php b/themes/default/pages/html/folder/show.tpl.php @@ -128,14 +128,20 @@ $attr4['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_class) ?><?php unset($attr4_colspan) ?><?php $attr5 = array('class'=>'text','text'=>'GLOBAL_FOLDER_DESC') ?><?php $attr5_class='text' ?><?php $attr5_text='GLOBAL_FOLDER_DESC' ?><?php + if ( isset($attr5_prefix)&& isset($attr5_key)) + $attr5_key = $attr5_prefix.$attr5_key; + if ( isset($attr5_suffix)&& isset($attr5_key)) + $attr5_key = $attr5_key.$attr5_suffix; + if(empty($attr5_title)) if (!empty($attr5_key)) - $attr5_title = lang($attr5_key).'_HELP'; + $attr5_title = lang($attr5_key.'_HELP'); else $attr5_title = ''; ?><span class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php $attr5_title = ''; + if (!empty($attr5_array)) { //geht nicht: @@ -216,16 +222,17 @@ // Vergleich auf Vorhandensein elseif ( isset($attr3_present) ) { - if ( !isset($$attr3_present) ) - $exec = false; - elseif ( is_array($$attr3_present) ) - $exec = (count($$attr3_present)>0); - elseif ( is_bool($$attr3_present) ) - $exec = $$attr3_present; - elseif ( is_numeric($$attr3_present) ) - $exec = $$attr3_present>=0; - else - $exec = true; + $exec = isset($$attr3_present); +// if ( !isset($$attr3_present) ) +// $exec = false; +// elseif ( is_array($$attr3_present) ) +// $exec = (count($$attr3_present)>0); +// elseif ( is_bool($$attr3_present) ) +// $exec = $$attr3_present; +// elseif ( is_numeric($$attr3_present) ) +// $exec = $$attr3_present>=0; +// else +// $exec = true; } else @@ -237,6 +244,7 @@ } // Ergebnis umdrehen + // TODO: Bald ausbauen, stattdessen "not" verwenden. if ( !empty($attr3_invert) ) $exec = !$exec; @@ -302,16 +310,24 @@ if (isset($attr7_elementtype)) { ?><img src="<?php echo $image_dir.'icon_'.$attr7_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_url)) { ?><img src="<?php echo $attr7_url ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_fileext)) { +?><img src="<?php echo $image_dir.$attr7_fileext ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_file)) { ?><img src="<?php echo $image_dir.$attr7_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php } ?><?php unset($attr7) ?><?php unset($attr7_align) ?><?php unset($attr7_type) ?><?php $attr7 = array('class'=>'text','raw'=>'_...') ?><?php $attr7_class='text' ?><?php $attr7_raw='_...' ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + if(empty($attr7_title)) if (!empty($attr7_key)) - $attr7_title = lang($attr7_key).'_HELP'; + $attr7_title = lang($attr7_key.'_HELP'); else $attr7_title = ''; ?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php $attr7_title = ''; + if (!empty($attr7_array)) { //geht nicht: @@ -380,14 +396,20 @@ if (isset($attr7_elementtype)) { $attr4['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_class) ?><?php $attr5 = array('class'=>'text','text'=>'GLOBAL_TYPE') ?><?php $attr5_class='text' ?><?php $attr5_text='GLOBAL_TYPE' ?><?php + if ( isset($attr5_prefix)&& isset($attr5_key)) + $attr5_key = $attr5_prefix.$attr5_key; + if ( isset($attr5_suffix)&& isset($attr5_key)) + $attr5_key = $attr5_key.$attr5_suffix; + if(empty($attr5_title)) if (!empty($attr5_key)) - $attr5_title = lang($attr5_key).'_HELP'; + $attr5_title = lang($attr5_key.'_HELP'); else $attr5_title = ''; ?><span class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php $attr5_title = ''; + if (!empty($attr5_array)) { //geht nicht: @@ -424,14 +446,20 @@ if (isset($attr7_elementtype)) { echo $tmp_text; ?></span><?php unset($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_text) ?><?php $attr5 = array('class'=>'text','raw'=>'_/_') ?><?php $attr5_class='text' ?><?php $attr5_raw='_/_' ?><?php + if ( isset($attr5_prefix)&& isset($attr5_key)) + $attr5_key = $attr5_prefix.$attr5_key; + if ( isset($attr5_suffix)&& isset($attr5_key)) + $attr5_key = $attr5_key.$attr5_suffix; + if(empty($attr5_title)) if (!empty($attr5_key)) - $attr5_title = lang($attr5_key).'_HELP'; + $attr5_title = lang($attr5_key.'_HELP'); else $attr5_title = ''; ?><span class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php $attr5_title = ''; + if (!empty($attr5_array)) { //geht nicht: @@ -468,14 +496,20 @@ if (isset($attr7_elementtype)) { echo $tmp_text; ?></span><?php unset($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_raw) ?><?php $attr5 = array('class'=>'text','text'=>'GLOBAL_NAME') ?><?php $attr5_class='text' ?><?php $attr5_text='GLOBAL_NAME' ?><?php + if ( isset($attr5_prefix)&& isset($attr5_key)) + $attr5_key = $attr5_prefix.$attr5_key; + if ( isset($attr5_suffix)&& isset($attr5_key)) + $attr5_key = $attr5_key.$attr5_suffix; + if(empty($attr5_title)) if (!empty($attr5_key)) - $attr5_title = lang($attr5_key).'_HELP'; + $attr5_title = lang($attr5_key.'_HELP'); else $attr5_title = ''; ?><span class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php $attr5_title = ''; + if (!empty($attr5_array)) { //geht nicht: @@ -527,14 +561,20 @@ if (isset($attr7_elementtype)) { $attr4['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_class) ?><?php $attr5 = array('class'=>'text','text'=>'GLOBAL_LASTCHANGE') ?><?php $attr5_class='text' ?><?php $attr5_text='GLOBAL_LASTCHANGE' ?><?php + if ( isset($attr5_prefix)&& isset($attr5_key)) + $attr5_key = $attr5_prefix.$attr5_key; + if ( isset($attr5_suffix)&& isset($attr5_key)) + $attr5_key = $attr5_key.$attr5_suffix; + if(empty($attr5_title)) if (!empty($attr5_key)) - $attr5_title = lang($attr5_key).'_HELP'; + $attr5_title = lang($attr5_key.'_HELP'); else $attr5_title = ''; ?><span class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php $attr5_title = ''; + if (!empty($attr5_array)) { //geht nicht: @@ -634,16 +674,24 @@ if (isset($attr7_elementtype)) { ?><img src="<?php echo $image_dir.'icon_'.$attr7_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_url)) { ?><img src="<?php echo $attr7_url ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_fileext)) { +?><img src="<?php echo $image_dir.$attr7_fileext ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_file)) { ?><img src="<?php echo $image_dir.$attr7_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php } ?><?php unset($attr7) ?><?php unset($attr7_align) ?><?php unset($attr7_type) ?><?php $attr7 = array('class'=>'text','text'=>$name) ?><?php $attr7_class='text' ?><?php $attr7_text=$name ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + if(empty($attr7_title)) if (!empty($attr7_key)) - $attr7_title = lang($attr7_key).'_HELP'; + $attr7_title = lang($attr7_key.'_HELP'); else $attr7_title = ''; ?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php $attr7_title = ''; + if (!empty($attr7_array)) { //geht nicht: @@ -680,14 +728,20 @@ if (isset($attr7_elementtype)) { echo $tmp_text; ?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_text) ?><?php $attr7 = array('class'=>'text','raw'=>'_') ?><?php $attr7_class='text' ?><?php $attr7_raw='_' ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + if(empty($attr7_title)) if (!empty($attr7_key)) - $attr7_title = lang($attr7_key).'_HELP'; + $attr7_title = lang($attr7_key.'_HELP'); else $attr7_title = ''; ?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php $attr7_title = ''; + if (!empty($attr7_array)) { //geht nicht: @@ -739,14 +793,20 @@ if (isset($attr7_elementtype)) { $attr5['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('class'=>'text','var'=>'date') ?><?php $attr6_class='text' ?><?php $attr6_var='date' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + if(empty($attr6_title)) if (!empty($attr6_key)) - $attr6_title = lang($attr6_key).'_HELP'; + $attr6_title = lang($attr6_key.'_HELP'); else $attr6_title = ''; ?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php $attr6_title = ''; + if (!empty($attr6_array)) { //geht nicht: @@ -827,16 +887,17 @@ if (isset($attr7_elementtype)) { // Vergleich auf Vorhandensein elseif ( isset($attr3_present) ) { - if ( !isset($$attr3_present) ) - $exec = false; - elseif ( is_array($$attr3_present) ) - $exec = (count($$attr3_present)>0); - elseif ( is_bool($$attr3_present) ) - $exec = $$attr3_present; - elseif ( is_numeric($$attr3_present) ) - $exec = $$attr3_present>=0; - else - $exec = true; + $exec = isset($$attr3_present); +// if ( !isset($$attr3_present) ) +// $exec = false; +// elseif ( is_array($$attr3_present) ) +// $exec = (count($$attr3_present)>0); +// elseif ( is_bool($$attr3_present) ) +// $exec = $$attr3_present; +// elseif ( is_numeric($$attr3_present) ) +// $exec = $$attr3_present>=0; +// else +// $exec = true; } else @@ -848,6 +909,7 @@ if (isset($attr7_elementtype)) { } // Ergebnis umdrehen + // TODO: Bald ausbauen, stattdessen "not" verwenden. if ( !empty($attr3_invert) ) $exec = !$exec; @@ -900,14 +962,20 @@ if (isset($attr7_elementtype)) { $attr5['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_colspan) ?><?php $attr6 = array('class'=>'text','text'=>'GLOBAL_NOT_FOUND') ?><?php $attr6_class='text' ?><?php $attr6_text='GLOBAL_NOT_FOUND' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + if(empty($attr6_title)) if (!empty($attr6_key)) - $attr6_title = lang($attr6_key).'_HELP'; + $attr6_title = lang($attr6_key.'_HELP'); else $attr6_title = ''; ?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php $attr6_title = ''; + if (!empty($attr6_array)) { //geht nicht: diff --git a/themes/default/pages/html/index/projectmenu.tpl.php b/themes/default/pages/html/index/projectmenu.tpl.php @@ -191,16 +191,24 @@ if (isset($attr7_elementtype)) { ?><img src="<?php echo $image_dir.'icon_'.$attr7_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_url)) { ?><img src="<?php echo $attr7_url ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_fileext)) { +?><img src="<?php echo $image_dir.$attr7_fileext ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_file)) { ?><img src="<?php echo $image_dir.$attr7_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php } ?><?php unset($attr7) ?><?php unset($attr7_align) ?><?php unset($attr7_type) ?><?php $attr7 = array('class'=>'text','var'=>'name') ?><?php $attr7_class='text' ?><?php $attr7_var='name' ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + if(empty($attr7_title)) if (!empty($attr7_key)) - $attr7_title = lang($attr7_key).'_HELP'; + $attr7_title = lang($attr7_key.'_HELP'); else $attr7_title = ''; ?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php $attr7_title = ''; + if (!empty($attr7_array)) { //geht nicht: diff --git a/themes/default/pages/html/index/showlogin.tpl.php b/themes/default/pages/html/index/showlogin.tpl.php @@ -161,16 +161,17 @@ // Vergleich auf Vorhandensein elseif ( isset($attr4_present) ) { - if ( !isset($$attr4_present) ) - $exec = false; - elseif ( is_array($$attr4_present) ) - $exec = (count($$attr4_present)>0); - elseif ( is_bool($$attr4_present) ) - $exec = $$attr4_present; - elseif ( is_numeric($$attr4_present) ) - $exec = $$attr4_present>=0; - else - $exec = true; + $exec = isset($$attr4_present); +// if ( !isset($$attr4_present) ) +// $exec = false; +// elseif ( is_array($$attr4_present) ) +// $exec = (count($$attr4_present)>0); +// elseif ( is_bool($$attr4_present) ) +// $exec = $$attr4_present; +// elseif ( is_numeric($$attr4_present) ) +// $exec = $$attr4_present>=0; +// else +// $exec = true; } else @@ -182,6 +183,7 @@ } // Ergebnis umdrehen + // TODO: Bald ausbauen, stattdessen "not" verwenden. if ( !empty($attr4_invert) ) $exec = !$exec; @@ -249,16 +251,17 @@ // Vergleich auf Vorhandensein elseif ( isset($attr5_present) ) { - if ( !isset($$attr5_present) ) - $exec = false; - elseif ( is_array($$attr5_present) ) - $exec = (count($$attr5_present)>0); - elseif ( is_bool($$attr5_present) ) - $exec = $$attr5_present; - elseif ( is_numeric($$attr5_present) ) - $exec = $$attr5_present>=0; - else - $exec = true; + $exec = isset($$attr5_present); +// if ( !isset($$attr5_present) ) +// $exec = false; +// elseif ( is_array($$attr5_present) ) +// $exec = (count($$attr5_present)>0); +// elseif ( is_bool($$attr5_present) ) +// $exec = $$attr5_present; +// elseif ( is_numeric($$attr5_present) ) +// $exec = $$attr5_present>=0; +// else +// $exec = true; } else @@ -270,6 +273,7 @@ } // Ergebnis umdrehen + // TODO: Bald ausbauen, stattdessen "not" verwenden. if ( !empty($attr5_invert) ) $exec = !$exec; @@ -366,16 +370,17 @@ // Vergleich auf Vorhandensein elseif ( isset($attr8_present) ) { - if ( !isset($$attr8_present) ) - $exec = false; - elseif ( is_array($$attr8_present) ) - $exec = (count($$attr8_present)>0); - elseif ( is_bool($$attr8_present) ) - $exec = $$attr8_present; - elseif ( is_numeric($$attr8_present) ) - $exec = $$attr8_present>=0; - else - $exec = true; + $exec = isset($$attr8_present); +// if ( !isset($$attr8_present) ) +// $exec = false; +// elseif ( is_array($$attr8_present) ) +// $exec = (count($$attr8_present)>0); +// elseif ( is_bool($$attr8_present) ) +// $exec = $$attr8_present; +// elseif ( is_numeric($$attr8_present) ) +// $exec = $$attr8_present>=0; +// else +// $exec = true; } else @@ -387,6 +392,7 @@ } // Ergebnis umdrehen + // TODO: Bald ausbauen, stattdessen "not" verwenden. if ( !empty($attr8_invert) ) $exec = !$exec; @@ -423,6 +429,8 @@ if (isset($attr10_elementtype)) { ?><img src="<?php echo $image_dir.'icon_'.$attr10_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr10_align ?>"><?php } elseif (isset($attr10_url)) { ?><img src="<?php echo $attr10_url ?>" border="0" align="<?php echo $attr10_align ?>"><?php +} elseif (isset($attr10_fileext)) { +?><img src="<?php echo $image_dir.$attr10_fileext ?>" border="0" align="<?php echo $attr10_align ?>"><?php } elseif (isset($attr10_file)) { ?><img src="<?php echo $image_dir.$attr10_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr10_align ?>"><?php } ?><?php unset($attr10) ?><?php unset($attr10_url) ?><?php unset($attr10_align) ?><?php $attr8 = array() ?></a><?php unset($attr8) ?><?php $attr7 = array() ?><?php } @@ -472,16 +480,17 @@ if (isset($attr10_elementtype)) { // Vergleich auf Vorhandensein elseif ( isset($attr8_present) ) { - if ( !isset($$attr8_present) ) - $exec = false; - elseif ( is_array($$attr8_present) ) - $exec = (count($$attr8_present)>0); - elseif ( is_bool($$attr8_present) ) - $exec = $$attr8_present; - elseif ( is_numeric($$attr8_present) ) - $exec = $$attr8_present>=0; - else - $exec = true; + $exec = isset($$attr8_present); +// if ( !isset($$attr8_present) ) +// $exec = false; +// elseif ( is_array($$attr8_present) ) +// $exec = (count($$attr8_present)>0); +// elseif ( is_bool($$attr8_present) ) +// $exec = $$attr8_present; +// elseif ( is_numeric($$attr8_present) ) +// $exec = $$attr8_present>=0; +// else +// $exec = true; } else @@ -493,6 +502,7 @@ if (isset($attr10_elementtype)) { } // Ergebnis umdrehen + // TODO: Bald ausbauen, stattdessen "not" verwenden. if ( !empty($attr8_invert) ) $exec = !$exec; @@ -524,6 +534,8 @@ if (isset($attr9_elementtype)) { ?><img src="<?php echo $image_dir.'icon_'.$attr9_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php } elseif (isset($attr9_url)) { ?><img src="<?php echo $attr9_url ?>" border="0" align="<?php echo $attr9_align ?>"><?php +} elseif (isset($attr9_fileext)) { +?><img src="<?php echo $image_dir.$attr9_fileext ?>" border="0" align="<?php echo $attr9_align ?>"><?php } elseif (isset($attr9_file)) { ?><img src="<?php echo $image_dir.$attr9_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php } ?><?php unset($attr9) ?><?php unset($attr9_url) ?><?php unset($attr9_align) ?><?php $attr7 = array() ?><?php } @@ -579,16 +591,17 @@ if (isset($attr9_elementtype)) { // Vergleich auf Vorhandensein elseif ( isset($attr4_present) ) { - if ( !isset($$attr4_present) ) - $exec = false; - elseif ( is_array($$attr4_present) ) - $exec = (count($$attr4_present)>0); - elseif ( is_bool($$attr4_present) ) - $exec = $$attr4_present; - elseif ( is_numeric($$attr4_present) ) - $exec = $$attr4_present>=0; - else - $exec = true; + $exec = isset($$attr4_present); +// if ( !isset($$attr4_present) ) +// $exec = false; +// elseif ( is_array($$attr4_present) ) +// $exec = (count($$attr4_present)>0); +// elseif ( is_bool($$attr4_present) ) +// $exec = $$attr4_present; +// elseif ( is_numeric($$attr4_present) ) +// $exec = $$attr4_present>=0; +// else +// $exec = true; } else @@ -600,6 +613,7 @@ if (isset($attr9_elementtype)) { } // Ergebnis umdrehen + // TODO: Bald ausbauen, stattdessen "not" verwenden. if ( !empty($attr4_invert) ) $exec = !$exec; @@ -652,14 +666,20 @@ if (isset($attr9_elementtype)) { $attr6['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_colspan) ?><?php $attr7 = array('class'=>'text','raw'=>$conf['login']['motd']) ?><?php $attr7_class='text' ?><?php $attr7_raw=$conf['login']['motd'] ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + if(empty($attr7_title)) if (!empty($attr7_key)) - $attr7_title = lang($attr7_key).'_HELP'; + $attr7_title = lang($attr7_key.'_HELP'); else $attr7_title = ''; ?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php $attr7_title = ''; + if (!empty($attr7_array)) { //geht nicht: @@ -743,16 +763,17 @@ if (isset($attr9_elementtype)) { // Vergleich auf Vorhandensein elseif ( isset($attr4_present) ) { - if ( !isset($$attr4_present) ) - $exec = false; - elseif ( is_array($$attr4_present) ) - $exec = (count($$attr4_present)>0); - elseif ( is_bool($$attr4_present) ) - $exec = $$attr4_present; - elseif ( is_numeric($$attr4_present) ) - $exec = $$attr4_present>=0; - else - $exec = true; + $exec = isset($$attr4_present); +// if ( !isset($$attr4_present) ) +// $exec = false; +// elseif ( is_array($$attr4_present) ) +// $exec = (count($$attr4_present)>0); +// elseif ( is_bool($$attr4_present) ) +// $exec = $$attr4_present; +// elseif ( is_numeric($$attr4_present) ) +// $exec = $$attr4_present>=0; +// else +// $exec = true; } else @@ -764,6 +785,7 @@ if (isset($attr9_elementtype)) { } // Ergebnis umdrehen + // TODO: Bald ausbauen, stattdessen "not" verwenden. if ( !empty($attr4_invert) ) $exec = !$exec; @@ -816,14 +838,20 @@ if (isset($attr9_elementtype)) { $attr6['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_colspan) ?><?php $attr7 = array('class'=>'text','key'=>'LOGIN_NOLOGIN_DESC') ?><?php $attr7_class='text' ?><?php $attr7_key='LOGIN_NOLOGIN_DESC' ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + if(empty($attr7_title)) if (!empty($attr7_key)) - $attr7_title = lang($attr7_key).'_HELP'; + $attr7_title = lang($attr7_key.'_HELP'); else $attr7_title = ''; ?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php $attr7_title = ''; + if (!empty($attr7_array)) { //geht nicht: @@ -907,16 +935,17 @@ if (isset($attr9_elementtype)) { // Vergleich auf Vorhandensein elseif ( isset($attr4_present) ) { - if ( !isset($$attr4_present) ) - $exec = false; - elseif ( is_array($$attr4_present) ) - $exec = (count($$attr4_present)>0); - elseif ( is_bool($$attr4_present) ) - $exec = $$attr4_present; - elseif ( is_numeric($$attr4_present) ) - $exec = $$attr4_present>=0; - else - $exec = true; + $exec = isset($$attr4_present); +// if ( !isset($$attr4_present) ) +// $exec = false; +// elseif ( is_array($$attr4_present) ) +// $exec = (count($$attr4_present)>0); +// elseif ( is_bool($$attr4_present) ) +// $exec = $$attr4_present; +// elseif ( is_numeric($$attr4_present) ) +// $exec = $$attr4_present>=0; +// else +// $exec = true; } else @@ -928,6 +957,7 @@ if (isset($attr9_elementtype)) { } // Ergebnis umdrehen + // TODO: Bald ausbauen, stattdessen "not" verwenden. if ( !empty($attr4_invert) ) $exec = !$exec; @@ -980,14 +1010,20 @@ if (isset($attr9_elementtype)) { $attr6['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_colspan) ?><?php $attr7 = array('class'=>'text','key'=>'GLOBAL_READONLY_DESC') ?><?php $attr7_class='text' ?><?php $attr7_key='GLOBAL_READONLY_DESC' ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + if(empty($attr7_title)) if (!empty($attr7_key)) - $attr7_title = lang($attr7_key).'_HELP'; + $attr7_title = lang($attr7_key.'_HELP'); else $attr7_title = ''; ?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php $attr7_title = ''; + if (!empty($attr7_array)) { //geht nicht: @@ -1071,16 +1107,17 @@ if (isset($attr9_elementtype)) { // Vergleich auf Vorhandensein elseif ( isset($attr4_present) ) { - if ( !isset($$attr4_present) ) - $exec = false; - elseif ( is_array($$attr4_present) ) - $exec = (count($$attr4_present)>0); - elseif ( is_bool($$attr4_present) ) - $exec = $$attr4_present; - elseif ( is_numeric($$attr4_present) ) - $exec = $$attr4_present>=0; - else - $exec = true; + $exec = isset($$attr4_present); +// if ( !isset($$attr4_present) ) +// $exec = false; +// elseif ( is_array($$attr4_present) ) +// $exec = (count($$attr4_present)>0); +// elseif ( is_bool($$attr4_present) ) +// $exec = $$attr4_present; +// elseif ( is_numeric($$attr4_present) ) +// $exec = $$attr4_present>=0; +// else +// $exec = true; } else @@ -1092,6 +1129,7 @@ if (isset($attr9_elementtype)) { } // Ergebnis umdrehen + // TODO: Bald ausbauen, stattdessen "not" verwenden. if ( !empty($attr4_invert) ) $exec = !$exec; @@ -1144,14 +1182,20 @@ if (isset($attr9_elementtype)) { $attr6['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_colspan) ?><?php $attr7 = array('class'=>'text','key'=>'GLOBAL_NOPUBLISH_DESC') ?><?php $attr7_class='text' ?><?php $attr7_key='GLOBAL_NOPUBLISH_DESC' ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + if(empty($attr7_title)) if (!empty($attr7_key)) - $attr7_title = lang($attr7_key).'_HELP'; + $attr7_title = lang($attr7_key.'_HELP'); else $attr7_title = ''; ?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php $attr7_title = ''; + if (!empty($attr7_array)) { //geht nicht: @@ -1235,16 +1279,17 @@ if (isset($attr9_elementtype)) { // Vergleich auf Vorhandensein elseif ( isset($attr4_present) ) { - if ( !isset($$attr4_present) ) - $exec = false; - elseif ( is_array($$attr4_present) ) - $exec = (count($$attr4_present)>0); - elseif ( is_bool($$attr4_present) ) - $exec = $$attr4_present; - elseif ( is_numeric($$attr4_present) ) - $exec = $$attr4_present>=0; - else - $exec = true; + $exec = isset($$attr4_present); +// if ( !isset($$attr4_present) ) +// $exec = false; +// elseif ( is_array($$attr4_present) ) +// $exec = (count($$attr4_present)>0); +// elseif ( is_bool($$attr4_present) ) +// $exec = $$attr4_present; +// elseif ( is_numeric($$attr4_present) ) +// $exec = $$attr4_present>=0; +// else +// $exec = true; } else @@ -1256,6 +1301,7 @@ if (isset($attr9_elementtype)) { } // Ergebnis umdrehen + // TODO: Bald ausbauen, stattdessen "not" verwenden. if ( !empty($attr4_invert) ) $exec = !$exec; @@ -1337,14 +1383,20 @@ if (isset($attr9_elementtype)) { $attr6['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_width) ?><?php unset($attr6_class) ?><?php $attr7 = array('class'=>'text','key'=>'USER_USERNAME') ?><?php $attr7_class='text' ?><?php $attr7_key='USER_USERNAME' ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + if(empty($attr7_title)) if (!empty($attr7_key)) - $attr7_title = lang($attr7_key).'_HELP'; + $attr7_title = lang($attr7_key.'_HELP'); else $attr7_title = ''; ?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php $attr7_title = ''; + if (!empty($attr7_array)) { //geht nicht: @@ -1440,16 +1492,17 @@ if (isset($attr9_elementtype)) { // Vergleich auf Vorhandensein elseif ( isset($attr7_present) ) { - if ( !isset($$attr7_present) ) - $exec = false; - elseif ( is_array($$attr7_present) ) - $exec = (count($$attr7_present)>0); - elseif ( is_bool($$attr7_present) ) - $exec = $$attr7_present; - elseif ( is_numeric($$attr7_present) ) - $exec = $$attr7_present>=0; - else - $exec = true; + $exec = isset($$attr7_present); +// if ( !isset($$attr7_present) ) +// $exec = false; +// elseif ( is_array($$attr7_present) ) +// $exec = (count($$attr7_present)>0); +// elseif ( is_bool($$attr7_present) ) +// $exec = $$attr7_present; +// elseif ( is_numeric($$attr7_present) ) +// $exec = $$attr7_present>=0; +// else +// $exec = true; } else @@ -1461,6 +1514,7 @@ if (isset($attr9_elementtype)) { } // Ergebnis umdrehen + // TODO: Bald ausbauen, stattdessen "not" verwenden. if ( !empty($attr7_invert) ) $exec = !$exec; @@ -1483,21 +1537,27 @@ if (isset($attr9_elementtype)) { if ( $exec ) { -?><?php unset($attr7) ?><?php unset($attr7_not) ?><?php unset($attr7_present) ?><?php $attr8 = array('type'=>'text','name'=>'login_name','value'=>'','size'=>'25','maxlength'=>'256') ?><?php $attr8_type='text' ?><?php $attr8_name='login_name' ?><?php $attr8_value='' ?><?php $attr8_size='25' ?><?php $attr8_maxlength='256' ?><input id="id<?php echo $attr8_name ?>" name="<?php echo $attr8_name ?>" type="<?php echo $attr8_type ?>" size="<?php echo $attr8_size ?>" maxlength="<?php echo $attr8_maxlength ?>" class="<?php echo $attr8_class ?>" value="<?php echo isset($$attr8_name)?$$attr8_name:$attr8_default ?>" onxxxMouseOver="this.focus();" /><?php unset($attr8) ?><?php unset($attr8_type) ?><?php unset($attr8_name) ?><?php unset($attr8_value) ?><?php unset($attr8_size) ?><?php unset($attr8_maxlength) ?><?php $attr6 = array() ?><?php +?><?php unset($attr7) ?><?php unset($attr7_not) ?><?php unset($attr7_present) ?><?php $attr8 = array('type'=>'text','name'=>'login_name','value'=>'','size'=>'25','maxlength'=>'256') ?><?php $attr8_type='text' ?><?php $attr8_name='login_name' ?><?php $attr8_value='' ?><?php $attr8_size='25' ?><?php $attr8_maxlength='256' ?><input id="id_<?php echo $attr8_name ?>" name="<?php echo $attr8_name ?>" type="<?php echo $attr8_type ?>" size="<?php echo $attr8_size ?>" maxlength="<?php echo $attr8_maxlength ?>" class="<?php echo $attr8_class ?>" value="<?php echo isset($$attr8_name)?$$attr8_name:$attr8_default ?>" onxxxMouseOver="this.focus();" /><?php unset($attr8) ?><?php unset($attr8_type) ?><?php unset($attr8_name) ?><?php unset($attr8_value) ?><?php unset($attr8_size) ?><?php unset($attr8_maxlength) ?><?php $attr6 = array() ?><?php } ?><?php unset($attr6) ?><?php $attr7 = array() ?><?php if ( !$last_exec ) { -?><?php unset($attr7) ?><?php $attr8 = array('type'=>'hidden','name'=>'login_name','value'=>$force_username,'size'=>'40','maxlength'=>'256') ?><?php $attr8_type='hidden' ?><?php $attr8_name='login_name' ?><?php $attr8_value=$force_username ?><?php $attr8_size='40' ?><?php $attr8_maxlength='256' ?><input id="id<?php echo $attr8_name ?>" name="<?php echo $attr8_name ?>" type="<?php echo $attr8_type ?>" size="<?php echo $attr8_size ?>" maxlength="<?php echo $attr8_maxlength ?>" class="<?php echo $attr8_class ?>" value="<?php echo isset($$attr8_name)?$$attr8_name:$attr8_default ?>" onxxxMouseOver="this.focus();" /><?php unset($attr8) ?><?php unset($attr8_type) ?><?php unset($attr8_name) ?><?php unset($attr8_value) ?><?php unset($attr8_size) ?><?php unset($attr8_maxlength) ?><?php $attr8 = array('class'=>'text','value'=>$force_username) ?><?php $attr8_class='text' ?><?php $attr8_value=$force_username ?><?php +?><?php unset($attr7) ?><?php $attr8 = array('type'=>'hidden','name'=>'login_name','value'=>$force_username,'size'=>'40','maxlength'=>'256') ?><?php $attr8_type='hidden' ?><?php $attr8_name='login_name' ?><?php $attr8_value=$force_username ?><?php $attr8_size='40' ?><?php $attr8_maxlength='256' ?><input id="id_<?php echo $attr8_name ?>" name="<?php echo $attr8_name ?>" type="<?php echo $attr8_type ?>" size="<?php echo $attr8_size ?>" maxlength="<?php echo $attr8_maxlength ?>" class="<?php echo $attr8_class ?>" value="<?php echo isset($$attr8_name)?$$attr8_name:$attr8_default ?>" onxxxMouseOver="this.focus();" /><?php unset($attr8) ?><?php unset($attr8_type) ?><?php unset($attr8_name) ?><?php unset($attr8_value) ?><?php unset($attr8_size) ?><?php unset($attr8_maxlength) ?><?php $attr8 = array('class'=>'text','value'=>$force_username) ?><?php $attr8_class='text' ?><?php $attr8_value=$force_username ?><?php + if ( isset($attr8_prefix)&& isset($attr8_key)) + $attr8_key = $attr8_prefix.$attr8_key; + if ( isset($attr8_suffix)&& isset($attr8_key)) + $attr8_key = $attr8_key.$attr8_suffix; + if(empty($attr8_title)) if (!empty($attr8_key)) - $attr8_title = lang($attr8_key).'_HELP'; + $attr8_title = lang($attr8_key.'_HELP'); else $attr8_title = ''; ?><span class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php $attr8_title = ''; + if (!empty($attr8_array)) { //geht nicht: @@ -1565,14 +1625,20 @@ if (isset($attr9_elementtype)) { $attr6['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_width) ?><?php unset($attr6_class) ?><?php $attr7 = array('class'=>'text','key'=>'USER_PASSWORD') ?><?php $attr7_class='text' ?><?php $attr7_key='USER_PASSWORD' ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + if(empty($attr7_title)) if (!empty($attr7_key)) - $attr7_title = lang($attr7_key).'_HELP'; + $attr7_title = lang($attr7_key.'_HELP'); else $attr7_title = ''; ?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php $attr7_title = ''; + if (!empty($attr7_array)) { //geht nicht: @@ -1668,16 +1734,17 @@ if (isset($attr9_elementtype)) { // Vergleich auf Vorhandensein elseif ( isset($attr5_present) ) { - if ( !isset($$attr5_present) ) - $exec = false; - elseif ( is_array($$attr5_present) ) - $exec = (count($$attr5_present)>0); - elseif ( is_bool($$attr5_present) ) - $exec = $$attr5_present; - elseif ( is_numeric($$attr5_present) ) - $exec = $$attr5_present>=0; - else - $exec = true; + $exec = isset($$attr5_present); +// if ( !isset($$attr5_present) ) +// $exec = false; +// elseif ( is_array($$attr5_present) ) +// $exec = (count($$attr5_present)>0); +// elseif ( is_bool($$attr5_present) ) +// $exec = $$attr5_present; +// elseif ( is_numeric($$attr5_present) ) +// $exec = $$attr5_present>=0; +// else +// $exec = true; } else @@ -1689,6 +1756,7 @@ if (isset($attr9_elementtype)) { } // Ergebnis umdrehen + // TODO: Bald ausbauen, stattdessen "not" verwenden. if ( !empty($attr5_invert) ) $exec = !$exec; @@ -1741,14 +1809,20 @@ if (isset($attr9_elementtype)) { $attr7['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr7 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr7) ?><?php unset($attr7_width) ?><?php unset($attr7_class) ?><?php $attr8 = array('class'=>'text','key'=>'USER_NEW_PASSWORD') ?><?php $attr8_class='text' ?><?php $attr8_key='USER_NEW_PASSWORD' ?><?php + if ( isset($attr8_prefix)&& isset($attr8_key)) + $attr8_key = $attr8_prefix.$attr8_key; + if ( isset($attr8_suffix)&& isset($attr8_key)) + $attr8_key = $attr8_key.$attr8_suffix; + if(empty($attr8_title)) if (!empty($attr8_key)) - $attr8_title = lang($attr8_key).'_HELP'; + $attr8_title = lang($attr8_key.'_HELP'); else $attr8_title = ''; ?><span class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php $attr8_title = ''; + if (!empty($attr8_array)) { //geht nicht: @@ -1829,14 +1903,20 @@ if (isset($attr9_elementtype)) { $attr7['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr7 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr7) ?><?php unset($attr7_width) ?><?php unset($attr7_class) ?><?php $attr8 = array('class'=>'text','key'=>'USER_NEW_PASSWORD_REPEAT') ?><?php $attr8_class='text' ?><?php $attr8_key='USER_NEW_PASSWORD_REPEAT' ?><?php + if ( isset($attr8_prefix)&& isset($attr8_key)) + $attr8_key = $attr8_prefix.$attr8_key; + if ( isset($attr8_suffix)&& isset($attr8_key)) + $attr8_key = $attr8_key.$attr8_suffix; + if(empty($attr8_title)) if (!empty($attr8_key)) - $attr8_title = lang($attr8_key).'_HELP'; + $attr8_title = lang($attr8_key.'_HELP'); else $attr8_title = ''; ?><span class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php $attr8_title = ''; + if (!empty($attr8_array)) { //geht nicht: @@ -1920,14 +2000,20 @@ if (isset($attr9_elementtype)) { $attr6['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_width) ?><?php unset($attr6_class) ?><?php $attr7 = array('class'=>'text','key'=>'GLOBAL_DATABASE') ?><?php $attr7_class='text' ?><?php $attr7_key='GLOBAL_DATABASE' ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + if(empty($attr7_title)) if (!empty($attr7_key)) - $attr7_title = lang($attr7_key).'_HELP'; + $attr7_title = lang($attr7_key.'_HELP'); else $attr7_title = ''; ?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php $attr7_title = ''; + if (!empty($attr7_array)) { //geht nicht: @@ -1978,7 +2064,7 @@ if (isset($attr9_elementtype)) { if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) ) $attr6['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_width) ?><?php unset($attr6_class) ?><?php $attr7 = array('list'=>'dbids','name'=>'dbid','default'=>'actdbid') ?><?php $attr7_list='dbids' ?><?php $attr7_name='dbid' ?><?php $attr7_default='actdbid' ?><select size="1" id="id<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" onchange="<?php echo $attr7_onchange ?>" title="<?php echo $attr7_title ?>" class="<?php echo $attr7_class ?>"<?php +?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_width) ?><?php unset($attr6_class) ?><?php $attr7 = array('list'=>'dbids','name'=>'dbid','default'=>'actdbid') ?><?php $attr7_list='dbids' ?><?php $attr7_name='dbid' ?><?php $attr7_default='actdbid' ?><select size="1" id="id_<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" onchange="<?php echo $attr7_onchange ?>" title="<?php echo $attr7_title ?>" class="<?php echo $attr7_class ?>"<?php if (count($$attr7_list)==1) echo ' disabled="disabled"' ?>><?php foreach( $$attr7_list as $box_key=>$box_value ) @@ -2057,14 +2143,20 @@ document.forms[0].screenwidth.value=window.innerWidth; else $tmp_url = Html::url($attr2_action,$attr2_subaction,!empty($$attr2_id)?$$attr2_id:$this->getRequestId(),array(!empty($var1)?$var1:'asdf'=>!empty($value1)?$$value1:'')); ?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr2_class ?>" target="<?php echo $attr2_target ?>" title="<?php echo $attr2_title ?>"><?php unset($attr2) ?><?php unset($attr2_target) ?><?php unset($attr2_url) ?><?php $attr3 = array('class'=>'text','value'=>lang('GLOBAL_GPL')) ?><?php $attr3_class='text' ?><?php $attr3_value=lang('GLOBAL_GPL') ?><?php + if ( isset($attr3_prefix)&& isset($attr3_key)) + $attr3_key = $attr3_prefix.$attr3_key; + if ( isset($attr3_suffix)&& isset($attr3_key)) + $attr3_key = $attr3_key.$attr3_suffix; + if(empty($attr3_title)) if (!empty($attr3_key)) - $attr3_title = lang($attr3_key).'_HELP'; + $attr3_title = lang($attr3_key.'_HELP'); else $attr3_title = ''; ?><span class="<?php echo $attr3_class ?>" title="<?php echo $attr3_title ?>"><?php $attr3_title = ''; + if (!empty($attr3_array)) { //geht nicht: @@ -2145,16 +2237,17 @@ document.forms[0].screenwidth.value=window.innerWidth; // Vergleich auf Vorhandensein elseif ( isset($attr2_present) ) { - if ( !isset($$attr2_present) ) - $exec = false; - elseif ( is_array($$attr2_present) ) - $exec = (count($$attr2_present)>0); - elseif ( is_bool($$attr2_present) ) - $exec = $$attr2_present; - elseif ( is_numeric($$attr2_present) ) - $exec = $$attr2_present>=0; - else - $exec = true; + $exec = isset($$attr2_present); +// if ( !isset($$attr2_present) ) +// $exec = false; +// elseif ( is_array($$attr2_present) ) +// $exec = (count($$attr2_present)>0); +// elseif ( is_bool($$attr2_present) ) +// $exec = $$attr2_present; +// elseif ( is_numeric($$attr2_present) ) +// $exec = $$attr2_present>=0; +// else +// $exec = true; } else @@ -2166,6 +2259,7 @@ document.forms[0].screenwidth.value=window.innerWidth; } // Ergebnis umdrehen + // TODO: Bald ausbauen, stattdessen "not" verwenden. if ( !empty($attr2_invert) ) $exec = !$exec; diff --git a/themes/default/pages/html/mainmenu/show.tpl.php b/themes/default/pages/html/mainmenu/show.tpl.php @@ -86,6 +86,8 @@ if (isset($attr5_elementtype)) { ?><img src="<?php echo $image_dir.'icon_'.$attr5_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr5_align ?>"><?php } elseif (isset($attr5_url)) { ?><img src="<?php echo $attr5_url ?>" border="0" align="<?php echo $attr5_align ?>"><?php +} elseif (isset($attr5_fileext)) { +?><img src="<?php echo $image_dir.$attr5_fileext ?>" border="0" align="<?php echo $attr5_align ?>"><?php } elseif (isset($attr5_file)) { ?><img src="<?php echo $image_dir.$attr5_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr5_align ?>"><?php } ?><?php unset($attr5) ?><?php unset($attr5_align) ?><?php unset($attr5_type) ?><?php $attr5 = array('list'=>'path','extract'=>'1','key'=>'list_key','value'=>'xy') ?><?php $attr5_list='path' ?><?php $attr5_extract='1' ?><?php $attr5_key='list_key' ?><?php $attr5_value='xy' ?><?php $attr5_list_tmp_key = $attr5_key; @@ -114,14 +116,20 @@ if (isset($attr5_elementtype)) { else $tmp_url = Html::url($attr6_action,$attr6_subaction,!empty($$attr6_id)?$$attr6_id:$this->getRequestId(),array(!empty($var1)?$var1:'asdf'=>!empty($value1)?$$value1:'')); ?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr6_class ?>" target="<?php echo $attr6_target ?>" title="<?php echo $attr6_title ?>"><?php unset($attr6) ?><?php unset($attr6_title) ?><?php unset($attr6_target) ?><?php unset($attr6_url) ?><?php unset($attr6_class) ?><?php $attr7 = array('class'=>'text','maxlength'=>'20','value'=>$name) ?><?php $attr7_class='text' ?><?php $attr7_maxlength='20' ?><?php $attr7_value=$name ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + if(empty($attr7_title)) if (!empty($attr7_key)) - $attr7_title = lang($attr7_key).'_HELP'; + $attr7_title = lang($attr7_key.'_HELP'); else $attr7_title = ''; ?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php $attr7_title = ''; + if (!empty($attr7_array)) { //geht nicht: @@ -163,14 +171,20 @@ if (isset($attr5_elementtype)) { else echo "char error"; ?><?php unset($attr6) ?><?php unset($attr6_type) ?><?php $attr4 = array() ?><?php } ?><?php unset($attr4) ?><?php $attr5 = array('title'=>$text,'class'=>'title','text'=>$text) ?><?php $attr5_title=$text ?><?php $attr5_class='title' ?><?php $attr5_text=$text ?><?php + if ( isset($attr5_prefix)&& isset($attr5_key)) + $attr5_key = $attr5_prefix.$attr5_key; + if ( isset($attr5_suffix)&& isset($attr5_key)) + $attr5_key = $attr5_key.$attr5_suffix; + if(empty($attr5_title)) if (!empty($attr5_key)) - $attr5_title = lang($attr5_key).'_HELP'; + $attr5_title = lang($attr5_key.'_HELP'); else $attr5_title = ''; ?><span class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php $attr5_title = ''; + if (!empty($attr5_array)) { //geht nicht: @@ -256,6 +270,8 @@ if (isset($attr7_elementtype)) { ?><img src="<?php echo $image_dir.'icon_'.$attr7_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_url)) { ?><img src="<?php echo $attr7_url ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_fileext)) { +?><img src="<?php echo $image_dir.$attr7_fileext ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_file)) { ?><img src="<?php echo $image_dir.$attr7_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php } ?><?php unset($attr7) ?><?php unset($attr7_align) ?><?php unset($attr7_type) ?><?php $attr5 = array() ?></a><?php unset($attr5) ?><?php $attr4 = array() ?><?php } ?><?php unset($attr4) ?><?php $attr3 = array() ?></td><?php unset($attr3) ?><?php $attr2 = array() ?></tr><?php unset($attr2) ?><?php $attr3 = array() ?><?php $row_class_idx++; @@ -352,16 +368,17 @@ if (isset($attr7_elementtype)) { // Vergleich auf Vorhandensein elseif ( isset($attr6_present) ) { - if ( !isset($$attr6_present) ) - $exec = false; - elseif ( is_array($$attr6_present) ) - $exec = (count($$attr6_present)>0); - elseif ( is_bool($$attr6_present) ) - $exec = $$attr6_present; - elseif ( is_numeric($$attr6_present) ) - $exec = $$attr6_present>=0; - else - $exec = true; + $exec = isset($$attr6_present); +// if ( !isset($$attr6_present) ) +// $exec = false; +// elseif ( is_array($$attr6_present) ) +// $exec = (count($$attr6_present)>0); +// elseif ( is_bool($$attr6_present) ) +// $exec = $$attr6_present; +// elseif ( is_numeric($$attr6_present) ) +// $exec = $$attr6_present>=0; +// else +// $exec = true; } else @@ -373,6 +390,7 @@ if (isset($attr7_elementtype)) { } // Ergebnis umdrehen + // TODO: Bald ausbauen, stattdessen "not" verwenden. if ( !empty($attr6_invert) ) $exec = !$exec; @@ -401,14 +419,20 @@ if (isset($attr7_elementtype)) { else $tmp_url = Html::url($attr7_action,$attr7_subaction,!empty($$attr7_id)?$$attr7_id:$this->getRequestId(),array(!empty($var1)?$var1:'asdf'=>!empty($value1)?$$value1:'')); ?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr7_class ?>" target="<?php echo $attr7_target ?>" title="<?php echo $attr7_title ?>"><?php unset($attr7) ?><?php unset($attr7_title) ?><?php unset($attr7_target) ?><?php unset($attr7_url) ?><?php $attr8 = array('class'=>'text','var'=>'text') ?><?php $attr8_class='text' ?><?php $attr8_var='text' ?><?php + if ( isset($attr8_prefix)&& isset($attr8_key)) + $attr8_key = $attr8_prefix.$attr8_key; + if ( isset($attr8_suffix)&& isset($attr8_key)) + $attr8_key = $attr8_key.$attr8_suffix; + if(empty($attr8_title)) if (!empty($attr8_key)) - $attr8_title = lang($attr8_key).'_HELP'; + $attr8_title = lang($attr8_key.'_HELP'); else $attr8_title = ''; ?><span class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php $attr8_title = ''; + if (!empty($attr8_array)) { //geht nicht: @@ -492,16 +516,17 @@ if (isset($attr7_elementtype)) { // Vergleich auf Vorhandensein elseif ( isset($attr6_present) ) { - if ( !isset($$attr6_present) ) - $exec = false; - elseif ( is_array($$attr6_present) ) - $exec = (count($$attr6_present)>0); - elseif ( is_bool($$attr6_present) ) - $exec = $$attr6_present; - elseif ( is_numeric($$attr6_present) ) - $exec = $$attr6_present>=0; - else - $exec = true; + $exec = isset($$attr6_present); +// if ( !isset($$attr6_present) ) +// $exec = false; +// elseif ( is_array($$attr6_present) ) +// $exec = (count($$attr6_present)>0); +// elseif ( is_bool($$attr6_present) ) +// $exec = $$attr6_present; +// elseif ( is_numeric($$attr6_present) ) +// $exec = $$attr6_present>=0; +// else +// $exec = true; } else @@ -513,6 +538,7 @@ if (isset($attr7_elementtype)) { } // Ergebnis umdrehen + // TODO: Bald ausbauen, stattdessen "not" verwenden. if ( !empty($attr6_invert) ) $exec = !$exec; @@ -536,14 +562,20 @@ if (isset($attr7_elementtype)) { if ( $exec ) { ?><?php unset($attr6) ?><?php unset($attr6_empty) ?><?php $attr7 = array('class'=>'inactive','var'=>'text') ?><?php $attr7_class='inactive' ?><?php $attr7_var='text' ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + if(empty($attr7_title)) if (!empty($attr7_key)) - $attr7_title = lang($attr7_key).'_HELP'; + $attr7_title = lang($attr7_key.'_HELP'); else $attr7_title = ''; ?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php $attr7_title = ''; + if (!empty($attr7_array)) { //geht nicht: @@ -583,14 +615,20 @@ if (isset($attr7_elementtype)) { } ?><?php unset($attr5) ?><?php $attr6 = array('class'=>'text','raw'=>'__') ?><?php $attr6_class='text' ?><?php $attr6_raw='__' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + if(empty($attr6_title)) if (!empty($attr6_key)) - $attr6_title = lang($attr6_key).'_HELP'; + $attr6_title = lang($attr6_key.'_HELP'); else $attr6_title = ''; ?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php $attr6_title = ''; + if (!empty($attr6_array)) { //geht nicht: diff --git a/themes/default/pages/html/page/el.tpl.php b/themes/default/pages/html/page/el.tpl.php @@ -143,16 +143,17 @@ // Vergleich auf Vorhandensein elseif ( isset($attr3_present) ) { - if ( !isset($$attr3_present) ) - $exec = false; - elseif ( is_array($$attr3_present) ) - $exec = (count($$attr3_present)>0); - elseif ( is_bool($$attr3_present) ) - $exec = $$attr3_present; - elseif ( is_numeric($$attr3_present) ) - $exec = $$attr3_present>=0; - else - $exec = true; + $exec = isset($$attr3_present); +// if ( !isset($$attr3_present) ) +// $exec = false; +// elseif ( is_array($$attr3_present) ) +// $exec = (count($$attr3_present)>0); +// elseif ( is_bool($$attr3_present) ) +// $exec = $$attr3_present; +// elseif ( is_numeric($$attr3_present) ) +// $exec = $$attr3_present>=0; +// else +// $exec = true; } else @@ -164,6 +165,7 @@ } // Ergebnis umdrehen + // TODO: Bald ausbauen, stattdessen "not" verwenden. if ( !empty($attr3_invert) ) $exec = !$exec; @@ -216,14 +218,20 @@ $attr5['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('class'=>'text','text'=>'PAGE_ELEMENT_NAME') ?><?php $attr6_class='text' ?><?php $attr6_text='PAGE_ELEMENT_NAME' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + if(empty($attr6_title)) if (!empty($attr6_key)) - $attr6_title = lang($attr6_key).'_HELP'; + $attr6_title = lang($attr6_key.'_HELP'); else $attr6_title = ''; ?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php $attr6_title = ''; + if (!empty($attr6_array)) { //geht nicht: @@ -275,14 +283,20 @@ $attr5['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('class'=>'text','text'=>'PAGE_ELEMENT_VALUE') ?><?php $attr6_class='text' ?><?php $attr6_text='PAGE_ELEMENT_VALUE' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + if(empty($attr6_title)) if (!empty($attr6_key)) - $attr6_title = lang($attr6_key).'_HELP'; + $attr6_title = lang($attr6_key.'_HELP'); else $attr6_title = ''; ?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php $attr6_title = ''; + if (!empty($attr6_array)) { //geht nicht: @@ -334,14 +348,20 @@ $attr5['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('class'=>'text','text'=>'GLOBAL_ARCHIVE') ?><?php $attr6_class='text' ?><?php $attr6_text='GLOBAL_ARCHIVE' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + if(empty($attr6_title)) if (!empty($attr6_key)) - $attr6_title = lang($attr6_key).'_HELP'; + $attr6_title = lang($attr6_key.'_HELP'); else $attr6_title = ''; ?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php $attr6_title = ''; + if (!empty($attr6_array)) { //geht nicht: @@ -425,16 +445,17 @@ // Vergleich auf Vorhandensein elseif ( isset($attr3_present) ) { - if ( !isset($$attr3_present) ) - $exec = false; - elseif ( is_array($$attr3_present) ) - $exec = (count($$attr3_present)>0); - elseif ( is_bool($$attr3_present) ) - $exec = $$attr3_present; - elseif ( is_numeric($$attr3_present) ) - $exec = $$attr3_present>=0; - else - $exec = true; + $exec = isset($$attr3_present); +// if ( !isset($$attr3_present) ) +// $exec = false; +// elseif ( is_array($$attr3_present) ) +// $exec = (count($$attr3_present)>0); +// elseif ( is_bool($$attr3_present) ) +// $exec = $$attr3_present; +// elseif ( is_numeric($$attr3_present) ) +// $exec = $$attr3_present>=0; +// else +// $exec = true; } else @@ -446,6 +467,7 @@ } // Ergebnis umdrehen + // TODO: Bald ausbauen, stattdessen "not" verwenden. if ( !empty($attr3_invert) ) $exec = !$exec; @@ -498,14 +520,20 @@ $attr5['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6 = array('class'=>'text','text'=>'GLOBAL_NOT_FOUND') ?><?php $attr6_class='text' ?><?php $attr6_text='GLOBAL_NOT_FOUND' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + if(empty($attr6_title)) if (!empty($attr6_key)) - $attr6_title = lang($attr6_key).'_HELP'; + $attr6_title = lang($attr6_key.'_HELP'); else $attr6_title = ''; ?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php $attr6_title = ''; + if (!empty($attr6_array)) { //geht nicht: @@ -608,16 +636,24 @@ if (isset($attr7_elementtype)) { ?><img src="<?php echo $image_dir.'icon_'.$attr7_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_url)) { ?><img src="<?php echo $attr7_url ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_fileext)) { +?><img src="<?php echo $image_dir.$attr7_fileext ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_file)) { ?><img src="<?php echo $image_dir.$attr7_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php } ?><?php unset($attr7) ?><?php unset($attr7_align) ?><?php unset($attr7_elementtype) ?><?php $attr7 = array('class'=>'text','var'=>'name') ?><?php $attr7_class='text' ?><?php $attr7_var='name' ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + if(empty($attr7_title)) if (!empty($attr7_key)) - $attr7_title = lang($attr7_key).'_HELP'; + $attr7_title = lang($attr7_key.'_HELP'); else $attr7_title = ''; ?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php $attr7_title = ''; + if (!empty($attr7_array)) { //geht nicht: @@ -669,14 +705,20 @@ if (isset($attr7_elementtype)) { $attr5['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('class'=>'text','var'=>'value') ?><?php $attr6_class='text' ?><?php $attr6_var='value' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + if(empty($attr6_title)) if (!empty($attr6_key)) - $attr6_title = lang($attr6_key).'_HELP'; + $attr6_title = lang($attr6_key.'_HELP'); else $attr6_title = ''; ?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php $attr6_title = ''; + if (!empty($attr6_array)) { //geht nicht: @@ -713,14 +755,20 @@ if (isset($attr7_elementtype)) { echo $tmp_text; ?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_var) ?><?php $attr6 = array('class'=>'text','raw'=>'_') ?><?php $attr6_class='text' ?><?php $attr6_raw='_' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + if(empty($attr6_title)) if (!empty($attr6_key)) - $attr6_title = lang($attr6_key).'_HELP'; + $attr6_title = lang($attr6_key.'_HELP'); else $attr6_title = ''; ?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php $attr6_title = ''; + if (!empty($attr6_array)) { //geht nicht: @@ -777,14 +825,20 @@ if (isset($attr7_elementtype)) { else $tmp_url = Html::url($attr6_action,$attr6_subaction,!empty($$attr6_id)?$$attr6_id:$this->getRequestId(),array(!empty($var1)?$var1:'asdf'=>!empty($value1)?$$value1:'')); ?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr6_class ?>" target="<?php echo $attr6_target ?>" title="<?php echo $attr6_title ?>"><?php unset($attr6) ?><?php unset($attr6_target) ?><?php unset($attr6_url) ?><?php $attr7 = array('class'=>'text','text'=>'GLOBAL_ARCHIVE') ?><?php $attr7_class='text' ?><?php $attr7_text='GLOBAL_ARCHIVE' ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + if(empty($attr7_title)) if (!empty($attr7_key)) - $attr7_title = lang($attr7_key).'_HELP'; + $attr7_title = lang($attr7_key.'_HELP'); else $attr7_title = ''; ?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php $attr7_title = ''; + if (!empty($attr7_array)) { //geht nicht: @@ -821,14 +875,20 @@ if (isset($attr7_elementtype)) { echo $tmp_text; ?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_text) ?><?php $attr5 = array() ?></a><?php unset($attr5) ?><?php $attr6 = array('class'=>'text','raw'=>'_(') ?><?php $attr6_class='text' ?><?php $attr6_raw='_(' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + if(empty($attr6_title)) if (!empty($attr6_key)) - $attr6_title = lang($attr6_key).'_HELP'; + $attr6_title = lang($attr6_key.'_HELP'); else $attr6_title = ''; ?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php $attr6_title = ''; + if (!empty($attr6_array)) { //geht nicht: @@ -865,14 +925,20 @@ if (isset($attr7_elementtype)) { echo $tmp_text; ?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_raw) ?><?php $attr6 = array('class'=>'text','text'=>$archive_count) ?><?php $attr6_class='text' ?><?php $attr6_text=$archive_count ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + if(empty($attr6_title)) if (!empty($attr6_key)) - $attr6_title = lang($attr6_key).'_HELP'; + $attr6_title = lang($attr6_key.'_HELP'); else $attr6_title = ''; ?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php $attr6_title = ''; + if (!empty($attr6_array)) { //geht nicht: @@ -909,14 +975,20 @@ if (isset($attr7_elementtype)) { echo $tmp_text; ?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_text) ?><?php $attr6 = array('class'=>'text','raw'=>')') ?><?php $attr6_class='text' ?><?php $attr6_raw=')' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + if(empty($attr6_title)) if (!empty($attr6_key)) - $attr6_title = lang($attr6_key).'_HELP'; + $attr6_title = lang($attr6_key.'_HELP'); else $attr6_title = ''; ?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php $attr6_title = ''; + if (!empty($attr6_array)) { //geht nicht: @@ -982,14 +1054,20 @@ if (isset($attr7_elementtype)) { $attr4['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_class) ?><?php unset($attr4_colspan) ?><?php $attr5 = array('class'=>'text','text'=>'PAGE_ELEMENTS_DESC') ?><?php $attr5_class='text' ?><?php $attr5_text='PAGE_ELEMENTS_DESC' ?><?php + if ( isset($attr5_prefix)&& isset($attr5_key)) + $attr5_key = $attr5_prefix.$attr5_key; + if ( isset($attr5_suffix)&& isset($attr5_key)) + $attr5_key = $attr5_key.$attr5_suffix; + if(empty($attr5_title)) if (!empty($attr5_key)) - $attr5_title = lang($attr5_key).'_HELP'; + $attr5_title = lang($attr5_key.'_HELP'); else $attr5_title = ''; ?><span class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php $attr5_title = ''; + if (!empty($attr5_array)) { //geht nicht: @@ -1055,14 +1133,20 @@ if (isset($attr7_elementtype)) { $attr4['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_colspan) ?><?php $attr5 = array('class'=>'text','raw'=>'_') ?><?php $attr5_class='text' ?><?php $attr5_raw='_' ?><?php + if ( isset($attr5_prefix)&& isset($attr5_key)) + $attr5_key = $attr5_prefix.$attr5_key; + if ( isset($attr5_suffix)&& isset($attr5_key)) + $attr5_key = $attr5_key.$attr5_suffix; + if(empty($attr5_title)) if (!empty($attr5_key)) - $attr5_title = lang($attr5_key).'_HELP'; + $attr5_title = lang($attr5_key.'_HELP'); else $attr5_title = ''; ?><span class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php $attr5_title = ''; + if (!empty($attr5_array)) { //geht nicht: diff --git a/themes/default/pages/html/page/pub.tpl.php b/themes/default/pages/html/page/pub.tpl.php @@ -1,9 +1,9 @@ -<?php $attr-2082672713 = array('class'=>'main','title'=>$cms_title) ?><?php $attr-2082672713_class='main' ?><?php $attr-2082672713_title=$cms_title ?><?php header('Content-Type: text/html; charset='.lang('CHARSET')) +<?php $attr1 = array('class'=>'main','title'=>$cms_title) ?><?php $attr1_class='main' ?><?php $attr1_title=$cms_title ?><?php header('Content-Type: text/html; charset='.lang('CHARSET')) ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <!-- $Id$ --> <head> - <title><?php echo $attr-2082672713_title ?></title> + <title><?php echo $attr1_title ?></title> <meta http-equiv="content-type" content="text/html; charset=<?php echo lang('CHARSET') ?>" /> <meta name="MSSmartTagsPreventParsing" content="true" /> <meta name="robots" content="noindex,nofollow" /> @@ -20,50 +20,50 @@ <?php } ?> </head> -<body class="<?php echo $attr-2082672713_class ?>"> +<body class="<?php echo $attr1_class ?>"> -<?php unset($attr-2082672713) ?><?php unset($attr-2082672713_class) ?><?php unset($attr-2082672713_title) ?><?php $attr450215437 = array('target'=>'_self','method'=>'post','enctype'=>'application/x-www-form-urlencoded') ?><?php $attr450215437_target='_self' ?><?php $attr450215437_method='post' ?><?php $attr450215437_enctype='application/x-www-form-urlencoded' ?><?php - if (empty($attr450215437_action)) - $attr450215437_action = $actionName; - if (empty($attr450215437_subaction)) - $attr450215437_subaction = $targetSubActionName; - if (empty($attr450215437_id)) - $attr450215437_id = $this->getRequestId(); +<?php unset($attr1) ?><?php unset($attr1_class) ?><?php unset($attr1_title) ?><?php $attr2 = array('target'=>'_self','method'=>'post','enctype'=>'application/x-www-form-urlencoded') ?><?php $attr2_target='_self' ?><?php $attr2_method='post' ?><?php $attr2_enctype='application/x-www-form-urlencoded' ?><?php + if (empty($attr2_action)) + $attr2_action = $actionName; + if (empty($attr2_subaction)) + $attr2_subaction = $targetSubActionName; + if (empty($attr2_id)) + $attr2_id = $this->getRequestId(); -?><form name="<?php echo $attr450215437_name ?>" - target="<?php echo $attr450215437_target ?>" - action="<?php echo Html::url( $attr450215437_action,$attr450215437_subaction,$attr450215437_id ) ?>" - method="<?php echo $attr450215437_method ?>" - enctype="<?php echo $attr450215437_enctype ?>"> -<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $attr450215437_action ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $attr450215437_subaction ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr450215437_id ?>" /><?php +?><form name="<?php echo $attr2_name ?>" + target="<?php echo $attr2_target ?>" + action="<?php echo Html::url( $attr2_action,$attr2_subaction,$attr2_id ) ?>" + method="<?php echo $attr2_method ?>" + enctype="<?php echo $attr2_enctype ?>"> +<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $attr2_action ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $attr2_subaction ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr2_id ?>" /><?php if ( $conf['interface']['url_sessionid'] ) echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; -?><?php unset($attr450215437) ?><?php unset($attr450215437_target) ?><?php unset($attr450215437_method) ?><?php unset($attr450215437_enctype) ?><?php $attr1842515611 = array('width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr1842515611_width='93%' ?><?php $attr1842515611_rowclasses='odd,even' ?><?php $attr1842515611_columnclasses='1,2,3' ?><?php +?><?php unset($attr2) ?><?php unset($attr2_target) ?><?php unset($attr2_method) ?><?php unset($attr2_enctype) ?><?php $attr3 = array('width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr3_width='93%' ?><?php $attr3_rowclasses='odd,even' ?><?php $attr3_columnclasses='1,2,3' ?><?php $coloumn_widths=array(); - if (!empty($attr1842515611_widths)) + if (!empty($attr3_widths)) { - $column_widths = explode(',',$attr1842515611_widths); - unset($attr1842515611['widths']); + $column_widths = explode(',',$attr3_widths); + unset($attr3['widths']); } - if (!empty($attr1842515611_rowclasses)) + if (!empty($attr3_rowclasses)) { - $row_classes = explode(',',$attr1842515611_rowclasses); + $row_classes = explode(',',$attr3_rowclasses); $row_class_idx = 999; - unset($attr1842515611['rowclasses']); + unset($attr3['rowclasses']); } - if (!empty($attr1842515611_columnclasses)) + if (!empty($attr3_columnclasses)) { - $column_classes = explode(',',$attr1842515611_columnclasses); - unset($attr1842515611['columnclasses']); + $column_classes = explode(',',$attr3_columnclasses); + unset($attr3['columnclasses']); } global $image_dir; echo '<br/><br/><br/><center>'; - echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr1842515611_width.'">'; + echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr3_width.'">'; echo '<tr><td class="menu">'; - if ( !empty($attr1842515611_icon) ) - echo '<img src="'.$image_dir.'icon_'.$attr1842515611_icon.IMG_ICON_EXT.'" align="left" border="0">'; + if ( !empty($attr3_icon) ) + echo '<img src="'.$image_dir.'icon_'.$attr3_icon.IMG_ICON_EXT.'" align="left" border="0">'; if ( !is_array($path) ) $path = array(); foreach( $path as $pathElement) @@ -116,169 +116,181 @@ <tr> <td> - <table class="n" cellspacing="0" width="100%" cellpadding="4"><?php unset($attr1842515611) ?><?php unset($attr1842515611_width) ?><?php unset($attr1842515611_rowclasses) ?><?php unset($attr1842515611_columnclasses) ?><?php $attr-206169288 = array() ?><?php + <table class="n" cellspacing="0" width="100%" cellpadding="4"><?php unset($attr3) ?><?php unset($attr3_width) ?><?php unset($attr3_rowclasses) ?><?php unset($attr3_columnclasses) ?><?php $attr4 = array() ?><?php $row_class_idx++; if ($row_class_idx > count($row_classes)) $row_class_idx=1; $row_class=$row_classes[$row_class_idx-1]; - if (empty($attr-206169288_class)) - $attr-206169288_class=$row_class; + if (empty($attr4_class)) + $attr4_class=$row_class; global $cell_column_nr; $cell_column_nr=0; $column_class_idx = 999; -?><tr class="<?php echo $attr-206169288_class ?>"><?php unset($attr-206169288) ?><?php $attr-2068763730 = array('class'=>'fx') ?><?php $attr-2068763730_class='fx' ?><?php -// if (empty($attr-2068763730_class)) -// $attr-2068763730['class']=$row_class; +?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5 = array('class'=>'fx') ?><?php $attr5_class='fx' ?><?php +// if (empty($attr5_class)) +// $attr5['class']=$row_class; $column_class_idx++; if ($column_class_idx > count($column_classes)) $column_class_idx=1; $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr-2068763730_class)) - $attr-2068763730['class']=$column_class; + if (empty($attr5_class)) + $attr5['class']=$column_class; global $cell_column_nr; $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr-2068763730_rowspan) ) - $attr-2068763730['width']=$column_widths[$cell_column_nr-1]; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr-2068763730 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr-2068763730) ?><?php unset($attr-2068763730_class) ?><?php $attr498629140 = array('default'=>'','readonly'=>'','name'=>'files') ?><?php $attr498629140_default='' ?><?php $attr498629140_readonly='' ?><?php $attr498629140_name='files' ?><?php - $attr498629140_default = ( $attr498629140_default == true ); +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('default'=>'','readonly'=>'','name'=>'files') ?><?php $attr6_default='' ?><?php $attr6_readonly='' ?><?php $attr6_name='files' ?><?php + $attr6_default = ( $attr6_default == true ); - if ( isset($$attr498629140_name) ) - $checked = $$attr498629140_name == true; -// $checked = isset($$$attr498629140_name)&& $$$attr498629140_name==true; + if ( isset($$attr6_name) ) + $checked = $$attr6_name == true; +// $checked = isset($$$attr6_name)&& $$$attr6_name==true; else - $checked = $attr498629140_default == true; -?><input type="checkbox" name="<?php echo $attr498629140_name ?>" <?php if ($attr498629140_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php unset($attr498629140_name); unset($attr498629140_readonly); unset($attr498629140_default); ?><?php unset($attr498629140) ?><?php unset($attr498629140_default) ?><?php unset($attr498629140_readonly) ?><?php unset($attr498629140_name) ?><?php $attr498629140 = array('class'=>'text','raw'=>'_') ?><?php $attr498629140_class='text' ?><?php $attr498629140_raw='_' ?><?php - if(empty($attr498629140_title)) - if (!empty($attr498629140_key)) - $attr498629140_title = lang($attr498629140_key).'_HELP'; + $checked = $attr6_default == true; +?><input type="checkbox" id="id_<?php echo $attr6_name ?>" name="<?php echo $attr6_name ?>" <?php if ($attr6_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php unset($attr6_name); unset($attr6_readonly); unset($attr6_default); ?><?php unset($attr6) ?><?php unset($attr6_default) ?><?php unset($attr6_readonly) ?><?php unset($attr6_name) ?><?php $attr6 = array('class'=>'text','raw'=>'_') ?><?php $attr6_class='text' ?><?php $attr6_raw='_' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key.'_HELP'); else - $attr498629140_title = ''; + $attr6_title = ''; + +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; -?><span class="<?php echo $attr498629140_class ?>" title="<?php echo $attr498629140_title ?>"><?php - $attr498629140_title = ''; - if (!empty($attr498629140_array)) + if (!empty($attr6_array)) { //geht nicht: - //echo $$attr498629140_array[$attr498629140_var].'%'; - $tmpArray = $$attr498629140_array; - if (!empty($attr498629140_var)) - $tmp_text = $tmpArray[$attr498629140_var]; + //echo $$attr6_array[$attr6_var].'%'; + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; else - $tmp_text = lang($tmpArray[$attr498629140_text]); + $tmp_text = lang($tmpArray[$attr6_text]); } - elseif (!empty($attr498629140_text)) - if ( isset($$attr498629140_text)) - $tmp_text = lang($$attr498629140_text); + elseif (!empty($attr6_text)) + if ( isset($$attr6_text)) + $tmp_text = lang($$attr6_text); else - $tmp_text = lang($attr498629140_text); - elseif (!empty($attr498629140_textvar)) - $tmp_text = lang($$attr498629140_textvar); - elseif (!empty($attr498629140_key)) - $tmp_text = lang($attr498629140_key); - elseif (!empty($attr498629140_var)) - $tmp_text = isset($$attr498629140_var)?htmlentities($$attr498629140_var):'error: variable '.$attr498629140_var.' not present'; - elseif (!empty($attr498629140_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr498629140_raw); - elseif (!empty($attr498629140_value)) - $tmp_text = $attr498629140_value; + $tmp_text = lang($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = lang($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = lang($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; else { $tmp_text = '&nbsp;'; - //Html::debug($attr498629140);echo 'text error'; + //Html::debug($attr6);echo 'text error'; } - if ( !empty($attr498629140_maxlength) && intval($attr498629140_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr498629140_maxlength) ); + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); echo $tmp_text; -?></span><?php unset($attr498629140) ?><?php unset($attr498629140_class) ?><?php unset($attr498629140_raw) ?><?php $attr498629140 = array('class'=>'text','text'=>'global_files') ?><?php $attr498629140_class='text' ?><?php $attr498629140_text='global_files' ?><?php - if(empty($attr498629140_title)) - if (!empty($attr498629140_key)) - $attr498629140_title = lang($attr498629140_key).'_HELP'; +?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_raw) ?><?php $attr6 = array('class'=>'text','text'=>'global_files') ?><?php $attr6_class='text' ?><?php $attr6_text='global_files' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key.'_HELP'); else - $attr498629140_title = ''; + $attr6_title = ''; + +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; -?><span class="<?php echo $attr498629140_class ?>" title="<?php echo $attr498629140_title ?>"><?php - $attr498629140_title = ''; - if (!empty($attr498629140_array)) + if (!empty($attr6_array)) { //geht nicht: - //echo $$attr498629140_array[$attr498629140_var].'%'; - $tmpArray = $$attr498629140_array; - if (!empty($attr498629140_var)) - $tmp_text = $tmpArray[$attr498629140_var]; + //echo $$attr6_array[$attr6_var].'%'; + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; else - $tmp_text = lang($tmpArray[$attr498629140_text]); + $tmp_text = lang($tmpArray[$attr6_text]); } - elseif (!empty($attr498629140_text)) - if ( isset($$attr498629140_text)) - $tmp_text = lang($$attr498629140_text); + elseif (!empty($attr6_text)) + if ( isset($$attr6_text)) + $tmp_text = lang($$attr6_text); else - $tmp_text = lang($attr498629140_text); - elseif (!empty($attr498629140_textvar)) - $tmp_text = lang($$attr498629140_textvar); - elseif (!empty($attr498629140_key)) - $tmp_text = lang($attr498629140_key); - elseif (!empty($attr498629140_var)) - $tmp_text = isset($$attr498629140_var)?htmlentities($$attr498629140_var):'error: variable '.$attr498629140_var.' not present'; - elseif (!empty($attr498629140_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr498629140_raw); - elseif (!empty($attr498629140_value)) - $tmp_text = $attr498629140_value; + $tmp_text = lang($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = lang($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = lang($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; else { $tmp_text = '&nbsp;'; - //Html::debug($attr498629140);echo 'text error'; + //Html::debug($attr6);echo 'text error'; } - if ( !empty($attr498629140_maxlength) && intval($attr498629140_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr498629140_maxlength) ); + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); echo $tmp_text; -?></span><?php unset($attr498629140) ?><?php unset($attr498629140_class) ?><?php unset($attr498629140_text) ?><?php $attr498629140 = array() ?><br/><?php unset($attr498629140) ?><?php $attr-206169288 = array() ?></td><?php unset($attr-206169288) ?><?php $attr1842515611 = array() ?></tr><?php unset($attr1842515611) ?><?php $attr-206169288 = array() ?><?php +?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_text) ?><?php $attr6 = array() ?><br/><?php unset($attr6) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4 = array() ?><?php $row_class_idx++; if ($row_class_idx > count($row_classes)) $row_class_idx=1; $row_class=$row_classes[$row_class_idx-1]; - if (empty($attr-206169288_class)) - $attr-206169288_class=$row_class; + if (empty($attr4_class)) + $attr4_class=$row_class; global $cell_column_nr; $cell_column_nr=0; $column_class_idx = 999; -?><tr class="<?php echo $attr-206169288_class ?>"><?php unset($attr-206169288) ?><?php $attr-2068763730 = array('class'=>'act') ?><?php $attr-2068763730_class='act' ?><?php -// if (empty($attr-2068763730_class)) -// $attr-2068763730['class']=$row_class; +?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5 = array('class'=>'act') ?><?php $attr5_class='act' ?><?php +// if (empty($attr5_class)) +// $attr5['class']=$row_class; $column_class_idx++; if ($column_class_idx > count($column_classes)) $column_class_idx=1; $column_class=$column_classes[$column_class_idx-1]; - if (empty($attr-2068763730_class)) - $attr-2068763730['class']=$column_class; + if (empty($attr5_class)) + $attr5['class']=$column_class; global $cell_column_nr; $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr-2068763730_rowspan) ) - $attr-2068763730['width']=$column_widths[$cell_column_nr-1]; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr-2068763730 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr-2068763730) ?><?php unset($attr-2068763730_class) ?><?php $attr498629140 = array('type'=>'ok','class'=>'ok','value'=>'ok','text'=>'button_ok') ?><?php $attr498629140_type='ok' ?><?php $attr498629140_class='ok' ?><?php $attr498629140_value='ok' ?><?php $attr498629140_text='button_ok' ?><?php - if ($attr498629140_type=='ok') +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('type'=>'ok','class'=>'ok','value'=>'ok','text'=>'button_ok') ?><?php $attr6_type='ok' ?><?php $attr6_class='ok' ?><?php $attr6_value='ok' ?><?php $attr6_text='button_ok' ?><?php + if ($attr6_type=='ok') { - $attr498629140_type = 'submit'; -// $attr498629140_class = 'ok'; -// $attr498629140_text = 'BUTTON_OK'; -// $attr498629140_value = 'ok'; + $attr6_type = 'submit'; +// $attr6_class = 'ok'; +// $attr6_text = 'BUTTON_OK'; +// $attr6_value = 'ok'; } -?><input type="<?php echo $attr498629140_type ?>" name="<?php echo $attr498629140_value ?>" class="<?php echo $attr498629140_class ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo lang($attr498629140_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($attr498629140) ?><?php unset($attr498629140_type) ?><?php unset($attr498629140_class) ?><?php unset($attr498629140_value) ?><?php unset($attr498629140_text) ?><?php $attr-206169288 = array() ?></td><?php unset($attr-206169288) ?><?php $attr1842515611 = array() ?></tr><?php unset($attr1842515611) ?><?php $attr450215437 = array() ?> </table> +?><input type="<?php echo $attr6_type ?>" name="<?php echo $attr6_value ?>" class="<?php echo $attr6_class ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo lang($attr6_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($attr6) ?><?php unset($attr6_type) ?><?php unset($attr6_class) ?><?php unset($attr6_value) ?><?php unset($attr6_text) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr2 = array() ?> </table> </td> </tr> </table> @@ -292,9 +304,9 @@ <?php $dur = time()-START_TIME; echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small> <?php } ?> -<?php unset($attr450215437) ?><?php $attr-2082672713 = array() ?></form> +<?php unset($attr2) ?><?php $attr1 = array() ?></form> -<?php unset($attr-2082672713) ?><?php $attr-186917087 = array() ?> +<?php unset($attr1) ?><?php $attr0 = array() ?> <!-- $Id$ --> <?php if ($showDuration) { ?> @@ -305,4 +317,4 @@ <?php } ?> </body> -</html><?php unset($attr-186917087) ?>- \ No newline at end of file +</html><?php unset($attr0) ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/pageelement/archive.tpl.php b/themes/default/pages/html/pageelement/archive.tpl.php @@ -146,14 +146,20 @@ $attr5['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('class'=>'text','text'=>'GLOBAL_NR') ?><?php $attr6_class='text' ?><?php $attr6_text='GLOBAL_NR' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + if(empty($attr6_title)) if (!empty($attr6_key)) - $attr6_title = lang($attr6_key).'_HELP'; + $attr6_title = lang($attr6_key.'_HELP'); else $attr6_title = ''; ?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php $attr6_title = ''; + if (!empty($attr6_array)) { //geht nicht: @@ -205,14 +211,20 @@ $attr5['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_colspan) ?><?php $attr6 = array('class'=>'text','text'=>'GLOBAL_COMPARE') ?><?php $attr6_class='text' ?><?php $attr6_text='GLOBAL_COMPARE' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + if(empty($attr6_title)) if (!empty($attr6_key)) - $attr6_title = lang($attr6_key).'_HELP'; + $attr6_title = lang($attr6_key.'_HELP'); else $attr6_title = ''; ?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php $attr6_title = ''; + if (!empty($attr6_array)) { //geht nicht: @@ -264,14 +276,20 @@ $attr5['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('class'=>'text','text'=>'DATE') ?><?php $attr6_class='text' ?><?php $attr6_text='DATE' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + if(empty($attr6_title)) if (!empty($attr6_key)) - $attr6_title = lang($attr6_key).'_HELP'; + $attr6_title = lang($attr6_key.'_HELP'); else $attr6_title = ''; ?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php $attr6_title = ''; + if (!empty($attr6_array)) { //geht nicht: @@ -323,14 +341,20 @@ $attr5['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('class'=>'text','text'=>'GLOBAL_USER') ?><?php $attr6_class='text' ?><?php $attr6_text='GLOBAL_USER' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + if(empty($attr6_title)) if (!empty($attr6_key)) - $attr6_title = lang($attr6_key).'_HELP'; + $attr6_title = lang($attr6_key.'_HELP'); else $attr6_title = ''; ?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php $attr6_title = ''; + if (!empty($attr6_array)) { //geht nicht: @@ -382,14 +406,20 @@ $attr5['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('class'=>'text','text'=>'GLOBAL_VALUE') ?><?php $attr6_class='text' ?><?php $attr6_text='GLOBAL_VALUE' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + if(empty($attr6_title)) if (!empty($attr6_key)) - $attr6_title = lang($attr6_key).'_HELP'; + $attr6_title = lang($attr6_key.'_HELP'); else $attr6_title = ''; ?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php $attr6_title = ''; + if (!empty($attr6_array)) { //geht nicht: @@ -441,14 +471,20 @@ $attr5['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('class'=>'text','raw'=>'_') ?><?php $attr6_class='text' ?><?php $attr6_raw='_' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + if(empty($attr6_title)) if (!empty($attr6_key)) - $attr6_title = lang($attr6_key).'_HELP'; + $attr6_title = lang($attr6_key.'_HELP'); else $attr6_title = ''; ?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php $attr6_title = ''; + if (!empty($attr6_array)) { //geht nicht: @@ -500,14 +536,20 @@ $attr5['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('class'=>'text','raw'=>'_') ?><?php $attr6_class='text' ?><?php $attr6_raw='_' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + if(empty($attr6_title)) if (!empty($attr6_key)) - $attr6_title = lang($attr6_key).'_HELP'; + $attr6_title = lang($attr6_key.'_HELP'); else $attr6_title = ''; ?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php $attr6_title = ''; + if (!empty($attr6_array)) { //geht nicht: @@ -588,16 +630,17 @@ // Vergleich auf Vorhandensein elseif ( isset($attr4_present) ) { - if ( !isset($$attr4_present) ) - $exec = false; - elseif ( is_array($$attr4_present) ) - $exec = (count($$attr4_present)>0); - elseif ( is_bool($$attr4_present) ) - $exec = $$attr4_present; - elseif ( is_numeric($$attr4_present) ) - $exec = $$attr4_present>=0; - else - $exec = true; + $exec = isset($$attr4_present); +// if ( !isset($$attr4_present) ) +// $exec = false; +// elseif ( is_array($$attr4_present) ) +// $exec = (count($$attr4_present)>0); +// elseif ( is_bool($$attr4_present) ) +// $exec = $$attr4_present; +// elseif ( is_numeric($$attr4_present) ) +// $exec = $$attr4_present>=0; +// else +// $exec = true; } else @@ -609,6 +652,7 @@ } // Ergebnis umdrehen + // TODO: Bald ausbauen, stattdessen "not" verwenden. if ( !empty($attr4_invert) ) $exec = !$exec; @@ -661,14 +705,20 @@ $attr6['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_colspan) ?><?php $attr7 = array('class'=>'text','text'=>'GLOBAL_NOT_FOUND') ?><?php $attr7_class='text' ?><?php $attr7_text='GLOBAL_NOT_FOUND' ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + if(empty($attr7_title)) if (!empty($attr7_key)) - $attr7_title = lang($attr7_key).'_HELP'; + $attr7_title = lang($attr7_key.'_HELP'); else $attr7_title = ''; ?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php $attr7_title = ''; + if (!empty($attr7_array)) { //geht nicht: @@ -758,14 +808,20 @@ $attr6['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php $attr7 = array('class'=>'text','text'=>$lfd_nr) ?><?php $attr7_class='text' ?><?php $attr7_text=$lfd_nr ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + if(empty($attr7_title)) if (!empty($attr7_key)) - $attr7_title = lang($attr7_key).'_HELP'; + $attr7_title = lang($attr7_key.'_HELP'); else $attr7_title = ''; ?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php $attr7_title = ''; + if (!empty($attr7_array)) { //geht nicht: @@ -816,8 +872,7 @@ if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) ) $attr6['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php $attr7 = array('name'=>'compareid','value'=>$lfd_nr) ?><?php $attr7_name='compareid' ?><?php $attr7_value=$lfd_nr ?><?php -?><input type="radio" name="<?php echo $attr7_prefix.$attr7_name ?>"<?php if ( $attr7_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $attr7_value ?>" <?php if( $attr7_value == $$attr7_name ) echo 'checked="checked"' ?> /><?php unset($attr7) ?><?php unset($attr7_name) ?><?php unset($attr7_value) ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr6 = array('class'=>'fx') ?><?php $attr6_class='fx' ?><?php +?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php $attr7 = array('name'=>'compareid','value'=>$lfd_nr) ?><?php $attr7_name='compareid' ?><?php $attr7_value=$lfd_nr ?><input type="radio" id="id_<?php echo $attr7_name.'_'.$attr7_value ?>" name="<?php echo $attr7_prefix.$attr7_name ?>"<?php if ( $attr7_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $attr7_value ?>" <?php if($attr7_value==$default) echo 'checked="checked"' ?> /><?php unset($attr7) ?><?php unset($attr7_name) ?><?php unset($attr7_value) ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr6 = array('class'=>'fx') ?><?php $attr6_class='fx' ?><?php // if (empty($attr6_class)) // $attr6['class']=$row_class; $column_class_idx++; @@ -832,8 +887,7 @@ if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) ) $attr6['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php $attr7 = array('name'=>'withid','value'=>$lfd_nr) ?><?php $attr7_name='withid' ?><?php $attr7_value=$lfd_nr ?><?php -?><input type="radio" name="<?php echo $attr7_prefix.$attr7_name ?>"<?php if ( $attr7_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $attr7_value ?>" <?php if( $attr7_value == $$attr7_name ) echo 'checked="checked"' ?> /><?php unset($attr7) ?><?php unset($attr7_name) ?><?php unset($attr7_value) ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr6 = array('class'=>'fx') ?><?php $attr6_class='fx' ?><?php +?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php $attr7 = array('name'=>'withid','value'=>$lfd_nr) ?><?php $attr7_name='withid' ?><?php $attr7_value=$lfd_nr ?><input type="radio" id="id_<?php echo $attr7_name.'_'.$attr7_value ?>" name="<?php echo $attr7_prefix.$attr7_name ?>"<?php if ( $attr7_readonly ) echo ' disabled="disabled"' ?> value="<?php echo $attr7_value ?>" <?php if($attr7_value==$default) echo 'checked="checked"' ?> /><?php unset($attr7) ?><?php unset($attr7_name) ?><?php unset($attr7_value) ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr6 = array('class'=>'fx') ?><?php $attr6_class='fx' ?><?php // if (empty($attr6_class)) // $attr6['class']=$row_class; $column_class_idx++; @@ -849,14 +903,20 @@ $attr6['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php $attr7 = array('class'=>'text','var'=>'date') ?><?php $attr7_class='text' ?><?php $attr7_var='date' ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + if(empty($attr7_title)) if (!empty($attr7_key)) - $attr7_title = lang($attr7_key).'_HELP'; + $attr7_title = lang($attr7_key.'_HELP'); else $attr7_title = ''; ?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php $attr7_title = ''; + if (!empty($attr7_array)) { //geht nicht: @@ -908,14 +968,20 @@ $attr6['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php $attr7 = array('class'=>'text','text'=>'user') ?><?php $attr7_class='text' ?><?php $attr7_text='user' ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + if(empty($attr7_title)) if (!empty($attr7_key)) - $attr7_title = lang($attr7_key).'_HELP'; + $attr7_title = lang($attr7_key.'_HELP'); else $attr7_title = ''; ?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php $attr7_title = ''; + if (!empty($attr7_array)) { //geht nicht: @@ -967,14 +1033,20 @@ $attr6['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php $attr7 = array('class'=>'text','text'=>$value) ?><?php $attr7_class='text' ?><?php $attr7_text=$value ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + if(empty($attr7_title)) if (!empty($attr7_key)) - $attr7_title = lang($attr7_key).'_HELP'; + $attr7_title = lang($attr7_key.'_HELP'); else $attr7_title = ''; ?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php $attr7_title = ''; + if (!empty($attr7_array)) { //geht nicht: @@ -1070,16 +1142,17 @@ // Vergleich auf Vorhandensein elseif ( isset($attr7_present) ) { - if ( !isset($$attr7_present) ) - $exec = false; - elseif ( is_array($$attr7_present) ) - $exec = (count($$attr7_present)>0); - elseif ( is_bool($$attr7_present) ) - $exec = $$attr7_present; - elseif ( is_numeric($$attr7_present) ) - $exec = $$attr7_present>=0; - else - $exec = true; + $exec = isset($$attr7_present); +// if ( !isset($$attr7_present) ) +// $exec = false; +// elseif ( is_array($$attr7_present) ) +// $exec = (count($$attr7_present)>0); +// elseif ( is_bool($$attr7_present) ) +// $exec = $$attr7_present; +// elseif ( is_numeric($$attr7_present) ) +// $exec = $$attr7_present>=0; +// else +// $exec = true; } else @@ -1091,6 +1164,7 @@ } // Ergebnis umdrehen + // TODO: Bald ausbauen, stattdessen "not" verwenden. if ( !empty($attr7_invert) ) $exec = !$exec; @@ -1114,14 +1188,20 @@ if ( $exec ) { ?><?php unset($attr7) ?><?php unset($attr7_true) ?><?php $attr8 = array('class'=>'text','text'=>lang('GLOBAL_PUBLIC')) ?><?php $attr8_class='text' ?><?php $attr8_text=lang('GLOBAL_PUBLIC') ?><?php + if ( isset($attr8_prefix)&& isset($attr8_key)) + $attr8_key = $attr8_prefix.$attr8_key; + if ( isset($attr8_suffix)&& isset($attr8_key)) + $attr8_key = $attr8_key.$attr8_suffix; + if(empty($attr8_title)) if (!empty($attr8_key)) - $attr8_title = lang($attr8_key).'_HELP'; + $attr8_title = lang($attr8_key.'_HELP'); else $attr8_title = ''; ?><span class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php $attr8_title = ''; + if (!empty($attr8_array)) { //geht nicht: @@ -1169,14 +1249,20 @@ else $tmp_url = Html::url($attr8_action,$attr8_subaction,!empty($$attr8_id)?$$attr8_id:$this->getRequestId(),array(!empty($var1)?$var1:'asdf'=>!empty($value1)?$$value1:'')); ?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr8_class ?>" target="<?php echo $attr8_target ?>" title="<?php echo $attr8_title ?>"><?php unset($attr8) ?><?php unset($attr8_target) ?><?php unset($attr8_url) ?><?php $attr9 = array('class'=>'text','text'=>lang('GLOBAL_RELEASE')) ?><?php $attr9_class='text' ?><?php $attr9_text=lang('GLOBAL_RELEASE') ?><?php + if ( isset($attr9_prefix)&& isset($attr9_key)) + $attr9_key = $attr9_prefix.$attr9_key; + if ( isset($attr9_suffix)&& isset($attr9_key)) + $attr9_key = $attr9_key.$attr9_suffix; + if(empty($attr9_title)) if (!empty($attr9_key)) - $attr9_title = lang($attr9_key).'_HELP'; + $attr9_title = lang($attr9_key.'_HELP'); else $attr9_title = ''; ?><span class="<?php echo $attr9_class ?>" title="<?php echo $attr9_title ?>"><?php $attr9_title = ''; + if (!empty($attr9_array)) { //geht nicht: @@ -1274,16 +1360,17 @@ // Vergleich auf Vorhandensein elseif ( isset($attr7_present) ) { - if ( !isset($$attr7_present) ) - $exec = false; - elseif ( is_array($$attr7_present) ) - $exec = (count($$attr7_present)>0); - elseif ( is_bool($$attr7_present) ) - $exec = $$attr7_present; - elseif ( is_numeric($$attr7_present) ) - $exec = $$attr7_present>=0; - else - $exec = true; + $exec = isset($$attr7_present); +// if ( !isset($$attr7_present) ) +// $exec = false; +// elseif ( is_array($$attr7_present) ) +// $exec = (count($$attr7_present)>0); +// elseif ( is_bool($$attr7_present) ) +// $exec = $$attr7_present; +// elseif ( is_numeric($$attr7_present) ) +// $exec = $$attr7_present>=0; +// else +// $exec = true; } else @@ -1295,6 +1382,7 @@ } // Ergebnis umdrehen + // TODO: Bald ausbauen, stattdessen "not" verwenden. if ( !empty($attr7_invert) ) $exec = !$exec; @@ -1318,14 +1406,20 @@ if ( $exec ) { ?><?php unset($attr7) ?><?php unset($attr7_true) ?><?php $attr8 = array('class'=>'text','text'=>lang('GLOBAL_ACTIVE')) ?><?php $attr8_class='text' ?><?php $attr8_text=lang('GLOBAL_ACTIVE') ?><?php + if ( isset($attr8_prefix)&& isset($attr8_key)) + $attr8_key = $attr8_prefix.$attr8_key; + if ( isset($attr8_suffix)&& isset($attr8_key)) + $attr8_key = $attr8_key.$attr8_suffix; + if(empty($attr8_title)) if (!empty($attr8_key)) - $attr8_title = lang($attr8_key).'_HELP'; + $attr8_title = lang($attr8_key.'_HELP'); else $attr8_title = ''; ?><span class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php $attr8_title = ''; + if (!empty($attr8_array)) { //geht nicht: @@ -1373,14 +1467,20 @@ else $tmp_url = Html::url($attr8_action,$attr8_subaction,!empty($$attr8_id)?$$attr8_id:$this->getRequestId(),array(!empty($var1)?$var1:'asdf'=>!empty($value1)?$$value1:'')); ?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr8_class ?>" target="<?php echo $attr8_target ?>" title="<?php echo $attr8_title ?>"><?php unset($attr8) ?><?php unset($attr8_target) ?><?php unset($attr8_url) ?><?php $attr9 = array('class'=>'text','text'=>lang('GLOBAL_USE')) ?><?php $attr9_class='text' ?><?php $attr9_text=lang('GLOBAL_USE') ?><?php + if ( isset($attr9_prefix)&& isset($attr9_key)) + $attr9_key = $attr9_prefix.$attr9_key; + if ( isset($attr9_suffix)&& isset($attr9_key)) + $attr9_key = $attr9_key.$attr9_suffix; + if(empty($attr9_title)) if (!empty($attr9_key)) - $attr9_title = lang($attr9_key).'_HELP'; + $attr9_title = lang($attr9_key.'_HELP'); else $attr9_title = ''; ?><span class="<?php echo $attr9_class ?>" title="<?php echo $attr9_title ?>"><?php $attr9_title = ''; + if (!empty($attr9_array)) { //geht nicht: diff --git a/themes/default/pages/html/pageelement/edit.tpl.php b/themes/default/pages/html/pageelement/edit.tpl.php @@ -40,7 +40,7 @@ <input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr2_id ?>" /><?php if ( $conf['interface']['url_sessionid'] ) echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; -?><?php unset($attr2) ?><?php unset($attr2_target) ?><?php unset($attr2_method) ?><?php unset($attr2_enctype) ?><?php $attr3 = array('type'=>'hidden','name'=>'elementid','size'=>'40','maxlength'=>'256') ?><?php $attr3_type='hidden' ?><?php $attr3_name='elementid' ?><?php $attr3_size='40' ?><?php $attr3_maxlength='256' ?><input id="id<?php echo $attr3_name ?>" name="<?php echo $attr3_name ?>" type="<?php echo $attr3_type ?>" size="<?php echo $attr3_size ?>" maxlength="<?php echo $attr3_maxlength ?>" class="<?php echo $attr3_class ?>" value="<?php echo isset($$attr3_name)?$$attr3_name:$attr3_default ?>" onxxxMouseOver="this.focus();" /><?php unset($attr3) ?><?php unset($attr3_type) ?><?php unset($attr3_name) ?><?php unset($attr3_size) ?><?php unset($attr3_maxlength) ?><?php $attr3 = array('name'=>'element','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr3_name='element' ?><?php $attr3_width='93%' ?><?php $attr3_rowclasses='odd,even' ?><?php $attr3_columnclasses='1,2,3' ?><?php +?><?php unset($attr2) ?><?php unset($attr2_target) ?><?php unset($attr2_method) ?><?php unset($attr2_enctype) ?><?php $attr3 = array('type'=>'hidden','name'=>'elementid','size'=>'40','maxlength'=>'256') ?><?php $attr3_type='hidden' ?><?php $attr3_name='elementid' ?><?php $attr3_size='40' ?><?php $attr3_maxlength='256' ?><input id="id_<?php echo $attr3_name ?>" name="<?php echo $attr3_name ?>" type="<?php echo $attr3_type ?>" size="<?php echo $attr3_size ?>" maxlength="<?php echo $attr3_maxlength ?>" class="<?php echo $attr3_class ?>" value="<?php echo isset($$attr3_name)?$$attr3_name:$attr3_default ?>" onxxxMouseOver="this.focus();" /><?php unset($attr3) ?><?php unset($attr3_type) ?><?php unset($attr3_name) ?><?php unset($attr3_size) ?><?php unset($attr3_maxlength) ?><?php $attr3 = array('name'=>'element','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr3_name='element' ?><?php $attr3_width='93%' ?><?php $attr3_rowclasses='odd,even' ?><?php $attr3_columnclasses='1,2,3' ?><?php $coloumn_widths=array(); if (!empty($attr3_widths)) { @@ -146,14 +146,20 @@ $attr5['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_colspan) ?><?php $attr6 = array('class'=>'text','var'=>'desc') ?><?php $attr6_class='text' ?><?php $attr6_var='desc' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + if(empty($attr6_title)) if (!empty($attr6_key)) - $attr6_title = lang($attr6_key).'_HELP'; + $attr6_title = lang($attr6_key.'_HELP'); else $attr6_title = ''; ?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php $attr6_title = ''; + if (!empty($attr6_array)) { //geht nicht: @@ -234,16 +240,17 @@ // Vergleich auf Vorhandensein elseif ( isset($attr4_present) ) { - if ( !isset($$attr4_present) ) - $exec = false; - elseif ( is_array($$attr4_present) ) - $exec = (count($$attr4_present)>0); - elseif ( is_bool($$attr4_present) ) - $exec = $$attr4_present; - elseif ( is_numeric($$attr4_present) ) - $exec = $$attr4_present>=0; - else - $exec = true; + $exec = isset($$attr4_present); +// if ( !isset($$attr4_present) ) +// $exec = false; +// elseif ( is_array($$attr4_present) ) +// $exec = (count($$attr4_present)>0); +// elseif ( is_bool($$attr4_present) ) +// $exec = $$attr4_present; +// elseif ( is_numeric($$attr4_present) ) +// $exec = $$attr4_present>=0; +// else +// $exec = true; } else @@ -255,6 +262,7 @@ } // Ergebnis umdrehen + // TODO: Bald ausbauen, stattdessen "not" verwenden. if ( !empty($attr4_invert) ) $exec = !$exec; @@ -306,7 +314,7 @@ if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) ) $attr6['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_colspan) ?><?php $attr7 = array('class'=>'ansidate','type'=>'text','name'=>'ansidate','size'=>'25','maxlength'=>'25') ?><?php $attr7_class='ansidate' ?><?php $attr7_type='text' ?><?php $attr7_name='ansidate' ?><?php $attr7_size='25' ?><?php $attr7_maxlength='25' ?><input id="id<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" type="<?php echo $attr7_type ?>" size="<?php echo $attr7_size ?>" maxlength="<?php echo $attr7_maxlength ?>" class="<?php echo $attr7_class ?>" value="<?php echo isset($$attr7_name)?$$attr7_name:$attr7_default ?>" onxxxMouseOver="this.focus();" /><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_type) ?><?php unset($attr7_name) ?><?php unset($attr7_size) ?><?php unset($attr7_maxlength) ?><?php $attr7 = array('field'=>'ansidate') ?><?php $attr7_field='ansidate' ?> +?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_colspan) ?><?php $attr7 = array('class'=>'ansidate','type'=>'text','name'=>'ansidate','size'=>'25','maxlength'=>'25') ?><?php $attr7_class='ansidate' ?><?php $attr7_type='text' ?><?php $attr7_name='ansidate' ?><?php $attr7_size='25' ?><?php $attr7_maxlength='25' ?><input id="id_<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" type="<?php echo $attr7_type ?>" size="<?php echo $attr7_size ?>" maxlength="<?php echo $attr7_maxlength ?>" class="<?php echo $attr7_class ?>" value="<?php echo isset($$attr7_name)?$$attr7_name:$attr7_default ?>" onxxxMouseOver="this.focus();" /><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_type) ?><?php unset($attr7_name) ?><?php unset($attr7_size) ?><?php unset($attr7_maxlength) ?><?php $attr7 = array('field'=>'ansidate') ?><?php $attr7_field='ansidate' ?> <script name="JavaScript" type="text/javascript"> <!-- document.forms[0].<?php echo $attr7_field ?>.focus(); @@ -361,16 +369,17 @@ document.forms[0].<?php echo $attr7_field ?>.select(); // Vergleich auf Vorhandensein elseif ( isset($attr4_present) ) { - if ( !isset($$attr4_present) ) - $exec = false; - elseif ( is_array($$attr4_present) ) - $exec = (count($$attr4_present)>0); - elseif ( is_bool($$attr4_present) ) - $exec = $$attr4_present; - elseif ( is_numeric($$attr4_present) ) - $exec = $$attr4_present>=0; - else - $exec = true; + $exec = isset($$attr4_present); +// if ( !isset($$attr4_present) ) +// $exec = false; +// elseif ( is_array($$attr4_present) ) +// $exec = (count($$attr4_present)>0); +// elseif ( is_bool($$attr4_present) ) +// $exec = $$attr4_present; +// elseif ( is_numeric($$attr4_present) ) +// $exec = $$attr4_present>=0; +// else +// $exec = true; } else @@ -382,6 +391,7 @@ document.forms[0].<?php echo $attr7_field ?>.select(); } // Ergebnis umdrehen + // TODO: Bald ausbauen, stattdessen "not" verwenden. if ( !empty($attr4_invert) ) $exec = !$exec; @@ -433,7 +443,7 @@ document.forms[0].<?php echo $attr7_field ?>.select(); if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) ) $attr6['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_colspan) ?><?php $attr7 = array('class'=>'text','type'=>'text','name'=>'text','size'=>'50','maxlength'=>'255') ?><?php $attr7_class='text' ?><?php $attr7_type='text' ?><?php $attr7_name='text' ?><?php $attr7_size='50' ?><?php $attr7_maxlength='255' ?><input id="id<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" type="<?php echo $attr7_type ?>" size="<?php echo $attr7_size ?>" maxlength="<?php echo $attr7_maxlength ?>" class="<?php echo $attr7_class ?>" value="<?php echo isset($$attr7_name)?$$attr7_name:$attr7_default ?>" onxxxMouseOver="this.focus();" /><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_type) ?><?php unset($attr7_name) ?><?php unset($attr7_size) ?><?php unset($attr7_maxlength) ?><?php $attr7 = array('field'=>'text') ?><?php $attr7_field='text' ?> +?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_colspan) ?><?php $attr7 = array('class'=>'text','type'=>'text','name'=>'text','size'=>'50','maxlength'=>'255') ?><?php $attr7_class='text' ?><?php $attr7_type='text' ?><?php $attr7_name='text' ?><?php $attr7_size='50' ?><?php $attr7_maxlength='255' ?><input id="id_<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" type="<?php echo $attr7_type ?>" size="<?php echo $attr7_size ?>" maxlength="<?php echo $attr7_maxlength ?>" class="<?php echo $attr7_class ?>" value="<?php echo isset($$attr7_name)?$$attr7_name:$attr7_default ?>" onxxxMouseOver="this.focus();" /><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_type) ?><?php unset($attr7_name) ?><?php unset($attr7_size) ?><?php unset($attr7_maxlength) ?><?php $attr7 = array('field'=>'text') ?><?php $attr7_field='text' ?> <script name="JavaScript" type="text/javascript"> <!-- document.forms[0].<?php echo $attr7_field ?>.focus(); @@ -488,16 +498,17 @@ document.forms[0].<?php echo $attr7_field ?>.select(); // Vergleich auf Vorhandensein elseif ( isset($attr4_present) ) { - if ( !isset($$attr4_present) ) - $exec = false; - elseif ( is_array($$attr4_present) ) - $exec = (count($$attr4_present)>0); - elseif ( is_bool($$attr4_present) ) - $exec = $$attr4_present; - elseif ( is_numeric($$attr4_present) ) - $exec = $$attr4_present>=0; - else - $exec = true; + $exec = isset($$attr4_present); +// if ( !isset($$attr4_present) ) +// $exec = false; +// elseif ( is_array($$attr4_present) ) +// $exec = (count($$attr4_present)>0); +// elseif ( is_bool($$attr4_present) ) +// $exec = $$attr4_present; +// elseif ( is_numeric($$attr4_present) ) +// $exec = $$attr4_present>=0; +// else +// $exec = true; } else @@ -509,6 +520,7 @@ document.forms[0].<?php echo $attr7_field ?>.select(); } // Ergebnis umdrehen + // TODO: Bald ausbauen, stattdessen "not" verwenden. if ( !empty($attr4_invert) ) $exec = !$exec; @@ -615,16 +627,17 @@ document.forms[0].<?php echo $attr7_field ?>.select(); // Vergleich auf Vorhandensein elseif ( isset($attr4_present) ) { - if ( !isset($$attr4_present) ) - $exec = false; - elseif ( is_array($$attr4_present) ) - $exec = (count($$attr4_present)>0); - elseif ( is_bool($$attr4_present) ) - $exec = $$attr4_present; - elseif ( is_numeric($$attr4_present) ) - $exec = $$attr4_present>=0; - else - $exec = true; + $exec = isset($$attr4_present); +// if ( !isset($$attr4_present) ) +// $exec = false; +// elseif ( is_array($$attr4_present) ) +// $exec = (count($$attr4_present)>0); +// elseif ( is_bool($$attr4_present) ) +// $exec = $$attr4_present; +// elseif ( is_numeric($$attr4_present) ) +// $exec = $$attr4_present>=0; +// else +// $exec = true; } else @@ -636,6 +649,7 @@ document.forms[0].<?php echo $attr7_field ?>.select(); } // Ergebnis umdrehen + // TODO: Bald ausbauen, stattdessen "not" verwenden. if ( !empty($attr4_invert) ) $exec = !$exec; @@ -687,7 +701,7 @@ document.forms[0].<?php echo $attr7_field ?>.select(); if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) ) $attr6['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_colspan) ?><?php $attr7 = array('list'=>'objects','name'=>'linkobjectid') ?><?php $attr7_list='objects' ?><?php $attr7_name='linkobjectid' ?><select size="1" id="id<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" onchange="<?php echo $attr7_onchange ?>" title="<?php echo $attr7_title ?>" class="<?php echo $attr7_class ?>"<?php +?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_colspan) ?><?php $attr7 = array('list'=>'objects','name'=>'linkobjectid') ?><?php $attr7_list='objects' ?><?php $attr7_name='linkobjectid' ?><select size="1" id="id_<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" onchange="<?php echo $attr7_onchange ?>" title="<?php echo $attr7_title ?>" class="<?php echo $attr7_class ?>"<?php if (count($$attr7_list)==1) echo ' disabled="disabled"' ?>><?php foreach( $$attr7_list as $box_key=>$box_value ) @@ -754,16 +768,17 @@ document.forms[0].<?php echo $attr7_field ?>.select(); // Vergleich auf Vorhandensein elseif ( isset($attr4_present) ) { - if ( !isset($$attr4_present) ) - $exec = false; - elseif ( is_array($$attr4_present) ) - $exec = (count($$attr4_present)>0); - elseif ( is_bool($$attr4_present) ) - $exec = $$attr4_present; - elseif ( is_numeric($$attr4_present) ) - $exec = $$attr4_present>=0; - else - $exec = true; + $exec = isset($$attr4_present); +// if ( !isset($$attr4_present) ) +// $exec = false; +// elseif ( is_array($$attr4_present) ) +// $exec = (count($$attr4_present)>0); +// elseif ( is_bool($$attr4_present) ) +// $exec = $$attr4_present; +// elseif ( is_numeric($$attr4_present) ) +// $exec = $$attr4_present>=0; +// else +// $exec = true; } else @@ -775,6 +790,7 @@ document.forms[0].<?php echo $attr7_field ?>.select(); } // Ergebnis umdrehen + // TODO: Bald ausbauen, stattdessen "not" verwenden. if ( !empty($attr4_invert) ) $exec = !$exec; @@ -826,7 +842,7 @@ document.forms[0].<?php echo $attr7_field ?>.select(); if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) ) $attr6['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_colspan) ?><?php $attr7 = array('list'=>'objects','name'=>'linkobjectid') ?><?php $attr7_list='objects' ?><?php $attr7_name='linkobjectid' ?><select size="1" id="id<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" onchange="<?php echo $attr7_onchange ?>" title="<?php echo $attr7_title ?>" class="<?php echo $attr7_class ?>"<?php +?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_colspan) ?><?php $attr7 = array('list'=>'objects','name'=>'linkobjectid') ?><?php $attr7_list='objects' ?><?php $attr7_name='linkobjectid' ?><select size="1" id="id_<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" onchange="<?php echo $attr7_onchange ?>" title="<?php echo $attr7_title ?>" class="<?php echo $attr7_class ?>"<?php if (count($$attr7_list)==1) echo ' disabled="disabled"' ?>><?php foreach( $$attr7_list as $box_key=>$box_value ) @@ -893,16 +909,17 @@ document.forms[0].<?php echo $attr7_field ?>.select(); // Vergleich auf Vorhandensein elseif ( isset($attr4_present) ) { - if ( !isset($$attr4_present) ) - $exec = false; - elseif ( is_array($$attr4_present) ) - $exec = (count($$attr4_present)>0); - elseif ( is_bool($$attr4_present) ) - $exec = $$attr4_present; - elseif ( is_numeric($$attr4_present) ) - $exec = $$attr4_present>=0; - else - $exec = true; + $exec = isset($$attr4_present); +// if ( !isset($$attr4_present) ) +// $exec = false; +// elseif ( is_array($$attr4_present) ) +// $exec = (count($$attr4_present)>0); +// elseif ( is_bool($$attr4_present) ) +// $exec = $$attr4_present; +// elseif ( is_numeric($$attr4_present) ) +// $exec = $$attr4_present>=0; +// else +// $exec = true; } else @@ -914,6 +931,7 @@ document.forms[0].<?php echo $attr7_field ?>.select(); } // Ergebnis umdrehen + // TODO: Bald ausbauen, stattdessen "not" verwenden. if ( !empty($attr4_invert) ) $exec = !$exec; @@ -965,7 +983,7 @@ document.forms[0].<?php echo $attr7_field ?>.select(); if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) ) $attr6['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_colspan) ?><?php $attr7 = array('name'=>'decimals','default'=>'decimals') ?><?php $attr7_name='decimals' ?><?php $attr7_default='decimals' ?><input type="hidden" name="<?php echo $attr7_name ?>" value="<?php echo isset($$attr7_name)?$$attr7_name:$attr7_default ?>" /><?php unset($attr7) ?><?php unset($attr7_name) ?><?php unset($attr7_default) ?><?php $attr7 = array('type'=>'text','name'=>'number','size'=>'15','maxlength'=>'20') ?><?php $attr7_type='text' ?><?php $attr7_name='number' ?><?php $attr7_size='15' ?><?php $attr7_maxlength='20' ?><input id="id<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" type="<?php echo $attr7_type ?>" size="<?php echo $attr7_size ?>" maxlength="<?php echo $attr7_maxlength ?>" class="<?php echo $attr7_class ?>" value="<?php echo isset($$attr7_name)?$$attr7_name:$attr7_default ?>" onxxxMouseOver="this.focus();" /><?php unset($attr7) ?><?php unset($attr7_type) ?><?php unset($attr7_name) ?><?php unset($attr7_size) ?><?php unset($attr7_maxlength) ?><?php $attr7 = array('field'=>'number') ?><?php $attr7_field='number' ?> +?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_colspan) ?><?php $attr7 = array('name'=>'decimals','default'=>'decimals') ?><?php $attr7_name='decimals' ?><?php $attr7_default='decimals' ?><input type="hidden" name="<?php echo $attr7_name ?>" value="<?php echo isset($$attr7_name)?$$attr7_name:$attr7_default ?>" /><?php unset($attr7) ?><?php unset($attr7_name) ?><?php unset($attr7_default) ?><?php $attr7 = array('type'=>'text','name'=>'number','size'=>'15','maxlength'=>'20') ?><?php $attr7_type='text' ?><?php $attr7_name='number' ?><?php $attr7_size='15' ?><?php $attr7_maxlength='20' ?><input id="id_<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" type="<?php echo $attr7_type ?>" size="<?php echo $attr7_size ?>" maxlength="<?php echo $attr7_maxlength ?>" class="<?php echo $attr7_class ?>" value="<?php echo isset($$attr7_name)?$$attr7_name:$attr7_default ?>" onxxxMouseOver="this.focus();" /><?php unset($attr7) ?><?php unset($attr7_type) ?><?php unset($attr7_name) ?><?php unset($attr7_size) ?><?php unset($attr7_maxlength) ?><?php $attr7 = array('field'=>'number') ?><?php $attr7_field='number' ?> <script name="JavaScript" type="text/javascript"> <!-- document.forms[0].<?php echo $attr7_field ?>.focus(); @@ -1020,16 +1038,17 @@ document.forms[0].<?php echo $attr7_field ?>.select(); // Vergleich auf Vorhandensein elseif ( isset($attr4_present) ) { - if ( !isset($$attr4_present) ) - $exec = false; - elseif ( is_array($$attr4_present) ) - $exec = (count($$attr4_present)>0); - elseif ( is_bool($$attr4_present) ) - $exec = $$attr4_present; - elseif ( is_numeric($$attr4_present) ) - $exec = $$attr4_present>=0; - else - $exec = true; + $exec = isset($$attr4_present); +// if ( !isset($$attr4_present) ) +// $exec = false; +// elseif ( is_array($$attr4_present) ) +// $exec = (count($$attr4_present)>0); +// elseif ( is_bool($$attr4_present) ) +// $exec = $$attr4_present; +// elseif ( is_numeric($$attr4_present) ) +// $exec = $$attr4_present>=0; +// else +// $exec = true; } else @@ -1041,6 +1060,7 @@ document.forms[0].<?php echo $attr7_field ?>.select(); } // Ergebnis umdrehen + // TODO: Bald ausbauen, stattdessen "not" verwenden. if ( !empty($attr4_invert) ) $exec = !$exec; @@ -1092,7 +1112,7 @@ document.forms[0].<?php echo $attr7_field ?>.select(); if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) ) $attr6['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_colspan) ?><?php $attr7 = array('list'=>'items','name'=>'text') ?><?php $attr7_list='items' ?><?php $attr7_name='text' ?><select size="1" id="id<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" onchange="<?php echo $attr7_onchange ?>" title="<?php echo $attr7_title ?>" class="<?php echo $attr7_class ?>"<?php +?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_colspan) ?><?php $attr7 = array('list'=>'items','name'=>'text') ?><?php $attr7_list='items' ?><?php $attr7_name='text' ?><select size="1" id="id_<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" onchange="<?php echo $attr7_onchange ?>" title="<?php echo $attr7_title ?>" class="<?php echo $attr7_class ?>"<?php if (count($$attr7_list)==1) echo ' disabled="disabled"' ?>><?php foreach( $$attr7_list as $box_key=>$box_value ) @@ -1159,16 +1179,17 @@ document.forms[0].<?php echo $attr7_field ?>.select(); // Vergleich auf Vorhandensein elseif ( isset($attr4_present) ) { - if ( !isset($$attr4_present) ) - $exec = false; - elseif ( is_array($$attr4_present) ) - $exec = (count($$attr4_present)>0); - elseif ( is_bool($$attr4_present) ) - $exec = $$attr4_present; - elseif ( is_numeric($$attr4_present) ) - $exec = $$attr4_present>=0; - else - $exec = true; + $exec = isset($$attr4_present); +// if ( !isset($$attr4_present) ) +// $exec = false; +// elseif ( is_array($$attr4_present) ) +// $exec = (count($$attr4_present)>0); +// elseif ( is_bool($$attr4_present) ) +// $exec = $$attr4_present; +// elseif ( is_numeric($$attr4_present) ) +// $exec = $$attr4_present>=0; +// else +// $exec = true; } else @@ -1180,6 +1201,7 @@ document.forms[0].<?php echo $attr7_field ?>.select(); } // Ergebnis umdrehen + // TODO: Bald ausbauen, stattdessen "not" verwenden. if ( !empty($attr4_invert) ) $exec = !$exec; @@ -1239,15 +1261,21 @@ document.forms[0].<?php echo $attr7_field ?>.select(); // $checked = isset($$$attr7_name)&& $$$attr7_name==true; else $checked = $attr7_default == true; -?><input type="checkbox" name="<?php echo $attr7_name ?>" <?php if ($attr7_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php unset($attr7_name); unset($attr7_readonly); unset($attr7_default); ?><?php unset($attr7) ?><?php unset($attr7_default) ?><?php unset($attr7_readonly) ?><?php unset($attr7_name) ?><?php $attr7 = array('class'=>'text','raw'=>'_') ?><?php $attr7_class='text' ?><?php $attr7_raw='_' ?><?php +?><input type="checkbox" id="id_<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" <?php if ($attr7_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php unset($attr7_name); unset($attr7_readonly); unset($attr7_default); ?><?php unset($attr7) ?><?php unset($attr7_default) ?><?php unset($attr7_readonly) ?><?php unset($attr7_name) ?><?php $attr7 = array('class'=>'text','raw'=>'_') ?><?php $attr7_class='text' ?><?php $attr7_raw='_' ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + if(empty($attr7_title)) if (!empty($attr7_key)) - $attr7_title = lang($attr7_key).'_HELP'; + $attr7_title = lang($attr7_key.'_HELP'); else $attr7_title = ''; ?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php $attr7_title = ''; + if (!empty($attr7_array)) { //geht nicht: @@ -1284,14 +1312,20 @@ document.forms[0].<?php echo $attr7_field ?>.select(); echo $tmp_text; ?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_raw) ?><?php $attr7 = array('class'=>'text','text'=>'GLOBAL_RELEASE') ?><?php $attr7_class='text' ?><?php $attr7_text='GLOBAL_RELEASE' ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + if(empty($attr7_title)) if (!empty($attr7_key)) - $attr7_title = lang($attr7_key).'_HELP'; + $attr7_title = lang($attr7_key.'_HELP'); else $attr7_title = ''; ?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php $attr7_title = ''; + if (!empty($attr7_array)) { //geht nicht: @@ -1375,16 +1409,17 @@ document.forms[0].<?php echo $attr7_field ?>.select(); // Vergleich auf Vorhandensein elseif ( isset($attr4_present) ) { - if ( !isset($$attr4_present) ) - $exec = false; - elseif ( is_array($$attr4_present) ) - $exec = (count($$attr4_present)>0); - elseif ( is_bool($$attr4_present) ) - $exec = $$attr4_present; - elseif ( is_numeric($$attr4_present) ) - $exec = $$attr4_present>=0; - else - $exec = true; + $exec = isset($$attr4_present); +// if ( !isset($$attr4_present) ) +// $exec = false; +// elseif ( is_array($$attr4_present) ) +// $exec = (count($$attr4_present)>0); +// elseif ( is_bool($$attr4_present) ) +// $exec = $$attr4_present; +// elseif ( is_numeric($$attr4_present) ) +// $exec = $$attr4_present>=0; +// else +// $exec = true; } else @@ -1396,6 +1431,7 @@ document.forms[0].<?php echo $attr7_field ?>.select(); } // Ergebnis umdrehen + // TODO: Bald ausbauen, stattdessen "not" verwenden. if ( !empty($attr4_invert) ) $exec = !$exec; @@ -1455,15 +1491,21 @@ document.forms[0].<?php echo $attr7_field ?>.select(); // $checked = isset($$$attr7_name)&& $$$attr7_name==true; else $checked = $attr7_default == true; -?><input type="checkbox" name="<?php echo $attr7_name ?>" <?php if ($attr7_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php unset($attr7_name); unset($attr7_readonly); unset($attr7_default); ?><?php unset($attr7) ?><?php unset($attr7_default) ?><?php unset($attr7_readonly) ?><?php unset($attr7_name) ?><?php $attr7 = array('class'=>'text','raw'=>'_') ?><?php $attr7_class='text' ?><?php $attr7_raw='_' ?><?php +?><input type="checkbox" id="id_<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" <?php if ($attr7_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php unset($attr7_name); unset($attr7_readonly); unset($attr7_default); ?><?php unset($attr7) ?><?php unset($attr7_default) ?><?php unset($attr7_readonly) ?><?php unset($attr7_name) ?><?php $attr7 = array('class'=>'text','raw'=>'_') ?><?php $attr7_class='text' ?><?php $attr7_raw='_' ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + if(empty($attr7_title)) if (!empty($attr7_key)) - $attr7_title = lang($attr7_key).'_HELP'; + $attr7_title = lang($attr7_key.'_HELP'); else $attr7_title = ''; ?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php $attr7_title = ''; + if (!empty($attr7_array)) { //geht nicht: @@ -1500,14 +1542,20 @@ document.forms[0].<?php echo $attr7_field ?>.select(); echo $tmp_text; ?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_raw) ?><?php $attr7 = array('class'=>'text','text'=>'PAGE_PUBLISH_AFTER_SAVE') ?><?php $attr7_class='text' ?><?php $attr7_text='PAGE_PUBLISH_AFTER_SAVE' ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + if(empty($attr7_title)) if (!empty($attr7_key)) - $attr7_title = lang($attr7_key).'_HELP'; + $attr7_title = lang($attr7_key.'_HELP'); else $attr7_title = ''; ?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php $attr7_title = ''; + if (!empty($attr7_array)) { //geht nicht: diff --git a/themes/default/pages/html/template/el.tpl.php b/themes/default/pages/html/template/el.tpl.php @@ -162,6 +162,8 @@ if (isset($attr7_elementtype)) { ?><img src="<?php echo $image_dir.'icon_'.$attr7_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_url)) { ?><img src="<?php echo $attr7_url ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_fileext)) { +?><img src="<?php echo $image_dir.$attr7_file ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_file)) { ?><img src="<?php echo $image_dir.$attr7_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php } ?><?php unset($attr7) ?><?php unset($attr7_align) ?><?php unset($attr7_elementtype) ?><?php $attr7 = array('class'=>'text','text'=>$name) ?><?php $attr7_class='text' ?><?php $attr7_text=$name ?><?php if(empty($attr7_title)) diff --git a/themes/default/pages/html/title/show.tpl.php b/themes/default/pages/html/title/show.tpl.php @@ -86,16 +86,24 @@ if (isset($attr5_elementtype)) { ?><img src="<?php echo $image_dir.'icon_'.$attr5_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr5_align ?>"><?php } elseif (isset($attr5_url)) { ?><img src="<?php echo $attr5_url ?>" border="0" align="<?php echo $attr5_align ?>"><?php +} elseif (isset($attr5_fileext)) { +?><img src="<?php echo $image_dir.$attr5_fileext ?>" border="0" align="<?php echo $attr5_align ?>"><?php } elseif (isset($attr5_file)) { ?><img src="<?php echo $image_dir.$attr5_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr5_align ?>"><?php } ?><?php unset($attr5) ?><?php unset($attr5_icon) ?><?php unset($attr5_align) ?><?php $attr5 = array('title'=>$dbid,'class'=>'text','text'=>$dbname) ?><?php $attr5_title=$dbid ?><?php $attr5_class='text' ?><?php $attr5_text=$dbname ?><?php + if ( isset($attr5_prefix)&& isset($attr5_key)) + $attr5_key = $attr5_prefix.$attr5_key; + if ( isset($attr5_suffix)&& isset($attr5_key)) + $attr5_key = $attr5_key.$attr5_suffix; + if(empty($attr5_title)) if (!empty($attr5_key)) - $attr5_title = lang($attr5_key).'_HELP'; + $attr5_title = lang($attr5_key.'_HELP'); else $attr5_title = ''; ?><span class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php $attr5_title = ''; + if (!empty($attr5_array)) { //geht nicht: @@ -147,14 +155,20 @@ if (isset($attr5_elementtype)) { $attr4['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_width) ?><?php unset($attr4_style) ?><?php unset($attr4_class) ?><?php $attr5 = array('class'=>'text','var'=>'cms_title') ?><?php $attr5_class='text' ?><?php $attr5_var='cms_title' ?><?php + if ( isset($attr5_prefix)&& isset($attr5_key)) + $attr5_key = $attr5_prefix.$attr5_key; + if ( isset($attr5_suffix)&& isset($attr5_key)) + $attr5_key = $attr5_key.$attr5_suffix; + if(empty($attr5_title)) if (!empty($attr5_key)) - $attr5_title = lang($attr5_key).'_HELP'; + $attr5_title = lang($attr5_key.'_HELP'); else $attr5_title = ''; ?><span class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php $attr5_title = ''; + if (!empty($attr5_array)) { //geht nicht: @@ -214,6 +228,8 @@ if (isset($attr5_elementtype)) { ?><img src="<?php echo $image_dir.'icon_'.$attr5_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr5_align ?>"><?php } elseif (isset($attr5_url)) { ?><img src="<?php echo $attr5_url ?>" border="0" align="<?php echo $attr5_align ?>"><?php +} elseif (isset($attr5_fileext)) { +?><img src="<?php echo $image_dir.$attr5_fileext ?>" border="0" align="<?php echo $attr5_align ?>"><?php } elseif (isset($attr5_file)) { ?><img src="<?php echo $image_dir.$attr5_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr5_align ?>"><?php } ?><?php unset($attr5) ?><?php unset($attr5_icon) ?><?php unset($attr5_align) ?><?php $attr5 = array('title'=>'USER_LOGOUT_DESC','target'=>'_top','url'=>$logout_url) ?><?php $attr5_title='USER_LOGOUT_DESC' ?><?php $attr5_target='_top' ?><?php $attr5_url=$logout_url ?><?php if(!empty($attr5_url)) @@ -221,14 +237,20 @@ if (isset($attr5_elementtype)) { else $tmp_url = Html::url($attr5_action,$attr5_subaction,!empty($$attr5_id)?$$attr5_id:$this->getRequestId(),array(!empty($var1)?$var1:'asdf'=>!empty($value1)?$$value1:'')); ?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr5_class ?>" target="<?php echo $attr5_target ?>" title="<?php echo $attr5_title ?>"><?php unset($attr5) ?><?php unset($attr5_title) ?><?php unset($attr5_target) ?><?php unset($attr5_url) ?><?php $attr6 = array('class'=>'text','text'=>'USER_LOGOUT') ?><?php $attr6_class='text' ?><?php $attr6_text='USER_LOGOUT' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + if(empty($attr6_title)) if (!empty($attr6_key)) - $attr6_title = lang($attr6_key).'_HELP'; + $attr6_title = lang($attr6_key.'_HELP'); else $attr6_title = ''; ?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php $attr6_title = ''; + if (!empty($attr6_array)) { //geht nicht: @@ -265,14 +287,20 @@ if (isset($attr5_elementtype)) { echo $tmp_text; ?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_text) ?><?php $attr4 = array() ?></a><?php unset($attr4) ?><?php $attr5 = array('class'=>'text','raw'=>'_(') ?><?php $attr5_class='text' ?><?php $attr5_raw='_(' ?><?php + if ( isset($attr5_prefix)&& isset($attr5_key)) + $attr5_key = $attr5_prefix.$attr5_key; + if ( isset($attr5_suffix)&& isset($attr5_key)) + $attr5_key = $attr5_key.$attr5_suffix; + if(empty($attr5_title)) if (!empty($attr5_key)) - $attr5_title = lang($attr5_key).'_HELP'; + $attr5_title = lang($attr5_key.'_HELP'); else $attr5_title = ''; ?><span class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php $attr5_title = ''; + if (!empty($attr5_array)) { //geht nicht: @@ -314,14 +342,20 @@ if (isset($attr5_elementtype)) { else $tmp_url = Html::url($attr5_action,$attr5_subaction,!empty($$attr5_id)?$$attr5_id:$this->getRequestId(),array(!empty($var1)?$var1:'asdf'=>!empty($value1)?$$value1:'')); ?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr5_class ?>" target="<?php echo $attr5_target ?>" title="<?php echo $attr5_title ?>"><?php unset($attr5) ?><?php unset($attr5_title) ?><?php unset($attr5_target) ?><?php unset($attr5_url) ?><?php $attr6 = array('class'=>'text','text'=>'userfullname') ?><?php $attr6_class='text' ?><?php $attr6_text='userfullname' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + if(empty($attr6_title)) if (!empty($attr6_key)) - $attr6_title = lang($attr6_key).'_HELP'; + $attr6_title = lang($attr6_key.'_HELP'); else $attr6_title = ''; ?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php $attr6_title = ''; + if (!empty($attr6_array)) { //geht nicht: @@ -358,14 +392,20 @@ if (isset($attr5_elementtype)) { echo $tmp_text; ?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_text) ?><?php $attr6 = array('class'=>'text','raw'=>')') ?><?php $attr6_class='text' ?><?php $attr6_raw=')' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + if(empty($attr6_title)) if (!empty($attr6_key)) - $attr6_title = lang($attr6_key).'_HELP'; + $attr6_title = lang($attr6_key.'_HELP'); else $attr6_title = ''; ?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php $attr6_title = ''; + if (!empty($attr6_array)) { //geht nicht: diff --git a/themes/default/pages/html/treetitle/show.tpl.php b/themes/default/pages/html/treetitle/show.tpl.php @@ -86,6 +86,8 @@ if (isset($attr5_elementtype)) { ?><img src="<?php echo $image_dir.'icon_'.$attr5_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr5_align ?>"><?php } elseif (isset($attr5_url)) { ?><img src="<?php echo $attr5_url ?>" border="0" align="<?php echo $attr5_align ?>"><?php +} elseif (isset($attr5_fileext)) { +?><img src="<?php echo $image_dir.$attr5_fileext ?>" border="0" align="<?php echo $attr5_align ?>"><?php } elseif (isset($attr5_file)) { ?><img src="<?php echo $image_dir.$attr5_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr5_align ?>"><?php } ?><?php unset($attr5) ?><?php unset($attr5_align) ?><?php unset($attr5_type) ?><?php $attr5 = array('list'=>'path','extract'=>'1','key'=>'list_key','value'=>'xy') ?><?php $attr5_list='path' ?><?php $attr5_extract='1' ?><?php $attr5_key='list_key' ?><?php $attr5_value='xy' ?><?php $attr5_list_tmp_key = $attr5_key; @@ -114,14 +116,20 @@ if (isset($attr5_elementtype)) { else $tmp_url = Html::url($attr6_action,$attr6_subaction,!empty($$attr6_id)?$$attr6_id:$this->getRequestId(),array(!empty($var1)?$var1:'asdf'=>!empty($value1)?$$value1:'')); ?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr6_class ?>" target="<?php echo $attr6_target ?>" title="<?php echo $attr6_title ?>"><?php unset($attr6) ?><?php unset($attr6_title) ?><?php unset($attr6_target) ?><?php unset($attr6_url) ?><?php unset($attr6_class) ?><?php $attr7 = array('class'=>'text','var'=>'name','maxlength'=>'20') ?><?php $attr7_class='text' ?><?php $attr7_var='name' ?><?php $attr7_maxlength='20' ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + if(empty($attr7_title)) if (!empty($attr7_key)) - $attr7_title = lang($attr7_key).'_HELP'; + $attr7_title = lang($attr7_key.'_HELP'); else $attr7_title = ''; ?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php $attr7_title = ''; + if (!empty($attr7_array)) { //geht nicht: @@ -163,14 +171,20 @@ if (isset($attr5_elementtype)) { else echo "char error"; ?><?php unset($attr6) ?><?php unset($attr6_type) ?><?php $attr4 = array() ?><?php } ?><?php unset($attr4) ?><?php $attr5 = array('title'=>$text,'class'=>'title','text'=>$text) ?><?php $attr5_title=$text ?><?php $attr5_class='title' ?><?php $attr5_text=$text ?><?php + if ( isset($attr5_prefix)&& isset($attr5_key)) + $attr5_key = $attr5_prefix.$attr5_key; + if ( isset($attr5_suffix)&& isset($attr5_key)) + $attr5_key = $attr5_key.$attr5_suffix; + if(empty($attr5_title)) if (!empty($attr5_key)) - $attr5_title = lang($attr5_key).'_HELP'; + $attr5_title = lang($attr5_key.'_HELP'); else $attr5_title = ''; ?><span class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php $attr5_title = ''; + if (!empty($attr5_array)) { //geht nicht: @@ -262,14 +276,20 @@ if (isset($attr5_elementtype)) { else $tmp_url = Html::url($attr6_action,$attr6_subaction,!empty($$attr6_id)?$$attr6_id:$this->getRequestId(),array(!empty($var1)?$var1:'asdf'=>!empty($value1)?$$value1:'')); ?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr6_class ?>" target="<?php echo $attr6_target ?>" title="<?php echo $attr6_title ?>"><?php unset($attr6) ?><?php unset($attr6_title) ?><?php unset($attr6_target) ?><?php unset($attr6_url) ?><?php $attr7 = array('class'=>'text','text'=>$text) ?><?php $attr7_class='text' ?><?php $attr7_text=$text ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + if(empty($attr7_title)) if (!empty($attr7_key)) - $attr7_title = lang($attr7_key).'_HELP'; + $attr7_title = lang($attr7_key.'_HELP'); else $attr7_title = ''; ?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php $attr7_title = ''; + if (!empty($attr7_array)) { //geht nicht: @@ -306,14 +326,20 @@ if (isset($attr5_elementtype)) { echo $tmp_text; ?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_text) ?><?php $attr5 = array() ?></a><?php unset($attr5) ?><?php $attr6 = array('class'=>'text','raw'=>'__') ?><?php $attr6_class='text' ?><?php $attr6_raw='__' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + if(empty($attr6_title)) if (!empty($attr6_key)) - $attr6_title = lang($attr6_key).'_HELP'; + $attr6_title = lang($attr6_key.'_HELP'); else $attr6_title = ''; ?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php $attr6_title = ''; + if (!empty($attr6_array)) { //geht nicht: