openrat-cms

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

commit d2824537c3f3863acf67f60622649d0b75b2660b
parent 32650321f5435f5e456f9b396e73fbd5d246a9ba
Author: dankert <devnull@localhost>
Date:   Sat,  3 Mar 2007 01:17:27 +0100

Neue Umwandlung aller Seiten.

Diffstat:
themes/default/pages/html/background/show.tpl.php | 23+++++++++++++++--------
themes/default/pages/html/border/show.tpl.php | 23+++++++++++++++--------
themes/default/pages/html/element/name.tpl.php | 361+++++++++++++++++++++++++++++++++++++++++++++++++++----------------------------
themes/default/pages/html/element/properties.tpl.php | 4416++++++++++++++++++++++++++++++++++++++++---------------------------------------
themes/default/pages/html/element/type.tpl.php | 267++++++++++++++++++++++++++++++++++++++++++++++++++-----------------------------
themes/default/pages/html/file/compress.tpl.php | 252+++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------------------
themes/default/pages/html/file/edit.tpl.php | 79+++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------
themes/default/pages/html/file/editvalue.tpl.php | 162++++++++++++++++++++++++++++++++++++++++++++++++++++++++-----------------------
themes/default/pages/html/file/prop.tpl.php | 492++++++++++++++++++++++++++++++++++++++++++++++---------------------------------
themes/default/pages/html/file/pub.tpl.php | 79+++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------
themes/default/pages/html/file/remove.tpl.php | 257++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------
themes/default/pages/html/file/showprop.tpl.php | 1670++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------------
themes/default/pages/html/file/size.tpl.php | 635+++++++++++++++++++++++++++++++++++++++++--------------------------------------
themes/default/pages/html/folder/create.tpl.php | 35+++++++++++++++++++++++++++--------
themes/default/pages/html/folder/createfile.tpl.php | 294+++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------------------
themes/default/pages/html/folder/createfolder.tpl.php | 224+++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------------------
themes/default/pages/html/folder/createpage.tpl.php | 298+++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------------------
themes/default/pages/html/folder/order.tpl.php | 1196++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------
themes/default/pages/html/folder/prop.tpl.php | 294+++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------------------
themes/default/pages/html/folder/pub.tpl.php | 826++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------
themes/default/pages/html/folder/select.tpl.php | 785+++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------
themes/default/pages/html/folder/show.tpl.php | 1114++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------------
themes/default/pages/html/folder/showprop.tpl.php | 398+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------
themes/default/pages/html/index/password.tpl.php | 20+++++++++++---------
themes/default/pages/html/index/projectmenu.tpl.php | 247+++++++++++++++++++++++++++++++++++++++++++++++++------------------------------
themes/default/pages/html/index/register.tpl.php | 21+++++++++++++++------
themes/default/pages/html/index/show.tpl.php | 55++++++++++++++++++++++++++++++++-----------------------
themes/default/pages/html/index/showlogin.tpl.php | 2277++++++++++++++++++++++++++++++++++++++++---------------------------------------
themes/default/pages/html/main/show.tpl.php | 29+++++++++++++++++++----------
themes/default/pages/html/mainmenu/show.tpl.php | 730+++++++++++++++++++++++++++++++++++++++++--------------------------------------
themes/default/pages/html/model/edit.tpl.php | 162++++++++++++++++++++++++++++++++++++++++++++++++++++++++-----------------------
themes/default/pages/html/model/remove.tpl.php | 328++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------
themes/default/pages/html/object/aclform.tpl.php | 703+++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------------------
themes/default/pages/html/object/rights.tpl.php | 687+++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------
themes/default/pages/html/page/el.tpl.php | 1335++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------------
themes/default/pages/html/page/prop.tpl.php | 467+++++++++++++++++++++++++++++++++++++++++++++++++++----------------------------
themes/default/pages/html/page/pub.tpl.php | 290++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------------
themes/default/pages/html/page/showprop.tpl.php | 1486++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------------
themes/default/pages/html/page/src.tpl.php | 147+++----------------------------------------------------------------------------
themes/default/pages/html/pageelement/advanced.tpl.php | 3718+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/pageelement/archive.tpl.php | 1774+++++++++++++++++++++++++++++++++++++++++++++++++------------------------------
themes/default/pages/html/pageelement/edit.tpl.php | 1614+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/pageelement/editdate.tpl.php | 490+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------
themes/default/pages/html/pageelement/editdatecalendar.tpl.php | 463++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------
themes/default/pages/html/pageelement/editdateform.tpl.php | 697++++++++++++++++++++++++++-----------------------------------------------------
themes/default/pages/html/pageelement/editlink.tpl.php | 494+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------
themes/default/pages/html/pageelement/editlongtext.tpl.php | 304+++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------
themes/default/pages/html/pageelement/editnumber.tpl.php | 587+++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------
themes/default/pages/html/pageelement/edittext.tpl.php | 505++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------------
themes/default/pages/html/pageelement/show.tpl.php | 149++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------------
themes/default/pages/html/profile/edit.tpl.php | 551+++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------------------
themes/default/pages/html/project/add.tpl.php | 109++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------------
themes/default/pages/html/project/edit.tpl.php | 601++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------
themes/default/pages/html/project/listing.tpl.php | 13++++++++-----
themes/default/pages/html/project/maintenance.tpl.php | 39++++++++++++++++++++++++++++++---------
themes/default/pages/html/project/remove.tpl.php | 328++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------
themes/default/pages/html/title/show.tpl.php | 514+++++++++++++++++++++++++++++++++++++++++++++++++++----------------------------
themes/default/pages/html/tree/show.tpl.php | 25++++++++++++++++---------
themes/default/pages/html/treetitle/show.tpl.php | 430+++++++++++++++++++++++++++++++++++++++++++++++++++----------------------------
59 files changed, 25034 insertions(+), 11535 deletions(-)

diff --git a/themes/default/pages/html/background/show.tpl.php b/themes/default/pages/html/background/show.tpl.php @@ -1,21 +1,28 @@ -<?php $attr = array('class'=>'background') ?><?php $attr_class='background' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<?php $attr1 = array('class'=>'background','title'=>$cms_title) ?><?php $attr1_class='background' ?><?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() ?> +<?php unset($attr1) ?><?php unset($attr1_class) ?><?php unset($attr1_title) ?><?php $attr0 = array() ?> <!-- $Id$ --> <?php if ($showDuration) { ?> @@ -26,4 +33,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/border/show.tpl.php b/themes/default/pages/html/border/show.tpl.php @@ -1,21 +1,28 @@ -<?php $attr = array('class'=>'border') ?><?php $attr_class='border' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<?php $attr1 = array('class'=>'border','title'=>$cms_title) ?><?php $attr1_class='border' ?><?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() ?> +<?php unset($attr1) ?><?php unset($attr1_class) ?><?php unset($attr1_title) ?><?php $attr0 = array() ?> <!-- $Id$ --> <?php if ($showDuration) { ?> @@ -26,4 +33,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/element/name.tpl.php b/themes/default/pages/html/element/name.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'=>'GLOBAL_NAME','icon'=>'','widths'=>'','width'=>'85%') ?><?php $attr_title='' ?><?php $attr_name='GLOBAL_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('name'=>'GLOBAL_NAME','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr3_name='GLOBAL_NAME' ?><?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)) + { + $row_classes = explode(',',$attr3_rowclasses); + $row_class_idx = 999; + unset($attr3['rowclasses']); + } + if (!empty($attr3_columnclasses)) { - $column_widths = explode(',',$attr_widths); - unset($attr['widths']); + $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,142 +116,220 @@ <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_name) ?><?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 (!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( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6 = array('type'=>'text','name'=>'name','size'=>'40','maxlength'=>'256') ?><?php $attr6_type='text' ?><?php $attr6_name='name' ?><?php $attr6_size='40' ?><?php $attr6_maxlength='256' ?><input id="id<?php echo $attr6_name ?>" name="<?php echo $attr6_name ?>" type="<?php echo $attr6_type ?>" size="<?php echo $attr6_size ?>" maxlength="<?php echo $attr6_maxlength ?>" class="<?php echo $attr6_class ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" onxxxMouseOver="this.focus();" /><?php unset($attr6) ?><?php unset($attr6_type) ?><?php unset($attr6_name) ?><?php unset($attr6_size) ?><?php unset($attr6_maxlength) ?><?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; -?><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'=>'name','prefix'=>'','value'=>'','size'=>'40','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_index='' ?><?php $attr_name='name' ?><?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 - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - 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'=>'GLOBAL_DESCRIPTION','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_DESCRIPTION' ?><?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'=>'GLOBAL_DESCRIPTION') ?><?php $attr6_class='text' ?><?php $attr6_text='GLOBAL_DESCRIPTION' ?><?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 (!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( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6 = array('name'=>'description','rows'=>'5','cols'=>'50') ?><?php $attr6_name='description' ?><?php $attr6_rows='5' ?><?php $attr6_cols='50' ?><textarea class="<?php echo $attr6_class ?>" name="<?php echo $attr6_name ?>" rows="<?php echo $attr6_rows ?>" cols="<?php echo $attr6_cols ?>"><?php echo htmlentities(isset($$attr6_name)?$$attr6_name:$attr6_default) ?></textarea><?php unset($attr6) ?><?php unset($attr6_name) ?><?php unset($attr6_rows) ?><?php unset($attr6_cols) ?><?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; -?><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('name'=>'description','rows'=>'5','cols'=>'50','value'=>'','index'=>'','onchange'=>'','prefix'=>'','class'=>'','default'=>'') ?><?php $attr_name='description' ?><?php $attr_rows='5' ?><?php $attr_cols='50' ?><?php $attr_value='' ?><?php $attr_index='' ?><?php $attr_onchange='' ?><?php $attr_prefix='' ?><?php $attr_class='' ?><?php $attr_default='' ?><textarea name="<?php echo $attr_name ?>" rows="<?php echo $attr_rows ?>" cols="<?php echo $attr_cols ?>"><?php echo htmlentities(isset($$attr_name)?$$attr_name:$attr_default) ?></textarea><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_rows) ?><?php unset($attr_cols) ?><?php unset($attr_value) ?><?php unset($attr_index) ?><?php unset($attr_onchange) ?><?php unset($attr_prefix) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><?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'; - 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> @@ -239,11 +343,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'=>'name') ?><?php $attr_field='name' ?><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'=>'name') ?><?php $attr2_field='name' ?> +<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) { ?> @@ -254,4 +363,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/element/properties.tpl.php b/themes/default/pages/html/element/properties.tpl.php @@ -1,61 +1,71 @@ -<?php $attr = array('class'=>'main title') ?><?php $attr_class='main title' ?><!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 $attr_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('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(); - -?><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 +<?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 $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('name'=>'GLOBAL_PREFS','widths'=>'30%,70%','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr_name='GLOBAL_PREFS' ?><?php $attr_widths='30%,70%' ?><?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('name'=>'GLOBAL_PREFS','widths'=>'30%,70%','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr3_name='GLOBAL_PREFS' ?><?php $attr3_widths='30%,70%' ?><?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) { extract($pathElement); @@ -106,3906 +116,4000 @@ <tr> <td> - <table class="n" cellspacing="0" width="100%" cellpadding="4"><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_widths) ?><?php unset($attr_width) ?><?php unset($attr_rowclasses) ?><?php unset($attr_columnclasses) ?><?php $attr = array('present'=>'subtype') ?><?php $attr_present='subtype' ?><?php + <table class="n" cellspacing="0" width="100%" cellpadding="4"><?php unset($attr3) ?><?php unset($attr3_name) ?><?php unset($attr3_widths) ?><?php unset($attr3_width) ?><?php unset($attr3_rowclasses) ?><?php unset($attr3_columnclasses) ?><?php $attr4 = array('present'=>'subtype') ?><?php $attr4_present='subtype' ?><?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) ) + if ( !isset($$attr4_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; + 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) ) + 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_present) ?><?php $attr = array() ?><?php +?><?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($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('class'=>'text','text'=>'ELEMENT_SUBTYPE') ?><?php $attr_class='text' ?><?php $attr_text='ELEMENT_SUBTYPE' ?><?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('class'=>'text','text'=>'ELEMENT_SUBTYPE') ?><?php $attr7_class='text' ?><?php $attr7_text='ELEMENT_SUBTYPE' ?><?php + 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]; - 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_text) ?><?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; +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_text) ?><?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('present'=>'subtypes') ?><?php $attr_present='subtypes' ?><?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('present'=>'subtypes') ?><?php $attr7_present='subtypes' ?><?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) ) + if ( !isset($$attr7_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; + 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) ) + 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('list'=>'subtypes','name'=>'subtype','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='subtypes' ?><?php $attr_name='subtype' ?><?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"' +?><?php unset($attr7) ?><?php unset($attr7_present) ?><?php $attr8 = array('list'=>'subtypes','name'=>'subtype') ?><?php $attr8_list='subtypes' ?><?php $attr8_name='subtype' ?><select size="1" id="id<?php echo $attr8_name ?>" name="<?php echo $attr8_name ?>" onchange="<?php echo $attr8_onchange ?>" title="<?php echo $attr8_title ?>" class="<?php echo $attr8_class ?>"<?php +if (count($$attr8_list)==1) echo ' disabled="disabled"' ?>><?php - foreach( $$attr_list as $box_key=>$box_value ) + foreach( $$attr8_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="'.$attr8_class.'" value="'.$box_key.'"'; + if (isset($$attr8_name)&&$box_key==$$attr8_name || isset($attr8_default)&&$box_key == $attr8_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_onchange) ?><?php unset($attr_title) ?><?php unset($attr_class) ?><?php $attr = array() ?><?php +if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" value="'.$box_key.'" />' +?><?php unset($attr8) ?><?php unset($attr8_list) ?><?php unset($attr8_name) ?><?php $attr6 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array('not'=>'1','present'=>'subtypes') ?><?php $attr_not='1' ?><?php $attr_present='subtypes' ?><?php +?><?php unset($attr6) ?><?php $attr7 = array('not'=>'1','present'=>'subtypes') ?><?php $attr7_not='1' ?><?php $attr7_present='subtypes' ?><?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) ) + if ( !isset($$attr7_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; + 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) ) + 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_not) ?><?php unset($attr_present) ?><?php $attr = array('class'=>'','default'=>'','type'=>'text','name'=>'subtype','size'=>'40','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_name='subtype' ?><?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 ?>" onxxxMouseOver="this.focus();" /><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><?php unset($attr_type) ?><?php unset($attr_name) ?><?php unset($attr_size) ?><?php unset($attr_maxlength) ?><?php unset($attr_onchange) ?><?php $attr = array() ?><?php +?><?php unset($attr7) ?><?php unset($attr7_not) ?><?php unset($attr7_present) ?><?php $attr8 = array('type'=>'text','name'=>'subtype','size'=>'40','maxlength'=>'256') ?><?php $attr8_type='text' ?><?php $attr8_name='subtype' ?><?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_size) ?><?php unset($attr8_maxlength) ?><?php $attr6 = 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($attr6) ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array('present'=>'with_icon') ?><?php $attr_present='with_icon' ?><?php +?><?php unset($attr3) ?><?php $attr4 = array('present'=>'with_icon') ?><?php $attr4_present='with_icon' ?><?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) ) + if ( !isset($$attr4_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; + 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) ) + 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_present) ?><?php $attr = array() ?><?php +?><?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($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('class'=>'text','text'=>'EL_PROP_WITH_ICON') ?><?php $attr_class='text' ?><?php $attr_text='EL_PROP_WITH_ICON' ?><?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('class'=>'text','text'=>'EL_PROP_WITH_ICON') ?><?php $attr7_class='text' ?><?php $attr7_text='EL_PROP_WITH_ICON' ?><?php + 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]; - 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_text) ?><?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; +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_text) ?><?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('default'=>'','readonly'=>'','name'=>'with_icon') ?><?php $attr_default='' ?><?php $attr_readonly='' ?><?php $attr_name='with_icon' ?><?php - $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_class) ?><?php $attr7 = array('default'=>'','readonly'=>'','name'=>'with_icon') ?><?php $attr7_default='' ?><?php $attr7_readonly='' ?><?php $attr7_name='with_icon' ?><?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() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php + $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 $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array('present'=>'all_languages') ?><?php $attr_present='all_languages' ?><?php +?><?php unset($attr3) ?><?php $attr4 = array('present'=>'all_languages') ?><?php $attr4_present='all_languages' ?><?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) ) + if ( !isset($$attr4_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; + 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) ) + 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_present) ?><?php $attr = array() ?><?php +?><?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($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('class'=>'text','text'=>'EL_PROP_ALL_LANGUAGES') ?><?php $attr_class='text' ?><?php $attr_text='EL_PROP_ALL_LANGUAGES' ?><?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('class'=>'text','text'=>'EL_PROP_ALL_LANGUAGES') ?><?php $attr7_class='text' ?><?php $attr7_text='EL_PROP_ALL_LANGUAGES' ?><?php + 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]; - 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_text) ?><?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; +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_text) ?><?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('default'=>'','readonly'=>'','name'=>'all_languages') ?><?php $attr_default='' ?><?php $attr_readonly='' ?><?php $attr_name='all_languages' ?><?php - $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_class) ?><?php $attr7 = array('default'=>'','readonly'=>'','name'=>'all_languages') ?><?php $attr7_default='' ?><?php $attr7_readonly='' ?><?php $attr7_name='all_languages' ?><?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() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php + $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 $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array('present'=>'writable') ?><?php $attr_present='writable' ?><?php +?><?php unset($attr3) ?><?php $attr4 = array('present'=>'writable') ?><?php $attr4_present='writable' ?><?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) ) + if ( !isset($$attr4_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; + 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) ) + 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_present) ?><?php $attr = array() ?><?php +?><?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($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('class'=>'text','text'=>'EL_PROP_writable') ?><?php $attr_class='text' ?><?php $attr_text='EL_PROP_writable' ?><?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('class'=>'text','text'=>'EL_PROP_writable') ?><?php $attr7_class='text' ?><?php $attr7_text='EL_PROP_writable' ?><?php + 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]; - 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_text) ?><?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; +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_text) ?><?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('default'=>'','readonly'=>'','name'=>'writable') ?><?php $attr_default='' ?><?php $attr_readonly='' ?><?php $attr_name='writable' ?><?php - $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_class) ?><?php $attr7 = array('default'=>'','readonly'=>'','name'=>'writable') ?><?php $attr7_default='' ?><?php $attr7_readonly='' ?><?php $attr7_name='writable' ?><?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() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php + $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 $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array('present'=>'width') ?><?php $attr_present='width' ?><?php +?><?php unset($attr3) ?><?php $attr4 = array('present'=>'width') ?><?php $attr4_present='width' ?><?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) ) + if ( !isset($$attr4_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; + 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) ) + 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_present) ?><?php $attr = array() ?><?php +?><?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($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('class'=>'text','text'=>'width') ?><?php $attr_class='text' ?><?php $attr_text='width' ?><?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('class'=>'text','text'=>'width') ?><?php $attr7_class='text' ?><?php $attr7_text='width' ?><?php + 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]; - 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_text) ?><?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; +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_text) ?><?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('class'=>'','default'=>'','type'=>'text','name'=>'width','size'=>'10','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_name='width' ?><?php $attr_size='10' ?><?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 ?>" onxxxMouseOver="this.focus();" /><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><?php unset($attr_type) ?><?php unset($attr_name) ?><?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_class) ?><?php $attr7 = array('type'=>'text','name'=>'width','size'=>'10','maxlength'=>'256') ?><?php $attr7_type='text' ?><?php $attr7_name='width' ?><?php $attr7_size='10' ?><?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('present'=>'height') ?><?php $attr_present='height' ?><?php +?><?php unset($attr3) ?><?php $attr4 = array('present'=>'height') ?><?php $attr4_present='height' ?><?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) ) + if ( !isset($$attr4_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; + 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) ) + 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_present) ?><?php $attr = array() ?><?php +?><?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($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('class'=>'text','text'=>'height') ?><?php $attr_class='text' ?><?php $attr_text='height' ?><?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('class'=>'text','text'=>'height') ?><?php $attr7_class='text' ?><?php $attr7_text='height' ?><?php + 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]; - 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_text) ?><?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; +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_text) ?><?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('class'=>'','default'=>'','type'=>'text','name'=>'height','size'=>'10','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_name='height' ?><?php $attr_size='10' ?><?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 ?>" onxxxMouseOver="this.focus();" /><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><?php unset($attr_type) ?><?php unset($attr_name) ?><?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_class) ?><?php $attr7 = array('type'=>'text','name'=>'height','size'=>'10','maxlength'=>'256') ?><?php $attr7_type='text' ?><?php $attr7_name='height' ?><?php $attr7_size='10' ?><?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('present'=>'dateformat') ?><?php $attr_present='dateformat' ?><?php +?><?php unset($attr3) ?><?php $attr4 = array('present'=>'dateformat') ?><?php $attr4_present='dateformat' ?><?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) ) + if ( !isset($$attr4_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; + 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) ) + 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_present) ?><?php $attr = array() ?><?php +?><?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($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('class'=>'text','text'=>'EL_PROP_DATEFORMAT') ?><?php $attr_class='text' ?><?php $attr_text='EL_PROP_DATEFORMAT' ?><?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('class'=>'text','text'=>'EL_PROP_DATEFORMAT') ?><?php $attr7_class='text' ?><?php $attr7_text='EL_PROP_DATEFORMAT' ?><?php + 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]; - 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_text) ?><?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; +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_text) ?><?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('list'=>'dateformats','name'=>'dateformat','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='dateformats' ?><?php $attr_name='dateformat' ?><?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"' +?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php $attr7 = array('list'=>'dateformats','name'=>'dateformat') ?><?php $attr7_list='dateformats' ?><?php $attr7_name='dateformat' ?><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_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('present'=>'wiki') ?><?php $attr_present='wiki' ?><?php +?><?php unset($attr3) ?><?php $attr4 = array('present'=>'wiki') ?><?php $attr4_present='wiki' ?><?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) ) + if ( !isset($$attr4_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; + 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) ) + 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_present) ?><?php $attr = array() ?><?php +?><?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($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('class'=>'text','text'=>'EL_PROP_wiki') ?><?php $attr_class='text' ?><?php $attr_text='EL_PROP_wiki' ?><?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('class'=>'text','text'=>'EL_PROP_wiki') ?><?php $attr7_class='text' ?><?php $attr7_text='EL_PROP_wiki' ?><?php + 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]; - 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_text) ?><?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; +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_text) ?><?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('default'=>'','readonly'=>'','name'=>'wiki') ?><?php $attr_default='' ?><?php $attr_readonly='' ?><?php $attr_name='wiki' ?><?php - $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_class) ?><?php $attr7 = array('default'=>'','readonly'=>'','name'=>'wiki') ?><?php $attr7_default='' ?><?php $attr7_readonly='' ?><?php $attr7_name='wiki' ?><?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() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php + $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 $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array('present'=>'html') ?><?php $attr_present='html' ?><?php +?><?php unset($attr3) ?><?php $attr4 = array('present'=>'html') ?><?php $attr4_present='html' ?><?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) ) + if ( !isset($$attr4_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; + 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) ) + 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_present) ?><?php $attr = array() ?><?php +?><?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($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('class'=>'text','text'=>'EL_PROP_html') ?><?php $attr_class='text' ?><?php $attr_text='EL_PROP_html' ?><?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('class'=>'text','text'=>'EL_PROP_html') ?><?php $attr7_class='text' ?><?php $attr7_text='EL_PROP_html' ?><?php + 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]; - 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_text) ?><?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; +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_text) ?><?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('default'=>'','readonly'=>'','name'=>'html') ?><?php $attr_default='' ?><?php $attr_readonly='' ?><?php $attr_name='html' ?><?php - $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_class) ?><?php $attr7 = array('default'=>'','readonly'=>'','name'=>'html') ?><?php $attr7_default='' ?><?php $attr7_readonly='' ?><?php $attr7_name='html' ?><?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() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php + $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 $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array('present'=>'decimals') ?><?php $attr_present='decimals' ?><?php +?><?php unset($attr3) ?><?php $attr4 = array('present'=>'decimals') ?><?php $attr4_present='decimals' ?><?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) ) + if ( !isset($$attr4_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; + 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) ) + 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_present) ?><?php $attr = array() ?><?php +?><?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($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('class'=>'text','text'=>'EL_PROP_DECIMALS') ?><?php $attr_class='text' ?><?php $attr_text='EL_PROP_DECIMALS' ?><?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('class'=>'text','text'=>'EL_PROP_DECIMALS') ?><?php $attr7_class='text' ?><?php $attr7_text='EL_PROP_DECIMALS' ?><?php + 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]; - 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_text) ?><?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; +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_text) ?><?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('class'=>'','default'=>'','type'=>'text','name'=>'decimals','size'=>'10','maxlength'=>'2','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_name='decimals' ?><?php $attr_size='10' ?><?php $attr_maxlength='2' ?><?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 ?>" onxxxMouseOver="this.focus();" /><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><?php unset($attr_type) ?><?php unset($attr_name) ?><?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_class) ?><?php $attr7 = array('type'=>'text','name'=>'decimals','size'=>'10','maxlength'=>'2') ?><?php $attr7_type='text' ?><?php $attr7_name='decimals' ?><?php $attr7_size='10' ?><?php $attr7_maxlength='2' ?><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('present'=>'dec_point') ?><?php $attr_present='dec_point' ?><?php +?><?php unset($attr3) ?><?php $attr4 = array('present'=>'dec_point') ?><?php $attr4_present='dec_point' ?><?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) ) + if ( !isset($$attr4_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; + 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) ) + 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_present) ?><?php $attr = array() ?><?php +?><?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($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('class'=>'text','text'=>'EL_PROP_DEC_POINT') ?><?php $attr_class='text' ?><?php $attr_text='EL_PROP_DEC_POINT' ?><?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('class'=>'text','text'=>'EL_PROP_DEC_POINT') ?><?php $attr7_class='text' ?><?php $attr7_text='EL_PROP_DEC_POINT' ?><?php + 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]; - 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_text) ?><?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; +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_text) ?><?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('class'=>'','default'=>'','type'=>'text','name'=>'dec_point','size'=>'10','maxlength'=>'5','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_name='dec_point' ?><?php $attr_size='10' ?><?php $attr_maxlength='5' ?><?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 ?>" onxxxMouseOver="this.focus();" /><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><?php unset($attr_type) ?><?php unset($attr_name) ?><?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_class) ?><?php $attr7 = array('type'=>'text','name'=>'dec_point','size'=>'10','maxlength'=>'5') ?><?php $attr7_type='text' ?><?php $attr7_name='dec_point' ?><?php $attr7_size='10' ?><?php $attr7_maxlength='5' ?><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('present'=>'thousand_sep') ?><?php $attr_present='thousand_sep' ?><?php +?><?php unset($attr3) ?><?php $attr4 = array('present'=>'thousand_sep') ?><?php $attr4_present='thousand_sep' ?><?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) ) + if ( !isset($$attr4_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; + 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) ) + 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_present) ?><?php $attr = array() ?><?php +?><?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($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('class'=>'text','text'=>'EL_PROP_thousand_sep') ?><?php $attr_class='text' ?><?php $attr_text='EL_PROP_thousand_sep' ?><?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('class'=>'text','text'=>'EL_PROP_thousand_sep') ?><?php $attr7_class='text' ?><?php $attr7_text='EL_PROP_thousand_sep' ?><?php + 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]; - 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_text) ?><?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; +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_text) ?><?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('class'=>'','default'=>'','type'=>'text','name'=>'thousand_sep','size'=>'10','maxlength'=>'1','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_name='thousand_sep' ?><?php $attr_size='10' ?><?php $attr_maxlength='1' ?><?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 ?>" onxxxMouseOver="this.focus();" /><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><?php unset($attr_type) ?><?php unset($attr_name) ?><?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_class) ?><?php $attr7 = array('type'=>'text','name'=>'thousand_sep','size'=>'10','maxlength'=>'1') ?><?php $attr7_type='text' ?><?php $attr7_name='thousand_sep' ?><?php $attr7_size='10' ?><?php $attr7_maxlength='1' ?><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('present'=>'default_text') ?><?php $attr_present='default_text' ?><?php +?><?php unset($attr3) ?><?php $attr4 = array('present'=>'default_text') ?><?php $attr4_present='default_text' ?><?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) ) + if ( !isset($$attr4_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; + 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) ) + 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_present) ?><?php $attr = array() ?><?php +?><?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($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('class'=>'text','text'=>'EL_PROP_default_text') ?><?php $attr_class='text' ?><?php $attr_text='EL_PROP_default_text' ?><?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('class'=>'text','text'=>'EL_PROP_default_text') ?><?php $attr7_class='text' ?><?php $attr7_text='EL_PROP_default_text' ?><?php + 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]; - 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_text) ?><?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; +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_text) ?><?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('class'=>'','default'=>'','type'=>'text','name'=>'default_text','size'=>'40','maxlength'=>'255','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_name='default_text' ?><?php $attr_size='40' ?><?php $attr_maxlength='255' ?><?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 ?>" onxxxMouseOver="this.focus();" /><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><?php unset($attr_type) ?><?php unset($attr_name) ?><?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_class) ?><?php $attr7 = array('type'=>'text','name'=>'default_text','size'=>'40','maxlength'=>'255') ?><?php $attr7_type='text' ?><?php $attr7_name='default_text' ?><?php $attr7_size='40' ?><?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_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('present'=>'default_longtext') ?><?php $attr_present='default_longtext' ?><?php +?><?php unset($attr3) ?><?php $attr4 = array('present'=>'default_longtext') ?><?php $attr4_present='default_longtext' ?><?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) ) + if ( !isset($$attr4_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; + 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) ) + 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_present) ?><?php $attr = array() ?><?php +?><?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($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('class'=>'text','text'=>'EL_PROP_default_longtext') ?><?php $attr_class='text' ?><?php $attr_text='EL_PROP_default_longtext' ?><?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('class'=>'text','text'=>'EL_PROP_default_longtext') ?><?php $attr7_class='text' ?><?php $attr7_text='EL_PROP_default_longtext' ?><?php + 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]; - 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_text) ?><?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; +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_text) ?><?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('name'=>'default_longtext','rows'=>'10','cols'=>'40','class'=>'') ?><?php $attr_name='default_longtext' ?><?php $attr_rows='10' ?><?php $attr_cols='40' ?><?php $attr_class='' ?><textarea class="<?php echo $attr_class ?>" name="<?php echo $attr_name ?>" rows="<?php echo $attr_rows ?>" cols="<?php echo $attr_cols ?>"><?php echo htmlentities(isset($$attr_name)?$$attr_name:$attr_default) ?></textarea><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_rows) ?><?php unset($attr_cols) ?><?php unset($attr_class) ?><?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_class) ?><?php $attr7 = array('name'=>'default_longtext','rows'=>'10','cols'=>'40') ?><?php $attr7_name='default_longtext' ?><?php $attr7_rows='10' ?><?php $attr7_cols='40' ?><textarea class="<?php echo $attr7_class ?>" name="<?php echo $attr7_name ?>" rows="<?php echo $attr7_rows ?>" cols="<?php echo $attr7_cols ?>"><?php echo htmlentities(isset($$attr7_name)?$$attr7_name:$attr7_default) ?></textarea><?php unset($attr7) ?><?php unset($attr7_name) ?><?php unset($attr7_rows) ?><?php unset($attr7_cols) ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array('present'=>'parameters') ?><?php $attr_present='parameters' ?><?php +?><?php unset($attr3) ?><?php $attr4 = array('present'=>'parameters') ?><?php $attr4_present='parameters' ?><?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) ) + if ( !isset($$attr4_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; + 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) ) + 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_present) ?><?php $attr = array() ?><?php +?><?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($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('class'=>'text','text'=>'EL_PROP_DYNAMIC_PARAMETERS') ?><?php $attr_class='text' ?><?php $attr_text='EL_PROP_DYNAMIC_PARAMETERS' ?><?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('class'=>'text','text'=>'EL_PROP_DYNAMIC_PARAMETERS') ?><?php $attr7_class='text' ?><?php $attr7_text='EL_PROP_DYNAMIC_PARAMETERS' ?><?php + 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]; - 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_text) ?><?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; +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_text) ?><?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('name'=>'parameters','rows'=>'15','cols'=>'40','class'=>'') ?><?php $attr_name='parameters' ?><?php $attr_rows='15' ?><?php $attr_cols='40' ?><?php $attr_class='' ?><textarea class="<?php echo $attr_class ?>" name="<?php echo $attr_name ?>" rows="<?php echo $attr_rows ?>" cols="<?php echo $attr_cols ?>"><?php echo htmlentities(isset($$attr_name)?$$attr_name:$attr_default) ?></textarea><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_rows) ?><?php unset($attr_cols) ?><?php unset($attr_class) ?><?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_class) ?><?php $attr7 = array('name'=>'parameters','rows'=>'15','cols'=>'40') ?><?php $attr7_name='parameters' ?><?php $attr7_rows='15' ?><?php $attr7_cols='40' ?><textarea class="<?php echo $attr7_class ?>" name="<?php echo $attr7_name ?>" rows="<?php echo $attr7_rows ?>" cols="<?php echo $attr7_cols ?>"><?php echo htmlentities(isset($$attr7_name)?$$attr7_name:$attr7_default) ?></textarea><?php unset($attr7) ?><?php unset($attr7_name) ?><?php unset($attr7_rows) ?><?php unset($attr7_cols) ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?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() ?></td><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?php -// if (empty($attr_class)) -// $attr['class']=$row_class; +?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?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('list'=>'dynamic_class_parameters','extract'=>'','key'=>'paramName','value'=>'defaultValue') ?><?php $attr_list='dynamic_class_parameters' ?><?php $attr_extract='' ?><?php $attr_key='paramName' ?><?php $attr_value='defaultValue' ?><?php - $list_tmp_key = $attr_key; - $list_tmp_value = $attr_value; - $list_extract = ($attr_extract=='true'); +?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php $attr7 = array('list'=>'dynamic_class_parameters','extract'=>'','key'=>'paramName','value'=>'defaultValue') ?><?php $attr7_list='dynamic_class_parameters' ?><?php $attr7_extract='' ?><?php $attr7_key='paramName' ?><?php $attr7_value='defaultValue' ?><?php + $attr7_list_tmp_key = $attr7_key; + $attr7_list_tmp_value = $attr7_value; + $attr7_list_extract = ($attr7_extract==true); + if ( !is_array($$attr7_list) ) + $$attr7_list = array(); +// die('not an array in list,var='.$attr7_list); +// Html::debug($$attr7_list); - foreach( $$attr_list as $$list_tmp_key => $$list_tmp_value ) + foreach( $$attr7_list as $$attr7_list_tmp_key => $$attr7_list_tmp_value ) { - if ( $list_extract ) + if ( $attr7_list_extract ) { - if ( !is_array($$list_tmp_value) ) + if ( !is_array($$attr7_list_tmp_value) ) { - print_r($$list_tmp_value); - die( 'not an array at key: '.$$list_tmp_key ); + print_r($$attr7_list_tmp_value); + die( 'not an array at key: '.$$attr7_list_tmp_key ); } - extract($$list_tmp_value); + extract($$attr7_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('class'=>'text','var'=>'paramName') ?><?php $attr_class='text' ?><?php $attr_var='paramName' ?><?php - if(empty($attr_title)) - if (!empty($attr_key)) - $attr_title = lang($attr_key).'_HELP'; +?><?php unset($attr7) ?><?php unset($attr7_list) ?><?php unset($attr7_extract) ?><?php unset($attr7_key) ?><?php unset($attr7_value) ?><?php $attr8 = array('class'=>'text','var'=>'paramName') ?><?php $attr8_class='text' ?><?php $attr8_var='paramName' ?><?php + 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]; - 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 $$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 - { 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(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]; - 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 $$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 - { 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_DEFAULT') ?><?php $attr_class='text' ?><?php $attr_text='GLOBAL_DEFAULT' ?><?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_DEFAULT') ?><?php $attr8_class='text' ?><?php $attr8_text='GLOBAL_DEFAULT' ?><?php + 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]; - 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 $$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 - { 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('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_text) ?><?php $attr8 = array('class'=>'text','raw'=>')_=_') ?><?php $attr8_class='text' ?><?php $attr8_raw=')_=_' ?><?php + 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]; - 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 $$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 - { 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','var'=>'defaultValue') ?><?php $attr_class='text' ?><?php $attr_var='defaultValue' ?><?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','var'=>'defaultValue') ?><?php $attr8_class='text' ?><?php $attr8_var='defaultValue' ?><?php + 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]; - 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 $$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 - { 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() ?><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_var) ?><?php $attr8 = array() ?><br/><?php unset($attr8) ?><?php $attr6 = array() ?><?php } ?><?php unset($attr6) ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array('present'=>'select_items') ?><?php $attr_present='select_items' ?><?php +?><?php unset($attr3) ?><?php $attr4 = array('present'=>'select_items') ?><?php $attr4_present='select_items' ?><?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) ) + if ( !isset($$attr4_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; + 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) ) + 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_present) ?><?php $attr = array() ?><?php +?><?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($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('class'=>'text','text'=>'EL_PROP_select_items') ?><?php $attr_class='text' ?><?php $attr_text='EL_PROP_select_items' ?><?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('class'=>'text','text'=>'EL_PROP_select_items') ?><?php $attr7_class='text' ?><?php $attr7_text='EL_PROP_select_items' ?><?php + 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]; - 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_text) ?><?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; +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_text) ?><?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('name'=>'select_items','rows'=>'15','cols'=>'40','class'=>'') ?><?php $attr_name='select_items' ?><?php $attr_rows='15' ?><?php $attr_cols='40' ?><?php $attr_class='' ?><textarea class="<?php echo $attr_class ?>" name="<?php echo $attr_name ?>" rows="<?php echo $attr_rows ?>" cols="<?php echo $attr_cols ?>"><?php echo htmlentities(isset($$attr_name)?$$attr_name:$attr_default) ?></textarea><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_rows) ?><?php unset($attr_cols) ?><?php unset($attr_class) ?><?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_class) ?><?php $attr7 = array('name'=>'select_items','rows'=>'15','cols'=>'40') ?><?php $attr7_name='select_items' ?><?php $attr7_rows='15' ?><?php $attr7_cols='40' ?><textarea class="<?php echo $attr7_class ?>" name="<?php echo $attr7_name ?>" rows="<?php echo $attr7_rows ?>" cols="<?php echo $attr7_cols ?>"><?php echo htmlentities(isset($$attr7_name)?$$attr7_name:$attr7_default) ?></textarea><?php unset($attr7) ?><?php unset($attr7_name) ?><?php unset($attr7_rows) ?><?php unset($attr7_cols) ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array('present'=>'folderobjectid') ?><?php $attr_present='folderobjectid' ?><?php +?><?php unset($attr3) ?><?php $attr4 = array('present'=>'folderobjectid') ?><?php $attr4_present='folderobjectid' ?><?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) ) + if ( !isset($$attr4_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; + 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) ) + 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_present) ?><?php $attr = array() ?><?php +?><?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($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('class'=>'text','text'=>'EL_PROP_DEFAULT_FOLDEROBJECT') ?><?php $attr_class='text' ?><?php $attr_text='EL_PROP_DEFAULT_FOLDEROBJECT' ?><?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('class'=>'text','text'=>'EL_PROP_DEFAULT_FOLDEROBJECT') ?><?php $attr7_class='text' ?><?php $attr7_text='EL_PROP_DEFAULT_FOLDEROBJECT' ?><?php + 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]; - 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_text) ?><?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; +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_text) ?><?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('list'=>'folders','name'=>'folderobjectid','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='folders' ?><?php $attr_name='folderobjectid' ?><?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"' +?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php $attr7 = array('list'=>'folders','name'=>'folderobjectid') ?><?php $attr7_list='folders' ?><?php $attr7_name='folderobjectid' ?><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_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('present'=>'default_objectid') ?><?php $attr_present='default_objectid' ?><?php +?><?php unset($attr3) ?><?php $attr4 = array('present'=>'default_objectid') ?><?php $attr4_present='default_objectid' ?><?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) ) + if ( !isset($$attr4_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; + 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) ) + 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_present) ?><?php $attr = array() ?><?php +?><?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($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('class'=>'text','text'=>'EL_PROP_DEFAULT_OBJECT') ?><?php $attr_class='text' ?><?php $attr_text='EL_PROP_DEFAULT_OBJECT' ?><?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('class'=>'text','text'=>'EL_PROP_DEFAULT_OBJECT') ?><?php $attr7_class='text' ?><?php $attr7_text='EL_PROP_DEFAULT_OBJECT' ?><?php + 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]; - 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_text) ?><?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; +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_text) ?><?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('list'=>'objects','name'=>'default_objectid','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='objects' ?><?php $attr_name='default_objectid' ?><?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"' +?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php $attr7 = array('list'=>'objects','name'=>'default_objectid') ?><?php $attr7_list='objects' ?><?php $attr7_name='default_objectid' ?><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_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('present'=>'code') ?><?php $attr_present='code' ?><?php +?><?php unset($attr3) ?><?php $attr4 = array('present'=>'code') ?><?php $attr4_present='code' ?><?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) ) + if ( !isset($$attr4_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; + 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) ) + 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_present) ?><?php $attr = array() ?><?php +?><?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($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('class'=>'text','text'=>'EL_PROP_code') ?><?php $attr_class='text' ?><?php $attr_text='EL_PROP_code' ?><?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('class'=>'text','text'=>'EL_PROP_code') ?><?php $attr7_class='text' ?><?php $attr7_text='EL_PROP_code' ?><?php + 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]; - 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_text) ?><?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; +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_text) ?><?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('name'=>'code','rows'=>'35','cols'=>'60','class'=>'') ?><?php $attr_name='code' ?><?php $attr_rows='35' ?><?php $attr_cols='60' ?><?php $attr_class='' ?><textarea class="<?php echo $attr_class ?>" name="<?php echo $attr_name ?>" rows="<?php echo $attr_rows ?>" cols="<?php echo $attr_cols ?>"><?php echo htmlentities(isset($$attr_name)?$$attr_name:$attr_default) ?></textarea><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_rows) ?><?php unset($attr_cols) ?><?php unset($attr_class) ?><?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_class) ?><?php $attr7 = array('name'=>'code','rows'=>'35','cols'=>'60') ?><?php $attr7_name='code' ?><?php $attr7_rows='35' ?><?php $attr7_cols='60' ?><textarea class="<?php echo $attr7_class ?>" name="<?php echo $attr7_name ?>" rows="<?php echo $attr7_rows ?>" cols="<?php echo $attr7_cols ?>"><?php echo htmlentities(isset($$attr7_name)?$$attr7_name:$attr7_default) ?></textarea><?php unset($attr7) ?><?php unset($attr7_name) ?><?php unset($attr7_rows) ?><?php unset($attr7_cols) ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = 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'=>'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_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> @@ -4019,16 +4123,16 @@ 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($attr2) ?><?php $attr1 = array() ?></form> -<?php unset($attr) ?><?php $attr = array('field'=>'name') ?><?php $attr_field='name' ?> +<?php unset($attr1) ?><?php $attr2 = array('field'=>'name') ?><?php $attr2_field='name' ?> <script name="JavaScript" type="text/javascript"> <!-- -document.forms[0].<?php echo $attr_field ?>.focus(); -document.forms[0].<?php echo $attr_field ?>.select(); +document.forms[0].<?php echo $attr2_field ?>.focus(); +document.forms[0].<?php echo $attr2_field ?>.select(); // --> </script> -<?php unset($attr) ?><?php unset($attr_field) ?><?php $attr = array() ?> +<?php unset($attr2) ?><?php unset($attr2_field) ?><?php $attr0 = array() ?> <!-- $Id$ --> <?php if ($showDuration) { ?> @@ -4039,4 +4143,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/element/type.tpl.php b/themes/default/pages/html/element/type.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'=>'GLOBAL_NAME','icon'=>'','widths'=>'','width'=>'85%') ?><?php $attr_title='' ?><?php $attr_name='GLOBAL_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('name'=>'GLOBAL_NAME','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr3_name='GLOBAL_NAME' ?><?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,100 +116,144 @@ <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_name) ?><?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_TYPE','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='ELEMENT_TYPE' ?><?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_TYPE') ?><?php $attr6_class='text' ?><?php $attr6_text='ELEMENT_TYPE' ?><?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 (!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('list'=>'types','name'=>'type','default'=>'','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='types' ?><?php $attr_name='type' ?><?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"' +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6 = array('list'=>'types','name'=>'type') ?><?php $attr6_list='types' ?><?php $attr6_name='type' ?><select size="1" id="id<?php echo $attr6_name ?>" name="<?php echo $attr6_name ?>" onchange="<?php echo $attr6_onchange ?>" title="<?php echo $attr6_title ?>" class="<?php echo $attr6_class ?>"<?php +if (count($$attr6_list)==1) echo ' disabled="disabled"' ?>><?php - foreach( $$attr_list as $box_key=>$box_value ) + foreach( $$attr6_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="'.$attr6_class.'" value="'.$box_key.'"'; + if (isset($$attr6_name)&&$box_key==$$attr6_name || isset($attr6_default)&&$box_key == $attr6_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 - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - +if (count($$attr6_list)==1) echo '<input type="hidden" name="'.$attr6_name.'" value="'.$box_key.'" />' +?><?php unset($attr6) ?><?php unset($attr6_list) ?><?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'=>'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> @@ -197,11 +267,16 @@ 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('field'=>'type') ?><?php $attr_field='type' ?><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'=>'type') ?><?php $attr2_field='type' ?> +<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) { ?> @@ -212,4 +287,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/compress.tpl.php b/themes/default/pages/html/file/compress.tpl.php @@ -1,9 +1,10 @@ -<?php $attr = array('class'=>'') ?><?php $attr_class='' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<?php $attr = array('class'=>'main','title'=>'var') ?><?php $attr_class='main' ?><?php $attr_title='var' ?><?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 $attr_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" /> <link rel="stylesheet" type="text/css" href="./themes/default/css/default.css" /> @@ -12,10 +13,9 @@ <?php } ?> </head> -<body<?php echo !empty($$attr_class)?' class="'.$$attr_class.'"':' class="'.$attr_class.'"' ?>> +<body class="<?php echo $attr_class ?>"> - -<?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('action'=>'file','subaction'=>'docompress','id'=>'','name'=>'','target'=>'_self','method'=>'post','enctype'=>'application/x-www-form-urlencoded') ?><?php $attr_action='file' ?><?php $attr_subaction='docompress' ?><?php $attr_id='' ?><?php $attr_name='' ?><?php $attr_target='_self' ?><?php $attr_method='post' ?><?php $attr_enctype='application/x-www-form-urlencoded' ?><?php +<?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_title) ?><?php $attr = array('action'=>'file','subaction'=>'docompress','name'=>'','target'=>'_self','method'=>'post','enctype'=>'application/x-www-form-urlencoded') ?><?php $attr_action='file' ?><?php $attr_subaction='docompress' ?><?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)) @@ -33,19 +33,32 @@ <input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr_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'=>'asdfdfs','name'=>'asdf','icon'=>'','widths'=>'','width'=>'85%') ?><?php $attr_title='asdfdfs' ?><?php $attr_name='asdf' ?><?php $attr_icon='' ?><?php $attr_widths='' ?><?php $attr_width='85%' ?><?php +?><?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'=>'asdfdfs','name'=>'asdf','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr_title='asdfdfs' ?><?php $attr_name='asdf' ?><?php $attr_width='93%' ?><?php $attr_rowclasses='odd,even' ?><?php $attr_columnclasses='1,2,3' ?><?php $coloumn_widths=array(); if (!empty($attr_widths)) { $column_widths = explode(',',$attr_widths); unset($attr['widths']); } + if (!empty($attr_rowclasses)) + { + $row_classes = explode(',',$attr_rowclasses); + $row_class_idx = 999; + unset($attr['rowclasses']); + } + if (!empty($attr_columnclasses)) + { + $column_classes = explode(',',$attr_columnclasses); + unset($attr['columnclasses']); + } global $image_dir; echo '<br/><br/><br/><center>'; echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_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 ( !is_array($path) ) + $path = array(); foreach( $path as $pathElement) { extract($pathElement); @@ -54,7 +67,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,28 +109,44 @@ <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($attr) ?><?php unset($attr_title) ?><?php unset($attr_name) ?><?php unset($attr_width) ?><?php unset($attr_rowclasses) ?><?php unset($attr_columnclasses) ?><?php $attr = 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; + 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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array() ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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'=>'type','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='type' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -123,72 +158,109 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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('var'=>'gz','value'=>'gz') ?><?php $attr_var='gz' ?><?php $attr_value='gz' ?><?php $$attr_var = $attr_value ?><?php unset($attr) ?><?php unset($attr_var) ?><?php unset($attr_value) ?><?php $attr = array('list'=>'formats','name'=>'format','default'=>'gz','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='formats' ?><?php $attr_name='format' ?><?php $attr_default='gz' ?><?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 +?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php $attr = array('var'=>'gz','value'=>'gz') ?><?php $attr_var='gz' ?><?php $attr_value='gz' ?><?php $$attr_var = $attr_value ?><?php unset($attr) ?><?php unset($attr_var) ?><?php unset($attr_value) ?><?php $attr = array('list'=>'formats','name'=>'format','default'=>'gz','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='formats' ?><?php $attr_name='format' ?><?php $attr_default='gz' ?><?php $attr_onchange='' ?><?php $attr_title='' ?><?php $attr_class='' ?><select size="1" id="id<?php echo $attr_name ?>" 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"' ?>><?php foreach( $$attr_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) + if (isset($$attr_name)&&$box_key==$$attr_name || isset($attr_default)&&$box_key == $attr_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 - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - + $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; + 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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array() ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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() ?></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; +?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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('var'=>'field','value'=>'replace') ?><?php $attr_var='field' ?><?php $attr_value='replace' ?><?php $$attr_var = $attr_value ?><?php unset($attr) ?><?php unset($attr_var) ?><?php unset($attr_value) ?><?php $attr = array('readonly'=>'','name'=>'field','value'=>'true','default'=>'','prefix'=>'','suffix'=>'') ?><?php $attr_readonly='' ?><?php $attr_name='field' ?><?php $attr_value='true' ?><?php $attr_default='' ?><?php $attr_prefix='' ?><?php $attr_suffix='' ?><?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_default ) echo 'checked="checked"' ?> /><?php unset($attr) ?><?php unset($attr_readonly) ?><?php unset($attr_name) ?><?php unset($attr_value) ?><?php unset($attr_default) ?><?php unset($attr_prefix) ?><?php unset($attr_suffix) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'replace','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='replace' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php $attr = array('var'=>'field','value'=>'replace') ?><?php $attr_var='field' ?><?php $attr_value='replace' ?><?php $$attr_var = $attr_value ?><?php unset($attr) ?><?php unset($attr_var) ?><?php unset($attr_value) ?><?php $attr = array('name'=>'field','value'=>'1') ?><?php $attr_name='field' ?><?php $attr_value='1' ?><?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','text'=>'replace') ?><?php $attr_class='text' ?><?php $attr_text='replace' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -200,21 +272,38 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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() ?><br/><?php unset($attr) ?><?php $attr = array('readonly'=>'','name'=>'field','value'=>'false','default'=>'','prefix'=>'','suffix'=>'') ?><?php $attr_readonly='' ?><?php $attr_name='field' ?><?php $attr_value='false' ?><?php $attr_default='' ?><?php $attr_prefix='' ?><?php $attr_suffix='' ?><?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_default ) echo 'checked="checked"' ?> /><?php unset($attr) ?><?php unset($attr_readonly) ?><?php unset($attr_name) ?><?php unset($attr_value) ?><?php unset($attr_default) ?><?php unset($attr_prefix) ?><?php unset($attr_suffix) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'createnew','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='createnew' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?php $attr = array() ?><br/><?php unset($attr) ?><?php $attr = array('name'=>'field','value'=>'') ?><?php $attr_name='field' ?><?php $attr_value='' ?><?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','text'=>'createnew') ?><?php $attr_class='text' ?><?php $attr_text='createnew' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -226,45 +315,66 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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($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 + $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; + 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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array('colspan'=>'2') ?><?php $attr_colspan='2' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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 +?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?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') { $attr_type = 'submit'; - $attr_class = 'ok'; - $attr_text = 'BUTTON_OK'; - $attr_value = 'ok'; +// $attr_class = 'ok'; +// $attr_text = 'BUTTON_OK'; +// $attr_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 $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> </td> </tr> </table> @@ -278,7 +388,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() ?></form> + +<?php unset($attr) ?><?php $attr = array() ?> <!-- $Id$ --> <?php if ($showDuration) { ?> diff --git a/themes/default/pages/html/file/edit.tpl.php b/themes/default/pages/html/file/edit.tpl.php @@ -1,9 +1,10 @@ -<?php $attr = array('class'=>'') ?><?php $attr_class='' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<?php $attr = array('class'=>'main','title'=>'var') ?><?php $attr_class='main' ?><?php $attr_title='var' ?><?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 $attr_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" /> <link rel="stylesheet" type="text/css" href="./themes/default/css/default.css" /> @@ -12,10 +13,9 @@ <?php } ?> </head> -<body<?php echo !empty($$attr_class)?' class="'.$$attr_class.'"':' class="'.$attr_class.'"' ?>> +<body class="<?php echo $attr_class ?>"> - -<?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('action'=>'file','subaction'=>'replace','id'=>'','name'=>'','target'=>'_self','method'=>'post','enctype'=>'multipart/form-data') ?><?php $attr_action='file' ?><?php $attr_subaction='replace' ?><?php $attr_id='' ?><?php $attr_name='' ?><?php $attr_target='_self' ?><?php $attr_method='post' ?><?php $attr_enctype='multipart/form-data' ?><?php +<?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_title) ?><?php $attr = array('action'=>'file','subaction'=>'replace','name'=>'','target'=>'_self','method'=>'post','enctype'=>'multipart/form-data') ?><?php $attr_action='file' ?><?php $attr_subaction='replace' ?><?php $attr_name='' ?><?php $attr_target='_self' ?><?php $attr_method='post' ?><?php $attr_enctype='multipart/form-data' ?><?php if (empty($attr_action)) $attr_action = $actionName; if (empty($attr_subaction)) @@ -33,19 +33,32 @@ <input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr_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'=>'asdfdfs','name'=>'asdf','icon'=>'','widths'=>'','width'=>'85%') ?><?php $attr_title='asdfdfs' ?><?php $attr_name='asdf' ?><?php $attr_icon='' ?><?php $attr_widths='' ?><?php $attr_width='85%' ?><?php +?><?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'=>'asdfdfs','name'=>'asdf','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr_title='asdfdfs' ?><?php $attr_name='asdf' ?><?php $attr_width='93%' ?><?php $attr_rowclasses='odd,even' ?><?php $attr_columnclasses='1,2,3' ?><?php $coloumn_widths=array(); if (!empty($attr_widths)) { $column_widths = explode(',',$attr_widths); unset($attr['widths']); } + if (!empty($attr_rowclasses)) + { + $row_classes = explode(',',$attr_rowclasses); + $row_class_idx = 999; + unset($attr['rowclasses']); + } + if (!empty($attr_columnclasses)) + { + $column_classes = explode(',',$attr_columnclasses); + unset($attr['columnclasses']); + } global $image_dir; echo '<br/><br/><br/><center>'; echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_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 ( !is_array($path) ) + $path = array(); foreach( $path as $pathElement) { extract($pathElement); @@ -54,7 +67,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,34 +109,44 @@ <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($attr) ?><?php unset($attr_title) ?><?php unset($attr_name) ?><?php unset($attr_width) ?><?php unset($attr_rowclasses) ?><?php unset($attr_columnclasses) ?><?php $attr = 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; + 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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array() ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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('name'=>'file','class'=>'upload') ?><?php $attr_name='file' ?><?php $attr_class='upload' ?><input type="file" name="<?php echo $attr_name ?>" class="<?php echo $attr_class ?>" /><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_class) ?><?php $attr = array('type'=>'ok') ?><?php $attr_type='ok' ?><?php +?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php $attr = array('name'=>'file','class'=>'upload') ?><?php $attr_name='file' ?><?php $attr_class='upload' ?><input type="file" name="<?php echo $attr_name ?>" class="<?php echo $attr_class ?>" /><?php unset($attr) ?><?php unset($attr_name) ?><?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') { $attr_type = 'submit'; - $attr_class = 'ok'; - $attr_text = 'BUTTON_OK'; - $attr_value = 'ok'; +// $attr_class = 'ok'; +// $attr_text = 'BUTTON_OK'; +// $attr_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 $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> </td> </tr> </table> @@ -131,7 +160,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($attr) ?><?php $attr = array() ?> +<?php unset($attr) ?><?php $attr = array() ?></form> + +<?php unset($attr) ?><?php $attr = array() ?> <!-- $Id$ --> <?php if ($showDuration) { ?> diff --git a/themes/default/pages/html/file/editvalue.tpl.php b/themes/default/pages/html/file/editvalue.tpl.php @@ -1,9 +1,10 @@ -<?php /* source: ./themes/default/include/html/page.inc.php - compile time: Sun, 29 Jan 2006 19:43:12 +0100 */ ?><?php $attr = array('class'=>'') ?><?php $attr_class='' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<?php $attr = array('class'=>'main','title'=>'var') ?><?php $attr_class='main' ?><?php $attr_title='var' ?><?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 $attr_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" /> <link rel="stylesheet" type="text/css" href="./themes/default/css/default.css" /> @@ -12,10 +13,9 @@ <?php } ?> </head> -<body<?php echo !empty($$attr_class)?' class="'.$$attr_class.'"':' class="'.$attr_class.'"' ?>> +<body class="<?php echo $attr_class ?>"> - -<?php unset($attr) ?><?php unset($attr_class) ?><?php /* source: ./themes/default/include/html/form.inc.php - compile time: Sun, 29 Jan 2006 19:43:12 +0100 */ ?><?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 +<?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)) @@ -33,19 +33,32 @@ <input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr_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 /* source: ./themes/default/include/html/window.inc.php - compile time: Sun, 29 Jan 2006 19:43:12 +0100 */ ?><?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($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 $coloumn_widths=array(); if (!empty($attr_widths)) { $column_widths = explode(',',$attr_widths); unset($attr['widths']); } + if (!empty($attr_rowclasses)) + { + $row_classes = explode(',',$attr_rowclasses); + $row_class_idx = 999; + unset($attr['rowclasses']); + } + if (!empty($attr_columnclasses)) + { + $column_classes = explode(',',$attr_columnclasses); + unset($attr['columnclasses']); + } global $image_dir; echo '<br/><br/><br/><center>'; echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_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 ( !is_array($path) ) + $path = array(); foreach( $path as $pathElement) { extract($pathElement); @@ -54,13 +67,23 @@ } 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 ) { ?><a href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text'].'_DESC') ?>" class="menu<?php if($this->subActionName==$menu['subaction']) echo '_active' ?>"><?php echo lang($menu['text']) ?></a>&nbsp;&nbsp;&nbsp;<?php } + if ($conf['help']['enabled'] ) + { + ?><a href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.$conf['help']['suffix'] ?> " target="_new" title="<?php echo lang('GLOBAL_HELP') ?>" class="menu">?</a><?php + } ?></td> </tr> @@ -86,28 +109,44 @@ <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 /* source: ./themes/default/include/html/row.inc.php - compile time: Sun, 29 Jan 2006 19:43:12 +0100 */ ?><?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($attr) ?><?php unset($attr_width) ?><?php unset($attr_rowclasses) ?><?php unset($attr_columnclasses) ?><?php $attr = 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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 19:43:12 +0100 */ ?><?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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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 /* source: ./themes/default/include/html/text.inc.php - compile time: Sun, 29 Jan 2006 19:43:12 +0100 */ ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'GLOBAL_VALUE','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_VALUE' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?><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_VALUE') ?><?php $attr_class='text' ?><?php $attr_text='GLOBAL_VALUE' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -119,55 +158,81 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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)?$$attr_var:'error: variable '.$attr_var.' not present'; + $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'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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 /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 19:43:12 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 19:43:12 +0100 */ ?><?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($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?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; + $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; 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]; -?><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 /* source: ./themes/default/include/html/inputarea.inc.php - compile time: Sun, 29 Jan 2006 19:43:12 +0100 */ ?><?php $attr = array('name'=>'value','rows'=>'35','cols'=>'60','value'=>'','index'=>'','onchange'=>'','prefix'=>'','class'=>'','default'=>'') ?><?php $attr_name='value' ?><?php $attr_rows='35' ?><?php $attr_cols='60' ?><?php $attr_value='' ?><?php $attr_index='' ?><?php $attr_onchange='' ?><?php $attr_prefix='' ?><?php $attr_class='' ?><?php $attr_default='' ?><textarea name="<?php echo $attr_name ?>" rows="<?php echo $attr_rows ?>" cols="<?php echo $attr_cols ?>"><?php echo htmlentities(isset($$attr_name)?$$attr_name:$attr_default) ?></textarea><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_rows) ?><?php unset($attr_cols) ?><?php unset($attr_value) ?><?php unset($attr_index) ?><?php unset($attr_onchange) ?><?php unset($attr_prefix) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><?php /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 19:43:12 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/row-end.inc.php - compile time: Sun, 29 Jan 2006 19:43:12 +0100 */ ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php /* source: ./themes/default/include/html/row.inc.php - compile time: Sun, 29 Jan 2006 19:43:12 +0100 */ ?><?php $attr = array() ?><?php - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - +?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('name'=>'value','rows'=>'35','cols'=>'60','class'=>'') ?><?php $attr_name='value' ?><?php $attr_rows='35' ?><?php $attr_cols='60' ?><?php $attr_class='' ?><textarea class="<?php echo $attr_class ?>" name="<?php echo $attr_name ?>" rows="<?php echo $attr_rows ?>" cols="<?php echo $attr_cols ?>"><?php echo htmlentities(isset($$attr_name)?$$attr_name:$attr_default) ?></textarea><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_rows) ?><?php unset($attr_cols) ?><?php unset($attr_class) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = 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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 19:43:12 +0100 */ ?><?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 $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; + $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; 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]; -?><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 /* source: ./themes/default/include/html/button.inc.php - compile time: Sun, 29 Jan 2006 19:43:12 +0100 */ ?><?php $attr = array('type'=>'ok') ?><?php $attr_type='ok' ?><?php +?><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') { $attr_type = 'submit'; - $attr_class = 'ok'; - $attr_text = 'BUTTON_OK'; - $attr_value = 'ok'; +// $attr_class = 'ok'; +// $attr_text = 'BUTTON_OK'; +// $attr_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 /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 19:43:12 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/row-end.inc.php - compile time: Sun, 29 Jan 2006 19:43:12 +0100 */ ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php /* source: ./themes/default/include/html/window-end.inc.php - compile time: Sun, 29 Jan 2006 19:43:12 +0100 */ ?><?php $attr = array() ?> </table> +?><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> </td> </tr> </table> @@ -181,11 +246,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 /* source: ./themes/default/include/html/form-end.inc.php - compile time: Sun, 29 Jan 2006 19:43:12 +0100 */ ?><?php $attr = array() ?></form><?php unset($attr) ?><?php /* source: ./themes/default/include/html/focus.inc.php - compile time: Sun, 29 Jan 2006 19:43:12 +0100 */ ?><?php $attr = array('field'=>'value') ?><?php $attr_field='value' ?><script name="JavaScript" type="text/javascript"><!-- +<?php unset($attr) ?><?php $attr = array() ?></form> + +<?php unset($attr) ?><?php $attr = array('field'=>'value') ?><?php $attr_field='value' ?> +<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 /* source: ./themes/default/include/html/page-end.inc.php - compile time: Sun, 29 Jan 2006 19:43:12 +0100 */ ?><?php $attr = array() ?> +// --> +</script> +<?php unset($attr) ?><?php unset($attr_field) ?><?php $attr = array() ?> <!-- $Id$ --> <?php if ($showDuration) { ?> diff --git a/themes/default/pages/html/file/prop.tpl.php b/themes/default/pages/html/file/prop.tpl.php @@ -1,62 +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'=>'','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'=>'folder','widths'=>'50%,50%','width'=>'93%','rowclasses'=>'f1,f2','columnclasses'=>'f1,f2') ?><?php $attr_title='' ?><?php $attr_name='' ?><?php $attr_icon='folder' ?><?php $attr_widths='50%,50%' ?><?php $attr_width='93%' ?><?php $attr_rowclasses='f1,f2' ?><?php $attr_columnclasses='f1,f2' ?><?php +?><?php unset($attr2) ?><?php unset($attr2_target) ?><?php unset($attr2_method) ?><?php unset($attr2_enctype) ?><?php $attr3 = array('icon'=>'folder','widths'=>'50%,50%','width'=>'93%','rowclasses'=>'f1,f2','columnclasses'=>'f1,f2') ?><?php $attr3_icon='folder' ?><?php $attr3_widths='50%,50%' ?><?php $attr3_width='93%' ?><?php $attr3_rowclasses='f1,f2' ?><?php $attr3_columnclasses='f1,f2' ?><?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) { extract($pathElement); @@ -107,328 +116,396 @@ <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 unset($attr_rowclasses) ?><?php unset($attr_columnclasses) ?><?php $attr = array('class'=>'') ?><?php $attr_class='' ?><?php + <table class="n" cellspacing="0" width="100%" cellpadding="4"><?php unset($attr3) ?><?php unset($attr3_icon) ?><?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 unset($attr_class) ?><?php $attr = array('width'=>'','style'=>'','class'=>'','colspan'=>'') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='' ?><?php $attr_colspan='' ?><?php -// if (empty($attr_class)) -// $attr['class']=$row_class; +?><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($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_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'global_name','textvar'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='global_name' ?><?php $attr_textvar='' ?><?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'=>'global_name') ?><?php $attr6_class='text' ?><?php $attr6_text='global_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 (!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_textvar)) - $tmp_text = lang($$attr_textvar); - 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) ); + 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_textvar) ?><?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 -// if (empty($attr_class)) -// $attr['class']=$row_class; +?></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($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_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('class'=>'name','default'=>'','type'=>'text','index'=>'','name'=>'name','prefix'=>'','value'=>'','size'=>'50','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='name' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_index='' ?><?php $attr_name='name' ?><?php $attr_prefix='' ?><?php $attr_value='' ?><?php $attr_size='50' ?><?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 ?>" onxxxMouseOver="this.focus();" /><?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('class'=>'') ?><?php $attr_class='' ?><?php +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6 = array('class'=>'name','type'=>'text','name'=>'name','size'=>'50','maxlength'=>'256') ?><?php $attr6_class='name' ?><?php $attr6_type='text' ?><?php $attr6_name='name' ?><?php $attr6_size='50' ?><?php $attr6_maxlength='256' ?><input id="id<?php echo $attr6_name ?>" name="<?php echo $attr6_name ?>" type="<?php echo $attr6_type ?>" size="<?php echo $attr6_size ?>" maxlength="<?php echo $attr6_maxlength ?>" class="<?php echo $attr6_class ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" onxxxMouseOver="this.focus();" /><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_type) ?><?php unset($attr6_name) ?><?php unset($attr6_size) ?><?php unset($attr6_maxlength) ?><?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 unset($attr_class) ?><?php $attr = array('width'=>'','style'=>'','class'=>'','colspan'=>'') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='' ?><?php $attr_colspan='' ?><?php -// if (empty($attr_class)) -// $attr['class']=$row_class; +?><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($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_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'global_filename','textvar'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='global_filename' ?><?php $attr_textvar='' ?><?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'=>'global_filename') ?><?php $attr6_class='text' ?><?php $attr6_text='global_filename' ?><?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 (!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_textvar)) - $tmp_text = lang($$attr_textvar); - 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) ); + 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_textvar) ?><?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 -// if (empty($attr_class)) -// $attr['class']=$row_class; +?></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($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_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('class'=>'filename','default'=>'','type'=>'text','index'=>'','name'=>'filename','prefix'=>'','value'=>'','size'=>'40','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='filename' ?><?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 ?>" onxxxMouseOver="this.focus();" /><?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('class'=>'') ?><?php $attr_class='' ?><?php +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6 = array('class'=>'filename','type'=>'text','name'=>'filename','size'=>'40','maxlength'=>'256') ?><?php $attr6_class='filename' ?><?php $attr6_type='text' ?><?php $attr6_name='filename' ?><?php $attr6_size='40' ?><?php $attr6_maxlength='256' ?><input id="id<?php echo $attr6_name ?>" name="<?php echo $attr6_name ?>" type="<?php echo $attr6_type ?>" size="<?php echo $attr6_size ?>" maxlength="<?php echo $attr6_maxlength ?>" class="<?php echo $attr6_class ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" onxxxMouseOver="this.focus();" /><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_type) ?><?php unset($attr6_name) ?><?php unset($attr6_size) ?><?php unset($attr6_maxlength) ?><?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 unset($attr_class) ?><?php $attr = array('width'=>'','style'=>'','class'=>'','colspan'=>'') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='' ?><?php $attr_colspan='' ?><?php -// if (empty($attr_class)) -// $attr['class']=$row_class; +?><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($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_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'file_extension','textvar'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='file_extension' ?><?php $attr_textvar='' ?><?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'=>'file_extension') ?><?php $attr6_class='text' ?><?php $attr6_text='file_extension' ?><?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 (!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_textvar)) - $tmp_text = lang($$attr_textvar); - 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) ); + 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_textvar) ?><?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 -// if (empty($attr_class)) -// $attr['class']=$row_class; +?></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($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_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('class'=>'extension','default'=>'','type'=>'text','index'=>'','name'=>'extension','prefix'=>'','value'=>'','size'=>'10','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='extension' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_index='' ?><?php $attr_name='extension' ?><?php $attr_prefix='' ?><?php $attr_value='' ?><?php $attr_size='10' ?><?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 ?>" onxxxMouseOver="this.focus();" /><?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('class'=>'') ?><?php $attr_class='' ?><?php +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6 = array('class'=>'extension','type'=>'text','name'=>'extension','size'=>'10','maxlength'=>'256') ?><?php $attr6_class='extension' ?><?php $attr6_type='text' ?><?php $attr6_name='extension' ?><?php $attr6_size='10' ?><?php $attr6_maxlength='256' ?><input id="id<?php echo $attr6_name ?>" name="<?php echo $attr6_name ?>" type="<?php echo $attr6_type ?>" size="<?php echo $attr6_size ?>" maxlength="<?php echo $attr6_maxlength ?>" class="<?php echo $attr6_class ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" onxxxMouseOver="this.focus();" /><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_type) ?><?php unset($attr6_name) ?><?php unset($attr6_size) ?><?php unset($attr6_maxlength) ?><?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 unset($attr_class) ?><?php $attr = array('width'=>'','style'=>'','class'=>'','colspan'=>'') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='' ?><?php $attr_colspan='' ?><?php -// if (empty($attr_class)) -// $attr['class']=$row_class; +?><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($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_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'global_description','textvar'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='global_description' ?><?php $attr_textvar='' ?><?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'=>'global_description') ?><?php $attr6_class='text' ?><?php $attr6_text='global_description' ?><?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 (!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_textvar)) - $tmp_text = lang($$attr_textvar); - 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) ); + 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_textvar) ?><?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 -// if (empty($attr_class)) -// $attr['class']=$row_class; +?></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($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_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('name'=>'description','rows'=>'10','cols'=>'40','value'=>'','index'=>'','onchange'=>'','prefix'=>'','class'=>'description','default'=>'') ?><?php $attr_name='description' ?><?php $attr_rows='10' ?><?php $attr_cols='40' ?><?php $attr_value='' ?><?php $attr_index='' ?><?php $attr_onchange='' ?><?php $attr_prefix='' ?><?php $attr_class='description' ?><?php $attr_default='' ?><textarea class="<?php echo $attr_class ?>" name="<?php echo $attr_name ?>" rows="<?php echo $attr_rows ?>" cols="<?php echo $attr_cols ?>"><?php echo htmlentities(isset($$attr_name)?$$attr_name:$attr_default) ?></textarea><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_rows) ?><?php unset($attr_cols) ?><?php unset($attr_value) ?><?php unset($attr_index) ?><?php unset($attr_onchange) ?><?php unset($attr_prefix) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array('class'=>'') ?><?php $attr_class='' ?><?php +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6 = array('name'=>'description','rows'=>'10','cols'=>'40','class'=>'description') ?><?php $attr6_name='description' ?><?php $attr6_rows='10' ?><?php $attr6_cols='40' ?><?php $attr6_class='description' ?><textarea class="<?php echo $attr6_class ?>" name="<?php echo $attr6_name ?>" rows="<?php echo $attr6_rows ?>" cols="<?php echo $attr6_cols ?>"><?php echo htmlentities(isset($$attr6_name)?$$attr6_name:$attr6_default) ?></textarea><?php unset($attr6) ?><?php unset($attr6_name) ?><?php unset($attr6_rows) ?><?php unset($attr6_cols) ?><?php unset($attr6_class) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4 = array('class'=>'') ?><?php $attr4_class='' ?><?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 unset($attr_class) ?><?php $attr = array('width'=>'','style'=>'','class'=>'','colspan'=>'2') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='' ?><?php $attr_colspan='2' ?><?php -// if (empty($attr_class)) -// $attr['class']=$row_class; +?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php unset($attr4_class) ?><?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($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_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> @@ -442,11 +519,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'=>'name') ?><?php $attr_field='name' ?><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'=>'name') ?><?php $attr2_field='name' ?> +<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) { ?> @@ -457,4 +539,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,9 +1,10 @@ -<?php $attr = array('class'=>'') ?><?php $attr_class='' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<?php $attr = array('class'=>'main','title'=>'var') ?><?php $attr_class='main' ?><?php $attr_title='var' ?><?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 $attr_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" /> <link rel="stylesheet" type="text/css" href="./themes/default/css/default.css" /> @@ -12,10 +13,9 @@ <?php } ?> </head> -<body<?php echo !empty($$attr_class)?' class="'.$$attr_class.'"':' class="'.$attr_class.'"' ?>> +<body class="<?php echo $attr_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 +<?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)) @@ -33,19 +33,32 @@ <input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr_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($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 $coloumn_widths=array(); if (!empty($attr_widths)) { $column_widths = explode(',',$attr_widths); unset($attr['widths']); } + if (!empty($attr_rowclasses)) + { + $row_classes = explode(',',$attr_rowclasses); + $row_class_idx = 999; + unset($attr['rowclasses']); + } + if (!empty($attr_columnclasses)) + { + $column_classes = explode(',',$attr_columnclasses); + unset($attr['columnclasses']); + } global $image_dir; echo '<br/><br/><br/><center>'; echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_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 ( !is_array($path) ) + $path = array(); foreach( $path as $pathElement) { extract($pathElement); @@ -54,7 +67,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,34 +109,44 @@ <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($attr) ?><?php unset($attr_width) ?><?php unset($attr_rowclasses) ?><?php unset($attr_columnclasses) ?><?php $attr = 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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'act','colspan'=>'') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='act' ?><?php $attr_colspan='' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><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; + $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; 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]; -?><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 +?><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') { $attr_type = 'submit'; - $attr_class = 'ok'; - $attr_text = 'BUTTON_OK'; - $attr_value = 'ok'; +// $attr_class = 'ok'; +// $attr_text = 'BUTTON_OK'; +// $attr_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 $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> </td> </tr> </table> @@ -131,7 +160,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($attr) ?><?php $attr = array() ?> +<?php unset($attr) ?><?php $attr = array() ?></form> + +<?php unset($attr) ?><?php $attr = array() ?> <!-- $Id$ --> <?php if ($showDuration) { ?> diff --git a/themes/default/pages/html/file/remove.tpl.php b/themes/default/pages/html/file/remove.tpl.php @@ -1,9 +1,10 @@ -<?php $attr = array('class'=>'') ?><?php $attr_class='' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<?php $attr = array('class'=>'main','title'=>'var') ?><?php $attr_class='main' ?><?php $attr_title='var' ?><?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 $attr_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" /> <link rel="stylesheet" type="text/css" href="./themes/default/css/default.css" /> @@ -12,10 +13,9 @@ <?php } ?> </head> -<body<?php echo !empty($$attr_class)?' class="'.$$attr_class.'"':' class="'.$attr_class.'"' ?>> +<body class="<?php echo $attr_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 +<?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)) @@ -33,19 +33,32 @@ <input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr_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'=>'GLOBAL_GROUPS','icon'=>'group','widths'=>'','width'=>'85%') ?><?php $attr_title='' ?><?php $attr_name='GLOBAL_GROUPS' ?><?php $attr_icon='group' ?><?php $attr_widths='' ?><?php $attr_width='85%' ?><?php +?><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_target) ?><?php unset($attr_method) ?><?php unset($attr_enctype) ?><?php $attr = array('name'=>'GLOBAL_GROUPS','icon'=>'group','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr_name='GLOBAL_GROUPS' ?><?php $attr_icon='group' ?><?php $attr_width='93%' ?><?php $attr_rowclasses='odd,even' ?><?php $attr_columnclasses='1,2,3' ?><?php $coloumn_widths=array(); if (!empty($attr_widths)) { $column_widths = explode(',',$attr_widths); unset($attr['widths']); } + if (!empty($attr_rowclasses)) + { + $row_classes = explode(',',$attr_rowclasses); + $row_class_idx = 999; + unset($attr['rowclasses']); + } + if (!empty($attr_columnclasses)) + { + $column_classes = explode(',',$attr_columnclasses); + unset($attr['columnclasses']); + } global $image_dir; echo '<br/><br/><br/><center>'; echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_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 ( !is_array($path) ) + $path = array(); foreach( $path as $pathElement) { extract($pathElement); @@ -54,7 +67,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,28 +109,44 @@ <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($attr) ?><?php unset($attr_name) ?><?php unset($attr_icon) ?><?php unset($attr_width) ?><?php unset($attr_rowclasses) ?><?php unset($attr_columnclasses) ?><?php $attr = 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; + 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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array() ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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 +?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -123,30 +158,52 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?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; + $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; 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]; -?><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 +?><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','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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -158,39 +215,66 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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($attr) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = 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; + 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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array() ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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 +?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php $attr = array('class'=>'text','text'=>'GLOBAL_DELETE') ?><?php $attr_class='text' ?><?php $attr_text='GLOBAL_DELETE' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -202,55 +286,89 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php $attr = array('default'=>'','readonly'=>'','name'=>'delete') ?><?php $attr_default='' ?><?php $attr_readonly='' ?><?php $attr_name='delete' ?><?php + $attr_default = ( $attr_default == true ); + if ( isset($$attr_name) ) + $checked = $$attr_name == true; +// $checked = isset($$$attr_name)&& $$$attr_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() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = 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; + 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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array('colspan'=>'2') ?><?php $attr_colspan='2' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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 +?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?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') { $attr_type = 'submit'; - $attr_class = 'ok'; - $attr_text = 'BUTTON_OK'; - $attr_value = 'ok'; +// $attr_class = 'ok'; +// $attr_text = 'BUTTON_OK'; +// $attr_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 $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> </td> </tr> </table> @@ -264,10 +382,15 @@ <?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"><!-- +<?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> +// --> +</script> <?php unset($attr) ?><?php unset($attr_field) ?><?php $attr = array() ?> <!-- $Id$ --> diff --git a/themes/default/pages/html/file/showprop.tpl.php b/themes/default/pages/html/file/showprop.tpl.php @@ -1,33 +1,53 @@ -<?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('title'=>'','name'=>'','icon'=>'folder','widths'=>'50%,50%','width'=>'85%') ?><?php $attr_title='' ?><?php $attr_name='' ?><?php $attr_icon='folder' ?><?php $attr_widths='50%,50%' ?><?php $attr_width='85%' ?><?php +<?php unset($attr1) ?><?php unset($attr1_class) ?><?php unset($attr1_title) ?><?php $attr2 = array('icon'=>'folder','widths'=>'50%,50%','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr2_icon='folder' ?><?php $attr2_widths='50%,50%' ?><?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(',',$attr2_widths); + unset($attr2['widths']); + } + if (!empty($attr2_rowclasses)) { - $column_widths = explode(',',$attr_widths); - unset($attr['widths']); + $row_classes = explode(',',$attr2_rowclasses); + $row_class_idx = 999; + unset($attr2['rowclasses']); + } + if (!empty($attr2_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) { extract($pathElement); @@ -36,7 +56,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 ) @@ -72,378 +98,624 @@ <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($attr2) ?><?php unset($attr2_icon) ?><?php unset($attr2_widths) ?><?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($attr3_class)) + $attr3_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 $attr3_class ?>"><?php unset($attr3) ?><?php $attr4 = array('class'=>'fx') ?><?php $attr4_class='fx' ?><?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($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_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)) +?><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_name') ?><?php $attr5_class='text' ?><?php $attr5_text='global_name' ?><?php + if(empty($attr5_title)) + if (!empty($attr5_key)) + $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: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //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($tmpArray[$attr_text]); + $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 + { + $tmp_text = '&nbsp;'; + //Html::debug($attr5);echo 'text error'; } - 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) ); + 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_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($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_text) ?><?php $attr3 = array() ?></td><?php unset($attr3) ?><?php $attr4 = array('class'=>'fx') ?><?php $attr4_class='fx' ?><?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($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_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( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_class) ?><?php $attr5 = array('class'=>'text','var'=>'name') ?><?php $attr5_class='text' ?><?php $attr5_var='name' ?><?php + if(empty($attr5_title)) + if (!empty($attr5_key)) + $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: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr5_array[$attr5_var].'%'; + $tmpArray = $$attr5_array; + if (!empty($attr5_var)) + $tmp_text = $tmpArray[$attr5_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $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 + { + $tmp_text = '&nbsp;'; + //Html::debug($attr5);echo 'text error'; } - 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) ); + 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_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($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_var) ?><?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($attr3_class)) + $attr3_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 $attr3_class ?>"><?php unset($attr3) ?><?php $attr4 = array('class'=>'fx') ?><?php $attr4_class='fx' ?><?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($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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'global_filename','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='global_filename' ?><?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( $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_filename') ?><?php $attr5_class='text' ?><?php $attr5_text='global_filename' ?><?php + if(empty($attr5_title)) + if (!empty($attr5_key)) + $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: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //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($tmpArray[$attr_text]); + $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 + { + $tmp_text = '&nbsp;'; + //Html::debug($attr5);echo 'text error'; } - 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) ); + 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_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($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_text) ?><?php $attr3 = array() ?></td><?php unset($attr3) ?><?php $attr4 = array('class'=>'fx') ?><?php $attr4_class='fx' ?><?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($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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'','class'=>'','var'=>'filename','text'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='filename' ?><?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( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_class) ?><?php $attr5 = array('class'=>'text','var'=>'filename') ?><?php $attr5_class='text' ?><?php $attr5_var='filename' ?><?php + if(empty($attr5_title)) + if (!empty($attr5_key)) + $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: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr5_array[$attr5_var].'%'; + $tmpArray = $$attr5_array; + if (!empty($attr5_var)) + $tmp_text = $tmpArray[$attr5_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $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 + { + $tmp_text = '&nbsp;'; + //Html::debug($attr5);echo 'text error'; } - 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) ); + 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_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($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_var) ?><?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($attr3_class)) + $attr3_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 $attr3_class ?>"><?php unset($attr3) ?><?php $attr4 = array('class'=>'fx') ?><?php $attr4_class='fx' ?><?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($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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'file_extension','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='file_extension' ?><?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( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_class) ?><?php $attr5 = array('class'=>'text','text'=>'file_extension') ?><?php $attr5_class='text' ?><?php $attr5_text='file_extension' ?><?php + if(empty($attr5_title)) + if (!empty($attr5_key)) + $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: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //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($tmpArray[$attr_text]); + $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 + { + $tmp_text = '&nbsp;'; + //Html::debug($attr5);echo 'text error'; } - 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) ); + 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_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($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_text) ?><?php $attr3 = array() ?></td><?php unset($attr3) ?><?php $attr4 = array('class'=>'fx') ?><?php $attr4_class='fx' ?><?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($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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'','class'=>'','var'=>'extension','text'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='extension' ?><?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( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_class) ?><?php $attr5 = array('class'=>'text','var'=>'extension') ?><?php $attr5_class='text' ?><?php $attr5_var='extension' ?><?php + if(empty($attr5_title)) + if (!empty($attr5_key)) + $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: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr5_array[$attr5_var].'%'; + $tmpArray = $$attr5_array; + if (!empty($attr5_var)) + $tmp_text = $tmpArray[$attr5_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $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 + { + $tmp_text = '&nbsp;'; + //Html::debug($attr5);echo 'text error'; } - 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) ); + 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_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($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_var) ?><?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($attr3_class)) + $attr3_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 $attr3_class ?>"><?php unset($attr3) ?><?php $attr4 = array('class'=>'fx') ?><?php $attr4_class='fx' ?><?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($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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'global_description','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='global_description' ?><?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( $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_description') ?><?php $attr5_class='text' ?><?php $attr5_text='global_description' ?><?php + if(empty($attr5_title)) + if (!empty($attr5_key)) + $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: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr5_array[$attr5_var].'%'; + $tmpArray = $$attr5_array; + if (!empty($attr5_var)) + $tmp_text = $tmpArray[$attr5_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $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 + { + $tmp_text = '&nbsp;'; + //Html::debug($attr5);echo 'text error'; } - 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) ); + 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_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($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_text) ?><?php $attr3 = array() ?></td><?php unset($attr3) ?><?php $attr4 = array('class'=>'fx') ?><?php $attr4_class='fx' ?><?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($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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'','class'=>'','var'=>'description','text'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='description' ?><?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( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_class) ?><?php $attr5 = array('class'=>'text','var'=>'description') ?><?php $attr5_class='text' ?><?php $attr5_var='description' ?><?php + if(empty($attr5_title)) + if (!empty($attr5_key)) + $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: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr5_array[$attr5_var].'%'; + $tmpArray = $$attr5_array; + if (!empty($attr5_var)) + $tmp_text = $tmpArray[$attr5_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $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 + { + $tmp_text = '&nbsp;'; + //Html::debug($attr5);echo 'text error'; } - 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) ); + 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_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($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_var) ?><?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($attr3_class)) + $attr3_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 $attr3_class ?>"><?php unset($attr3) ?><?php $attr4 = array('class'=>'fx') ?><?php $attr4_class='fx' ?><?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($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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'global_created','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='global_created' ?><?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( $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_created') ?><?php $attr5_class='text' ?><?php $attr5_text='global_created' ?><?php + if(empty($attr5_title)) + if (!empty($attr5_key)) + $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: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr5_array[$attr5_var].'%'; + $tmpArray = $$attr5_array; + if (!empty($attr5_var)) + $tmp_text = $tmpArray[$attr5_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $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 + { + $tmp_text = '&nbsp;'; + //Html::debug($attr5);echo 'text error'; } - 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) ); + 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_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($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_text) ?><?php $attr3 = array() ?></td><?php unset($attr3) ?><?php $attr4 = array('class'=>'fx') ?><?php $attr4_class='fx' ?><?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($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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('date'=>'create_date') ?><?php $attr_date='create_date' ?><?php - $time = $$attr_date; +?><td <?php foreach( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_class) ?><?php $attr5 = array('date'=>'create_date') ?><?php $attr5_date='create_date' ?><?php + $time = $$attr5_date; $sekunden = time()-$time; $minuten = intval($sekunden/60); @@ -487,33 +759,52 @@ echo $jahre.' '.lang('GLOBAL_YEARS'); echo '</span>'; -?><?php unset($attr) ?><?php unset($attr_date) ?><?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)) +?><?php unset($attr5) ?><?php unset($attr5_date) ?><?php $attr5 = array('class'=>'text','raw'=>',_') ?><?php $attr5_class='text' ?><?php $attr5_raw=',_' ?><?php + if(empty($attr5_title)) + if (!empty($attr5_key)) + $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: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr5_array[$attr5_var].'%'; + $tmpArray = $$attr5_array; + if (!empty($attr5_var)) + $tmp_text = $tmpArray[$attr5_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $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 + { + $tmp_text = '&nbsp;'; + //Html::debug($attr5);echo 'text error'; } - 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) ); + 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_title) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><?php unset($attr_text) ?><?php unset($attr_raw) ?><?php unset($attr_maxlength) ?><?php $attr = array('user'=>'create_user') ?><?php $attr_user='create_user' ?><?php - $user = $$attr_user; +?></span><?php unset($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_raw) ?><?php $attr5 = array('user'=>'create_user') ?><?php $attr5_user='create_user' ?><?php + $user = $$attr5_user; if ( empty($user->name) ) $user->name = lang('GLOBAL_UNKNOWN'); if ( empty($user->fullname) ) @@ -523,62 +814,96 @@ echo '<a href="mailto:'.$user->mail.'" title="'.$user->fullname.'">'.$user->name.'</a>'; else echo '<span title="'.$user->fullname.'">'.$user->name.'</span>'; -?><?php unset($attr) ?><?php unset($attr_user) ?><?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'; - +?><?php unset($attr5) ?><?php unset($attr5_user) ?><?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($attr3_class)) + $attr3_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 $attr3_class ?>"><?php unset($attr3) ?><?php $attr4 = array('class'=>'fx') ?><?php $attr4_class='fx' ?><?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($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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'global_lastchange','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='global_lastchange' ?><?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( $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(empty($attr5_title)) + if (!empty($attr5_key)) + $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: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr5_array[$attr5_var].'%'; + $tmpArray = $$attr5_array; + if (!empty($attr5_var)) + $tmp_text = $tmpArray[$attr5_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $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 + { + $tmp_text = '&nbsp;'; + //Html::debug($attr5);echo 'text error'; } - 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) ); + 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_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($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_text) ?><?php $attr3 = array() ?></td><?php unset($attr3) ?><?php $attr4 = array('class'=>'fx') ?><?php $attr4_class='fx' ?><?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($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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('date'=>'lastchange_date') ?><?php $attr_date='lastchange_date' ?><?php - $time = $$attr_date; +?><td <?php foreach( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_class) ?><?php $attr5 = array('date'=>'lastchange_date') ?><?php $attr5_date='lastchange_date' ?><?php + $time = $$attr5_date; $sekunden = time()-$time; $minuten = intval($sekunden/60); @@ -622,33 +947,52 @@ echo $jahre.' '.lang('GLOBAL_YEARS'); echo '</span>'; -?><?php unset($attr) ?><?php unset($attr_date) ?><?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)) +?><?php unset($attr5) ?><?php unset($attr5_date) ?><?php $attr5 = array('class'=>'text','raw'=>',_') ?><?php $attr5_class='text' ?><?php $attr5_raw=',_' ?><?php + if(empty($attr5_title)) + if (!empty($attr5_key)) + $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: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //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($tmpArray[$attr_text]); + $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 + { + $tmp_text = '&nbsp;'; + //Html::debug($attr5);echo 'text error'; } - 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) ); + 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_title) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><?php unset($attr_text) ?><?php unset($attr_raw) ?><?php unset($attr_maxlength) ?><?php $attr = array('user'=>'lastchange_user') ?><?php $attr_user='lastchange_user' ?><?php - $user = $$attr_user; +?></span><?php unset($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_raw) ?><?php $attr5 = array('user'=>'lastchange_user') ?><?php $attr5_user='lastchange_user' ?><?php + $user = $$attr5_user; if ( empty($user->name) ) $user->name = lang('GLOBAL_UNKNOWN'); if ( empty($user->fullname) ) @@ -658,333 +1002,531 @@ echo '<a href="mailto:'.$user->mail.'" title="'.$user->fullname.'">'.$user->name.'</a>'; else echo '<span title="'.$user->fullname.'">'.$user->name.'</span>'; -?><?php unset($attr) ?><?php unset($attr_user) ?><?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'; - +?><?php unset($attr5) ?><?php unset($attr5_user) ?><?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($attr3_class)) + $attr3_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 $attr3_class ?>"><?php unset($attr3) ?><?php $attr4 = array('class'=>'fx') ?><?php $attr4_class='fx' ?><?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($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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'FILE_SIZE','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='FILE_SIZE' ?><?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( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_class) ?><?php $attr5 = array('class'=>'text','text'=>'FILE_SIZE') ?><?php $attr5_class='text' ?><?php $attr5_text='FILE_SIZE' ?><?php + if(empty($attr5_title)) + if (!empty($attr5_key)) + $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: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr5_array[$attr5_var].'%'; + $tmpArray = $$attr5_array; + if (!empty($attr5_var)) + $tmp_text = $tmpArray[$attr5_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $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 + { + $tmp_text = '&nbsp;'; + //Html::debug($attr5);echo 'text error'; } - 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) ); + 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_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($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_text) ?><?php $attr3 = array() ?></td><?php unset($attr3) ?><?php $attr4 = array('class'=>'fx') ?><?php $attr4_class='fx' ?><?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($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( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_class) ?><?php echo number_format($size/1000,0,',','.') ?> kB +<?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($attr3_class)) + $attr3_class=$row_class; -?><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 echo number_format($size/1000,0,',','.') ?> kB -<?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'; - 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 $attr3_class ?>"><?php unset($attr3) ?><?php $attr4 = array('class'=>'fx') ?><?php $attr4_class='fx' ?><?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($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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'FILE_mimetype','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='FILE_mimetype' ?><?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( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_class) ?><?php $attr5 = array('class'=>'text','text'=>'FILE_mimetype') ?><?php $attr5_class='text' ?><?php $attr5_text='FILE_mimetype' ?><?php + if(empty($attr5_title)) + if (!empty($attr5_key)) + $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: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr5_array[$attr5_var].'%'; + $tmpArray = $$attr5_array; + if (!empty($attr5_var)) + $tmp_text = $tmpArray[$attr5_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $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 + { + $tmp_text = '&nbsp;'; + //Html::debug($attr5);echo 'text error'; } - 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) ); + 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_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($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_text) ?><?php $attr3 = array() ?></td><?php unset($attr3) ?><?php $attr4 = array('class'=>'fx') ?><?php $attr4_class='fx' ?><?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($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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'','class'=>'','var'=>'mimetype','text'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='mimetype' ?><?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( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_class) ?><?php $attr5 = array('class'=>'text','var'=>'mimetype') ?><?php $attr5_class='text' ?><?php $attr5_var='mimetype' ?><?php + if(empty($attr5_title)) + if (!empty($attr5_key)) + $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: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //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($tmpArray[$attr_text]); + $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 + { + $tmp_text = '&nbsp;'; + //Html::debug($attr5);echo 'text error'; } - 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) ); + 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_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($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_var) ?><?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($attr3_class)) + $attr3_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 $attr3_class ?>"><?php unset($attr3) ?><?php $attr4 = array('class'=>'fx') ?><?php $attr4_class='fx' ?><?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($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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'FILE_PAGES','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='FILE_PAGES' ?><?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( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_class) ?><?php $attr5 = array('class'=>'text','text'=>'FILE_PAGES') ?><?php $attr5_class='text' ?><?php $attr5_text='FILE_PAGES' ?><?php + if(empty($attr5_title)) + if (!empty($attr5_key)) + $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: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr5_array[$attr5_var].'%'; + $tmpArray = $$attr5_array; + if (!empty($attr5_var)) + $tmp_text = $tmpArray[$attr5_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $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 + { + $tmp_text = '&nbsp;'; + //Html::debug($attr5);echo 'text error'; } - 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) ); + 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_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($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_text) ?><?php $attr3 = array() ?></td><?php unset($attr3) ?><?php $attr4 = array('class'=>'fx') ?><?php $attr4_class='fx' ?><?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($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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('list'=>'pages','extract'=>'true','key'=>'list_key','value'=>'list_value') ?><?php $attr_list='pages' ?><?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'); +?><td <?php foreach( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_class) ?><?php $attr5 = array('list'=>'pages','extract'=>'1','key'=>'list_key','value'=>'list_value') ?><?php $attr5_list='pages' ?><?php $attr5_extract='1' ?><?php $attr5_key='list_key' ?><?php $attr5_value='list_value' ?><?php + $attr5_list_tmp_key = $attr5_key; + $attr5_list_tmp_value = $attr5_value; + $attr5_list_extract = ($attr5_extract==true); + if ( !is_array($$attr5_list) ) + $$attr5_list = array(); +// die('not an array in list,var='.$attr5_list); +// Html::debug($$attr5_list); - foreach( $$attr_list as $$list_tmp_key => $$list_tmp_value ) + foreach( $$attr5_list as $$attr5_list_tmp_key => $$attr5_list_tmp_value ) { - if ( $list_extract ) + if ( $attr5_list_extract ) { - if ( !is_array($$list_tmp_value) ) + if ( !is_array($$attr5_list_tmp_value) ) { - print_r($$list_tmp_value); - die( 'not an array at key: '.$$list_tmp_key ); + print_r($$attr5_list_tmp_value); + die( 'not an array at key: '.$$attr5_list_tmp_key ); } - extract($$list_tmp_value); + extract($$attr5_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('title'=>'','target'=>'cms_main','url'=>'url','class'=>'','action'=>'','subaction'=>'','id'=>'','var1'=>'','value1'=>'') ?><?php $attr_title='' ?><?php $attr_target='cms_main' ?><?php $attr_url='url' ?><?php $attr_class='' ?><?php $attr_action='' ?><?php $attr_subaction='' ?><?php $attr_id='' ?><?php $attr_var1='' ?><?php $attr_value1='' ?><?php - if(!empty($attr_url)) - $tmp_url = $$attr_url; +?><?php unset($attr5) ?><?php unset($attr5_list) ?><?php unset($attr5_extract) ?><?php unset($attr5_key) ?><?php unset($attr5_value) ?><?php $attr6 = array('target'=>'cms_main','url'=>'url') ?><?php $attr6_target='cms_main' ?><?php $attr6_url='url' ?><?php + if(!empty($attr6_url)) + $tmp_url = $attr6_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 hasLang($attr_title)?lang($attr_title):lang($$attr_title) ?>"><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_target) ?><?php unset($attr_url) ?><?php unset($attr_class) ?><?php unset($attr_action) ?><?php unset($attr_subaction) ?><?php unset($attr_id) ?><?php unset($attr_var1) ?><?php unset($attr_value1) ?><?php $attr = array('file'=>'','url'=>'','align'=>'left','type'=>'page','elementtype'=>'') ?><?php $attr_file='' ?><?php $attr_url='' ?><?php $attr_align='left' ?><?php $attr_type='page' ?><?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)) + $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('align'=>'left','type'=>'page') ?><?php $attr7_align='left' ?><?php $attr7_type='page' ?><?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_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(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]; + //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($tmpArray[$attr_text]); + $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'; } - 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) ); + 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() ?></a><?php unset($attr) ?><?php $attr = array() ?><br/><?php unset($attr) ?><?php $attr = array() ?><?php } ?><?php unset($attr) ?><?php $attr = array('var'=>'','value'=>'','invert'=>'','empty'=>'pages','present'=>'','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='pages' ?><?php $attr_present='' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_var) ?><?php $attr5 = array() ?></a><?php unset($attr5) ?><?php $attr6 = array() ?><br/><?php unset($attr6) ?><?php $attr4 = array() ?><?php } ?><?php unset($attr4) ?><?php $attr5 = array('empty'=>'pages') ?><?php $attr5_empty='pages' ?><?php // Wahr-Vergleich - if ( !empty($attr_true) ) - $exec = $$attr_true == true; +// Html::debug($attr5); + + if ( isset($attr5_true) ) + { + if (gettype($attr5_true) === '' && gettype($attr5_true) === '1') + $exec = $$attr5_true == true; + else + $exec = $attr5_true == true; + } // Falsch-Vergleich - elseif ( !empty($attr_false) ) - $exec = $$attr_false != true; - + elseif ( isset($attr5_false) ) + { + if (gettype($attr5_false) === '' && gettype($attr5_false) === '1') + $exec = $$attr5_false == false; + else + $exec = $attr5_false == false; + } // Inhalt-Vergleich mit Wertliste - elseif( !empty($attr_contains) ) - $exec = in_array($$attr_var,explode(',',$attr_contains)); + elseif( isset($attr5_contains) ) + $exec = in_array($attr5_value,explode(',',$attr5_contains)); // Inhalt-Vergleich - elseif( !empty($attr_var) ) - $exec = $$attr_var == $attr_value; + elseif( isset($attr5_equals)&& isset($attr5_value) ) + $exec = $attr5_equals == $attr5_value; // Vergleich auf leer - elseif ( !empty($attr_empty) ) + elseif ( isset($attr5_empty) ) { - if ( !isset($$attr_empty) ) - $exec = true; - elseif ( is_array($$attr_empty) ) - $exec = (count($$attr_empty)==0); - elseif ( is_bool($$attr_empty) ) + if ( !isset($$attr5_empty) ) + $exec = empty($attr5_empty); + elseif ( is_array($$attr5_empty) ) + $exec = (count($$attr5_empty)==0); + elseif ( is_bool($$attr5_empty) ) $exec = true; else - $exec = empty( $$attr_empty ); + $exec = empty( $$attr5_empty ); } - // Vergleich auf nicht-leer - elseif ( !empty($attr_present) ) + // Vergleich auf Vorhandensein + elseif ( isset($attr5_present) ) { - if ( !isset($$attr_present) ) + if ( !isset($$attr5_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; + 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 = !empty( $$attr_present ); + $exec = true; } + else { - die("error in IF"); + Html::debug( $attr5 ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; } // Ergebnis umdrehen - if ( !empty($attr_invert) ) + if ( !empty($attr5_invert) ) $exec = !$exec; + // Ergebnis umdrehen + if ( !empty($attr5_not) ) + $exec = !$exec; + + unset($attr5_true); + unset($attr5_false); + unset($attr5_notempty); + unset($attr5_empty); + unset($attr5_contains); + unset($attr5_present); + unset($attr5_invert); + unset($attr5_not); + unset($attr5_value); + unset($attr5_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('title'=>'','class'=>'','var'=>'','text'=>'GLOBAL_NOT_FOUND','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_NOT_FOUND' ?><?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)) +?><?php unset($attr5) ?><?php unset($attr5_empty) ?><?php $attr6 = array('class'=>'text','text'=>'GLOBAL_NOT_FOUND') ?><?php $attr6_class='text' ?><?php $attr6_text='GLOBAL_NOT_FOUND' ?><?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 (!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)?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) ); + 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() ?><?php +?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_text) ?><?php $attr4 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?> </table> + +?><?php unset($attr4) ?><?php $attr3 = array() ?></td><?php unset($attr3) ?><?php $attr2 = array() ?></tr><?php unset($attr2) ?><?php $attr1 = array() ?> </table> </td> </tr> </table> @@ -998,7 +1540,7 @@ if (!empty($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) { ?> @@ -1009,4 +1551,4 @@ if (!empty($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/file/size.tpl.php b/themes/default/pages/html/file/size.tpl.php @@ -1,62 +1,71 @@ -<?php $attr = array('class'=>'main title') ?><?php $attr_class='main 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_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 $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) { extract($pathElement); @@ -107,510 +116,520 @@ <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('for'=>'factor') ?><?php $attr_for='factor' ?><label for="id<?php echo $attr_for ?>"><?php unset($attr) ?><?php unset($attr_for) ?><?php $attr = array('class'=>'text','text'=>'FILE_IMAGE_SIZE_FACTOR') ?><?php $attr_class='text' ?><?php $attr_text='FILE_IMAGE_SIZE_FACTOR' ?><?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('for'=>'factor') ?><?php $attr6_for='factor' ?><label for="id<?php echo $attr6_for ?>"><?php unset($attr6) ?><?php unset($attr6_for) ?><?php $attr7 = array('class'=>'text','text'=>'FILE_IMAGE_SIZE_FACTOR') ?><?php $attr7_class='text' ?><?php $attr7_text='FILE_IMAGE_SIZE_FACTOR' ?><?php + 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() ?></label><?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; +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_text) ?><?php $attr5 = array() ?></label><?php unset($attr5) ?><?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($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('var'=>'factor','value'=>'1') ?><?php $attr_var='factor' ?><?php $attr_value='1' ?><?php $$attr_var = $attr_value ?><?php unset($attr) ?><?php unset($attr_var) ?><?php unset($attr_value) ?><?php $attr = array('list'=>'factors','name'=>'factor','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='factors' ?><?php $attr_name='factor' ?><?php $attr_onchange='' ?><?php $attr_title='' ?><?php $attr_class='' ?><select size="1" id="id<?php echo $attr_name ?>" 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"' +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('var'=>'factor','value'=>'1') ?><?php $attr6_var='factor' ?><?php $attr6_value='1' ?><?php $$attr6_var = $attr6_value ?><?php unset($attr6) ?><?php unset($attr6_var) ?><?php unset($attr6_value) ?><?php $attr6 = array('list'=>'factors','name'=>'factor') ?><?php $attr6_list='factors' ?><?php $attr6_name='factor' ?><select size="1" id="id<?php echo $attr6_name ?>" name="<?php echo $attr6_name ?>" onchange="<?php echo $attr6_onchange ?>" title="<?php echo $attr6_title ?>" class="<?php echo $attr6_class ?>"<?php +if (count($$attr6_list)==1) echo ' disabled="disabled"' ?>><?php - foreach( $$attr_list as $box_key=>$box_value ) + foreach( $$attr6_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="'.$attr6_class.'" value="'.$box_key.'"'; + if (isset($$attr6_name)&&$box_key==$$attr6_name || isset($attr6_default)&&$box_key == $attr6_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_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($$attr6_list)==1) echo '<input type="hidden" name="'.$attr6_name.'" value="'.$box_key.'" />' +?><?php unset($attr6) ?><?php unset($attr6_list) ?><?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($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('for'=>'width') ?><?php $attr_for='width' ?><label for="id<?php echo $attr_for ?>"><?php unset($attr) ?><?php unset($attr_for) ?><?php $attr = array('class'=>'text','text'=>'FILE_IMAGE_NEW_WIDTH') ?><?php $attr_class='text' ?><?php $attr_text='FILE_IMAGE_NEW_WIDTH' ?><?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('for'=>'width') ?><?php $attr6_for='width' ?><label for="id<?php echo $attr6_for ?>"><?php unset($attr6) ?><?php unset($attr6_for) ?><?php $attr7 = array('class'=>'text','text'=>'FILE_IMAGE_NEW_WIDTH') ?><?php $attr7_class='text' ?><?php $attr7_text='FILE_IMAGE_NEW_WIDTH' ?><?php + 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() ?></label><?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; +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_text) ?><?php $attr5 = array() ?></label><?php unset($attr5) ?><?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($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'=>'','default'=>'','type'=>'text','name'=>'width','size'=>'40','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_name='width' ?><?php $attr_size='40' ?><?php $attr_maxlength='256' ?><?php $attr_onchange='' ?><input id="id<?php echo $attr_name ?>" 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 ?>" onxxxMouseOver="this.focus();" /><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><?php unset($attr_type) ?><?php unset($attr_name) ?><?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( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('type'=>'text','name'=>'width','size'=>'40','maxlength'=>'256') ?><?php $attr6_type='text' ?><?php $attr6_name='width' ?><?php $attr6_size='40' ?><?php $attr6_maxlength='256' ?><input id="id<?php echo $attr6_name ?>" name="<?php echo $attr6_name ?>" type="<?php echo $attr6_type ?>" size="<?php echo $attr6_size ?>" maxlength="<?php echo $attr6_maxlength ?>" class="<?php echo $attr6_class ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" onxxxMouseOver="this.focus();" /><?php unset($attr6) ?><?php unset($attr6_type) ?><?php unset($attr6_name) ?><?php unset($attr6_size) ?><?php unset($attr6_maxlength) ?><?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('for'=>'height') ?><?php $attr_for='height' ?><label for="id<?php echo $attr_for ?>"><?php unset($attr) ?><?php unset($attr_for) ?><?php $attr = array('class'=>'text','text'=>'FILE_IMAGE_NEW_HEIGHT') ?><?php $attr_class='text' ?><?php $attr_text='FILE_IMAGE_NEW_HEIGHT' ?><?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('for'=>'height') ?><?php $attr6_for='height' ?><label for="id<?php echo $attr6_for ?>"><?php unset($attr6) ?><?php unset($attr6_for) ?><?php $attr7 = array('class'=>'text','text'=>'FILE_IMAGE_NEW_HEIGHT') ?><?php $attr7_class='text' ?><?php $attr7_text='FILE_IMAGE_NEW_HEIGHT' ?><?php + 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() ?></label><?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; +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_text) ?><?php $attr5 = array() ?></label><?php unset($attr5) ?><?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($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'=>'','default'=>'','type'=>'text','name'=>'height','size'=>'40','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_name='height' ?><?php $attr_size='40' ?><?php $attr_maxlength='256' ?><?php $attr_onchange='' ?><input id="id<?php echo $attr_name ?>" 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 ?>" onxxxMouseOver="this.focus();" /><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><?php unset($attr_type) ?><?php unset($attr_name) ?><?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( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('type'=>'text','name'=>'height','size'=>'40','maxlength'=>'256') ?><?php $attr6_type='text' ?><?php $attr6_name='height' ?><?php $attr6_size='40' ?><?php $attr6_maxlength='256' ?><input id="id<?php echo $attr6_name ?>" name="<?php echo $attr6_name ?>" type="<?php echo $attr6_type ?>" size="<?php echo $attr6_size ?>" maxlength="<?php echo $attr6_maxlength ?>" class="<?php echo $attr6_class ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" onxxxMouseOver="this.focus();" /><?php unset($attr6) ?><?php unset($attr6_type) ?><?php unset($attr6_name) ?><?php unset($attr6_size) ?><?php unset($attr6_maxlength) ?><?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('for'=>'format') ?><?php $attr_for='format' ?><label for="id<?php echo $attr_for ?>"><?php unset($attr) ?><?php unset($attr_for) ?><?php $attr = array('class'=>'text','text'=>'FILE_IMAGE_FORMAT') ?><?php $attr_class='text' ?><?php $attr_text='FILE_IMAGE_FORMAT' ?><?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('for'=>'format') ?><?php $attr6_for='format' ?><label for="id<?php echo $attr6_for ?>"><?php unset($attr6) ?><?php unset($attr6_for) ?><?php $attr7 = array('class'=>'text','text'=>'FILE_IMAGE_FORMAT') ?><?php $attr7_class='text' ?><?php $attr7_text='FILE_IMAGE_FORMAT' ?><?php + 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() ?></label><?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; +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_text) ?><?php $attr5 = array() ?></label><?php unset($attr5) ?><?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($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('list'=>'formats','name'=>'format','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='formats' ?><?php $attr_name='format' ?><?php $attr_onchange='' ?><?php $attr_title='' ?><?php $attr_class='' ?><select size="1" id="id<?php echo $attr_name ?>" 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"' +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('list'=>'formats','name'=>'format') ?><?php $attr6_list='formats' ?><?php $attr6_name='format' ?><select size="1" id="id<?php echo $attr6_name ?>" name="<?php echo $attr6_name ?>" onchange="<?php echo $attr6_onchange ?>" title="<?php echo $attr6_title ?>" class="<?php echo $attr6_class ?>"<?php +if (count($$attr6_list)==1) echo ' disabled="disabled"' ?>><?php - foreach( $$attr_list as $box_key=>$box_value ) + foreach( $$attr6_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="'.$attr6_class.'" value="'.$box_key.'"'; + if (isset($$attr6_name)&&$box_key==$$attr6_name || isset($attr6_default)&&$box_key == $attr6_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_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($$attr6_list)==1) echo '<input type="hidden" name="'.$attr6_name.'" value="'.$box_key.'" />' +?><?php unset($attr6) ?><?php unset($attr6_list) ?><?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($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('for'=>'jpeglist_compression') ?><?php $attr_for='jpeglist_compression' ?><label for="id<?php echo $attr_for ?>"><?php unset($attr) ?><?php unset($attr_for) ?><?php $attr = array('class'=>'text','text'=>'FILE_IMAGE_JPEG_COMPRESSION') ?><?php $attr_class='text' ?><?php $attr_text='FILE_IMAGE_JPEG_COMPRESSION' ?><?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('for'=>'jpeglist_compression') ?><?php $attr6_for='jpeglist_compression' ?><label for="id<?php echo $attr6_for ?>"><?php unset($attr6) ?><?php unset($attr6_for) ?><?php $attr7 = array('class'=>'text','text'=>'FILE_IMAGE_JPEG_COMPRESSION') ?><?php $attr7_class='text' ?><?php $attr7_text='FILE_IMAGE_JPEG_COMPRESSION' ?><?php + 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() ?></label><?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; +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_text) ?><?php $attr5 = array() ?></label><?php unset($attr5) ?><?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($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('var'=>'jpeg_compression','value'=>'70') ?><?php $attr_var='jpeg_compression' ?><?php $attr_value='70' ?><?php $$attr_var = $attr_value ?><?php unset($attr) ?><?php unset($attr_var) ?><?php unset($attr_value) ?><?php $attr = array('list'=>'jpeglist','name'=>'jpeg_compression','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='jpeglist' ?><?php $attr_name='jpeg_compression' ?><?php $attr_onchange='' ?><?php $attr_title='' ?><?php $attr_class='' ?><select size="1" id="id<?php echo $attr_name ?>" 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"' +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('var'=>'jpeg_compression','value'=>'70') ?><?php $attr6_var='jpeg_compression' ?><?php $attr6_value='70' ?><?php $$attr6_var = $attr6_value ?><?php unset($attr6) ?><?php unset($attr6_var) ?><?php unset($attr6_value) ?><?php $attr6 = array('list'=>'jpeglist','name'=>'jpeg_compression') ?><?php $attr6_list='jpeglist' ?><?php $attr6_name='jpeg_compression' ?><select size="1" id="id<?php echo $attr6_name ?>" name="<?php echo $attr6_name ?>" onchange="<?php echo $attr6_onchange ?>" title="<?php echo $attr6_title ?>" class="<?php echo $attr6_class ?>"<?php +if (count($$attr6_list)==1) echo ' disabled="disabled"' ?>><?php - foreach( $$attr_list as $box_key=>$box_value ) + foreach( $$attr6_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="'.$attr6_class.'" value="'.$box_key.'"'; + if (isset($$attr6_name)&&$box_key==$$attr6_name || isset($attr6_default)&&$box_key == $attr6_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_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($$attr6_list)==1) echo '<input type="hidden" name="'.$attr6_name.'" value="'.$box_key.'" />' +?><?php unset($attr6) ?><?php unset($attr6_list) ?><?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($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_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> @@ -624,16 +643,16 @@ 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($attr2) ?><?php $attr1 = array() ?></form> -<?php unset($attr) ?><?php $attr = array('field'=>'width') ?><?php $attr_field='width' ?> +<?php unset($attr1) ?><?php $attr2 = array('field'=>'width') ?><?php $attr2_field='width' ?> <script name="JavaScript" type="text/javascript"> <!-- -document.forms[0].<?php echo $attr_field ?>.focus(); -document.forms[0].<?php echo $attr_field ?>.select(); +document.forms[0].<?php echo $attr2_field ?>.focus(); +document.forms[0].<?php echo $attr2_field ?>.select(); // --> </script> -<?php unset($attr) ?><?php unset($attr_field) ?><?php $attr = array() ?> +<?php unset($attr2) ?><?php unset($attr2_field) ?><?php $attr0 = array() ?> <!-- $Id$ --> <?php if ($showDuration) { ?> @@ -644,4 +663,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/folder/create.tpl.php b/themes/default/pages/html/folder/create.tpl.php @@ -1,9 +1,10 @@ -<?php $attr = array('class'=>'') ?><?php $attr_class='' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<?php $attr = array('class'=>'main','title'=>'var') ?><?php $attr_class='main' ?><?php $attr_title='var' ?><?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 $attr_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" /> <link rel="stylesheet" type="text/css" href="./themes/default/css/default.css" /> @@ -12,22 +13,34 @@ <?php } ?> </head> -<body<?php echo !empty($$attr_class)?' class="'.$$attr_class.'"':' class="'.$attr_class.'"' ?>> +<body class="<?php echo $attr_class ?>"> - -<?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('title'=>'GLOBAL_NEW','name'=>'global_new','icon'=>'','widths'=>'','width'=>'85%') ?><?php $attr_title='GLOBAL_NEW' ?><?php $attr_name='global_new' ?><?php $attr_icon='' ?><?php $attr_widths='' ?><?php $attr_width='85%' ?><?php +<?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_title) ?><?php $attr = array('title'=>'GLOBAL_NEW','name'=>'global_new','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr_title='GLOBAL_NEW' ?><?php $attr_name='global_new' ?><?php $attr_width='93%' ?><?php $attr_rowclasses='odd,even' ?><?php $attr_columnclasses='1,2,3' ?><?php $coloumn_widths=array(); if (!empty($attr_widths)) { $column_widths = explode(',',$attr_widths); unset($attr['widths']); } + if (!empty($attr_rowclasses)) + { + $row_classes = explode(',',$attr_rowclasses); + $row_class_idx = 999; + unset($attr['rowclasses']); + } + if (!empty($attr_columnclasses)) + { + $column_classes = explode(',',$attr_columnclasses); + unset($attr['columnclasses']); + } global $image_dir; echo '<br/><br/><br/><center>'; echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_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 ( !is_array($path) ) + $path = array(); foreach( $path as $pathElement) { extract($pathElement); @@ -36,7 +49,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 ) @@ -72,7 +91,7 @@ <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() ?> </table> + <table class="n" cellspacing="0" width="100%" cellpadding="4"><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_name) ?><?php unset($attr_width) ?><?php unset($attr_rowclasses) ?><?php unset($attr_columnclasses) ?><?php $attr = array() ?> </table> </td> </tr> </table> diff --git a/themes/default/pages/html/folder/createfile.tpl.php b/themes/default/pages/html/folder/createfile.tpl.php @@ -1,9 +1,10 @@ -<?php $attr = array('class'=>'') ?><?php $attr_class='' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<?php $attr = array('class'=>'main','title'=>'var') ?><?php $attr_class='main' ?><?php $attr_title='var' ?><?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 $attr_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" /> <link rel="stylesheet" type="text/css" href="./themes/default/css/default.css" /> @@ -12,10 +13,9 @@ <?php } ?> </head> -<body<?php echo !empty($$attr_class)?' class="'.$$attr_class.'"':' class="'.$attr_class.'"' ?>> +<body class="<?php echo $attr_class ?>"> - -<?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('action'=>'','subaction'=>'','id'=>'','name'=>'','target'=>'_self','method'=>'post','enctype'=>'multipart/form-data') ?><?php $attr_action='' ?><?php $attr_subaction='' ?><?php $attr_id='' ?><?php $attr_name='' ?><?php $attr_target='_self' ?><?php $attr_method='post' ?><?php $attr_enctype='multipart/form-data' ?><?php +<?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_title) ?><?php $attr = array('name'=>'','target'=>'_self','method'=>'post','enctype'=>'multipart/form-data') ?><?php $attr_name='' ?><?php $attr_target='_self' ?><?php $attr_method='post' ?><?php $attr_enctype='multipart/form-data' ?><?php if (empty($attr_action)) $attr_action = $actionName; if (empty($attr_subaction)) @@ -33,19 +33,32 @@ <input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr_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'=>'type','default'=>'file') ?><?php $attr_name='type' ?><?php $attr_default='file' ?><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'=>'','name'=>'','icon'=>'','widths'=>'','width'=>'85%') ?><?php $attr_title='' ?><?php $attr_name='' ?><?php $attr_icon='' ?><?php $attr_widths='' ?><?php $attr_width='85%' ?><?php +?><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_target) ?><?php unset($attr_method) ?><?php unset($attr_enctype) ?><?php $attr = array('name'=>'type','default'=>'file') ?><?php $attr_name='type' ?><?php $attr_default='file' ?><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'=>'','name'=>'','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr_title='' ?><?php $attr_name='' ?><?php $attr_width='93%' ?><?php $attr_rowclasses='odd,even' ?><?php $attr_columnclasses='1,2,3' ?><?php $coloumn_widths=array(); if (!empty($attr_widths)) { $column_widths = explode(',',$attr_widths); unset($attr['widths']); } + if (!empty($attr_rowclasses)) + { + $row_classes = explode(',',$attr_rowclasses); + $row_class_idx = 999; + unset($attr['rowclasses']); + } + if (!empty($attr_columnclasses)) + { + $column_classes = explode(',',$attr_columnclasses); + unset($attr['columnclasses']); + } global $image_dir; echo '<br/><br/><br/><center>'; echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_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 ( !is_array($path) ) + $path = array(); foreach( $path as $pathElement) { extract($pathElement); @@ -54,7 +67,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,28 +109,44 @@ <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($attr) ?><?php unset($attr_title) ?><?php unset($attr_name) ?><?php unset($attr_width) ?><?php unset($attr_rowclasses) ?><?php unset($attr_columnclasses) ?><?php $attr = 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; + 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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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_FILE','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='global_FILE' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?><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_FILE') ?><?php $attr_class='text' ?><?php $attr_text='global_FILE' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -123,49 +158,81 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?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; + $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; 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]; -?><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('name'=>'file','class'=>'upload') ?><?php $attr_name='file' ?><?php $attr_class='upload' ?><input type="file" name="<?php echo $attr_name ?>" class="<?php echo $attr_class ?>" /><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_class) ?><?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( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('name'=>'file','class'=>'upload') ?><?php $attr_name='file' ?><?php $attr_class='upload' ?><input type="file" name="<?php echo $attr_name ?>" class="<?php echo $attr_class ?>" /><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_class) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = 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; + 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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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 +?><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_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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -177,49 +244,81 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?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; + $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; 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]; -?><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'=>'name','prefix'=>'','value'=>'','size'=>'50','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_index='' ?><?php $attr_name='name' ?><?php $attr_prefix='' ?><?php $attr_value='' ?><?php $attr_size='50' ?><?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 - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - +?><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'=>'','default'=>'','type'=>'text','name'=>'name','size'=>'50','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_name='name' ?><?php $attr_size='50' ?><?php $attr_maxlength='256' ?><?php $attr_onchange='' ?><input id="id<?php echo $attr_name ?>" name="<?php echo $attr_name ?>" type="<?php echo $attr_type ?>" 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 ?>" onxxxMouseOver="this.focus();" /><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><?php unset($attr_type) ?><?php unset($attr_name) ?><?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 + $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; + 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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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_DESCRIPTION','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='global_DESCRIPTION' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?><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_DESCRIPTION') ?><?php $attr_class='text' ?><?php $attr_text='global_DESCRIPTION' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -231,55 +330,81 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?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; + $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; 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]; -?><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('name'=>'description','rows'=>'5','cols'=>'50','value'=>'','index'=>'','onchange'=>'','prefix'=>'','class'=>'','default'=>'') ?><?php $attr_name='description' ?><?php $attr_rows='5' ?><?php $attr_cols='50' ?><?php $attr_value='' ?><?php $attr_index='' ?><?php $attr_onchange='' ?><?php $attr_prefix='' ?><?php $attr_class='' ?><?php $attr_default='' ?><textarea name="<?php echo $attr_name ?>" rows="<?php echo $attr_rows ?>" cols="<?php echo $attr_cols ?>"><?php echo htmlentities(isset($$attr_name)?$$attr_name:$attr_default) ?></textarea><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_rows) ?><?php unset($attr_cols) ?><?php unset($attr_value) ?><?php unset($attr_index) ?><?php unset($attr_onchange) ?><?php unset($attr_prefix) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><?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( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('name'=>'description','rows'=>'5','cols'=>'50','class'=>'') ?><?php $attr_name='description' ?><?php $attr_rows='5' ?><?php $attr_cols='50' ?><?php $attr_class='' ?><textarea class="<?php echo $attr_class ?>" name="<?php echo $attr_name ?>" rows="<?php echo $attr_rows ?>" cols="<?php echo $attr_cols ?>"><?php echo htmlentities(isset($$attr_name)?$$attr_name:$attr_default) ?></textarea><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_rows) ?><?php unset($attr_cols) ?><?php unset($attr_class) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = 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; + 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 $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; + $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; 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]; -?><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 +?><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') { $attr_type = 'submit'; - $attr_class = 'ok'; - $attr_text = 'BUTTON_OK'; - $attr_value = 'ok'; +// $attr_class = 'ok'; +// $attr_text = 'BUTTON_OK'; +// $attr_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 $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> </td> </tr> </table> @@ -293,10 +418,15 @@ <?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'=>'name') ?><?php $attr_field='name' ?><script name="JavaScript" type="text/javascript"><!-- +<?php unset($attr) ?><?php $attr = array() ?></form> + +<?php unset($attr) ?><?php $attr = array('field'=>'name') ?><?php $attr_field='name' ?> +<script name="JavaScript" type="text/javascript"> +<!-- document.forms[0].<?php echo $attr_field ?>.focus(); document.forms[0].<?php echo $attr_field ?>.select(); -//--></script> +// --> +</script> <?php unset($attr) ?><?php unset($attr_field) ?><?php $attr = array() ?> <!-- $Id$ --> diff --git a/themes/default/pages/html/folder/createfolder.tpl.php b/themes/default/pages/html/folder/createfolder.tpl.php @@ -1,9 +1,10 @@ -<?php $attr = array('class'=>'') ?><?php $attr_class='' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<?php $attr = array('class'=>'main','title'=>'var') ?><?php $attr_class='main' ?><?php $attr_title='var' ?><?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 $attr_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" /> <link rel="stylesheet" type="text/css" href="./themes/default/css/default.css" /> @@ -12,10 +13,9 @@ <?php } ?> </head> -<body<?php echo !empty($$attr_class)?' class="'.$$attr_class.'"':' class="'.$attr_class.'"' ?>> +<body class="<?php echo $attr_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 +<?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)) @@ -33,19 +33,32 @@ <input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr_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($attr) ?><?php unset($attr_name) ?><?php unset($attr_target) ?><?php unset($attr_method) ?><?php unset($attr_enctype) ?><?php $attr = array('title'=>'','name'=>'','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr_title='' ?><?php $attr_name='' ?><?php $attr_width='93%' ?><?php $attr_rowclasses='odd,even' ?><?php $attr_columnclasses='1,2,3' ?><?php $coloumn_widths=array(); if (!empty($attr_widths)) { $column_widths = explode(',',$attr_widths); unset($attr['widths']); } + if (!empty($attr_rowclasses)) + { + $row_classes = explode(',',$attr_rowclasses); + $row_class_idx = 999; + unset($attr['rowclasses']); + } + if (!empty($attr_columnclasses)) + { + $column_classes = explode(',',$attr_columnclasses); + unset($attr['columnclasses']); + } global $image_dir; echo '<br/><br/><br/><center>'; echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_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 ( !is_array($path) ) + $path = array(); foreach( $path as $pathElement) { extract($pathElement); @@ -54,7 +67,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,28 +109,44 @@ <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($attr) ?><?php unset($attr_title) ?><?php unset($attr_name) ?><?php unset($attr_width) ?><?php unset($attr_rowclasses) ?><?php unset($attr_columnclasses) ?><?php $attr = 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; + 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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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_FOLDER','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='global_FOLDER' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?><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_FOLDER') ?><?php $attr_class='text' ?><?php $attr_text='global_FOLDER' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -123,49 +158,81 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?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; + $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; 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]; -?><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'=>'name','prefix'=>'','value'=>'','size'=>'20','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_index='' ?><?php $attr_name='name' ?><?php $attr_prefix='' ?><?php $attr_value='' ?><?php $attr_size='20' ?><?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 - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - +?><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'=>'','default'=>'','type'=>'text','name'=>'name','size'=>'20','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_name='name' ?><?php $attr_size='20' ?><?php $attr_maxlength='256' ?><?php $attr_onchange='' ?><input id="id<?php echo $attr_name ?>" name="<?php echo $attr_name ?>" type="<?php echo $attr_type ?>" 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 ?>" onxxxMouseOver="this.focus();" /><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><?php unset($attr_type) ?><?php unset($attr_name) ?><?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 + $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; + 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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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_DESCRIPTION','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='global_DESCRIPTION' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?><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_DESCRIPTION') ?><?php $attr_class='text' ?><?php $attr_text='global_DESCRIPTION' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -177,55 +244,81 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?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; + $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; 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]; -?><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('name'=>'description','rows'=>'5','cols'=>'50','value'=>'','index'=>'','onchange'=>'','prefix'=>'','class'=>'','default'=>'') ?><?php $attr_name='description' ?><?php $attr_rows='5' ?><?php $attr_cols='50' ?><?php $attr_value='' ?><?php $attr_index='' ?><?php $attr_onchange='' ?><?php $attr_prefix='' ?><?php $attr_class='' ?><?php $attr_default='' ?><textarea name="<?php echo $attr_name ?>" rows="<?php echo $attr_rows ?>" cols="<?php echo $attr_cols ?>"><?php echo htmlentities(isset($$attr_name)?$$attr_name:$attr_default) ?></textarea><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_rows) ?><?php unset($attr_cols) ?><?php unset($attr_value) ?><?php unset($attr_index) ?><?php unset($attr_onchange) ?><?php unset($attr_prefix) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><?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( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('name'=>'description','rows'=>'5','cols'=>'50','class'=>'') ?><?php $attr_name='description' ?><?php $attr_rows='5' ?><?php $attr_cols='50' ?><?php $attr_class='' ?><textarea class="<?php echo $attr_class ?>" name="<?php echo $attr_name ?>" rows="<?php echo $attr_rows ?>" cols="<?php echo $attr_cols ?>"><?php echo htmlentities(isset($$attr_name)?$$attr_name:$attr_default) ?></textarea><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_rows) ?><?php unset($attr_cols) ?><?php unset($attr_class) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = 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; + 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 $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; + $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; 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]; -?><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 +?><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') { $attr_type = 'submit'; - $attr_class = 'ok'; - $attr_text = 'BUTTON_OK'; - $attr_value = 'ok'; +// $attr_class = 'ok'; +// $attr_text = 'BUTTON_OK'; +// $attr_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 $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> </td> </tr> </table> @@ -239,10 +332,15 @@ <?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'=>'name') ?><?php $attr_field='name' ?><script name="JavaScript" type="text/javascript"><!-- +<?php unset($attr) ?><?php $attr = array() ?></form> + +<?php unset($attr) ?><?php $attr = array('field'=>'name') ?><?php $attr_field='name' ?> +<script name="JavaScript" type="text/javascript"> +<!-- document.forms[0].<?php echo $attr_field ?>.focus(); document.forms[0].<?php echo $attr_field ?>.select(); -//--></script> +// --> +</script> <?php unset($attr) ?><?php unset($attr_field) ?><?php $attr = array() ?> <!-- $Id$ --> diff --git a/themes/default/pages/html/folder/createpage.tpl.php b/themes/default/pages/html/folder/createpage.tpl.php @@ -1,9 +1,10 @@ -<?php $attr = array('class'=>'') ?><?php $attr_class='' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<?php $attr = array('class'=>'main','title'=>'var') ?><?php $attr_class='main' ?><?php $attr_title='var' ?><?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 $attr_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" /> <link rel="stylesheet" type="text/css" href="./themes/default/css/default.css" /> @@ -12,10 +13,9 @@ <?php } ?> </head> -<body<?php echo !empty($$attr_class)?' class="'.$$attr_class.'"':' class="'.$attr_class.'"' ?>> +<body class="<?php echo $attr_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 +<?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)) @@ -33,19 +33,32 @@ <input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr_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($attr) ?><?php unset($attr_name) ?><?php unset($attr_target) ?><?php unset($attr_method) ?><?php unset($attr_enctype) ?><?php $attr = array('title'=>'','name'=>'','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr_title='' ?><?php $attr_name='' ?><?php $attr_width='93%' ?><?php $attr_rowclasses='odd,even' ?><?php $attr_columnclasses='1,2,3' ?><?php $coloumn_widths=array(); if (!empty($attr_widths)) { $column_widths = explode(',',$attr_widths); unset($attr['widths']); } + if (!empty($attr_rowclasses)) + { + $row_classes = explode(',',$attr_rowclasses); + $row_class_idx = 999; + unset($attr['rowclasses']); + } + if (!empty($attr_columnclasses)) + { + $column_classes = explode(',',$attr_columnclasses); + unset($attr['columnclasses']); + } global $image_dir; echo '<br/><br/><br/><center>'; echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_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 ( !is_array($path) ) + $path = array(); foreach( $path as $pathElement) { extract($pathElement); @@ -54,7 +67,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,28 +109,44 @@ <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($attr) ?><?php unset($attr_title) ?><?php unset($attr_name) ?><?php unset($attr_width) ?><?php unset($attr_rowclasses) ?><?php unset($attr_columnclasses) ?><?php $attr = 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; + 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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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_TEMPLATE','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='global_TEMPLATE' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?><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_TEMPLATE') ?><?php $attr_class='text' ?><?php $attr_text='global_TEMPLATE' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -123,61 +158,93 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?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; + $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; 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]; -?><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'=>'templates','name'=>'templateid','default'=>'','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='templates' ?><?php $attr_name='templateid' ?><?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 +?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('list'=>'templates','name'=>'templateid','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='templates' ?><?php $attr_name='templateid' ?><?php $attr_onchange='' ?><?php $attr_title='' ?><?php $attr_class='' ?><select size="1" id="id<?php echo $attr_name ?>" 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"' ?>><?php foreach( $$attr_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) + if (isset($$attr_name)&&$box_key==$$attr_name || isset($attr_default)&&$box_key == $attr_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 - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - +?><?php unset($attr) ?><?php unset($attr_list) ?><?php unset($attr_name) ?><?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 + $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; + 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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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 +?><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_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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -189,49 +256,81 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?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; + $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; 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]; -?><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'=>'name','prefix'=>'','value'=>'','size'=>'20','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_index='' ?><?php $attr_name='name' ?><?php $attr_prefix='' ?><?php $attr_value='' ?><?php $attr_size='20' ?><?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 - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - +?><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'=>'','default'=>'','type'=>'text','name'=>'name','size'=>'20','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_name='name' ?><?php $attr_size='20' ?><?php $attr_maxlength='256' ?><?php $attr_onchange='' ?><input id="id<?php echo $attr_name ?>" name="<?php echo $attr_name ?>" type="<?php echo $attr_type ?>" 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 ?>" onxxxMouseOver="this.focus();" /><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><?php unset($attr_type) ?><?php unset($attr_name) ?><?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 + $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; + 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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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_DESCRIPTION','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='global_DESCRIPTION' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?><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_DESCRIPTION') ?><?php $attr_class='text' ?><?php $attr_text='global_DESCRIPTION' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -243,55 +342,81 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?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; + $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; 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]; -?><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('name'=>'description','rows'=>'5','cols'=>'50','value'=>'','index'=>'','onchange'=>'','prefix'=>'','class'=>'','default'=>'') ?><?php $attr_name='description' ?><?php $attr_rows='5' ?><?php $attr_cols='50' ?><?php $attr_value='' ?><?php $attr_index='' ?><?php $attr_onchange='' ?><?php $attr_prefix='' ?><?php $attr_class='' ?><?php $attr_default='' ?><textarea name="<?php echo $attr_name ?>" rows="<?php echo $attr_rows ?>" cols="<?php echo $attr_cols ?>"><?php echo htmlentities(isset($$attr_name)?$$attr_name:$attr_default) ?></textarea><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_rows) ?><?php unset($attr_cols) ?><?php unset($attr_value) ?><?php unset($attr_index) ?><?php unset($attr_onchange) ?><?php unset($attr_prefix) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><?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( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('name'=>'description','rows'=>'5','cols'=>'50','class'=>'') ?><?php $attr_name='description' ?><?php $attr_rows='5' ?><?php $attr_cols='50' ?><?php $attr_class='' ?><textarea class="<?php echo $attr_class ?>" name="<?php echo $attr_name ?>" rows="<?php echo $attr_rows ?>" cols="<?php echo $attr_cols ?>"><?php echo htmlentities(isset($$attr_name)?$$attr_name:$attr_default) ?></textarea><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_rows) ?><?php unset($attr_cols) ?><?php unset($attr_class) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = 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; + 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 $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; + $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; 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]; -?><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 +?><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') { $attr_type = 'submit'; - $attr_class = 'ok'; - $attr_text = 'BUTTON_OK'; - $attr_value = 'ok'; +// $attr_class = 'ok'; +// $attr_text = 'BUTTON_OK'; +// $attr_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 $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> </td> </tr> </table> @@ -305,10 +430,15 @@ 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('field'=>'name') ?><?php $attr_field='name' ?><script name="JavaScript" type="text/javascript"><!-- +<?php unset($attr) ?><?php $attr = array() ?></form> + +<?php unset($attr) ?><?php $attr = array('field'=>'name') ?><?php $attr_field='name' ?> +<script name="JavaScript" type="text/javascript"> +<!-- document.forms[0].<?php echo $attr_field ?>.focus(); document.forms[0].<?php echo $attr_field ?>.select(); -//--></script> +// --> +</script> <?php unset($attr) ?><?php unset($attr_field) ?><?php $attr = array() ?> <!-- $Id$ --> diff --git a/themes/default/pages/html/folder/order.tpl.php b/themes/default/pages/html/folder/order.tpl.php @@ -1,9 +1,10 @@ -<?php $attr = array('class'=>'') ?><?php $attr_class='' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<?php $attr = array('class'=>'main','title'=>'var') ?><?php $attr_class='main' ?><?php $attr_title='var' ?><?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 $attr_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" /> <link rel="stylesheet" type="text/css" href="./themes/default/css/default.css" /> @@ -12,22 +13,34 @@ <?php } ?> </head> -<body<?php echo !empty($$attr_class)?' class="'.$$attr_class.'"':' class="'.$attr_class.'"' ?>> +<body class="<?php echo $attr_class ?>"> - -<?php unset($attr) ?><?php unset($attr_class) ?><?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($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 $coloumn_widths=array(); if (!empty($attr_widths)) { $column_widths = explode(',',$attr_widths); unset($attr['widths']); } + if (!empty($attr_rowclasses)) + { + $row_classes = explode(',',$attr_rowclasses); + $row_class_idx = 999; + unset($attr['rowclasses']); + } + if (!empty($attr_columnclasses)) + { + $column_classes = explode(',',$attr_columnclasses); + unset($attr['columnclasses']); + } global $image_dir; echo '<br/><br/><br/><center>'; echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_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 ( !is_array($path) ) + $path = array(); foreach( $path as $pathElement) { extract($pathElement); @@ -36,7 +49,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 ) @@ -72,28 +91,44 @@ <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($attr) ?><?php unset($attr_width) ?><?php unset($attr_rowclasses) ?><?php unset($attr_columnclasses) ?><?php $attr = 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; + global $cell_column_nr; $cell_column_nr=0; - -?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'help','colspan'=>'7') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='help' ?><?php $attr_colspan='7' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; + + $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; + $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; 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]; -?><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_FOLDER_DESC','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_FOLDER_DESC' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?><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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -105,44 +140,71 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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($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 + $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; + global $cell_column_nr; $cell_column_nr=0; - -?><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; + + $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; + $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; 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]; -?><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'=>'FOLDER_ORDERBYTYPE','target'=>'','url'=>'orderbytype_url','class'=>'','action'=>'','subaction'=>'','id'=>'','var1'=>'','value1'=>'') ?><?php $attr_title='FOLDER_ORDERBYTYPE' ?><?php $attr_target='' ?><?php $attr_url='orderbytype_url' ?><?php $attr_class='' ?><?php $attr_action='' ?><?php $attr_subaction='' ?><?php $attr_id='' ?><?php $attr_var1='' ?><?php $attr_value1='' ?><?php +?><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; + $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 hasLang($attr_title)?lang($attr_title):lang($$attr_title) ?>"><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_target) ?><?php unset($attr_url) ?><?php unset($attr_class) ?><?php unset($attr_action) ?><?php unset($attr_subaction) ?><?php unset($attr_id) ?><?php unset($attr_var1) ?><?php unset($attr_value1) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'GLOBAL_TYPE','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_TYPE' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?><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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -154,20 +216,37 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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() ?></a><?php unset($attr) ?><?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 +?></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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -179,25 +258,42 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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'=>'FOLDER_ORDERBYNAME','target'=>'','url'=>'orderbyname_url','class'=>'','action'=>'','subaction'=>'','id'=>'','var1'=>'','value1'=>'') ?><?php $attr_title='FOLDER_ORDERBYNAME' ?><?php $attr_target='' ?><?php $attr_url='orderbyname_url' ?><?php $attr_class='' ?><?php $attr_action='' ?><?php $attr_subaction='' ?><?php $attr_id='' ?><?php $attr_var1='' ?><?php $attr_value1='' ?><?php +?></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; + $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 hasLang($attr_title)?lang($attr_title):lang($$attr_title) ?>"><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_target) ?><?php unset($attr_url) ?><?php unset($attr_class) ?><?php unset($attr_action) ?><?php unset($attr_subaction) ?><?php unset($attr_id) ?><?php unset($attr_var1) ?><?php unset($attr_value1) ?><?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 +?><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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -209,35 +305,57 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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() ?></a><?php unset($attr) ?><?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($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; + $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; 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]; -?><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'=>'FOLDER_ORDERBYLASTCHANGE','target'=>'','url'=>'orderbylastchange_url','class'=>'','action'=>'','subaction'=>'','id'=>'','var1'=>'','value1'=>'') ?><?php $attr_title='FOLDER_ORDERBYLASTCHANGE' ?><?php $attr_target='' ?><?php $attr_url='orderbylastchange_url' ?><?php $attr_class='' ?><?php $attr_action='' ?><?php $attr_subaction='' ?><?php $attr_id='' ?><?php $attr_var1='' ?><?php $attr_value1='' ?><?php +?><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; + $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 hasLang($attr_title)?lang($attr_title):lang($$attr_title) ?>"><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_target) ?><?php unset($attr_url) ?><?php unset($attr_class) ?><?php unset($attr_action) ?><?php unset($attr_subaction) ?><?php unset($attr_id) ?><?php unset($attr_var1) ?><?php unset($attr_value1) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'GLOBAL_LASTCHANGE','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_LASTCHANGE' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?><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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -249,35 +367,57 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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() ?></a><?php unset($attr) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'help','colspan'=>'4') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='help' ?><?php $attr_colspan='4' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?></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; + $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; 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]; -?><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'=>'FOLDER_FLIP','target'=>'','url'=>'flip_url','class'=>'','action'=>'','subaction'=>'','id'=>'','var1'=>'','value1'=>'') ?><?php $attr_title='FOLDER_FLIP' ?><?php $attr_target='' ?><?php $attr_url='flip_url' ?><?php $attr_class='' ?><?php $attr_action='' ?><?php $attr_subaction='' ?><?php $attr_id='' ?><?php $attr_var1='' ?><?php $attr_value1='' ?><?php +?><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; + $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 hasLang($attr_title)?lang($attr_title):lang($$attr_title) ?>"><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_target) ?><?php unset($attr_url) ?><?php unset($attr_class) ?><?php unset($attr_action) ?><?php unset($attr_subaction) ?><?php unset($attr_id) ?><?php unset($attr_var1) ?><?php unset($attr_value1) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'FOLDER_ORDER','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='FOLDER_ORDER' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?><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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -289,21 +429,32 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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() ?></a><?php unset($attr) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array('list'=>'object','extract'=>'true','key'=>'list_key','value'=>'list_value') ?><?php $attr_list='object' ?><?php $attr_extract='true' ?><?php $attr_key='list_key' ?><?php $attr_value='list_value' ?><?php +?></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'); + $list_extract = ($attr_extract==true); foreach( $$attr_list as $$list_tmp_key => $$list_tmp_value ) @@ -318,35 +469,53 @@ extract($$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'; - + $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; + global $cell_column_nr; $cell_column_nr=0; - -?><tr><?php unset($attr) ?><?php $attr = array('width'=>'40%','style'=>'','class'=>'fx','colspan'=>'') ?><?php $attr_width='40%' ?><?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; + + $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; + $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; 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]; -?><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 +?><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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -358,30 +527,52 @@ if (!empty($attr_elementtype)) { $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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'=>'18%','style'=>'','class'=>'fx','colspan'=>'') ?><?php $attr_width='18%' ?><?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($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; + $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; 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]; -?><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'=>'date','text'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='date' ?><?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 +?><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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -393,50 +584,77 @@ if (!empty($attr_elementtype)) { $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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'=>'3%','style'=>'','class'=>'fx','colspan'=>'') ?><?php $attr_width='3%' ?><?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($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; + $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; 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]; -?><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('var'=>'','value'=>'','invert'=>'','empty'=>'','present'=>'upurl','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='upurl' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php +?><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 // Wahr-Vergleich - if ( !empty($attr_true) ) - $exec = $$attr_true == true; +// Html::debug($attr); + + if ( isset($attr_true) ) + { + if (gettype($attr_true) === '' && gettype($attr_true) === '1') + $exec = $$attr_true == true; + else + $exec = $attr_true == true; + } // Falsch-Vergleich - elseif ( !empty($attr_false) ) - $exec = $$attr_false != true; - + elseif ( isset($attr_false) ) + { + if (gettype($attr_false) === '' && gettype($attr_false) === '1') + $exec = $$attr_false == false; + else + $exec = $attr_false == false; + } // Inhalt-Vergleich mit Wertliste - elseif( !empty($attr_contains) ) + elseif( isset($attr_contains) ) $exec = in_array($$attr_var,explode(',',$attr_contains)); // Inhalt-Vergleich - elseif( !empty($attr_var) ) + elseif( isset($attr_var) ) $exec = $$attr_var == $attr_value; // Vergleich auf leer - elseif ( !empty($attr_empty) ) + elseif ( isset($attr_empty) ) { if ( !isset($$attr_empty) ) - $exec = true; + $exec = empty($attr_empty); elseif ( is_array($$attr_empty) ) $exec = (count($$attr_empty)==0); elseif ( is_bool($$attr_empty) ) @@ -445,69 +663,104 @@ if (!empty($attr_elementtype)) { $exec = empty( $$attr_empty ); } - // Vergleich auf nicht-leer - elseif ( !empty($attr_present) ) + // 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 = true; + $exec = $$attr_present; elseif ( is_numeric($$attr_present) ) $exec = $$attr_present>=0; else - $exec = !empty( $$attr_present ); + $exec = true; } + else { - die("error in IF"); + Html::debug( $attr ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; } // Ergebnis umdrehen if ( !empty($attr_invert) ) $exec = !$exec; + // Ergebnis umdrehen + if ( !empty($attr_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); + + $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('title'=>'GLOBAL_UP','target'=>'','url'=>'upurl','class'=>'','action'=>'','subaction'=>'','id'=>'','var1'=>'','value1'=>'') ?><?php $attr_title='GLOBAL_UP' ?><?php $attr_target='' ?><?php $attr_url='upurl' ?><?php $attr_class='' ?><?php $attr_action='' ?><?php $attr_subaction='' ?><?php $attr_id='' ?><?php $attr_var1='' ?><?php $attr_value1='' ?><?php +?><?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; + $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 hasLang($attr_title)?lang($attr_title):lang($$attr_title) ?>"><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_target) ?><?php unset($attr_url) ?><?php unset($attr_class) ?><?php unset($attr_action) ?><?php unset($attr_subaction) ?><?php unset($attr_id) ?><?php unset($attr_var1) ?><?php unset($attr_value1) ?><?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','url'=>'','align'=>'left','type'=>'','elementtype'=>'') ?><?php $attr_file='bild' ?><?php $attr_url='' ?><?php $attr_align='left' ?><?php $attr_type='' ?><?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() ?></a><?php unset($attr) ?><?php $attr = array() ?><?php - } -?><?php unset($attr) ?><?php $attr = array('var'=>'','value'=>'','invert'=>'','empty'=>'upurl','present'=>'','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='upurl' ?><?php $attr_present='' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php +?><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 + } + +?><?php unset($attr) ?><?php $attr = array('empty'=>'upurl') ?><?php $attr_empty='upurl' ?><?php // Wahr-Vergleich - if ( !empty($attr_true) ) - $exec = $$attr_true == true; +// Html::debug($attr); + + if ( isset($attr_true) ) + { + if (gettype($attr_true) === '' && gettype($attr_true) === '1') + $exec = $$attr_true == true; + else + $exec = $attr_true == true; + } // Falsch-Vergleich - elseif ( !empty($attr_false) ) - $exec = $$attr_false != true; - + elseif ( isset($attr_false) ) + { + if (gettype($attr_false) === '' && gettype($attr_false) === '1') + $exec = $$attr_false == false; + else + $exec = $attr_false == false; + } // Inhalt-Vergleich mit Wertliste - elseif( !empty($attr_contains) ) + elseif( isset($attr_contains) ) $exec = in_array($$attr_var,explode(',',$attr_contains)); // Inhalt-Vergleich - elseif( !empty($attr_var) ) + elseif( isset($attr_var) ) $exec = $$attr_var == $attr_value; // Vergleich auf leer - elseif ( !empty($attr_empty) ) + elseif ( isset($attr_empty) ) { if ( !isset($$attr_empty) ) - $exec = true; + $exec = empty($attr_empty); elseif ( is_array($$attr_empty) ) $exec = (count($$attr_empty)==0); elseif ( is_bool($$attr_empty) ) @@ -516,34 +769,61 @@ if (!empty($attr_elementtype)) { $exec = empty( $$attr_empty ); } - // Vergleich auf nicht-leer - elseif ( !empty($attr_present) ) + // 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 = true; + $exec = $$attr_present; elseif ( is_numeric($$attr_present) ) $exec = $$attr_present>=0; else - $exec = !empty( $$attr_present ); + $exec = true; } + else { - die("error in IF"); + Html::debug( $attr ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; } // Ergebnis umdrehen if ( !empty($attr_invert) ) $exec = !$exec; + // Ergebnis umdrehen + if ( !empty($attr_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); + + $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('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 +?><?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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -555,52 +835,80 @@ if (!empty($attr_elementtype)) { $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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() ?><?php +?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_raw) ?><?php $attr = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('width'=>'3%','style'=>'','class'=>'fx','colspan'=>'') ?><?php $attr_width='3%' ?><?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; + +?><?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; + $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; 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]; -?><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('var'=>'','value'=>'','invert'=>'','empty'=>'','present'=>'topurl','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='topurl' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php +?><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 // Wahr-Vergleich - if ( !empty($attr_true) ) - $exec = $$attr_true == true; +// Html::debug($attr); + + if ( isset($attr_true) ) + { + if (gettype($attr_true) === '' && gettype($attr_true) === '1') + $exec = $$attr_true == true; + else + $exec = $attr_true == true; + } // Falsch-Vergleich - elseif ( !empty($attr_false) ) - $exec = $$attr_false != true; - + elseif ( isset($attr_false) ) + { + if (gettype($attr_false) === '' && gettype($attr_false) === '1') + $exec = $$attr_false == false; + else + $exec = $attr_false == false; + } // Inhalt-Vergleich mit Wertliste - elseif( !empty($attr_contains) ) + elseif( isset($attr_contains) ) $exec = in_array($$attr_var,explode(',',$attr_contains)); // Inhalt-Vergleich - elseif( !empty($attr_var) ) + elseif( isset($attr_var) ) $exec = $$attr_var == $attr_value; // Vergleich auf leer - elseif ( !empty($attr_empty) ) + elseif ( isset($attr_empty) ) { if ( !isset($$attr_empty) ) - $exec = true; + $exec = empty($attr_empty); elseif ( is_array($$attr_empty) ) $exec = (count($$attr_empty)==0); elseif ( is_bool($$attr_empty) ) @@ -609,69 +917,104 @@ if (!empty($attr_elementtype)) { $exec = empty( $$attr_empty ); } - // Vergleich auf nicht-leer - elseif ( !empty($attr_present) ) + // 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 = true; + $exec = $$attr_present; elseif ( is_numeric($$attr_present) ) $exec = $$attr_present>=0; else - $exec = !empty( $$attr_present ); + $exec = true; } + else { - die("error in IF"); + Html::debug( $attr ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; } // Ergebnis umdrehen if ( !empty($attr_invert) ) $exec = !$exec; + // Ergebnis umdrehen + if ( !empty($attr_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); + + $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('title'=>'GLOBAL_TOP','target'=>'','url'=>'topurl','class'=>'','action'=>'','subaction'=>'','id'=>'','var1'=>'','value1'=>'') ?><?php $attr_title='GLOBAL_TOP' ?><?php $attr_target='' ?><?php $attr_url='topurl' ?><?php $attr_class='' ?><?php $attr_action='' ?><?php $attr_subaction='' ?><?php $attr_id='' ?><?php $attr_var1='' ?><?php $attr_value1='' ?><?php +?><?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; + $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 hasLang($attr_title)?lang($attr_title):lang($$attr_title) ?>"><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_target) ?><?php unset($attr_url) ?><?php unset($attr_class) ?><?php unset($attr_action) ?><?php unset($attr_subaction) ?><?php unset($attr_id) ?><?php unset($attr_var1) ?><?php unset($attr_value1) ?><?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','url'=>'','align'=>'left','type'=>'','elementtype'=>'') ?><?php $attr_file='bild' ?><?php $attr_url='' ?><?php $attr_align='left' ?><?php $attr_type='' ?><?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() ?></a><?php unset($attr) ?><?php $attr = array() ?><?php - } -?><?php unset($attr) ?><?php $attr = array('var'=>'','value'=>'','invert'=>'','empty'=>'topurl','present'=>'','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='topurl' ?><?php $attr_present='' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php +?><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 + } + +?><?php unset($attr) ?><?php $attr = array('empty'=>'topurl') ?><?php $attr_empty='topurl' ?><?php // Wahr-Vergleich - if ( !empty($attr_true) ) - $exec = $$attr_true == true; +// Html::debug($attr); + + if ( isset($attr_true) ) + { + if (gettype($attr_true) === '' && gettype($attr_true) === '1') + $exec = $$attr_true == true; + else + $exec = $attr_true == true; + } // Falsch-Vergleich - elseif ( !empty($attr_false) ) - $exec = $$attr_false != true; - + elseif ( isset($attr_false) ) + { + if (gettype($attr_false) === '' && gettype($attr_false) === '1') + $exec = $$attr_false == false; + else + $exec = $attr_false == false; + } // Inhalt-Vergleich mit Wertliste - elseif( !empty($attr_contains) ) + elseif( isset($attr_contains) ) $exec = in_array($$attr_var,explode(',',$attr_contains)); // Inhalt-Vergleich - elseif( !empty($attr_var) ) + elseif( isset($attr_var) ) $exec = $$attr_var == $attr_value; // Vergleich auf leer - elseif ( !empty($attr_empty) ) + elseif ( isset($attr_empty) ) { if ( !isset($$attr_empty) ) - $exec = true; + $exec = empty($attr_empty); elseif ( is_array($$attr_empty) ) $exec = (count($$attr_empty)==0); elseif ( is_bool($$attr_empty) ) @@ -680,34 +1023,61 @@ if (!empty($attr_elementtype)) { $exec = empty( $$attr_empty ); } - // Vergleich auf nicht-leer - elseif ( !empty($attr_present) ) + // 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 = true; + $exec = $$attr_present; elseif ( is_numeric($$attr_present) ) $exec = $$attr_present>=0; else - $exec = !empty( $$attr_present ); + $exec = true; } + else { - die("error in IF"); + Html::debug( $attr ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; } // Ergebnis umdrehen if ( !empty($attr_invert) ) $exec = !$exec; + // Ergebnis umdrehen + if ( !empty($attr_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); + + $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('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 +?><?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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -719,52 +1089,80 @@ if (!empty($attr_elementtype)) { $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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() ?><?php +?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_raw) ?><?php $attr = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('width'=>'3%','style'=>'','class'=>'fx','colspan'=>'') ?><?php $attr_width='3%' ?><?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; + +?><?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; + $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; 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]; -?><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('var'=>'','value'=>'','invert'=>'','empty'=>'','present'=>'bottomurl','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='bottomurl' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php +?><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 // Wahr-Vergleich - if ( !empty($attr_true) ) - $exec = $$attr_true == true; +// Html::debug($attr); + + if ( isset($attr_true) ) + { + if (gettype($attr_true) === '' && gettype($attr_true) === '1') + $exec = $$attr_true == true; + else + $exec = $attr_true == true; + } // Falsch-Vergleich - elseif ( !empty($attr_false) ) - $exec = $$attr_false != true; - + elseif ( isset($attr_false) ) + { + if (gettype($attr_false) === '' && gettype($attr_false) === '1') + $exec = $$attr_false == false; + else + $exec = $attr_false == false; + } // Inhalt-Vergleich mit Wertliste - elseif( !empty($attr_contains) ) + elseif( isset($attr_contains) ) $exec = in_array($$attr_var,explode(',',$attr_contains)); // Inhalt-Vergleich - elseif( !empty($attr_var) ) + elseif( isset($attr_var) ) $exec = $$attr_var == $attr_value; // Vergleich auf leer - elseif ( !empty($attr_empty) ) + elseif ( isset($attr_empty) ) { if ( !isset($$attr_empty) ) - $exec = true; + $exec = empty($attr_empty); elseif ( is_array($$attr_empty) ) $exec = (count($$attr_empty)==0); elseif ( is_bool($$attr_empty) ) @@ -773,69 +1171,104 @@ if (!empty($attr_elementtype)) { $exec = empty( $$attr_empty ); } - // Vergleich auf nicht-leer - elseif ( !empty($attr_present) ) + // 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 = true; + $exec = $$attr_present; elseif ( is_numeric($$attr_present) ) $exec = $$attr_present>=0; else - $exec = !empty( $$attr_present ); + $exec = true; } + else { - die("error in IF"); + Html::debug( $attr ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; } // Ergebnis umdrehen if ( !empty($attr_invert) ) $exec = !$exec; + // Ergebnis umdrehen + if ( !empty($attr_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); + + $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('title'=>'GLOBAL_BOTTOM','target'=>'','url'=>'bottomurl','class'=>'','action'=>'','subaction'=>'','id'=>'','var1'=>'','value1'=>'') ?><?php $attr_title='GLOBAL_BOTTOM' ?><?php $attr_target='' ?><?php $attr_url='bottomurl' ?><?php $attr_class='' ?><?php $attr_action='' ?><?php $attr_subaction='' ?><?php $attr_id='' ?><?php $attr_var1='' ?><?php $attr_value1='' ?><?php +?><?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; + $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 hasLang($attr_title)?lang($attr_title):lang($$attr_title) ?>"><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_target) ?><?php unset($attr_url) ?><?php unset($attr_class) ?><?php unset($attr_action) ?><?php unset($attr_subaction) ?><?php unset($attr_id) ?><?php unset($attr_var1) ?><?php unset($attr_value1) ?><?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','url'=>'','align'=>'left','type'=>'','elementtype'=>'') ?><?php $attr_file='bild' ?><?php $attr_url='' ?><?php $attr_align='left' ?><?php $attr_type='' ?><?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() ?></a><?php unset($attr) ?><?php $attr = array() ?><?php - } -?><?php unset($attr) ?><?php $attr = array('var'=>'','value'=>'','invert'=>'','empty'=>'bottomurl','present'=>'','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='bottomurl' ?><?php $attr_present='' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php +?><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 + } + +?><?php unset($attr) ?><?php $attr = array('empty'=>'bottomurl') ?><?php $attr_empty='bottomurl' ?><?php // Wahr-Vergleich - if ( !empty($attr_true) ) - $exec = $$attr_true == true; +// Html::debug($attr); + + if ( isset($attr_true) ) + { + if (gettype($attr_true) === '' && gettype($attr_true) === '1') + $exec = $$attr_true == true; + else + $exec = $attr_true == true; + } // Falsch-Vergleich - elseif ( !empty($attr_false) ) - $exec = $$attr_false != true; - + elseif ( isset($attr_false) ) + { + if (gettype($attr_false) === '' && gettype($attr_false) === '1') + $exec = $$attr_false == false; + else + $exec = $attr_false == false; + } // Inhalt-Vergleich mit Wertliste - elseif( !empty($attr_contains) ) + elseif( isset($attr_contains) ) $exec = in_array($$attr_var,explode(',',$attr_contains)); // Inhalt-Vergleich - elseif( !empty($attr_var) ) + elseif( isset($attr_var) ) $exec = $$attr_var == $attr_value; // Vergleich auf leer - elseif ( !empty($attr_empty) ) + elseif ( isset($attr_empty) ) { if ( !isset($$attr_empty) ) - $exec = true; + $exec = empty($attr_empty); elseif ( is_array($$attr_empty) ) $exec = (count($$attr_empty)==0); elseif ( is_bool($$attr_empty) ) @@ -844,34 +1277,61 @@ if (!empty($attr_elementtype)) { $exec = empty( $$attr_empty ); } - // Vergleich auf nicht-leer - elseif ( !empty($attr_present) ) + // 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 = true; + $exec = $$attr_present; elseif ( is_numeric($$attr_present) ) $exec = $$attr_present>=0; else - $exec = !empty( $$attr_present ); + $exec = true; } + else { - die("error in IF"); + Html::debug( $attr ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; } // Ergebnis umdrehen if ( !empty($attr_invert) ) $exec = !$exec; + // Ergebnis umdrehen + if ( !empty($attr_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); + + $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('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 +?><?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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -883,52 +1343,80 @@ if (!empty($attr_elementtype)) { $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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() ?><?php +?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_raw) ?><?php $attr = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('width'=>'3%','style'=>'','class'=>'fx','colspan'=>'') ?><?php $attr_width='3%' ?><?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; + +?><?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; + $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; 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]; -?><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('var'=>'','value'=>'','invert'=>'','empty'=>'','present'=>'downurl','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='downurl' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php +?><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 // Wahr-Vergleich - if ( !empty($attr_true) ) - $exec = $$attr_true == true; +// Html::debug($attr); + + if ( isset($attr_true) ) + { + if (gettype($attr_true) === '' && gettype($attr_true) === '1') + $exec = $$attr_true == true; + else + $exec = $attr_true == true; + } // Falsch-Vergleich - elseif ( !empty($attr_false) ) - $exec = $$attr_false != true; - + elseif ( isset($attr_false) ) + { + if (gettype($attr_false) === '' && gettype($attr_false) === '1') + $exec = $$attr_false == false; + else + $exec = $attr_false == false; + } // Inhalt-Vergleich mit Wertliste - elseif( !empty($attr_contains) ) + elseif( isset($attr_contains) ) $exec = in_array($$attr_var,explode(',',$attr_contains)); // Inhalt-Vergleich - elseif( !empty($attr_var) ) + elseif( isset($attr_var) ) $exec = $$attr_var == $attr_value; // Vergleich auf leer - elseif ( !empty($attr_empty) ) + elseif ( isset($attr_empty) ) { if ( !isset($$attr_empty) ) - $exec = true; + $exec = empty($attr_empty); elseif ( is_array($$attr_empty) ) $exec = (count($$attr_empty)==0); elseif ( is_bool($$attr_empty) ) @@ -937,69 +1425,104 @@ if (!empty($attr_elementtype)) { $exec = empty( $$attr_empty ); } - // Vergleich auf nicht-leer - elseif ( !empty($attr_present) ) + // 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 = true; + $exec = $$attr_present; elseif ( is_numeric($$attr_present) ) $exec = $$attr_present>=0; else - $exec = !empty( $$attr_present ); + $exec = true; } + else { - die("error in IF"); + Html::debug( $attr ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; } // Ergebnis umdrehen if ( !empty($attr_invert) ) $exec = !$exec; + // Ergebnis umdrehen + if ( !empty($attr_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); + + $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('title'=>'GLOBAL_DOWN','target'=>'','url'=>'downurl','class'=>'','action'=>'','subaction'=>'','id'=>'','var1'=>'','value1'=>'') ?><?php $attr_title='GLOBAL_DOWN' ?><?php $attr_target='' ?><?php $attr_url='downurl' ?><?php $attr_class='' ?><?php $attr_action='' ?><?php $attr_subaction='' ?><?php $attr_id='' ?><?php $attr_var1='' ?><?php $attr_value1='' ?><?php +?><?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; + $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 hasLang($attr_title)?lang($attr_title):lang($$attr_title) ?>"><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_target) ?><?php unset($attr_url) ?><?php unset($attr_class) ?><?php unset($attr_action) ?><?php unset($attr_subaction) ?><?php unset($attr_id) ?><?php unset($attr_var1) ?><?php unset($attr_value1) ?><?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','url'=>'','align'=>'left','type'=>'','elementtype'=>'') ?><?php $attr_file='bild' ?><?php $attr_url='' ?><?php $attr_align='left' ?><?php $attr_type='' ?><?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() ?></a><?php unset($attr) ?><?php $attr = array() ?><?php - } -?><?php unset($attr) ?><?php $attr = array('var'=>'','value'=>'','invert'=>'','empty'=>'downurl','present'=>'','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='downurl' ?><?php $attr_present='' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php +?><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 + } + +?><?php unset($attr) ?><?php $attr = array('empty'=>'downurl') ?><?php $attr_empty='downurl' ?><?php // Wahr-Vergleich - if ( !empty($attr_true) ) - $exec = $$attr_true == true; +// Html::debug($attr); + + if ( isset($attr_true) ) + { + if (gettype($attr_true) === '' && gettype($attr_true) === '1') + $exec = $$attr_true == true; + else + $exec = $attr_true == true; + } // Falsch-Vergleich - elseif ( !empty($attr_false) ) - $exec = $$attr_false != true; - + elseif ( isset($attr_false) ) + { + if (gettype($attr_false) === '' && gettype($attr_false) === '1') + $exec = $$attr_false == false; + else + $exec = $attr_false == false; + } // Inhalt-Vergleich mit Wertliste - elseif( !empty($attr_contains) ) + elseif( isset($attr_contains) ) $exec = in_array($$attr_var,explode(',',$attr_contains)); // Inhalt-Vergleich - elseif( !empty($attr_var) ) + elseif( isset($attr_var) ) $exec = $$attr_var == $attr_value; // Vergleich auf leer - elseif ( !empty($attr_empty) ) + elseif ( isset($attr_empty) ) { if ( !isset($$attr_empty) ) - $exec = true; + $exec = empty($attr_empty); elseif ( is_array($$attr_empty) ) $exec = (count($$attr_empty)==0); elseif ( is_bool($$attr_empty) ) @@ -1008,34 +1531,61 @@ if (!empty($attr_elementtype)) { $exec = empty( $$attr_empty ); } - // Vergleich auf nicht-leer - elseif ( !empty($attr_present) ) + // 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 = true; + $exec = $$attr_present; elseif ( is_numeric($$attr_present) ) $exec = $$attr_present>=0; else - $exec = !empty( $$attr_present ); + $exec = true; } + else { - die("error in IF"); + Html::debug( $attr ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; } // Ergebnis umdrehen if ( !empty($attr_invert) ) $exec = !$exec; + // Ergebnis umdrehen + if ( !empty($attr_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); + + $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('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 +?><?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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -1047,19 +1597,31 @@ if (!empty($attr_elementtype)) { $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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() ?><?php +?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_raw) ?><?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 } ?><?php unset($attr) ?><?php $attr = array() ?> </table> </td> </tr> diff --git a/themes/default/pages/html/folder/prop.tpl.php b/themes/default/pages/html/folder/prop.tpl.php @@ -1,9 +1,10 @@ -<?php $attr = array('class'=>'') ?><?php $attr_class='' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<?php $attr = array('class'=>'main','title'=>'var') ?><?php $attr_class='main' ?><?php $attr_title='var' ?><?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 $attr_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" /> <link rel="stylesheet" type="text/css" href="./themes/default/css/default.css" /> @@ -12,10 +13,9 @@ <?php } ?> </head> -<body<?php echo !empty($$attr_class)?' class="'.$$attr_class.'"':' class="'.$attr_class.'"' ?>> +<body class="<?php echo $attr_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 +<?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)) @@ -33,19 +33,32 @@ <input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr_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'=>'global_prop','name'=>'objectName','icon'=>'folder','widths'=>'50%,50%','width'=>'90%') ?><?php $attr_title='global_prop' ?><?php $attr_name='objectName' ?><?php $attr_icon='folder' ?><?php $attr_widths='50%,50%' ?><?php $attr_width='90%' ?><?php +?><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_target) ?><?php unset($attr_method) ?><?php unset($attr_enctype) ?><?php $attr = array('title'=>'global_prop','name'=>'objectName','icon'=>'folder','widths'=>'50%,50%','width'=>'90%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr_title='global_prop' ?><?php $attr_name='objectName' ?><?php $attr_icon='folder' ?><?php $attr_widths='50%,50%' ?><?php $attr_width='90%' ?><?php $attr_rowclasses='odd,even' ?><?php $attr_columnclasses='1,2,3' ?><?php $coloumn_widths=array(); if (!empty($attr_widths)) { $column_widths = explode(',',$attr_widths); unset($attr['widths']); } + if (!empty($attr_rowclasses)) + { + $row_classes = explode(',',$attr_rowclasses); + $row_class_idx = 999; + unset($attr['rowclasses']); + } + if (!empty($attr_columnclasses)) + { + $column_classes = explode(',',$attr_columnclasses); + unset($attr['columnclasses']); + } global $image_dir; echo '<br/><br/><br/><center>'; echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_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 ( !is_array($path) ) + $path = array(); foreach( $path as $pathElement) { extract($pathElement); @@ -54,7 +67,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,28 +109,44 @@ <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($attr) ?><?php unset($attr_title) ?><?php unset($attr_name) ?><?php unset($attr_icon) ?><?php unset($attr_widths) ?><?php unset($attr_width) ?><?php unset($attr_rowclasses) ?><?php unset($attr_columnclasses) ?><?php $attr = 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; + 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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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 +?><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_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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -123,49 +158,81 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?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; + $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; 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]; -?><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'=>'name','prefix'=>'','value'=>'','size'=>'50','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_index='' ?><?php $attr_name='name' ?><?php $attr_prefix='' ?><?php $attr_value='' ?><?php $attr_size='50' ?><?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 - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - +?><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'=>'','default'=>'','type'=>'text','name'=>'name','size'=>'50','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_name='name' ?><?php $attr_size='50' ?><?php $attr_maxlength='256' ?><?php $attr_onchange='' ?><input id="id<?php echo $attr_name ?>" name="<?php echo $attr_name ?>" type="<?php echo $attr_type ?>" 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 ?>" onxxxMouseOver="this.focus();" /><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><?php unset($attr_type) ?><?php unset($attr_name) ?><?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 + $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; + 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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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_filename','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='global_filename' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?><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_filename') ?><?php $attr_class='text' ?><?php $attr_text='global_filename' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -177,49 +244,81 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?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; + $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; 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]; -?><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 - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - +?><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'=>'','default'=>'','type'=>'text','name'=>'filename','size'=>'40','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_name='filename' ?><?php $attr_size='40' ?><?php $attr_maxlength='256' ?><?php $attr_onchange='' ?><input id="id<?php echo $attr_name ?>" name="<?php echo $attr_name ?>" type="<?php echo $attr_type ?>" 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 ?>" onxxxMouseOver="this.focus();" /><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><?php unset($attr_type) ?><?php unset($attr_name) ?><?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 + $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; + 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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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_description','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='global_description' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?><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_description') ?><?php $attr_class='text' ?><?php $attr_text='global_description' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -231,55 +330,81 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?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; + $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; 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]; -?><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('name'=>'description','rows'=>'10','cols'=>'40','value'=>'','index'=>'','onchange'=>'','prefix'=>'','class'=>'','default'=>'') ?><?php $attr_name='description' ?><?php $attr_rows='10' ?><?php $attr_cols='40' ?><?php $attr_value='' ?><?php $attr_index='' ?><?php $attr_onchange='' ?><?php $attr_prefix='' ?><?php $attr_class='' ?><?php $attr_default='' ?><textarea name="<?php echo $attr_name ?>" rows="<?php echo $attr_rows ?>" cols="<?php echo $attr_cols ?>"><?php echo htmlentities(isset($$attr_name)?$$attr_name:$attr_default) ?></textarea><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_rows) ?><?php unset($attr_cols) ?><?php unset($attr_value) ?><?php unset($attr_index) ?><?php unset($attr_onchange) ?><?php unset($attr_prefix) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><?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( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('name'=>'description','rows'=>'10','cols'=>'40','class'=>'') ?><?php $attr_name='description' ?><?php $attr_rows='10' ?><?php $attr_cols='40' ?><?php $attr_class='' ?><textarea class="<?php echo $attr_class ?>" name="<?php echo $attr_name ?>" rows="<?php echo $attr_rows ?>" cols="<?php echo $attr_cols ?>"><?php echo htmlentities(isset($$attr_name)?$$attr_name:$attr_default) ?></textarea><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_rows) ?><?php unset($attr_cols) ?><?php unset($attr_class) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = 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; + 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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array('colspan'=>'2') ?><?php $attr_colspan='2' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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 +?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?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') { $attr_type = 'submit'; - $attr_class = 'ok'; - $attr_text = 'BUTTON_OK'; - $attr_value = 'ok'; +// $attr_class = 'ok'; +// $attr_text = 'BUTTON_OK'; +// $attr_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 $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> </td> </tr> </table> @@ -293,10 +418,15 @@ <?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'=>'name') ?><?php $attr_field='name' ?><script name="JavaScript" type="text/javascript"><!-- +<?php unset($attr) ?><?php $attr = array() ?></form> + +<?php unset($attr) ?><?php $attr = array('field'=>'name') ?><?php $attr_field='name' ?> +<script name="JavaScript" type="text/javascript"> +<!-- document.forms[0].<?php echo $attr_field ?>.focus(); document.forms[0].<?php echo $attr_field ?>.select(); -//--></script> +// --> +</script> <?php unset($attr) ?><?php unset($attr_field) ?><?php $attr = array() ?> <!-- $Id$ --> diff --git a/themes/default/pages/html/folder/pub.tpl.php b/themes/default/pages/html/folder/pub.tpl.php @@ -1,9 +1,10 @@ -<?php $attr = array('class'=>'') ?><?php $attr_class='' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<?php $attr = array('class'=>'main','title'=>'var') ?><?php $attr_class='main' ?><?php $attr_title='var' ?><?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 $attr_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" /> <link rel="stylesheet" type="text/css" href="./themes/default/css/default.css" /> @@ -12,10 +13,9 @@ <?php } ?> </head> -<body<?php echo !empty($$attr_class)?' class="'.$$attr_class.'"':' class="'.$attr_class.'"' ?>> +<body class="<?php echo $attr_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 +<?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)) @@ -33,19 +33,32 @@ <input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr_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($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 $coloumn_widths=array(); if (!empty($attr_widths)) { $column_widths = explode(',',$attr_widths); unset($attr['widths']); } + if (!empty($attr_rowclasses)) + { + $row_classes = explode(',',$attr_rowclasses); + $row_class_idx = 999; + unset($attr['rowclasses']); + } + if (!empty($attr_columnclasses)) + { + $column_classes = explode(',',$attr_columnclasses); + unset($attr['columnclasses']); + } global $image_dir; echo '<br/><br/><br/><center>'; echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_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 ( !is_array($path) ) + $path = array(); foreach( $path as $pathElement) { extract($pathElement); @@ -54,7 +67,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,48 +109,69 @@ <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($attr) ?><?php unset($attr_width) ?><?php unset($attr_rowclasses) ?><?php unset($attr_columnclasses) ?><?php $attr = 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; + 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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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('var'=>'','value'=>'','invert'=>'','empty'=>'','present'=>'pages','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='pages' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php +?><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 // Wahr-Vergleich - if ( !empty($attr_true) ) - $exec = $$attr_true == true; +// Html::debug($attr); + + if ( isset($attr_true) ) + { + if (gettype($attr_true) === '' && gettype($attr_true) === '1') + $exec = $$attr_true == true; + else + $exec = $attr_true == true; + } // Falsch-Vergleich - elseif ( !empty($attr_false) ) - $exec = $$attr_false != true; - + elseif ( isset($attr_false) ) + { + if (gettype($attr_false) === '' && gettype($attr_false) === '1') + $exec = $$attr_false == false; + else + $exec = $attr_false == false; + } // Inhalt-Vergleich mit Wertliste - elseif( !empty($attr_contains) ) + elseif( isset($attr_contains) ) $exec = in_array($$attr_var,explode(',',$attr_contains)); // Inhalt-Vergleich - elseif( !empty($attr_var) ) + elseif( isset($attr_var) ) $exec = $$attr_var == $attr_value; // Vergleich auf leer - elseif ( !empty($attr_empty) ) + elseif ( isset($attr_empty) ) { if ( !isset($$attr_empty) ) - $exec = true; + $exec = empty($attr_empty); elseif ( is_array($$attr_empty) ) $exec = (count($$attr_empty)==0); elseif ( is_bool($$attr_empty) ) @@ -140,54 +180,86 @@ $exec = empty( $$attr_empty ); } - // Vergleich auf nicht-leer - elseif ( !empty($attr_present) ) + // 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 = true; + $exec = $$attr_present; elseif ( is_numeric($$attr_present) ) $exec = $$attr_present>=0; else - $exec = !empty( $$attr_present ); + $exec = true; } + else { - die("error in IF"); + Html::debug( $attr ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; } // Ergebnis umdrehen if ( !empty($attr_invert) ) $exec = !$exec; + // Ergebnis umdrehen + if ( !empty($attr_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); + + $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('var'=>'','value'=>'','invert'=>'','empty'=>'','present'=>'subdirs','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='subdirs' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php +?><?php unset($attr) ?><?php unset($attr_present) ?><?php $attr = array('present'=>'subdirs') ?><?php $attr_present='subdirs' ?><?php // Wahr-Vergleich - if ( !empty($attr_true) ) - $exec = $$attr_true == true; +// Html::debug($attr); + + if ( isset($attr_true) ) + { + if (gettype($attr_true) === '' && gettype($attr_true) === '1') + $exec = $$attr_true == true; + else + $exec = $attr_true == true; + } // Falsch-Vergleich - elseif ( !empty($attr_false) ) - $exec = $$attr_false != true; - + elseif ( isset($attr_false) ) + { + if (gettype($attr_false) === '' && gettype($attr_false) === '1') + $exec = $$attr_false == false; + else + $exec = $attr_false == false; + } // Inhalt-Vergleich mit Wertliste - elseif( !empty($attr_contains) ) + elseif( isset($attr_contains) ) $exec = in_array($$attr_var,explode(',',$attr_contains)); // Inhalt-Vergleich - elseif( !empty($attr_var) ) + elseif( isset($attr_var) ) $exec = $$attr_var == $attr_value; // Vergleich auf leer - elseif ( !empty($attr_empty) ) + elseif ( isset($attr_empty) ) { if ( !isset($$attr_empty) ) - $exec = true; + $exec = empty($attr_empty); elseif ( is_array($$attr_empty) ) $exec = (count($$attr_empty)==0); elseif ( is_bool($$attr_empty) ) @@ -196,34 +268,69 @@ $exec = empty( $$attr_empty ); } - // Vergleich auf nicht-leer - elseif ( !empty($attr_present) ) + // 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 = true; + $exec = $$attr_present; elseif ( is_numeric($$attr_present) ) $exec = $$attr_present>=0; else - $exec = !empty( $$attr_present ); + $exec = true; } + else { - die("error in IF"); + Html::debug( $attr ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; } // Ergebnis umdrehen if ( !empty($attr_invert) ) $exec = !$exec; + // Ergebnis umdrehen + if ( !empty($attr_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); + + $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('default'=>'false','var'=>'','readonly'=>'false','name'=>'pages','prefix'=>'') ?><?php $attr_default='false' ?><?php $attr_var='' ?><?php $attr_readonly='false' ?><?php $attr_name='pages' ?><?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('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 +?><?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 ); + + if ( isset($$attr_name) ) + $checked = $$attr_name == true; +// $checked = isset($$$attr_name)&& $$$attr_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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -235,20 +342,37 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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'=>'global_pages','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='global_pages' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?></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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -260,44 +384,68 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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() ?><br/><?php unset($attr) ?><?php $attr = array() ?><?php +?></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() ?><?php } -?><?php unset($attr) ?><?php $attr = array('var'=>'','value'=>'','invert'=>'','empty'=>'','present'=>'files','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='files' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php + +?><?php unset($attr) ?><?php $attr = array('present'=>'files') ?><?php $attr_present='files' ?><?php // Wahr-Vergleich - if ( !empty($attr_true) ) - $exec = $$attr_true == true; +// Html::debug($attr); + + if ( isset($attr_true) ) + { + if (gettype($attr_true) === '' && gettype($attr_true) === '1') + $exec = $$attr_true == true; + else + $exec = $attr_true == true; + } // Falsch-Vergleich - elseif ( !empty($attr_false) ) - $exec = $$attr_false != true; - + elseif ( isset($attr_false) ) + { + if (gettype($attr_false) === '' && gettype($attr_false) === '1') + $exec = $$attr_false == false; + else + $exec = $attr_false == false; + } // Inhalt-Vergleich mit Wertliste - elseif( !empty($attr_contains) ) + elseif( isset($attr_contains) ) $exec = in_array($$attr_var,explode(',',$attr_contains)); // Inhalt-Vergleich - elseif( !empty($attr_var) ) + elseif( isset($attr_var) ) $exec = $$attr_var == $attr_value; // Vergleich auf leer - elseif ( !empty($attr_empty) ) + elseif ( isset($attr_empty) ) { if ( !isset($$attr_empty) ) - $exec = true; + $exec = empty($attr_empty); elseif ( is_array($$attr_empty) ) $exec = (count($$attr_empty)==0); elseif ( is_bool($$attr_empty) ) @@ -306,54 +454,86 @@ $exec = empty( $$attr_empty ); } - // Vergleich auf nicht-leer - elseif ( !empty($attr_present) ) + // 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 = true; + $exec = $$attr_present; elseif ( is_numeric($$attr_present) ) $exec = $$attr_present>=0; else - $exec = !empty( $$attr_present ); + $exec = true; } + else { - die("error in IF"); + Html::debug( $attr ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; } // Ergebnis umdrehen if ( !empty($attr_invert) ) $exec = !$exec; + // Ergebnis umdrehen + if ( !empty($attr_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); + + $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('var'=>'','value'=>'','invert'=>'','empty'=>'','present'=>'','contains'=>'','true'=>'subdirs','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='' ?><?php $attr_contains='' ?><?php $attr_true='subdirs' ?><?php $attr_false='' ?><?php +?><?php unset($attr) ?><?php unset($attr_present) ?><?php $attr = array('true'=>'subdirs') ?><?php $attr_true='subdirs' ?><?php // Wahr-Vergleich - if ( !empty($attr_true) ) - $exec = $$attr_true == true; +// Html::debug($attr); + + if ( isset($attr_true) ) + { + if (gettype($attr_true) === '' && gettype($attr_true) === '1') + $exec = $$attr_true == true; + else + $exec = $attr_true == true; + } // Falsch-Vergleich - elseif ( !empty($attr_false) ) - $exec = $$attr_false != true; - + elseif ( isset($attr_false) ) + { + if (gettype($attr_false) === '' && gettype($attr_false) === '1') + $exec = $$attr_false == false; + else + $exec = $attr_false == false; + } // Inhalt-Vergleich mit Wertliste - elseif( !empty($attr_contains) ) + elseif( isset($attr_contains) ) $exec = in_array($$attr_var,explode(',',$attr_contains)); // Inhalt-Vergleich - elseif( !empty($attr_var) ) + elseif( isset($attr_var) ) $exec = $$attr_var == $attr_value; // Vergleich auf leer - elseif ( !empty($attr_empty) ) + elseif ( isset($attr_empty) ) { if ( !isset($$attr_empty) ) - $exec = true; + $exec = empty($attr_empty); elseif ( is_array($$attr_empty) ) $exec = (count($$attr_empty)==0); elseif ( is_bool($$attr_empty) ) @@ -362,34 +542,69 @@ $exec = empty( $$attr_empty ); } - // Vergleich auf nicht-leer - elseif ( !empty($attr_present) ) + // 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 = true; + $exec = $$attr_present; elseif ( is_numeric($$attr_present) ) $exec = $$attr_present>=0; else - $exec = !empty( $$attr_present ); + $exec = true; } + else { - die("error in IF"); + Html::debug( $attr ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; } // Ergebnis umdrehen if ( !empty($attr_invert) ) $exec = !$exec; + // Ergebnis umdrehen + if ( !empty($attr_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); + + $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('default'=>'false','var'=>'','readonly'=>'false','name'=>'files','prefix'=>'') ?><?php $attr_default='false' ?><?php $attr_var='' ?><?php $attr_readonly='false' ?><?php $attr_name='files' ?><?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('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 +?><?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 ); + + if ( isset($$attr_name) ) + $checked = $$attr_name == true; +// $checked = isset($$$attr_name)&& $$$attr_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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -401,20 +616,37 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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'=>'global_files','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='global_files' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?></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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -426,63 +658,97 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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() ?><br/><?php unset($attr) ?><?php $attr = array() ?><?php +?></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() ?><?php } -?><?php unset($attr) ?><?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'; +?><?php unset($attr) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = 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; + 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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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('var'=>'','value'=>'','invert'=>'','empty'=>'','present'=>'subdirs','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='subdirs' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php +?><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 // Wahr-Vergleich - if ( !empty($attr_true) ) - $exec = $$attr_true == true; +// Html::debug($attr); + + if ( isset($attr_true) ) + { + if (gettype($attr_true) === '' && gettype($attr_true) === '1') + $exec = $$attr_true == true; + else + $exec = $attr_true == true; + } // Falsch-Vergleich - elseif ( !empty($attr_false) ) - $exec = $$attr_false != true; - + elseif ( isset($attr_false) ) + { + if (gettype($attr_false) === '' && gettype($attr_false) === '1') + $exec = $$attr_false == false; + else + $exec = $attr_false == false; + } // Inhalt-Vergleich mit Wertliste - elseif( !empty($attr_contains) ) + elseif( isset($attr_contains) ) $exec = in_array($$attr_var,explode(',',$attr_contains)); // Inhalt-Vergleich - elseif( !empty($attr_var) ) + elseif( isset($attr_var) ) $exec = $$attr_var == $attr_value; // Vergleich auf leer - elseif ( !empty($attr_empty) ) + elseif ( isset($attr_empty) ) { if ( !isset($$attr_empty) ) - $exec = true; + $exec = empty($attr_empty); elseif ( is_array($$attr_empty) ) $exec = (count($$attr_empty)==0); elseif ( is_bool($$attr_empty) ) @@ -491,34 +757,69 @@ $exec = empty( $$attr_empty ); } - // Vergleich auf nicht-leer - elseif ( !empty($attr_present) ) + // 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 = true; + $exec = $$attr_present; elseif ( is_numeric($$attr_present) ) $exec = $$attr_present>=0; else - $exec = !empty( $$attr_present ); + $exec = true; } + else { - die("error in IF"); + Html::debug( $attr ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; } // Ergebnis umdrehen if ( !empty($attr_invert) ) $exec = !$exec; + // Ergebnis umdrehen + if ( !empty($attr_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); + + $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('default'=>'false','var'=>'','readonly'=>'false','name'=>'subdirs','prefix'=>'') ?><?php $attr_default='false' ?><?php $attr_var='' ?><?php $attr_readonly='false' ?><?php $attr_name='subdirs' ?><?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('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 +?><?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 ); + + if ( isset($$attr_name) ) + $checked = $$attr_name == true; +// $checked = isset($$$attr_name)&& $$$attr_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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -530,20 +831,37 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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'=>'GLOBAL_PUBLISH_WITH_SUBDIRS','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_PUBLISH_WITH_SUBDIRS' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?></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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -555,42 +873,65 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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() ?><br/><?php unset($attr) ?><?php $attr = array() ?><?php +?></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('var'=>'','value'=>'','invert'=>'','empty'=>'','present'=>'clean','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='clean' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php + +?><?php unset($attr) ?><?php $attr = array('present'=>'clean') ?><?php $attr_present='clean' ?><?php // Wahr-Vergleich - if ( !empty($attr_true) ) - $exec = $$attr_true == true; +// Html::debug($attr); + + if ( isset($attr_true) ) + { + if (gettype($attr_true) === '' && gettype($attr_true) === '1') + $exec = $$attr_true == true; + else + $exec = $attr_true == true; + } // Falsch-Vergleich - elseif ( !empty($attr_false) ) - $exec = $$attr_false != true; - + elseif ( isset($attr_false) ) + { + if (gettype($attr_false) === '' && gettype($attr_false) === '1') + $exec = $$attr_false == false; + else + $exec = $attr_false == false; + } // Inhalt-Vergleich mit Wertliste - elseif( !empty($attr_contains) ) + elseif( isset($attr_contains) ) $exec = in_array($$attr_var,explode(',',$attr_contains)); // Inhalt-Vergleich - elseif( !empty($attr_var) ) + elseif( isset($attr_var) ) $exec = $$attr_var == $attr_value; // Vergleich auf leer - elseif ( !empty($attr_empty) ) + elseif ( isset($attr_empty) ) { if ( !isset($$attr_empty) ) - $exec = true; + $exec = empty($attr_empty); elseif ( is_array($$attr_empty) ) $exec = (count($$attr_empty)==0); elseif ( is_bool($$attr_empty) ) @@ -599,34 +940,69 @@ $exec = empty( $$attr_empty ); } - // Vergleich auf nicht-leer - elseif ( !empty($attr_present) ) + // 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 = true; + $exec = $$attr_present; elseif ( is_numeric($$attr_present) ) $exec = $$attr_present>=0; else - $exec = !empty( $$attr_present ); + $exec = true; } + else { - die("error in IF"); + Html::debug( $attr ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; } // Ergebnis umdrehen if ( !empty($attr_invert) ) $exec = !$exec; + // Ergebnis umdrehen + if ( !empty($attr_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); + + $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('default'=>'false','var'=>'','readonly'=>'false','name'=>'clean','prefix'=>'') ?><?php $attr_default='false' ?><?php $attr_var='' ?><?php $attr_readonly='false' ?><?php $attr_name='clean' ?><?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('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 +?><?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 ); + + if ( isset($$attr_name) ) + $checked = $$attr_name == true; +// $checked = isset($$$attr_name)&& $$$attr_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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -638,20 +1014,37 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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'=>'global_CLEAN_AFTER_PUBLISH','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='global_CLEAN_AFTER_PUBLISH' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?></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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -663,41 +1056,69 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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() ?><br/><?php unset($attr) ?><?php $attr = array() ?><?php +?></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 - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; +?><?php unset($attr) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = 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; + 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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'help') ?><?php $attr_class='help' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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_MUCH_TIME','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_MUCH_TIME' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?><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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -709,45 +1130,66 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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($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 + $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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'act','colspan'=>'') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='act' ?><?php $attr_colspan='' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><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; + $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; 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]; -?><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 +?><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') { $attr_type = 'submit'; - $attr_class = 'ok'; - $attr_text = 'BUTTON_OK'; - $attr_value = 'ok'; +// $attr_class = 'ok'; +// $attr_text = 'BUTTON_OK'; +// $attr_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 $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> </td> </tr> </table> @@ -761,7 +1203,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($attr) ?><?php $attr = array() ?> +<?php unset($attr) ?><?php $attr = array() ?></form> + +<?php unset($attr) ?><?php $attr = array() ?> <!-- $Id$ --> <?php if ($showDuration) { ?> diff --git a/themes/default/pages/html/folder/select.tpl.php b/themes/default/pages/html/folder/select.tpl.php @@ -1,9 +1,10 @@ -<?php $attr = array('class'=>'main') ?><?php $attr_class='main' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<?php $attr = array('class'=>'main','title'=>'var') ?><?php $attr_class='main' ?><?php $attr_title='var' ?><?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 $attr_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" /> <link rel="stylesheet" type="text/css" href="./themes/default/css/default.css" /> @@ -14,8 +15,7 @@ <body class="<?php echo $attr_class ?>"> - -<?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('action'=>'folder','subaction'=>'edit','id'=>'','name'=>'','target'=>'_self','method'=>'post','enctype'=>'application/x-www-form-urlencoded') ?><?php $attr_action='folder' ?><?php $attr_subaction='edit' ?><?php $attr_id='' ?><?php $attr_name='' ?><?php $attr_target='_self' ?><?php $attr_method='post' ?><?php $attr_enctype='application/x-www-form-urlencoded' ?><?php +<?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)) @@ -33,19 +33,32 @@ <input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr_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'=>'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($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 $coloumn_widths=array(); if (!empty($attr_widths)) { $column_widths = explode(',',$attr_widths); unset($attr['widths']); } + if (!empty($attr_rowclasses)) + { + $row_classes = explode(',',$attr_rowclasses); + $row_class_idx = 999; + unset($attr['rowclasses']); + } + if (!empty($attr_columnclasses)) + { + $column_classes = explode(',',$attr_columnclasses); + unset($attr['columnclasses']); + } global $image_dir; echo '<br/><br/><br/><center>'; echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_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 ( !is_array($path) ) + $path = array(); foreach( $path as $pathElement) { extract($pathElement); @@ -54,7 +67,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,28 +109,44 @@ <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($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 + $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; + 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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'help') ?><?php $attr_class='help' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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 +?><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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -123,30 +158,52 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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($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; + $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; 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]; -?><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_TYPE','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_TYPE' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?><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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -158,20 +215,37 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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 +?></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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -183,20 +257,37 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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'=>'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 +?></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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -208,21 +299,32 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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'=>'object','extract'=>'true','key'=>'list_key','value'=>'list_value') ?><?php $attr_list='object' ?><?php $attr_extract='true' ?><?php $attr_key='list_key' ?><?php $attr_value='list_value' ?><?php +?></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'); + $list_extract = ($attr_extract==true); foreach( $$attr_list as $$list_tmp_key => $$list_tmp_value ) @@ -237,47 +339,68 @@ extract($$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'; - + $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; + 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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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('var'=>'','value'=>'','invert'=>'','empty'=>'','present'=>'','contains'=>'','true'=>'writable','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='' ?><?php $attr_contains='' ?><?php $attr_true='writable' ?><?php $attr_false='' ?><?php +?><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 // Wahr-Vergleich - if ( !empty($attr_true) ) - $exec = $$attr_true == true; +// Html::debug($attr); + + if ( isset($attr_true) ) + { + if (gettype($attr_true) === '' && gettype($attr_true) === '1') + $exec = $$attr_true == true; + else + $exec = $attr_true == true; + } // Falsch-Vergleich - elseif ( !empty($attr_false) ) - $exec = $$attr_false != true; - + elseif ( isset($attr_false) ) + { + if (gettype($attr_false) === '' && gettype($attr_false) === '1') + $exec = $$attr_false == false; + else + $exec = $attr_false == false; + } // Inhalt-Vergleich mit Wertliste - elseif( !empty($attr_contains) ) + elseif( isset($attr_contains) ) $exec = in_array($$attr_var,explode(',',$attr_contains)); // Inhalt-Vergleich - elseif( !empty($attr_var) ) + elseif( isset($attr_var) ) $exec = $$attr_var == $attr_value; // Vergleich auf leer - elseif ( !empty($attr_empty) ) + elseif ( isset($attr_empty) ) { if ( !isset($$attr_empty) ) - $exec = true; + $exec = empty($attr_empty); elseif ( is_array($$attr_empty) ) $exec = (count($$attr_empty)==0); elseif ( is_bool($$attr_empty) ) @@ -287,79 +410,96 @@ } // Vergleich auf Vorhandensein - elseif ( !empty($attr_present) ) + 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 = true; + $exec = $$attr_present; elseif ( is_numeric($$attr_present) ) $exec = $$attr_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( $attr ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; } // Ergebnis umdrehen if ( !empty($attr_invert) ) $exec = !$exec; + // Ergebnis umdrehen + if ( !empty($attr_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); + + $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('default'=>'false','readonly'=>'false','name'=>'id') ?><?php $attr_default='false' ?><?php $attr_readonly='false' ?><?php $attr_name='id' ?><?php - $attr_name = !empty($$attr_name)?$$attr_name:$attr_name; - $attr_readonly = ( $attr_readonly == 'true' ); - $attr_default = ( $attr_default == 'true' ); +?><?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 ); if ( isset($$attr_name) ) - $checked = isset($$$attr_name)&& $$$attr_name==true; + $checked = $$attr_name == true; +// $checked = isset($$$attr_name)&& $$$attr_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() ?><?php + $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 } -?><?php unset($attr) ?><?php $attr = array('var'=>'','value'=>'','invert'=>'','empty'=>'','present'=>'','contains'=>'','true'=>'','false'=>'writable') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='writable' ?><?php + +?><?php unset($attr) ?><?php $attr = array('false'=>'writable') ?><?php $attr_false='writable' ?><?php // Wahr-Vergleich - if ( !empty($attr_true) ) - $exec = $$attr_true == true; +// Html::debug($attr); + + if ( isset($attr_true) ) + { + if (gettype($attr_true) === '' && gettype($attr_true) === '1') + $exec = $$attr_true == true; + else + $exec = $attr_true == true; + } // Falsch-Vergleich - elseif ( !empty($attr_false) ) - $exec = $$attr_false != true; - + elseif ( isset($attr_false) ) + { + if (gettype($attr_false) === '' && gettype($attr_false) === '1') + $exec = $$attr_false == false; + else + $exec = $attr_false == false; + } // Inhalt-Vergleich mit Wertliste - elseif( !empty($attr_contains) ) + elseif( isset($attr_contains) ) $exec = in_array($$attr_var,explode(',',$attr_contains)); // Inhalt-Vergleich - elseif( !empty($attr_var) ) + elseif( isset($attr_var) ) $exec = $$attr_var == $attr_value; // Vergleich auf leer - elseif ( !empty($attr_empty) ) + elseif ( isset($attr_empty) ) { if ( !isset($$attr_empty) ) - $exec = true; + $exec = empty($attr_empty); elseif ( is_array($$attr_empty) ) $exec = (count($$attr_empty)==0); elseif ( is_bool($$attr_empty) ) @@ -369,48 +509,60 @@ } // Vergleich auf Vorhandensein - elseif ( !empty($attr_present) ) + 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 = true; + $exec = $$attr_present; elseif ( is_numeric($$attr_present) ) $exec = $$attr_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( $attr ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; } // Ergebnis umdrehen if ( !empty($attr_invert) ) $exec = !$exec; + // Ergebnis umdrehen + if ( !empty($attr_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); + + $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('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 +?><?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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -422,45 +574,70 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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() ?><?php +?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_raw) ?><?php $attr = array() ?><?php } -?><?php unset($attr) ?><?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; + +?><?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; + $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; 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]; -?><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'=>'desc','target'=>'cms_main','url'=>'url','class'=>'','action'=>'','subaction'=>'','id'=>'','var1'=>'','value1'=>'') ?><?php $attr_title='desc' ?><?php $attr_target='cms_main' ?><?php $attr_url='url' ?><?php $attr_class='' ?><?php $attr_action='' ?><?php $attr_subaction='' ?><?php $attr_id='' ?><?php $attr_var1='' ?><?php $attr_value1='' ?><?php +?><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; + $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 hasLang($attr_title)?lang($attr_title):lang($$attr_title) ?>"><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_target) ?><?php unset($attr_url) ?><?php unset($attr_class) ?><?php unset($attr_action) ?><?php unset($attr_subaction) ?><?php unset($attr_id) ?><?php unset($attr_var1) ?><?php unset($attr_value1) ?><?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 +?><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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -472,20 +649,37 @@ if (!empty($attr_elementtype)) { $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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 +?></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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -497,61 +691,92 @@ if (!empty($attr_elementtype)) { $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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() ?></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 - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - +?></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 + $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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'fx','colspan'=>'2') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?php $attr_colspan='2' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><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; + $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; 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]; -?><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) ?><img src="<?php echo $image_dir ?>tree_none_end.gif" align="left" />&nbsp; +?><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 - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - + $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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'fx','colspan'=>'2') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?php $attr_colspan='2' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><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; + $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; 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]; -?><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'=>'actionlist','extract'=>'true','key'=>'list_key','value'=>'list_value') ?><?php $attr_list='actionlist' ?><?php $attr_extract='true' ?><?php $attr_key='list_key' ?><?php $attr_value='list_value' ?><?php +?><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'); + $list_extract = ($attr_extract==true); foreach( $$attr_list as $$list_tmp_key => $$list_tmp_value ) @@ -565,10 +790,16 @@ if (!empty($attr_elementtype)) { } extract($$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('readonly'=>'','name'=>'type','value'=>'type','default'=>'','prefix'=>'','suffix'=>'') ?><?php $attr_readonly='' ?><?php $attr_name='type' ?><?php $attr_value='type' ?><?php $attr_default='' ?><?php $attr_prefix='' ?><?php $attr_suffix='' ?><?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_default ) echo 'checked="checked"' ?> /><?php unset($attr) ?><?php unset($attr_readonly) ?><?php unset($attr_name) ?><?php unset($attr_value) ?><?php unset($attr_default) ?><?php unset($attr_prefix) ?><?php unset($attr_suffix) ?><?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 +?><?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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -580,20 +811,37 @@ if (!empty($attr_elementtype)) { $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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'=>'type','text'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='type' ?><?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 +?></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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -605,67 +853,99 @@ if (!empty($attr_elementtype)) { $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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() ?><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 - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - +?></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 + $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; + 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 $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; + $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; 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]; -?><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 +?><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') { $attr_type = 'submit'; - $attr_class = 'ok'; - $attr_text = 'BUTTON_OK'; - $attr_value = 'ok'; +// $attr_class = 'ok'; +// $attr_text = 'BUTTON_OK'; +// $attr_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('var'=>'','value'=>'','invert'=>'','empty'=>'object','present'=>'','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='object' ?><?php $attr_present='' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php +?><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 // Wahr-Vergleich - if ( !empty($attr_true) ) - $exec = $$attr_true == true; +// Html::debug($attr); + + if ( isset($attr_true) ) + { + if (gettype($attr_true) === '' && gettype($attr_true) === '1') + $exec = $$attr_true == true; + else + $exec = $attr_true == true; + } // Falsch-Vergleich - elseif ( !empty($attr_false) ) - $exec = $$attr_false != true; - + elseif ( isset($attr_false) ) + { + if (gettype($attr_false) === '' && gettype($attr_false) === '1') + $exec = $$attr_false == false; + else + $exec = $attr_false == false; + } // Inhalt-Vergleich mit Wertliste - elseif( !empty($attr_contains) ) + elseif( isset($attr_contains) ) $exec = in_array($$attr_var,explode(',',$attr_contains)); // Inhalt-Vergleich - elseif( !empty($attr_var) ) + elseif( isset($attr_var) ) $exec = $$attr_var == $attr_value; // Vergleich auf leer - elseif ( !empty($attr_empty) ) + elseif ( isset($attr_empty) ) { if ( !isset($$attr_empty) ) - $exec = true; + $exec = empty($attr_empty); elseif ( is_array($$attr_empty) ) $exec = (count($$attr_empty)==0); elseif ( is_bool($$attr_empty) ) @@ -675,67 +955,89 @@ if (!empty($attr_elementtype)) { } // Vergleich auf Vorhandensein - elseif ( !empty($attr_present) ) + 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 = true; + $exec = $$attr_present; elseif ( is_numeric($$attr_present) ) $exec = $$attr_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( $attr ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; } // Ergebnis umdrehen if ( !empty($attr_invert) ) $exec = !$exec; + // Ergebnis umdrehen + if ( !empty($attr_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); + + $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($attr) ?><?php unset($attr_empty) ?><?php $attr = 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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'fx','colspan'=>'2') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?php $attr_colspan='2' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><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; + $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; 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]; -?><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_NOT_FOUND','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_NOT_FOUND' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?><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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -747,19 +1049,31 @@ if (!empty($attr_elementtype)) { $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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 +?></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 } + ?><?php unset($attr) ?><?php $attr = array() ?> </table> </td> </tr> @@ -774,7 +1088,9 @@ if (!empty($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($attr) ?><?php $attr = array() ?><?php unset($attr) ?><script name="JavaScript"> +<?php unset($attr) ?><?php $attr = array() ?></form> + +<?php unset($attr) ?><?php $attr = array() ?><?php unset($attr) ?><script name="JavaScript"> <!-- function mark() { @@ -796,6 +1112,7 @@ document.forms[0].obj<?php echo $id ?>.checked=true; else document.forms[0].obj<?php echo $id ?>.checked=false; <?php } ?> } +//--> </script> <?php $attr = array() ?> <!-- $Id$ --> diff --git a/themes/default/pages/html/folder/show.tpl.php b/themes/default/pages/html/folder/show.tpl.php @@ -1,33 +1,53 @@ -<?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('title'=>'','name'=>'','icon'=>'','widths'=>'75%,25%','width'=>'85%') ?><?php $attr_title='' ?><?php $attr_name='' ?><?php $attr_icon='' ?><?php $attr_widths='75%,25%' ?><?php $attr_width='85%' ?><?php +<?php unset($attr1) ?><?php unset($attr1_class) ?><?php unset($attr1_title) ?><?php $attr2 = array('widths'=>'75%,25%','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr2_widths='75%,25%' ?><?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(',',$attr2_widths); + unset($attr2['widths']); + } + if (!empty($attr2_rowclasses)) + { + $row_classes = explode(',',$attr2_rowclasses); + $row_class_idx = 999; + unset($attr2['rowclasses']); + } + if (!empty($attr2_columnclasses)) { - $column_widths = explode(',',$attr_widths); - unset($attr['widths']); + $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) { extract($pathElement); @@ -36,7 +56,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 ) @@ -72,531 +98,855 @@ <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($attr2) ?><?php unset($attr2_widths) ?><?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($attr3_class)) + $attr3_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'=>'7') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='help' ?><?php $attr_colspan='7' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><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($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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'GLOBAL_FOLDER_DESC','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_FOLDER_DESC' ?><?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( $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(empty($attr5_title)) + if (!empty($attr5_key)) + $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: - //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'; + //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 + { + $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_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('var'=>'','value'=>'','invert'=>'','empty'=>'','present'=>'up_url','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='up_url' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?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('present'=>'up_url') ?><?php $attr3_present='up_url' ?><?php // Wahr-Vergleich - if ( !empty($attr_true) ) - $exec = $$attr_true == true; +// Html::debug($attr3); + + if ( isset($attr3_true) ) + { + if (gettype($attr3_true) === '' && gettype($attr3_true) === '1') + $exec = $$attr3_true == true; + else + $exec = $attr3_true == true; + } // Falsch-Vergleich - elseif ( !empty($attr_false) ) - $exec = $$attr_false != true; - + elseif ( isset($attr3_false) ) + { + if (gettype($attr3_false) === '' && gettype($attr3_false) === '1') + $exec = $$attr3_false == false; + else + $exec = $attr3_false == false; + } // Inhalt-Vergleich mit Wertliste - elseif( !empty($attr_contains) ) - $exec = in_array($$attr_var,explode(',',$attr_contains)); + elseif( isset($attr3_contains) ) + $exec = in_array($attr3_value,explode(',',$attr3_contains)); // Inhalt-Vergleich - elseif( !empty($attr_var) ) - $exec = $$attr_var == $attr_value; + elseif( isset($attr3_equals)&& isset($attr3_value) ) + $exec = $attr3_equals == $attr3_value; // Vergleich auf leer - elseif ( !empty($attr_empty) ) + elseif ( isset($attr3_empty) ) { - if ( !isset($$attr_empty) ) - $exec = true; - elseif ( is_array($$attr_empty) ) - $exec = (count($$attr_empty)==0); - elseif ( is_bool($$attr_empty) ) + if ( !isset($$attr3_empty) ) + $exec = empty($attr3_empty); + elseif ( is_array($$attr3_empty) ) + $exec = (count($$attr3_empty)==0); + elseif ( is_bool($$attr3_empty) ) $exec = true; else - $exec = empty( $$attr_empty ); + $exec = empty( $$attr3_empty ); } - // Vergleich auf nicht-leer - elseif ( !empty($attr_present) ) + // Vergleich auf Vorhandensein + elseif ( isset($attr3_present) ) { - if ( !isset($$attr_present) ) + if ( !isset($$attr3_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; + 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 = !empty( $$attr_present ); + $exec = true; } + else { - die("error in IF"); + Html::debug( $attr3 ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; } // Ergebnis umdrehen - if ( !empty($attr_invert) ) + if ( !empty($attr3_invert) ) $exec = !$exec; + // Ergebnis umdrehen + if ( !empty($attr3_not) ) + $exec = !$exec; + + unset($attr3_true); + unset($attr3_false); + unset($attr3_notempty); + unset($attr3_empty); + unset($attr3_contains); + unset($attr3_present); + unset($attr3_invert); + unset($attr3_not); + unset($attr3_value); + unset($attr3_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($attr3) ?><?php unset($attr3_present) ?><?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'=>'50%','style'=>'','class'=>'fx','colspan'=>'8') ?><?php $attr_width='50%' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?php $attr_colspan='8' ?><?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('width'=>'50%','class'=>'fx','colspan'=>'8') ?><?php $attr5_width='50%' ?><?php $attr5_class='fx' ?><?php $attr5_colspan='8' ?><?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'=>'','target'=>'cms_main','url'=>'up_url','class'=>'','action'=>'','subaction'=>'','id'=>'','var1'=>'','value1'=>'') ?><?php $attr_title='' ?><?php $attr_target='cms_main' ?><?php $attr_url='up_url' ?><?php $attr_class='' ?><?php $attr_action='' ?><?php $attr_subaction='' ?><?php $attr_id='' ?><?php $attr_var1='' ?><?php $attr_value1='' ?><?php - if(!empty($attr_url)) - $tmp_url = $$attr_url; +?><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 unset($attr5_colspan) ?><?php $attr6 = array('target'=>'cms_main','url'=>'up_url') ?><?php $attr6_target='cms_main' ?><?php $attr6_url='up_url' ?><?php + if(!empty($attr6_url)) + $tmp_url = $attr6_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 hasLang($attr_title)?lang($attr_title):lang($$attr_title) ?>"><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_target) ?><?php unset($attr_url) ?><?php unset($attr_class) ?><?php unset($attr_action) ?><?php unset($attr_subaction) ?><?php unset($attr_id) ?><?php unset($attr_var1) ?><?php unset($attr_value1) ?><?php $attr = array('file'=>'','url'=>'','align'=>'left','type'=>'folder','elementtype'=>'') ?><?php $attr_file='' ?><?php $attr_url='' ?><?php $attr_align='left' ?><?php $attr_type='folder' ?><?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'=>'','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)) + $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('align'=>'left','type'=>'folder') ?><?php $attr7_align='left' ?><?php $attr7_type='folder' ?><?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_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(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'; + //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($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_title) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><?php unset($attr_text) ?><?php unset($attr_raw) ?><?php unset($attr_maxlength) ?><?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 +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_raw) ?><?php $attr5 = array() ?></a><?php unset($attr5) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr2 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array() ?><?php - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; +?><?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($attr3_class)) + $attr3_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 $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($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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'GLOBAL_TYPE','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_TYPE' ?><?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( $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(empty($attr5_title)) + if (!empty($attr5_key)) + $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: - //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'; + //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 + { + $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_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($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_text) ?><?php $attr5 = array('class'=>'text','raw'=>'_/_') ?><?php $attr5_class='text' ?><?php $attr5_raw='_/_' ?><?php + if(empty($attr5_title)) + if (!empty($attr5_key)) + $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: - //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'; + //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 + { + $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_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'=>'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)) +?></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(empty($attr5_title)) + if (!empty($attr5_key)) + $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: - //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'; + //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 + { + $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_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($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_text) ?><?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($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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'GLOBAL_LASTCHANGE','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_LASTCHANGE' ?><?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( $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(empty($attr5_title)) + if (!empty($attr5_key)) + $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: - //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'; + //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 + { + $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_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'=>'object','extract'=>'true','key'=>'list_key','value'=>'list_value') ?><?php $attr_list='object' ?><?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($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('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 - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - +?><?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($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'=>'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 $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($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'=>'desc','target'=>'cms_main','url'=>'url','class'=>'','action'=>'','subaction'=>'','id'=>'','var1'=>'','value1'=>'') ?><?php $attr_title='desc' ?><?php $attr_target='cms_main' ?><?php $attr_url='url' ?><?php $attr_class='' ?><?php $attr_action='' ?><?php $attr_subaction='' ?><?php $attr_id='' ?><?php $attr_var1='' ?><?php $attr_value1='' ?><?php - if(!empty($attr_url)) - $tmp_url = $$attr_url; +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('title'=>'desc','target'=>'cms_main','url'=>$url) ?><?php $attr6_title='desc' ?><?php $attr6_target='cms_main' ?><?php $attr6_url=$url ?><?php + if(!empty($attr6_url)) + $tmp_url = $attr6_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 hasLang($attr_title)?lang($attr_title):lang($$attr_title) ?>"><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_target) ?><?php unset($attr_url) ?><?php unset($attr_class) ?><?php unset($attr_action) ?><?php unset($attr_subaction) ?><?php unset($attr_id) ?><?php unset($attr_var1) ?><?php unset($attr_value1) ?><?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)) + $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('align'=>'left','type'=>$icon) ?><?php $attr7_align='left' ?><?php $attr7_type=$icon ?><?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_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(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'; + //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($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_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_text) ?><?php $attr7 = array('class'=>'text','raw'=>'_') ?><?php $attr7_class='text' ?><?php $attr7_raw='_' ?><?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 $$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'; + //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($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_title) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><?php unset($attr_text) ?><?php unset($attr_raw) ?><?php unset($attr_maxlength) ?><?php $attr = array() ?></a><?php unset($attr) ?><?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($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_raw) ?><?php $attr5 = array() ?></a><?php unset($attr5) ?><?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'=>'date','text'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='date' ?><?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'=>'date') ?><?php $attr6_class='text' ?><?php $attr6_var='date' ?><?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 (!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'; + //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($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 } ?><?php unset($attr) ?><?php $attr = array('var'=>'','value'=>'','invert'=>'','empty'=>'object','present'=>'','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='object' ?><?php $attr_present='' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php +?></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 $attr2 = array() ?><?php } ?><?php unset($attr2) ?><?php $attr3 = array('empty'=>'object') ?><?php $attr3_empty='object' ?><?php // Wahr-Vergleich - if ( !empty($attr_true) ) - $exec = $$attr_true == true; +// Html::debug($attr3); + + if ( isset($attr3_true) ) + { + if (gettype($attr3_true) === '' && gettype($attr3_true) === '1') + $exec = $$attr3_true == true; + else + $exec = $attr3_true == true; + } // Falsch-Vergleich - elseif ( !empty($attr_false) ) - $exec = $$attr_false != true; - + elseif ( isset($attr3_false) ) + { + if (gettype($attr3_false) === '' && gettype($attr3_false) === '1') + $exec = $$attr3_false == false; + else + $exec = $attr3_false == false; + } // Inhalt-Vergleich mit Wertliste - elseif( !empty($attr_contains) ) - $exec = in_array($$attr_var,explode(',',$attr_contains)); + elseif( isset($attr3_contains) ) + $exec = in_array($attr3_value,explode(',',$attr3_contains)); // Inhalt-Vergleich - elseif( !empty($attr_var) ) - $exec = $$attr_var == $attr_value; + elseif( isset($attr3_equals)&& isset($attr3_value) ) + $exec = $attr3_equals == $attr3_value; // Vergleich auf leer - elseif ( !empty($attr_empty) ) + elseif ( isset($attr3_empty) ) { - if ( !isset($$attr_empty) ) - $exec = true; - elseif ( is_array($$attr_empty) ) - $exec = (count($$attr_empty)==0); - elseif ( is_bool($$attr_empty) ) + if ( !isset($$attr3_empty) ) + $exec = empty($attr3_empty); + elseif ( is_array($$attr3_empty) ) + $exec = (count($$attr3_empty)==0); + elseif ( is_bool($$attr3_empty) ) $exec = true; else - $exec = empty( $$attr_empty ); + $exec = empty( $$attr3_empty ); } - // Vergleich auf nicht-leer - elseif ( !empty($attr_present) ) + // Vergleich auf Vorhandensein + elseif ( isset($attr3_present) ) { - if ( !isset($$attr_present) ) + if ( !isset($$attr3_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; + 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 = !empty( $$attr_present ); + $exec = true; } + else { - die("error in IF"); + Html::debug( $attr3 ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; } // Ergebnis umdrehen - if ( !empty($attr_invert) ) + if ( !empty($attr3_invert) ) $exec = !$exec; + // Ergebnis umdrehen + if ( !empty($attr3_not) ) + $exec = !$exec; + + unset($attr3_true); + unset($attr3_false); + unset($attr3_notempty); + unset($attr3_empty); + unset($attr3_contains); + unset($attr3_present); + unset($attr3_invert); + unset($attr3_not); + unset($attr3_value); + unset($attr3_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($attr3) ?><?php unset($attr3_empty) ?><?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'=>'fx','colspan'=>'2') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?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'=>'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($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'=>'GLOBAL_NOT_FOUND','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_NOT_FOUND' ?><?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 unset($attr5_colspan) ?><?php $attr6 = array('class'=>'text','text'=>'GLOBAL_NOT_FOUND') ?><?php $attr6_class='text' ?><?php $attr6_text='GLOBAL_NOT_FOUND' ?><?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 (!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'; + //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($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 +?></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 $attr2 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array() ?> </table> + +?><?php unset($attr2) ?><?php $attr1 = array() ?> </table> </td> </tr> </table> @@ -610,7 +960,7 @@ if (!empty($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) { ?> @@ -621,4 +971,4 @@ if (!empty($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/showprop.tpl.php b/themes/default/pages/html/folder/showprop.tpl.php @@ -1,9 +1,10 @@ -<?php $attr = array('class'=>'') ?><?php $attr_class='' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<?php $attr = array('class'=>'main','title'=>'var') ?><?php $attr_class='main' ?><?php $attr_title='var' ?><?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 $attr_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" /> <link rel="stylesheet" type="text/css" href="./themes/default/css/default.css" /> @@ -12,22 +13,34 @@ <?php } ?> </head> -<body<?php echo !empty($$attr_class)?' class="'.$$attr_class.'"':' class="'.$attr_class.'"' ?>> +<body class="<?php echo $attr_class ?>"> - -<?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('title'=>'global_prop','name'=>'objectName','icon'=>'folder','widths'=>'50%,50%','width'=>'90%') ?><?php $attr_title='global_prop' ?><?php $attr_name='objectName' ?><?php $attr_icon='folder' ?><?php $attr_widths='50%,50%' ?><?php $attr_width='90%' ?><?php +<?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_title) ?><?php $attr = array('title'=>'global_prop','name'=>'objectName','icon'=>'folder','widths'=>'50%,50%','width'=>'90%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr_title='global_prop' ?><?php $attr_name='objectName' ?><?php $attr_icon='folder' ?><?php $attr_widths='50%,50%' ?><?php $attr_width='90%' ?><?php $attr_rowclasses='odd,even' ?><?php $attr_columnclasses='1,2,3' ?><?php $coloumn_widths=array(); if (!empty($attr_widths)) { $column_widths = explode(',',$attr_widths); unset($attr['widths']); } + if (!empty($attr_rowclasses)) + { + $row_classes = explode(',',$attr_rowclasses); + $row_class_idx = 999; + unset($attr['rowclasses']); + } + if (!empty($attr_columnclasses)) + { + $column_classes = explode(',',$attr_columnclasses); + unset($attr['columnclasses']); + } global $image_dir; echo '<br/><br/><br/><center>'; echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_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 ( !is_array($path) ) + $path = array(); foreach( $path as $pathElement) { extract($pathElement); @@ -36,7 +49,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 ) @@ -72,28 +91,44 @@ <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($attr) ?><?php unset($attr_title) ?><?php unset($attr_name) ?><?php unset($attr_icon) ?><?php unset($attr_widths) ?><?php unset($attr_width) ?><?php unset($attr_rowclasses) ?><?php unset($attr_columnclasses) ?><?php $attr = 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; + 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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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 +?><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_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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -105,30 +140,52 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?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; + $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; 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]; -?><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 +?><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','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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -140,39 +197,66 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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($attr) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = 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; + 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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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_filename','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='global_filename' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?><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_filename') ?><?php $attr_class='text' ?><?php $attr_text='global_filename' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -184,30 +268,52 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?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; + $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; 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]; -?><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'=>'filename','text'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='filename' ?><?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 +?><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','var'=>'filename') ?><?php $attr_class='text' ?><?php $attr_var='filename' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -219,39 +325,66 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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($attr) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = 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; + 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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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_description','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='global_description' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?><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_description') ?><?php $attr_class='text' ?><?php $attr_text='global_description' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -263,30 +396,52 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?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; + $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; 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]; -?><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'=>'description','text'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='description' ?><?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 +?><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','var'=>'description') ?><?php $attr_class='text' ?><?php $attr_var='description' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -298,39 +453,66 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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($attr) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = 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; + 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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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_created','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='global_created' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?><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_created') ?><?php $attr_class='text' ?><?php $attr_text='global_created' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -342,25 +524,41 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?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; + $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; 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]; -?><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) ?>- \ No newline at end of file +?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/index/password.tpl.php b/themes/default/pages/html/index/password.tpl.php @@ -1,9 +1,10 @@ -<?php $attr = array('class'=>'main') ?><?php $attr_class='main' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<?php $attr = array('class'=>'main','title'=>'var') ?><?php $attr_class='main' ?><?php $attr_title='var' ?><?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 $attr_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" /> <link rel="stylesheet" type="text/css" href="./themes/default/css/default.css" /> @@ -14,8 +15,7 @@ <body class="<?php echo $attr_class ?>"> - -<?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('name'=>'','target'=>'_top','method'=>'post','enctype'=>'application/x-www-form-urlencoded') ?><?php $attr_name='' ?><?php $attr_target='_top' ?><?php $attr_method='post' ?><?php $attr_enctype='application/x-www-form-urlencoded' ?><?php +<?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_title) ?><?php $attr = array('name'=>'','target'=>'_top','method'=>'post','enctype'=>'application/x-www-form-urlencoded') ?><?php $attr_name='' ?><?php $attr_target='_top' ?><?php $attr_method='post' ?><?php $attr_enctype='application/x-www-form-urlencoded' ?><?php if (empty($attr_action)) $attr_action = $actionName; if (empty($attr_subaction)) @@ -57,6 +57,8 @@ 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 ( !is_array($path) ) + $path = array(); foreach( $path as $pathElement) { extract($pathElement); @@ -222,7 +224,7 @@ if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) ) $attr['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 $attr = array('class'=>'','default'=>'','type'=>'text','name'=>'username','value'=>'','size'=>'30','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_name='username' ?><?php $attr_value='' ?><?php $attr_size='30' ?><?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 ?>" onxxxMouseOver="this.focus();" /><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><?php unset($attr_type) ?><?php unset($attr_name) ?><?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( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_width) ?><?php $attr = array('class'=>'','default'=>'','type'=>'text','name'=>'username','value'=>'','size'=>'30','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_name='username' ?><?php $attr_value='' ?><?php $attr_size='30' ?><?php $attr_maxlength='256' ?><?php $attr_onchange='' ?><input id="id<?php echo $attr_name ?>" name="<?php echo $attr_name ?>" type="<?php echo $attr_type ?>" 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 ?>" onxxxMouseOver="this.focus();" /><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><?php unset($attr_type) ?><?php unset($attr_name) ?><?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 $row_class_idx++; if ($row_class_idx > count($row_classes)) $row_class_idx=1; @@ -308,19 +310,19 @@ if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) ) $attr['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('list'=>'dbids','name'=>'dbid','default'=>'actdbid','onchange'=>'','class'=>'') ?><?php $attr_list='dbids' ?><?php $attr_name='dbid' ?><?php $attr_default='actdbid' ?><?php $attr_onchange='' ?><?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 +?><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('list'=>'dbids','name'=>'dbid','default'=>'actdbid','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='dbids' ?><?php $attr_name='dbid' ?><?php $attr_default='actdbid' ?><?php $attr_onchange='' ?><?php $attr_title='' ?><?php $attr_class='' ?><select size="1" id="id<?php echo $attr_name ?>" 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"' ?>><?php foreach( $$attr_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) + if (isset($$attr_name)&&$box_key==$$attr_name || isset($attr_default)&&$box_key == $attr_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_class) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php +?><?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 $row_class_idx++; if ($row_class_idx > count($row_classes)) $row_class_idx=1; diff --git a/themes/default/pages/html/index/projectmenu.tpl.php b/themes/default/pages/html/index/projectmenu.tpl.php @@ -1,33 +1,53 @@ -<?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('title'=>'GLOBAL_PROJECTS','name'=>'login','icon'=>'project','widths'=>'','width'=>'400') ?><?php $attr_title='GLOBAL_PROJECTS' ?><?php $attr_name='login' ?><?php $attr_icon='project' ?><?php $attr_widths='' ?><?php $attr_width='400' ?><?php +<?php unset($attr1) ?><?php unset($attr1_class) ?><?php unset($attr1_title) ?><?php $attr2 = array('title'=>'GLOBAL_PROJECTS','name'=>'login','icon'=>'project','width'=>'400','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr2_title='GLOBAL_PROJECTS' ?><?php $attr2_name='login' ?><?php $attr2_icon='project' ?><?php $attr2_width='400' ?><?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(',',$attr2_widths); + unset($attr2['widths']); + } + if (!empty($attr2_rowclasses)) { - $column_widths = explode(',',$attr_widths); - unset($attr['widths']); + $row_classes = explode(',',$attr2_rowclasses); + $row_class_idx = 999; + unset($attr2['rowclasses']); + } + if (!empty($attr2_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) { extract($pathElement); @@ -36,7 +56,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 ) @@ -72,112 +98,145 @@ <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($attr2) ?><?php unset($attr2_title) ?><?php unset($attr2_name) ?><?php unset($attr2_icon) ?><?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($attr3_class)) + $attr3_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'=>'logo','colspan'=>'2') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='logo' ?><?php $attr_colspan='2' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><tr class="<?php echo $attr3_class ?>"><?php unset($attr3) ?><?php $attr4 = array('class'=>'logo','colspan'=>'2') ?><?php $attr4_class='logo' ?><?php $attr4_colspan='2' ?><?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($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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('name'=>'projectmenu') ?><?php $attr_name='projectmenu' ?><img src="<?php echo $image_dir.'logo_'.$attr_name.IMG_ICON_EXT ?>" border="0" align="left"><h2 class="logo"><?php echo lang('logo_'.$attr_name) ?></h2><p class="logo"><?php echo lang('logo_'.$attr_name.'_text') ?></p><?php unset($attr) ?><?php unset($attr_name) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array('list'=>'el','extract'=>'true','key'=>'list_key','value'=>'list_value') ?><?php $attr_list='el' ?><?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'); +?><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('name'=>'projectmenu') ?><?php $attr5_name='projectmenu' ?><img src="<?php echo $image_dir.'logo_'.$attr5_name.IMG_ICON_EXT ?>" border="0" align="left"><h2 class="logo"><?php echo lang('logo_'.$attr5_name) ?></h2><p class="logo"><?php echo lang('logo_'.$attr5_name.'_text') ?></p><?php unset($attr5) ?><?php unset($attr5_name) ?><?php $attr3 = array() ?></td><?php unset($attr3) ?><?php $attr2 = array() ?></tr><?php unset($attr2) ?><?php $attr3 = array('list'=>'el','extract'=>'1','key'=>'list_key','value'=>'list_value') ?><?php $attr3_list='el' ?><?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 - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - +?><?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($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'=>'TREE_CHOOSE_PROJECT','config'=>'','target'=>'','var'=>'url','url'=>'','class'=>'','action'=>'','subaction'=>'','id'=>'','var1'=>'','value1'=>'') ?><?php $attr_title='TREE_CHOOSE_PROJECT' ?><?php $attr_config='' ?><?php $attr_target='' ?><?php $attr_var='url' ?><?php $attr_url='' ?><?php $attr_class='' ?><?php $attr_action='' ?><?php $attr_subaction='' ?><?php $attr_id='' ?><?php $attr_var1='' ?><?php $attr_value1='' ?><?php - if (!empty($attr_action)) - { - $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 hasLang($attr_title)?lang($attr_title):lang($$attr_title) ?>"><?php } ?><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_config) ?><?php unset($attr_target) ?><?php unset($attr_var) ?><?php unset($attr_url) ?><?php unset($attr_class) ?><?php unset($attr_action) ?><?php unset($attr_subaction) ?><?php unset($attr_id) ?><?php unset($attr_var1) ?><?php unset($attr_value1) ?><a href="<?php echo $url ?>" class="" target="" title="TREE_CHOOSE_PROJECT"><?php $attr = array('var'=>'project','value'=>'project') ?><?php $attr_var='project' ?><?php $attr_value='project' ?><?php $$attr_var = $attr_value ?><?php unset($attr) ?><?php unset($attr_var) ?><?php unset($attr_value) ?><?php $attr = array('config'=>'','file'=>'','url'=>'','icon'=>'','align'=>'left','type'=>'project','elementtype'=>'') ?><?php $attr_config='' ?><?php $attr_file='' ?><?php $attr_url='' ?><?php $attr_icon='' ?><?php $attr_align='left' ?><?php $attr_type='project' ?><?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_config)) { - global $conf; - $c = $conf; - $path = explode('/',$attr_config); - foreach($path as $part) - $c = $c[$part]; - $tmp_url = $c; -?><img src="<?php echo $tmp_url ?>" 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_icon)) { -?><img src="<?php echo $image_dir.'icon_'.$attr_icon.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_config) ?><?php unset($attr_file) ?><?php unset($attr_url) ?><?php unset($attr_icon) ?><?php unset($attr_align) ?><?php unset($attr_type) ?><?php unset($attr_elementtype) ?><?php $attr = array('title'=>'','class'=>'','var'=>'name','text'=>'','textvar'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='name' ?><?php $attr_text='' ?><?php $attr_textvar='' ?><?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('title'=>'TREE_CHOOSE_PROJECT','target'=>'_self','url'=>$url) ?><?php $attr6_title='TREE_CHOOSE_PROJECT' ?><?php $attr6_target='_self' ?><?php $attr6_url=$url ?><?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_title) ?><?php unset($attr6_target) ?><?php unset($attr6_url) ?><?php $attr7 = array('var'=>'project','value'=>'project') ?><?php $attr7_var='project' ?><?php $attr7_value='project' ?><?php $$attr7_var = $attr7_value ?><?php unset($attr7) ?><?php unset($attr7_var) ?><?php unset($attr7_value) ?><?php $attr7 = array('align'=>'left','type'=>'project') ?><?php $attr7_align='left' ?><?php $attr7_type='project' ?><?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_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(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]; + //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($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'; } - elseif (!empty($attr_text)) - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - 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) ); + 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_textvar) ?><?php unset($attr_raw) ?><?php unset($attr_maxlength) ?><?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() ?> </table> +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_var) ?><?php $attr5 = array() ?></a><?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> @@ -191,7 +250,7 @@ elseif (!empty($attr_type)) { <?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) { ?> @@ -202,4 +261,4 @@ elseif (!empty($attr_type)) { <?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/index/register.tpl.php b/themes/default/pages/html/index/register.tpl.php @@ -1,11 +1,19 @@ -<?php $attr = array('class'=>'main') ?><?php $attr_class='main' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<?php $attr = array('class'=>'main','title'=>'var') ?><?php $attr_class='main' ?><?php $attr_title='var' ?><?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 $attr_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 ?>" /> @@ -14,8 +22,7 @@ <body class="<?php echo $attr_class ?>"> - -<?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('name'=>'','target'=>'_top','method'=>'post','enctype'=>'application/x-www-form-urlencoded') ?><?php $attr_name='' ?><?php $attr_target='_top' ?><?php $attr_method='post' ?><?php $attr_enctype='application/x-www-form-urlencoded' ?><?php +<?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_title) ?><?php $attr = array('name'=>'','target'=>'_top','method'=>'post','enctype'=>'application/x-www-form-urlencoded') ?><?php $attr_name='' ?><?php $attr_target='_top' ?><?php $attr_method='post' ?><?php $attr_enctype='application/x-www-form-urlencoded' ?><?php if (empty($attr_action)) $attr_action = $actionName; if (empty($attr_subaction)) @@ -57,6 +64,8 @@ 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 ( !is_array($path) ) + $path = array(); foreach( $path as $pathElement) { extract($pathElement); @@ -222,7 +231,7 @@ if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) ) $attr['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'=>'','default'=>'','type'=>'text','name'=>'mail','size'=>'25','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_name='mail' ?><?php $attr_size='25' ?><?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 ?>" onxxxMouseOver="this.focus();" /><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><?php unset($attr_type) ?><?php unset($attr_name) ?><?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( $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'=>'','default'=>'','type'=>'text','name'=>'mail','size'=>'25','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_name='mail' ?><?php $attr_size='25' ?><?php $attr_maxlength='256' ?><?php $attr_onchange='' ?><input id="id<?php echo $attr_name ?>" name="<?php echo $attr_name ?>" type="<?php echo $attr_type ?>" 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 ?>" onxxxMouseOver="this.focus();" /><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><?php unset($attr_type) ?><?php unset($attr_name) ?><?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 $row_class_idx++; if ($row_class_idx > count($row_classes)) $row_class_idx=1; diff --git a/themes/default/pages/html/index/show.tpl.php b/themes/default/pages/html/index/show.tpl.php @@ -1,29 +1,38 @@ -<?php $attr = array() ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN"> +<?php $attr1 = array() ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN"> <html> <!-- $Id$ --> <head> <title><?php echo $title ?> - <?php echo $cms_title ?></title> <link rel="shortcut icon" href="<?php echo $image_dir.'favicon.ico' ?>" /> + <link rel="top" title="Start" href="./" /> + <link rel="author" title="Homepage" href="http://www.openrat.de" /> + + <?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 + } +?> <meta name="robots" content="noindex,nofollow" /> </head> -<?php unset($attr) ?><?php $attr = array('rows'=>'23,3,*,3,5') ?><?php $attr_rows='23,3,*,3,5' ?><frameset -<?php echo !empty($attr_rows) ?' rows="'.$attr_rows.'"':'' ?> -<?php echo !empty($attr_columns)?' cols="'.$attr_columns.'"':'' ?> - border="0" frameborder="5" framespacing="0" bordercolor="#000000"><?php unset($attr) ?><?php unset($attr_rows) ?><?php $attr = array('file'=>$frame_src_title,'name'=>'cms_title') ?><?php $attr_file=$frame_src_title ?><?php $attr_name='cms_title' ?><frame src="<?php echo $attr_file ?>" name="<?php echo empty($attr_name)?'':$attr_name ?>" marginheight="0" marginwidth="0" scrolling="<?php echo empty($attr_scrolling)?'no':$attr_scrolling ?>"> -<?php unset($attr) ?><?php unset($attr_file) ?><?php unset($attr_name) ?><?php $attr = array('file'=>$frame_src_border) ?><?php $attr_file=$frame_src_border ?><frame src="<?php echo $attr_file ?>" name="<?php echo empty($attr_name)?'':$attr_name ?>" marginheight="0" marginwidth="0" scrolling="<?php echo empty($attr_scrolling)?'no':$attr_scrolling ?>"> -<?php unset($attr) ?><?php unset($attr_file) ?><?php $attr = array('columns'=>'25%,*') ?><?php $attr_columns='25%,*' ?><frameset -<?php echo !empty($attr_rows) ?' rows="'.$attr_rows.'"':'' ?> -<?php echo !empty($attr_columns)?' cols="'.$attr_columns.'"':'' ?> - border="0" frameborder="5" framespacing="0" bordercolor="#000000"><?php unset($attr) ?><?php unset($attr_columns) ?><?php $attr = array('rows'=>'54,*') ?><?php $attr_rows='54,*' ?><frameset -<?php echo !empty($attr_rows) ?' rows="'.$attr_rows.'"':'' ?> -<?php echo !empty($attr_columns)?' cols="'.$attr_columns.'"':'' ?> - border="0" frameborder="5" framespacing="0" bordercolor="#000000"><?php unset($attr) ?><?php unset($attr_rows) ?><?php $attr = array('file'=>$frame_src_tree_title,'name'=>'cms_treemenu') ?><?php $attr_file=$frame_src_tree_title ?><?php $attr_name='cms_treemenu' ?><frame src="<?php echo $attr_file ?>" name="<?php echo empty($attr_name)?'':$attr_name ?>" marginheight="0" marginwidth="0" scrolling="<?php echo empty($attr_scrolling)?'no':$attr_scrolling ?>"> -<?php unset($attr) ?><?php unset($attr_file) ?><?php unset($attr_name) ?><?php $attr = array('file'=>$frame_src_tree,'name'=>'cms_tree','scrolling'=>'auto') ?><?php $attr_file=$frame_src_tree ?><?php $attr_name='cms_tree' ?><?php $attr_scrolling='auto' ?><frame src="<?php echo $attr_file ?>" name="<?php echo empty($attr_name)?'':$attr_name ?>" marginheight="0" marginwidth="0" scrolling="<?php echo empty($attr_scrolling)?'no':$attr_scrolling ?>"> -<?php unset($attr) ?><?php unset($attr_file) ?><?php unset($attr_name) ?><?php unset($attr_scrolling) ?><?php $attr = array() ?></frameset> -<?php unset($attr) ?><?php $attr = array('file'=>$frame_src_main,'name'=>'cms_main') ?><?php $attr_file=$frame_src_main ?><?php $attr_name='cms_main' ?><frame src="<?php echo $attr_file ?>" name="<?php echo empty($attr_name)?'':$attr_name ?>" marginheight="0" marginwidth="0" scrolling="<?php echo empty($attr_scrolling)?'no':$attr_scrolling ?>"> -<?php unset($attr) ?><?php unset($attr_file) ?><?php unset($attr_name) ?><?php $attr = array() ?></frameset> -<?php unset($attr) ?><?php $attr = array('file'=>$frame_src_border) ?><?php $attr_file=$frame_src_border ?><frame src="<?php echo $attr_file ?>" name="<?php echo empty($attr_name)?'':$attr_name ?>" marginheight="0" marginwidth="0" scrolling="<?php echo empty($attr_scrolling)?'no':$attr_scrolling ?>"> -<?php unset($attr) ?><?php unset($attr_file) ?><?php $attr = array('file'=>$frame_src_background) ?><?php $attr_file=$frame_src_background ?><frame src="<?php echo $attr_file ?>" name="<?php echo empty($attr_name)?'':$attr_name ?>" marginheight="0" marginwidth="0" scrolling="<?php echo empty($attr_scrolling)?'no':$attr_scrolling ?>"> -<?php unset($attr) ?><?php unset($attr_file) ?><?php $attr = array() ?></frameset> -<?php unset($attr) ?><?php $attr = array() ?> -</html><?php unset($attr) ?>- \ No newline at end of file +<?php unset($attr1) ?><?php $attr2 = array('rows'=>'23,3,*,3,5') ?><?php $attr2_rows='23,3,*,3,5' ?><frameset +<?php echo !empty($attr2_rows) ?' rows="'.$attr2_rows.'"':'' ?> +<?php echo !empty($attr2_columns)?' cols="'.$attr2_columns.'"':'' ?> + border="0" frameborder="5" framespacing="0" bordercolor="#000000"><?php unset($attr2) ?><?php unset($attr2_rows) ?><?php $attr3 = array('file'=>$frame_src_title,'name'=>'cms_title') ?><?php $attr3_file=$frame_src_title ?><?php $attr3_name='cms_title' ?><frame src="<?php echo $attr3_file ?>" name="<?php echo empty($attr3_name)?'':$attr3_name ?>" marginheight="0" marginwidth="0" scrolling="<?php echo empty($attr3_scrolling)?'no':$attr3_scrolling ?>"> +<?php unset($attr3) ?><?php unset($attr3_file) ?><?php unset($attr3_name) ?><?php $attr3 = array('file'=>$frame_src_border) ?><?php $attr3_file=$frame_src_border ?><frame src="<?php echo $attr3_file ?>" name="<?php echo empty($attr3_name)?'':$attr3_name ?>" marginheight="0" marginwidth="0" scrolling="<?php echo empty($attr3_scrolling)?'no':$attr3_scrolling ?>"> +<?php unset($attr3) ?><?php unset($attr3_file) ?><?php $attr3 = array('columns'=>'25%,*') ?><?php $attr3_columns='25%,*' ?><frameset +<?php echo !empty($attr3_rows) ?' rows="'.$attr3_rows.'"':'' ?> +<?php echo !empty($attr3_columns)?' cols="'.$attr3_columns.'"':'' ?> + border="0" frameborder="5" framespacing="0" bordercolor="#000000"><?php unset($attr3) ?><?php unset($attr3_columns) ?><?php $attr4 = array('rows'=>'54,*') ?><?php $attr4_rows='54,*' ?><frameset +<?php echo !empty($attr4_rows) ?' rows="'.$attr4_rows.'"':'' ?> +<?php echo !empty($attr4_columns)?' cols="'.$attr4_columns.'"':'' ?> + border="0" frameborder="5" framespacing="0" bordercolor="#000000"><?php unset($attr4) ?><?php unset($attr4_rows) ?><?php $attr5 = array('file'=>$frame_src_tree_title,'name'=>'cms_treemenu') ?><?php $attr5_file=$frame_src_tree_title ?><?php $attr5_name='cms_treemenu' ?><frame src="<?php echo $attr5_file ?>" name="<?php echo empty($attr5_name)?'':$attr5_name ?>" marginheight="0" marginwidth="0" scrolling="<?php echo empty($attr5_scrolling)?'no':$attr5_scrolling ?>"> +<?php unset($attr5) ?><?php unset($attr5_file) ?><?php unset($attr5_name) ?><?php $attr5 = array('file'=>$frame_src_tree,'name'=>'cms_tree','scrolling'=>'auto') ?><?php $attr5_file=$frame_src_tree ?><?php $attr5_name='cms_tree' ?><?php $attr5_scrolling='auto' ?><frame src="<?php echo $attr5_file ?>" name="<?php echo empty($attr5_name)?'':$attr5_name ?>" marginheight="0" marginwidth="0" scrolling="<?php echo empty($attr5_scrolling)?'no':$attr5_scrolling ?>"> +<?php unset($attr5) ?><?php unset($attr5_file) ?><?php unset($attr5_name) ?><?php unset($attr5_scrolling) ?><?php $attr3 = array() ?></frameset> +<?php unset($attr3) ?><?php $attr4 = array('file'=>$frame_src_main,'name'=>'cms_main') ?><?php $attr4_file=$frame_src_main ?><?php $attr4_name='cms_main' ?><frame src="<?php echo $attr4_file ?>" name="<?php echo empty($attr4_name)?'':$attr4_name ?>" marginheight="0" marginwidth="0" scrolling="<?php echo empty($attr4_scrolling)?'no':$attr4_scrolling ?>"> +<?php unset($attr4) ?><?php unset($attr4_file) ?><?php unset($attr4_name) ?><?php $attr2 = array() ?></frameset> +<?php unset($attr2) ?><?php $attr3 = array('file'=>$frame_src_border) ?><?php $attr3_file=$frame_src_border ?><frame src="<?php echo $attr3_file ?>" name="<?php echo empty($attr3_name)?'':$attr3_name ?>" marginheight="0" marginwidth="0" scrolling="<?php echo empty($attr3_scrolling)?'no':$attr3_scrolling ?>"> +<?php unset($attr3) ?><?php unset($attr3_file) ?><?php $attr3 = array('file'=>$frame_src_background) ?><?php $attr3_file=$frame_src_background ?><frame src="<?php echo $attr3_file ?>" name="<?php echo empty($attr3_name)?'':$attr3_name ?>" marginheight="0" marginwidth="0" scrolling="<?php echo empty($attr3_scrolling)?'no':$attr3_scrolling ?>"> +<?php unset($attr3) ?><?php unset($attr3_file) ?><?php $attr1 = array() ?></frameset> +<?php unset($attr1) ?><?php $attr0 = array() ?> +</html><?php unset($attr0) ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/index/showlogin.tpl.php b/themes/default/pages/html/index/showlogin.tpl.php @@ -1,62 +1,71 @@ -<?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'=>'index','subaction'=>'login','name'=>'','target'=>'_top','method'=>'post','enctype'=>'application/x-www-form-urlencoded') ?><?php $attr_action='index' ?><?php $attr_subaction='login' ?><?php $attr_name='' ?><?php $attr_target='_top' ?><?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'=>'index','subaction'=>'login','target'=>'_top','method'=>'post','enctype'=>'application/x-www-form-urlencoded') ?><?php $attr2_action='index' ?><?php $attr2_subaction='login' ?><?php $attr2_target='_top' ?><?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'=>'GLOBAL_LOGIN','name'=>'login','icon'=>'user','width'=>'400','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr_title='GLOBAL_LOGIN' ?><?php $attr_name='login' ?><?php $attr_icon='user' ?><?php $attr_width='400' ?><?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'=>'GLOBAL_LOGIN','name'=>'login','icon'=>'user','width'=>'400','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr3_title='GLOBAL_LOGIN' ?><?php $attr3_name='login' ?><?php $attr3_icon='user' ?><?php $attr3_width='400' ?><?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) { extract($pathElement); @@ -107,1906 +116,1926 @@ <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_width) ?><?php unset($attr_rowclasses) ?><?php unset($attr_columnclasses) ?><?php $attr = array('present'=>$conf['login']['logo']['file']) ?><?php $attr_present=$conf['login']['logo']['file'] ?><?php + <table class="n" cellspacing="0" width="100%" cellpadding="4"><?php unset($attr3) ?><?php unset($attr3_title) ?><?php unset($attr3_name) ?><?php unset($attr3_icon) ?><?php unset($attr3_width) ?><?php unset($attr3_rowclasses) ?><?php unset($attr3_columnclasses) ?><?php $attr4 = array('present'=>$conf['login']['logo']['file']) ?><?php $attr4_present=$conf['login']['logo']['file'] ?><?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) ) + if ( !isset($$attr4_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; + 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) ) + 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_present) ?><?php $attr = array('false'=>$this->mustChangePassword) ?><?php $attr_false=$this->mustChangePassword ?><?php +?><?php unset($attr4) ?><?php unset($attr4_present) ?><?php $attr5 = array('false'=>$this->mustChangePassword) ?><?php $attr5_false=$this->mustChangePassword ?><?php // Wahr-Vergleich -// Html::debug($attr); +// Html::debug($attr5); - if ( isset($attr_true) ) + if ( isset($attr5_true) ) { - if (gettype($attr_true) === '' && gettype($attr_true) === '1') - $exec = $$attr_true == true; + if (gettype($attr5_true) === '' && gettype($attr5_true) === '1') + $exec = $$attr5_true == true; else - $exec = $attr_true == true; + $exec = $attr5_true == true; } // Falsch-Vergleich - elseif ( isset($attr_false) ) + elseif ( isset($attr5_false) ) { - if (gettype($attr_false) === '' && gettype($attr_false) === '1') - $exec = $$attr_false == false; + if (gettype($attr5_false) === '' && gettype($attr5_false) === '1') + $exec = $$attr5_false == false; else - $exec = $attr_false == false; + $exec = $attr5_false == false; } // Inhalt-Vergleich mit Wertliste - elseif( isset($attr_contains) ) - $exec = in_array($$attr_var,explode(',',$attr_contains)); + elseif( isset($attr5_contains) ) + $exec = in_array($attr5_value,explode(',',$attr5_contains)); // Inhalt-Vergleich - elseif( isset($attr_var) ) - $exec = $$attr_var == $attr_value; + elseif( isset($attr5_equals)&& isset($attr5_value) ) + $exec = $attr5_equals == $attr5_value; // Vergleich auf leer - elseif ( isset($attr_empty) ) + elseif ( isset($attr5_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($$attr5_empty) ) + $exec = empty($attr5_empty); + elseif ( is_array($$attr5_empty) ) + $exec = (count($$attr5_empty)==0); + elseif ( is_bool($$attr5_empty) ) $exec = true; else - $exec = empty( $$attr_empty ); + $exec = empty( $$attr5_empty ); } // Vergleich auf Vorhandensein - elseif ( isset($attr_present) ) + elseif ( isset($attr5_present) ) { - if ( !isset($$attr_present) ) + if ( !isset($$attr5_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; + 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 { - Html::debug( $attr ); + Html::debug( $attr5 ); echo("error in IF line ".__LINE__); echo("assume: FALSE"); $exec = false; } // Ergebnis umdrehen - if ( !empty($attr_invert) ) + if ( !empty($attr5_invert) ) $exec = !$exec; // Ergebnis umdrehen - if ( !empty($attr_not) ) + if ( !empty($attr5_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($attr5_true); + unset($attr5_false); + unset($attr5_notempty); + unset($attr5_empty); + unset($attr5_contains); + unset($attr5_present); + unset($attr5_invert); + unset($attr5_not); + unset($attr5_value); + unset($attr5_equals); $last_exec = $exec; if ( $exec ) { -?><?php unset($attr) ?><?php unset($attr_false) ?><?php $attr = array() ?><?php +?><?php unset($attr5) ?><?php unset($attr5_false) ?><?php $attr6 = 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($attr6_class)) + $attr6_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('colspan'=>'2') ?><?php $attr_colspan='2' ?><?php -// if (empty($attr_class)) -// $attr['class']=$row_class; +?><tr class="<?php echo $attr6_class ?>"><?php unset($attr6) ?><?php $attr7 = array('colspan'=>'2') ?><?php $attr7_colspan='2' ?><?php +// if (empty($attr7_class)) +// $attr7['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($attr7_class)) + $attr7['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($attr7_rowspan) ) + $attr7['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_colspan) ?><?php $attr = array('present'=>$conf['login']['logo']['url']) ?><?php $attr_present=$conf['login']['logo']['url'] ?><?php +?><td <?php foreach( $attr7 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr7) ?><?php unset($attr7_colspan) ?><?php $attr8 = array('present'=>$conf['login']['logo']['url']) ?><?php $attr8_present=$conf['login']['logo']['url'] ?><?php // Wahr-Vergleich -// Html::debug($attr); +// Html::debug($attr8); - if ( isset($attr_true) ) + if ( isset($attr8_true) ) { - if (gettype($attr_true) === '' && gettype($attr_true) === '1') - $exec = $$attr_true == true; + if (gettype($attr8_true) === '' && gettype($attr8_true) === '1') + $exec = $$attr8_true == true; else - $exec = $attr_true == true; + $exec = $attr8_true == true; } // Falsch-Vergleich - elseif ( isset($attr_false) ) + elseif ( isset($attr8_false) ) { - if (gettype($attr_false) === '' && gettype($attr_false) === '1') - $exec = $$attr_false == false; + if (gettype($attr8_false) === '' && gettype($attr8_false) === '1') + $exec = $$attr8_false == false; else - $exec = $attr_false == false; + $exec = $attr8_false == false; } // Inhalt-Vergleich mit Wertliste - elseif( isset($attr_contains) ) - $exec = in_array($$attr_var,explode(',',$attr_contains)); + elseif( isset($attr8_contains) ) + $exec = in_array($attr8_value,explode(',',$attr8_contains)); // Inhalt-Vergleich - elseif( isset($attr_var) ) - $exec = $$attr_var == $attr_value; + elseif( isset($attr8_equals)&& isset($attr8_value) ) + $exec = $attr8_equals == $attr8_value; // Vergleich auf leer - elseif ( isset($attr_empty) ) + elseif ( isset($attr8_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($$attr8_empty) ) + $exec = empty($attr8_empty); + elseif ( is_array($$attr8_empty) ) + $exec = (count($$attr8_empty)==0); + elseif ( is_bool($$attr8_empty) ) $exec = true; else - $exec = empty( $$attr_empty ); + $exec = empty( $$attr8_empty ); } // Vergleich auf Vorhandensein - elseif ( isset($attr_present) ) + elseif ( isset($attr8_present) ) { - if ( !isset($$attr_present) ) + if ( !isset($$attr8_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; + 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 { - Html::debug( $attr ); + Html::debug( $attr8 ); echo("error in IF line ".__LINE__); echo("assume: FALSE"); $exec = false; } // Ergebnis umdrehen - if ( !empty($attr_invert) ) + if ( !empty($attr8_invert) ) $exec = !$exec; // Ergebnis umdrehen - if ( !empty($attr_not) ) + if ( !empty($attr8_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($attr8_true); + unset($attr8_false); + unset($attr8_notempty); + unset($attr8_empty); + unset($attr8_contains); + unset($attr8_present); + unset($attr8_invert); + unset($attr8_not); + unset($attr8_value); + unset($attr8_equals); $last_exec = $exec; if ( $exec ) { -?><?php unset($attr) ?><?php unset($attr_present) ?><?php $attr = array('title'=>'','target'=>'_top','url'=>$conf['login']['logo']['url'],'class'=>'') ?><?php $attr_title='' ?><?php $attr_target='_top' ?><?php $attr_url=$conf['login']['logo']['url'] ?><?php $attr_class='' ?><?php - if(!empty($attr_url)) - $tmp_url = $attr_url; +?><?php unset($attr8) ?><?php unset($attr8_present) ?><?php $attr9 = array('target'=>'_top','url'=>$conf['login']['logo']['url']) ?><?php $attr9_target='_top' ?><?php $attr9_url=$conf['login']['logo']['url'] ?><?php + if(!empty($attr9_url)) + $tmp_url = $attr9_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('url'=>$conf['login']['logo']['file'],'align'=>'left') ?><?php $attr_url=$conf['login']['logo']['file'] ?><?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_url) ?><?php unset($attr_align) ?><?php $attr = array() ?></a><?php unset($attr) ?><?php $attr = array() ?><?php - } - -?><?php unset($attr) ?><?php $attr = array('empty'=>$conf['login']['logo']['url']) ?><?php $attr_empty=$conf['login']['logo']['url'] ?><?php + $tmp_url = Html::url($attr9_action,$attr9_subaction,!empty($$attr9_id)?$$attr9_id:$this->getRequestId(),array(!empty($var1)?$var1:'asdf'=>!empty($value1)?$$value1:'')); +?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr9_class ?>" target="<?php echo $attr9_target ?>" title="<?php echo $attr9_title ?>"><?php unset($attr9) ?><?php unset($attr9_target) ?><?php unset($attr9_url) ?><?php $attr10 = array('url'=>$conf['login']['logo']['file'],'align'=>'left') ?><?php $attr10_url=$conf['login']['logo']['file'] ?><?php $attr10_align='left' ?><?php +if (isset($attr10_elementtype)) { +?><img src="<?php echo $image_dir.'icon_el_'.$attr10_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr10_align ?>"><?php +} elseif (isset($attr10_type)) { +?><img src="<?php echo $image_dir.'icon_'.$attr10_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr10_align ?>"><?php +} elseif (isset($attr10_icon)) { +?><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_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 + } + +?><?php unset($attr7) ?><?php $attr8 = array('empty'=>$conf['login']['logo']['url']) ?><?php $attr8_empty=$conf['login']['logo']['url'] ?><?php // Wahr-Vergleich -// Html::debug($attr); +// Html::debug($attr8); - if ( isset($attr_true) ) + if ( isset($attr8_true) ) { - if (gettype($attr_true) === '' && gettype($attr_true) === '1') - $exec = $$attr_true == true; + if (gettype($attr8_true) === '' && gettype($attr8_true) === '1') + $exec = $$attr8_true == true; else - $exec = $attr_true == true; + $exec = $attr8_true == true; } // Falsch-Vergleich - elseif ( isset($attr_false) ) + elseif ( isset($attr8_false) ) { - if (gettype($attr_false) === '' && gettype($attr_false) === '1') - $exec = $$attr_false == false; + if (gettype($attr8_false) === '' && gettype($attr8_false) === '1') + $exec = $$attr8_false == false; else - $exec = $attr_false == false; + $exec = $attr8_false == false; } // Inhalt-Vergleich mit Wertliste - elseif( isset($attr_contains) ) - $exec = in_array($$attr_var,explode(',',$attr_contains)); + elseif( isset($attr8_contains) ) + $exec = in_array($attr8_value,explode(',',$attr8_contains)); // Inhalt-Vergleich - elseif( isset($attr_var) ) - $exec = $$attr_var == $attr_value; + elseif( isset($attr8_equals)&& isset($attr8_value) ) + $exec = $attr8_equals == $attr8_value; // Vergleich auf leer - elseif ( isset($attr_empty) ) + elseif ( isset($attr8_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($$attr8_empty) ) + $exec = empty($attr8_empty); + elseif ( is_array($$attr8_empty) ) + $exec = (count($$attr8_empty)==0); + elseif ( is_bool($$attr8_empty) ) $exec = true; else - $exec = empty( $$attr_empty ); + $exec = empty( $$attr8_empty ); } // Vergleich auf Vorhandensein - elseif ( isset($attr_present) ) + elseif ( isset($attr8_present) ) { - if ( !isset($$attr_present) ) + if ( !isset($$attr8_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; + 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 { - Html::debug( $attr ); + Html::debug( $attr8 ); echo("error in IF line ".__LINE__); echo("assume: FALSE"); $exec = false; } // Ergebnis umdrehen - if ( !empty($attr_invert) ) + if ( !empty($attr8_invert) ) $exec = !$exec; // Ergebnis umdrehen - if ( !empty($attr_not) ) + if ( !empty($attr8_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($attr8_true); + unset($attr8_false); + unset($attr8_notempty); + unset($attr8_empty); + unset($attr8_contains); + unset($attr8_present); + unset($attr8_invert); + unset($attr8_not); + unset($attr8_value); + unset($attr8_equals); $last_exec = $exec; if ( $exec ) { -?><?php unset($attr) ?><?php unset($attr_empty) ?><?php $attr = array('url'=>$conf['login']['logo']['file'],'align'=>'left') ?><?php $attr_url=$conf['login']['logo']['file'] ?><?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_url) ?><?php unset($attr_align) ?><?php $attr = array() ?><?php +?><?php unset($attr8) ?><?php unset($attr8_empty) ?><?php $attr9 = array('url'=>$conf['login']['logo']['file'],'align'=>'left') ?><?php $attr9_url=$conf['login']['logo']['file'] ?><?php $attr9_align='left' ?><?php +if (isset($attr9_elementtype)) { +?><img src="<?php echo $image_dir.'icon_el_'.$attr9_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php +} elseif (isset($attr9_type)) { +?><img src="<?php echo $image_dir.'icon_'.$attr9_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php +} elseif (isset($attr9_icon)) { +?><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_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 } -?><?php unset($attr) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php +?><?php unset($attr7) ?><?php $attr6 = array() ?></td><?php unset($attr6) ?><?php $attr5 = array() ?></tr><?php unset($attr5) ?><?php $attr4 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array() ?><?php +?><?php unset($attr4) ?><?php $attr3 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array('present'=>$conf['login']['motd']) ?><?php $attr_present=$conf['login']['motd'] ?><?php +?><?php unset($attr3) ?><?php $attr4 = array('present'=>$conf['login']['motd']) ?><?php $attr4_present=$conf['login']['motd'] ?><?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) ) + if ( !isset($$attr4_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; + 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) ) + 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_present) ?><?php $attr = array() ?><?php +?><?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($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'=>'motd','colspan'=>'2') ?><?php $attr_class='motd' ?><?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'=>'motd','colspan'=>'2') ?><?php $attr6_class='motd' ?><?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( $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','raw'=>$conf['login']['motd']) ?><?php $attr_class='text' ?><?php $attr_raw=$conf['login']['motd'] ?><?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 unset($attr6_colspan) ?><?php $attr7 = array('class'=>'text','raw'=>$conf['login']['motd']) ?><?php $attr7_class='text' ?><?php $attr7_raw=$conf['login']['motd'] ?><?php + 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]; - 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() ?></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_raw) ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array('true'=>$conf['login']['nologin']) ?><?php $attr_true=$conf['login']['nologin'] ?><?php +?><?php unset($attr3) ?><?php $attr4 = array('true'=>$conf['login']['nologin']) ?><?php $attr4_true=$conf['login']['nologin'] ?><?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) ) + if ( !isset($$attr4_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; + 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) ) + 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_true) ?><?php $attr = array() ?><?php +?><?php unset($attr4) ?><?php unset($attr4_true) ?><?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'=>'help','colspan'=>'2') ?><?php $attr_class='help' ?><?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'=>'help','colspan'=>'2') ?><?php $attr6_class='help' ?><?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( $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','key'=>'LOGIN_NOLOGIN_DESC') ?><?php $attr_class='text' ?><?php $attr_key='LOGIN_NOLOGIN_DESC' ?><?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 unset($attr6_colspan) ?><?php $attr7 = array('class'=>'text','key'=>'LOGIN_NOLOGIN_DESC') ?><?php $attr7_class='text' ?><?php $attr7_key='LOGIN_NOLOGIN_DESC' ?><?php + 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]; - 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_key) ?><?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_key) ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array('true'=>$conf['security']['readonly']) ?><?php $attr_true=$conf['security']['readonly'] ?><?php +?><?php unset($attr3) ?><?php $attr4 = array('true'=>$conf['security']['readonly']) ?><?php $attr4_true=$conf['security']['readonly'] ?><?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) ) + if ( !isset($$attr4_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; + 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) ) + 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_true) ?><?php $attr = array() ?><?php +?><?php unset($attr4) ?><?php unset($attr4_true) ?><?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'=>'help','colspan'=>'2') ?><?php $attr_class='help' ?><?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'=>'help','colspan'=>'2') ?><?php $attr6_class='help' ?><?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( $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','key'=>'GLOBAL_READONLY_DESC') ?><?php $attr_class='text' ?><?php $attr_key='GLOBAL_READONLY_DESC' ?><?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 unset($attr6_colspan) ?><?php $attr7 = array('class'=>'text','key'=>'GLOBAL_READONLY_DESC') ?><?php $attr7_class='text' ?><?php $attr7_key='GLOBAL_READONLY_DESC' ?><?php + 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]; - 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_key) ?><?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_key) ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array('true'=>$conf['security']['nopublish']) ?><?php $attr_true=$conf['security']['nopublish'] ?><?php +?><?php unset($attr3) ?><?php $attr4 = array('true'=>$conf['security']['nopublish']) ?><?php $attr4_true=$conf['security']['nopublish'] ?><?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) ) + if ( !isset($$attr4_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; + 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) ) + 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_true) ?><?php $attr = array() ?><?php +?><?php unset($attr4) ?><?php unset($attr4_true) ?><?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'=>'help','colspan'=>'2') ?><?php $attr_class='help' ?><?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'=>'help','colspan'=>'2') ?><?php $attr6_class='help' ?><?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( $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','key'=>'GLOBAL_NOPUBLISH_DESC') ?><?php $attr_class='text' ?><?php $attr_key='GLOBAL_NOPUBLISH_DESC' ?><?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 unset($attr6_colspan) ?><?php $attr7 = array('class'=>'text','key'=>'GLOBAL_NOPUBLISH_DESC') ?><?php $attr7_class='text' ?><?php $attr7_key='GLOBAL_NOPUBLISH_DESC' ?><?php + 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]; - 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_key) ?><?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_key) ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array('false'=>$conf['login']['nologin']) ?><?php $attr_false=$conf['login']['nologin'] ?><?php +?><?php unset($attr3) ?><?php $attr4 = array('false'=>$conf['login']['nologin']) ?><?php $attr4_false=$conf['login']['nologin'] ?><?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) ) + if ( !isset($$attr4_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; + 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) ) + 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_false) ?><?php $attr = array() ?><?php +?><?php unset($attr4) ?><?php unset($attr4_false) ?><?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'=>'logo','colspan'=>'2') ?><?php $attr_class='logo' ?><?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'=>'logo','colspan'=>'2') ?><?php $attr6_class='logo' ?><?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( $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('name'=>'login') ?><?php $attr_name='login' ?><img src="<?php echo $image_dir.'logo_'.$attr_name.IMG_ICON_EXT ?>" border="0" align="left"><h2 class="logo"><?php echo lang('logo_'.$attr_name) ?></h2><p class="logo"><?php echo lang('logo_'.$attr_name.'_text') ?></p><?php unset($attr) ?><?php unset($attr_name) ?><?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_class) ?><?php unset($attr6_colspan) ?><?php $attr7 = array('name'=>'login') ?><?php $attr7_name='login' ?><img src="<?php echo $image_dir.'logo_'.$attr7_name.IMG_ICON_EXT ?>" border="0" align="left"><h2 class="logo"><?php echo lang('logo_'.$attr7_name) ?></h2><p class="logo"><?php echo lang('logo_'.$attr7_name.'_text') ?></p><?php unset($attr7) ?><?php unset($attr7_name) ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?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('width'=>'50%','class'=>'fx') ?><?php $attr_width='50%' ?><?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('width'=>'50%','class'=>'fx') ?><?php $attr6_width='50%' ?><?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_width) ?><?php unset($attr_class) ?><?php $attr = array('class'=>'text','key'=>'USER_USERNAME') ?><?php $attr_class='text' ?><?php $attr_key='USER_USERNAME' ?><?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_width) ?><?php unset($attr6_class) ?><?php $attr7 = array('class'=>'text','key'=>'USER_USERNAME') ?><?php $attr7_class='text' ?><?php $attr7_key='USER_USERNAME' ?><?php + 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]; - 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_key) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('width'=>'50%','class'=>'fx') ?><?php $attr_width='50%' ?><?php $attr_class='fx' ?><?php -// if (empty($attr_class)) -// $attr['class']=$row_class; +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_key) ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr6 = array('width'=>'50%','class'=>'fx') ?><?php $attr6_width='50%' ?><?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_width) ?><?php unset($attr_class) ?><?php $attr = array('not'=>'1','present'=>'force_username') ?><?php $attr_not='1' ?><?php $attr_present='force_username' ?><?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('not'=>'1','present'=>'force_username') ?><?php $attr7_not='1' ?><?php $attr7_present='force_username' ?><?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) ) + if ( !isset($$attr7_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; + 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) ) + 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_not) ?><?php unset($attr_present) ?><?php $attr = array('class'=>'','default'=>'','type'=>'text','name'=>'login_name','value'=>'','size'=>'25','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_name='login_name' ?><?php $attr_value='' ?><?php $attr_size='25' ?><?php $attr_maxlength='256' ?><?php $attr_onchange='' ?><input id="id<?php echo $attr_name ?>" name="<?php echo $attr_name ?>" type="<?php echo $attr_type ?>" 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 ?>" onxxxMouseOver="this.focus();" /><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><?php unset($attr_type) ?><?php unset($attr_name) ?><?php unset($attr_value) ?><?php unset($attr_size) ?><?php unset($attr_maxlength) ?><?php unset($attr_onchange) ?><?php $attr = 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($attr) ?><?php $attr = array() ?><?php +?><?php unset($attr6) ?><?php $attr7 = array() ?><?php if ( !$last_exec ) { -?><?php unset($attr) ?><?php $attr = array('class'=>'','default'=>'','type'=>'hidden','name'=>'login_name','value'=>$force_username,'size'=>'40','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='hidden' ?><?php $attr_name='login_name' ?><?php $attr_value=$force_username ?><?php $attr_size='40' ?><?php $attr_maxlength='256' ?><?php $attr_onchange='' ?><input id="id<?php echo $attr_name ?>" name="<?php echo $attr_name ?>" type="<?php echo $attr_type ?>" 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 ?>" onxxxMouseOver="this.focus();" /><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><?php unset($attr_type) ?><?php unset($attr_name) ?><?php unset($attr_value) ?><?php unset($attr_size) ?><?php unset($attr_maxlength) ?><?php unset($attr_onchange) ?><?php $attr = array('class'=>'text','value'=>$force_username) ?><?php $attr_class='text' ?><?php $attr_value=$force_username ?><?php - if(empty($attr_title)) - if (!empty($attr_key)) - $attr_title = lang($attr_key).'_HELP'; +?><?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(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]; - 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 $$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 - { 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_value) ?><?php $attr = array() ?><?php +?></span><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_value) ?><?php $attr6 = 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($attr6) ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?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('width'=>'50%','class'=>'fx') ?><?php $attr_width='50%' ?><?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('width'=>'50%','class'=>'fx') ?><?php $attr6_width='50%' ?><?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_width) ?><?php unset($attr_class) ?><?php $attr = array('class'=>'text','key'=>'USER_PASSWORD') ?><?php $attr_class='text' ?><?php $attr_key='USER_PASSWORD' ?><?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_width) ?><?php unset($attr6_class) ?><?php $attr7 = array('class'=>'text','key'=>'USER_PASSWORD') ?><?php $attr7_class='text' ?><?php $attr7_key='USER_PASSWORD' ?><?php + 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]; - 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_key) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('width'=>'50%','class'=>'fx') ?><?php $attr_width='50%' ?><?php $attr_class='fx' ?><?php -// if (empty($attr_class)) -// $attr['class']=$row_class; +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_key) ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr6 = array('width'=>'50%','class'=>'fx') ?><?php $attr6_width='50%' ?><?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_width) ?><?php unset($attr_class) ?><?php $attr = array('name'=>'login_password','default'=>'','class'=>'','size'=>'25','maxlength'=>'256') ?><?php $attr_name='login_password' ?><?php $attr_default='' ?><?php $attr_class='' ?><?php $attr_size='25' ?><?php $attr_maxlength='256' ?><input type="password" 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_name) ?><?php unset($attr_default) ?><?php unset($attr_class) ?><?php unset($attr_size) ?><?php unset($attr_maxlength) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array('true'=>$this->mustChangePassword) ?><?php $attr_true=$this->mustChangePassword ?><?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('name'=>'login_password','default'=>'','size'=>'25','maxlength'=>'256') ?><?php $attr7_name='login_password' ?><?php $attr7_default='' ?><?php $attr7_size='25' ?><?php $attr7_maxlength='256' ?><input type="password" name="<?php echo $attr7_name ?>" 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 ?>" /><?php unset($attr7) ?><?php unset($attr7_name) ?><?php unset($attr7_default) ?><?php unset($attr7_size) ?><?php unset($attr7_maxlength) ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr5 = array('true'=>$this->mustChangePassword) ?><?php $attr5_true=$this->mustChangePassword ?><?php // Wahr-Vergleich -// Html::debug($attr); +// Html::debug($attr5); - if ( isset($attr_true) ) + if ( isset($attr5_true) ) { - if (gettype($attr_true) === '' && gettype($attr_true) === '1') - $exec = $$attr_true == true; + if (gettype($attr5_true) === '' && gettype($attr5_true) === '1') + $exec = $$attr5_true == true; else - $exec = $attr_true == true; + $exec = $attr5_true == true; } // Falsch-Vergleich - elseif ( isset($attr_false) ) + elseif ( isset($attr5_false) ) { - if (gettype($attr_false) === '' && gettype($attr_false) === '1') - $exec = $$attr_false == false; + if (gettype($attr5_false) === '' && gettype($attr5_false) === '1') + $exec = $$attr5_false == false; else - $exec = $attr_false == false; + $exec = $attr5_false == false; } // Inhalt-Vergleich mit Wertliste - elseif( isset($attr_contains) ) - $exec = in_array($$attr_var,explode(',',$attr_contains)); + elseif( isset($attr5_contains) ) + $exec = in_array($attr5_value,explode(',',$attr5_contains)); // Inhalt-Vergleich - elseif( isset($attr_var) ) - $exec = $$attr_var == $attr_value; + elseif( isset($attr5_equals)&& isset($attr5_value) ) + $exec = $attr5_equals == $attr5_value; // Vergleich auf leer - elseif ( isset($attr_empty) ) + elseif ( isset($attr5_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($$attr5_empty) ) + $exec = empty($attr5_empty); + elseif ( is_array($$attr5_empty) ) + $exec = (count($$attr5_empty)==0); + elseif ( is_bool($$attr5_empty) ) $exec = true; else - $exec = empty( $$attr_empty ); + $exec = empty( $$attr5_empty ); } // Vergleich auf Vorhandensein - elseif ( isset($attr_present) ) + elseif ( isset($attr5_present) ) { - if ( !isset($$attr_present) ) + if ( !isset($$attr5_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; + 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 { - Html::debug( $attr ); + Html::debug( $attr5 ); echo("error in IF line ".__LINE__); echo("assume: FALSE"); $exec = false; } // Ergebnis umdrehen - if ( !empty($attr_invert) ) + if ( !empty($attr5_invert) ) $exec = !$exec; // Ergebnis umdrehen - if ( !empty($attr_not) ) + if ( !empty($attr5_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($attr5_true); + unset($attr5_false); + unset($attr5_notempty); + unset($attr5_empty); + unset($attr5_contains); + unset($attr5_present); + unset($attr5_invert); + unset($attr5_not); + unset($attr5_value); + unset($attr5_equals); $last_exec = $exec; if ( $exec ) { -?><?php unset($attr) ?><?php unset($attr_true) ?><?php $attr = array() ?><?php +?><?php unset($attr5) ?><?php unset($attr5_true) ?><?php $attr6 = 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($attr6_class)) + $attr6_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'=>'50%','class'=>'fx') ?><?php $attr_width='50%' ?><?php $attr_class='fx' ?><?php -// if (empty($attr_class)) -// $attr['class']=$row_class; +?><tr class="<?php echo $attr6_class ?>"><?php unset($attr6) ?><?php $attr7 = array('width'=>'50%','class'=>'fx') ?><?php $attr7_width='50%' ?><?php $attr7_class='fx' ?><?php +// if (empty($attr7_class)) +// $attr7['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($attr7_class)) + $attr7['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($attr7_rowspan) ) + $attr7['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','key'=>'USER_NEW_PASSWORD') ?><?php $attr_class='text' ?><?php $attr_key='USER_NEW_PASSWORD' ?><?php - if(empty($attr_title)) - if (!empty($attr_key)) - $attr_title = lang($attr_key).'_HELP'; +?><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(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]; - 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 $$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 - { 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_key) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('width'=>'50%','class'=>'fx') ?><?php $attr_width='50%' ?><?php $attr_class='fx' ?><?php -// if (empty($attr_class)) -// $attr['class']=$row_class; +?></span><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_key) ?><?php $attr6 = array() ?></td><?php unset($attr6) ?><?php $attr7 = array('width'=>'50%','class'=>'fx') ?><?php $attr7_width='50%' ?><?php $attr7_class='fx' ?><?php +// if (empty($attr7_class)) +// $attr7['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($attr7_class)) + $attr7['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($attr7_rowspan) ) + $attr7['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('name'=>'password1','default'=>'','class'=>'','size'=>'25','maxlength'=>'256') ?><?php $attr_name='password1' ?><?php $attr_default='' ?><?php $attr_class='' ?><?php $attr_size='25' ?><?php $attr_maxlength='256' ?><input type="password" 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_name) ?><?php unset($attr_default) ?><?php unset($attr_class) ?><?php unset($attr_size) ?><?php unset($attr_maxlength) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php +?><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('name'=>'password1','default'=>'','size'=>'25','maxlength'=>'256') ?><?php $attr8_name='password1' ?><?php $attr8_default='' ?><?php $attr8_size='25' ?><?php $attr8_maxlength='256' ?><input type="password" name="<?php echo $attr8_name ?>" 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 ?>" /><?php unset($attr8) ?><?php unset($attr8_name) ?><?php unset($attr8_default) ?><?php unset($attr8_size) ?><?php unset($attr8_maxlength) ?><?php $attr6 = array() ?></td><?php unset($attr6) ?><?php $attr5 = array() ?></tr><?php unset($attr5) ?><?php $attr6 = 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($attr6_class)) + $attr6_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'=>'50%','class'=>'fx') ?><?php $attr_width='50%' ?><?php $attr_class='fx' ?><?php -// if (empty($attr_class)) -// $attr['class']=$row_class; +?><tr class="<?php echo $attr6_class ?>"><?php unset($attr6) ?><?php $attr7 = array('width'=>'50%','class'=>'fx') ?><?php $attr7_width='50%' ?><?php $attr7_class='fx' ?><?php +// if (empty($attr7_class)) +// $attr7['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($attr7_class)) + $attr7['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($attr7_rowspan) ) + $attr7['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','key'=>'USER_NEW_PASSWORD_REPEAT') ?><?php $attr_class='text' ?><?php $attr_key='USER_NEW_PASSWORD_REPEAT' ?><?php - if(empty($attr_title)) - if (!empty($attr_key)) - $attr_title = lang($attr_key).'_HELP'; +?><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(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]; - 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 $$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 - { 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_key) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('width'=>'50%','class'=>'fx') ?><?php $attr_width='50%' ?><?php $attr_class='fx' ?><?php -// if (empty($attr_class)) -// $attr['class']=$row_class; +?></span><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_key) ?><?php $attr6 = array() ?></td><?php unset($attr6) ?><?php $attr7 = array('width'=>'50%','class'=>'fx') ?><?php $attr7_width='50%' ?><?php $attr7_class='fx' ?><?php +// if (empty($attr7_class)) +// $attr7['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($attr7_class)) + $attr7['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($attr7_rowspan) ) + $attr7['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('name'=>'password2','default'=>'','class'=>'','size'=>'25','maxlength'=>'256') ?><?php $attr_name='password2' ?><?php $attr_default='' ?><?php $attr_class='' ?><?php $attr_size='25' ?><?php $attr_maxlength='256' ?><input type="password" 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_name) ?><?php unset($attr_default) ?><?php unset($attr_class) ?><?php unset($attr_size) ?><?php unset($attr_maxlength) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php +?><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('name'=>'password2','default'=>'','size'=>'25','maxlength'=>'256') ?><?php $attr8_name='password2' ?><?php $attr8_default='' ?><?php $attr8_size='25' ?><?php $attr8_maxlength='256' ?><input type="password" name="<?php echo $attr8_name ?>" 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 ?>" /><?php unset($attr8) ?><?php unset($attr8_name) ?><?php unset($attr8_default) ?><?php unset($attr8_size) ?><?php unset($attr8_maxlength) ?><?php $attr6 = array() ?></td><?php unset($attr6) ?><?php $attr5 = array() ?></tr><?php unset($attr5) ?><?php $attr4 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array() ?><?php +?><?php unset($attr4) ?><?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('width'=>'50%','class'=>'fx') ?><?php $attr_width='50%' ?><?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('width'=>'50%','class'=>'fx') ?><?php $attr6_width='50%' ?><?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_width) ?><?php unset($attr_class) ?><?php $attr = array('class'=>'text','key'=>'GLOBAL_DATABASE') ?><?php $attr_class='text' ?><?php $attr_key='GLOBAL_DATABASE' ?><?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_width) ?><?php unset($attr6_class) ?><?php $attr7 = array('class'=>'text','key'=>'GLOBAL_DATABASE') ?><?php $attr7_class='text' ?><?php $attr7_key='GLOBAL_DATABASE' ?><?php + 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]; - 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_key) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('width'=>'50%','class'=>'fx') ?><?php $attr_width='50%' ?><?php $attr_class='fx' ?><?php -// if (empty($attr_class)) -// $attr['class']=$row_class; +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_key) ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr6 = array('width'=>'50%','class'=>'fx') ?><?php $attr6_width='50%' ?><?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_width) ?><?php unset($attr_class) ?><?php $attr = array('list'=>'dbids','name'=>'dbid','default'=>'actdbid','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='dbids' ?><?php $attr_name='dbid' ?><?php $attr_default='actdbid' ?><?php $attr_onchange='' ?><?php $attr_title='' ?><?php $attr_class='' ?><select size="1" id="id<?php echo $attr_name ?>" 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"' +?><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( $$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('name'=>'screenwidth','default'=>'9999') ?><?php $attr_name='screenwidth' ?><?php $attr_default='9999' ?><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() ?></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 unset($attr7_default) ?><?php $attr7 = array('name'=>'screenwidth','default'=>'9999') ?><?php $attr7_name='screenwidth' ?><?php $attr7_default='9999' ?><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 $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?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'=>'act','colspan'=>'2') ?><?php $attr_class='act' ?><?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'=>'act','colspan'=>'2') ?><?php $attr6_class='act' ?><?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( $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( $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('type'=>'ok','class'=>'ok','value'=>'ok','text'=>'button_ok') ?><?php $attr7_type='ok' ?><?php $attr7_class='ok' ?><?php $attr7_value='ok' ?><?php $attr7_text='button_ok' ?><?php + if ($attr7_type=='ok') { - $attr_type = 'submit'; -// $attr_class = 'ok'; -// $attr_text = 'BUTTON_OK'; -// $attr_value = 'ok'; + $attr7_type = 'submit'; +// $attr7_class = 'ok'; +// $attr7_text = 'BUTTON_OK'; +// $attr7_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) ?><script name="javascript1.2" type="text/javascript"> +?><input type="<?php echo $attr7_type ?>" name="<?php echo $attr7_value ?>" class="<?php echo $attr7_class ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo lang($attr7_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($attr7) ?><?php unset($attr7_type) ?><?php unset($attr7_class) ?><?php unset($attr7_value) ?><?php unset($attr7_text) ?><script name="javascript1.2" type="text/javascript"> <!-- document.forms[0].screenwidth.value=window.innerWidth; // --> </script> -<?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php +<?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> @@ -2020,166 +2049,168 @@ document.forms[0].screenwidth.value=window.innerWidth; <?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() ?><br/><?php unset($attr) ?><?php $attr = array() ?><br/><?php unset($attr) ?><?php $attr = array('title'=>'','target'=>'_top','url'=>$conf['login']['gpl']['url'],'class'=>'') ?><?php $attr_title='' ?><?php $attr_target='_top' ?><?php $attr_url=$conf['login']['gpl']['url'] ?><?php $attr_class='' ?><?php - if(!empty($attr_url)) - $tmp_url = $attr_url; +<?php unset($attr1) ?><?php $attr2 = array() ?><br/><?php unset($attr2) ?><?php $attr2 = array() ?><br/><?php unset($attr2) ?><?php $attr2 = array('target'=>'_top','url'=>$conf['login']['gpl']['url']) ?><?php $attr2_target='_top' ?><?php $attr2_url=$conf['login']['gpl']['url'] ?><?php + if(!empty($attr2_url)) + $tmp_url = $attr2_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','value'=>lang('GLOBAL_GPL')) ?><?php $attr_class='text' ?><?php $attr_value=lang('GLOBAL_GPL') ?><?php - if(empty($attr_title)) - if (!empty($attr_key)) - $attr_title = lang($attr_key).'_HELP'; + $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(empty($attr3_title)) + if (!empty($attr3_key)) + $attr3_title = lang($attr3_key).'_HELP'; else - $attr_title = ''; + $attr3_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) +?><span class="<?php echo $attr3_class ?>" title="<?php echo $attr3_title ?>"><?php + $attr3_title = ''; + if (!empty($attr3_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 $$attr3_array[$attr3_var].'%'; + $tmpArray = $$attr3_array; + if (!empty($attr3_var)) + $tmp_text = $tmpArray[$attr3_var]; + else + $tmp_text = lang($tmpArray[$attr3_text]); + } + elseif (!empty($attr3_text)) + if ( isset($$attr3_text)) + $tmp_text = lang($$attr3_text); + else + $tmp_text = lang($attr3_text); + elseif (!empty($attr3_textvar)) + $tmp_text = lang($$attr3_textvar); + elseif (!empty($attr3_key)) + $tmp_text = lang($attr3_key); + elseif (!empty($attr3_var)) + $tmp_text = isset($$attr3_var)?htmlentities($$attr3_var):'error: variable '.$attr3_var.' not present'; + elseif (!empty($attr3_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr3_raw); + elseif (!empty($attr3_value)) + $tmp_text = $attr3_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr3);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr3_maxlength) && intval($attr3_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr3_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_value) ?><?php $attr = array() ?></a><?php unset($attr) ?><?php $attr = array('present'=>'force_username') ?><?php $attr_present='force_username' ?><?php +?></span><?php unset($attr3) ?><?php unset($attr3_class) ?><?php unset($attr3_value) ?><?php $attr1 = array() ?></a><?php unset($attr1) ?><?php $attr2 = array('present'=>'force_username') ?><?php $attr2_present='force_username' ?><?php // Wahr-Vergleich -// Html::debug($attr); +// Html::debug($attr2); - if ( isset($attr_true) ) + if ( isset($attr2_true) ) { - if (gettype($attr_true) === '' && gettype($attr_true) === '1') - $exec = $$attr_true == true; + if (gettype($attr2_true) === '' && gettype($attr2_true) === '1') + $exec = $$attr2_true == true; else - $exec = $attr_true == true; + $exec = $attr2_true == true; } // Falsch-Vergleich - elseif ( isset($attr_false) ) + elseif ( isset($attr2_false) ) { - if (gettype($attr_false) === '' && gettype($attr_false) === '1') - $exec = $$attr_false == false; + if (gettype($attr2_false) === '' && gettype($attr2_false) === '1') + $exec = $$attr2_false == false; else - $exec = $attr_false == false; + $exec = $attr2_false == false; } // Inhalt-Vergleich mit Wertliste - elseif( isset($attr_contains) ) - $exec = in_array($$attr_var,explode(',',$attr_contains)); + elseif( isset($attr2_contains) ) + $exec = in_array($attr2_value,explode(',',$attr2_contains)); // Inhalt-Vergleich - elseif( isset($attr_var) ) - $exec = $$attr_var == $attr_value; + elseif( isset($attr2_equals)&& isset($attr2_value) ) + $exec = $attr2_equals == $attr2_value; // Vergleich auf leer - elseif ( isset($attr_empty) ) + elseif ( isset($attr2_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($$attr2_empty) ) + $exec = empty($attr2_empty); + elseif ( is_array($$attr2_empty) ) + $exec = (count($$attr2_empty)==0); + elseif ( is_bool($$attr2_empty) ) $exec = true; else - $exec = empty( $$attr_empty ); + $exec = empty( $$attr2_empty ); } // Vergleich auf Vorhandensein - elseif ( isset($attr_present) ) + elseif ( isset($attr2_present) ) { - if ( !isset($$attr_present) ) + if ( !isset($$attr2_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; + 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 { - Html::debug( $attr ); + Html::debug( $attr2 ); echo("error in IF line ".__LINE__); echo("assume: FALSE"); $exec = false; } // Ergebnis umdrehen - if ( !empty($attr_invert) ) + if ( !empty($attr2_invert) ) $exec = !$exec; // Ergebnis umdrehen - if ( !empty($attr_not) ) + if ( !empty($attr2_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($attr2_true); + unset($attr2_false); + unset($attr2_notempty); + unset($attr2_empty); + unset($attr2_contains); + unset($attr2_present); + unset($attr2_invert); + unset($attr2_not); + unset($attr2_value); + unset($attr2_equals); $last_exec = $exec; if ( $exec ) { -?><?php unset($attr) ?><?php unset($attr_present) ?><?php $attr = array('field'=>'login_password') ?><?php $attr_field='login_password' ?> +?><?php unset($attr2) ?><?php unset($attr2_present) ?><?php $attr3 = array('field'=>'login_password') ?><?php $attr3_field='login_password' ?> <script name="JavaScript" type="text/javascript"> <!-- -document.forms[0].<?php echo $attr_field ?>.focus(); -document.forms[0].<?php echo $attr_field ?>.select(); +document.forms[0].<?php echo $attr3_field ?>.focus(); +document.forms[0].<?php echo $attr3_field ?>.select(); // --> </script> -<?php unset($attr) ?><?php unset($attr_field) ?><?php $attr = array() ?><?php +<?php unset($attr3) ?><?php unset($attr3_field) ?><?php $attr1 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array() ?><?php +?><?php unset($attr1) ?><?php $attr2 = array() ?><?php if ( !$last_exec ) { -?><?php unset($attr) ?><?php $attr = array('field'=>'login_name') ?><?php $attr_field='login_name' ?> +?><?php unset($attr2) ?><?php $attr3 = array('field'=>'login_name') ?><?php $attr3_field='login_name' ?> <script name="JavaScript" type="text/javascript"> <!-- -document.forms[0].<?php echo $attr_field ?>.focus(); -document.forms[0].<?php echo $attr_field ?>.select(); +document.forms[0].<?php echo $attr3_field ?>.focus(); +document.forms[0].<?php echo $attr3_field ?>.select(); // --> </script> -<?php unset($attr) ?><?php unset($attr_field) ?><?php $attr = array() ?><?php +<?php unset($attr3) ?><?php unset($attr3_field) ?><?php $attr1 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array() ?> +?><?php unset($attr1) ?><?php $attr0 = array() ?> <!-- $Id$ --> <?php if ($showDuration) { ?> @@ -2190,4 +2221,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/main/show.tpl.php b/themes/default/pages/html/main/show.tpl.php @@ -1,16 +1,25 @@ -<?php $attr = array() ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN"> +<?php $attr1 = array() ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN"> <html> <!-- $Id$ --> <head> <title><?php echo $title ?> - <?php echo $cms_title ?></title> <link rel="shortcut icon" href="<?php echo $image_dir.'favicon.ico' ?>" /> + <link rel="top" title="Start" href="./" /> + <link rel="author" title="Homepage" href="http://www.openrat.de" /> + + <?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 + } +?> <meta name="robots" content="noindex,nofollow" /> </head> -<?php unset($attr) ?><?php $attr = array('rows'=>'54,*') ?><?php $attr_rows='54,*' ?><frameset -<?php echo !empty($attr_rows) ?' rows="'.$attr_rows.'"':'' ?> -<?php echo !empty($attr_columns)?' cols="'.$attr_columns.'"':'' ?> - border="0" frameborder="5" framespacing="0" bordercolor="#000000"><?php unset($attr) ?><?php unset($attr_rows) ?><?php $attr = array('file'=>$frame_src_main_menu,'name'=>'cms_main_menu') ?><?php $attr_file=$frame_src_main_menu ?><?php $attr_name='cms_main_menu' ?><frame src="<?php echo $attr_file ?>" name="<?php echo empty($attr_name)?'':$attr_name ?>" marginheight="0" marginwidth="0" scrolling="<?php echo empty($attr_scrolling)?'no':$attr_scrolling ?>"> -<?php unset($attr) ?><?php unset($attr_file) ?><?php unset($attr_name) ?><?php $attr = array('file'=>$frame_src_main_main,'name'=>'cms_main_main','scrolling'=>'auto') ?><?php $attr_file=$frame_src_main_main ?><?php $attr_name='cms_main_main' ?><?php $attr_scrolling='auto' ?><frame src="<?php echo $attr_file ?>" name="<?php echo empty($attr_name)?'':$attr_name ?>" marginheight="0" marginwidth="0" scrolling="<?php echo empty($attr_scrolling)?'no':$attr_scrolling ?>"> -<?php unset($attr) ?><?php unset($attr_file) ?><?php unset($attr_name) ?><?php unset($attr_scrolling) ?><?php $attr = array() ?></frameset> -<?php unset($attr) ?><?php $attr = array() ?> -</html><?php unset($attr) ?>- \ No newline at end of file +<?php unset($attr1) ?><?php $attr2 = array('rows'=>'54,*') ?><?php $attr2_rows='54,*' ?><frameset +<?php echo !empty($attr2_rows) ?' rows="'.$attr2_rows.'"':'' ?> +<?php echo !empty($attr2_columns)?' cols="'.$attr2_columns.'"':'' ?> + border="0" frameborder="5" framespacing="0" bordercolor="#000000"><?php unset($attr2) ?><?php unset($attr2_rows) ?><?php $attr3 = array('file'=>$frame_src_main_menu,'name'=>'cms_main_menu') ?><?php $attr3_file=$frame_src_main_menu ?><?php $attr3_name='cms_main_menu' ?><frame src="<?php echo $attr3_file ?>" name="<?php echo empty($attr3_name)?'':$attr3_name ?>" marginheight="0" marginwidth="0" scrolling="<?php echo empty($attr3_scrolling)?'no':$attr3_scrolling ?>"> +<?php unset($attr3) ?><?php unset($attr3_file) ?><?php unset($attr3_name) ?><?php $attr3 = array('file'=>$frame_src_main_main,'name'=>'cms_main_main','scrolling'=>'auto') ?><?php $attr3_file=$frame_src_main_main ?><?php $attr3_name='cms_main_main' ?><?php $attr3_scrolling='auto' ?><frame src="<?php echo $attr3_file ?>" name="<?php echo empty($attr3_name)?'':$attr3_name ?>" marginheight="0" marginwidth="0" scrolling="<?php echo empty($attr3_scrolling)?'no':$attr3_scrolling ?>"> +<?php unset($attr3) ?><?php unset($attr3_file) ?><?php unset($attr3_name) ?><?php unset($attr3_scrolling) ?><?php $attr1 = array() ?></frameset> +<?php unset($attr1) ?><?php $attr0 = array() ?> +</html><?php unset($attr0) ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/mainmenu/show.tpl.php b/themes/default/pages/html/mainmenu/show.tpl.php @@ -1,598 +1,632 @@ -<?php $attr = array('class'=>'main title') ?><?php $attr_class='main title' ?><!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 $attr_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('width'=>'100%','space'=>'0','padding'=>'5','rowclasses'=>'a,b','columnclasses'=>'a,b') ?><?php $attr_width='100%' ?><?php $attr_space='0' ?><?php $attr_padding='5' ?><?php $attr_rowclasses='a,b' ?><?php $attr_columnclasses='a,b' ?><?php +<?php unset($attr1) ?><?php unset($attr1_class) ?><?php unset($attr1_title) ?><?php $attr2 = array('width'=>'100%','space'=>'0','padding'=>'5','rowclasses'=>'a,b','columnclasses'=>'a,b') ?><?php $attr2_width='100%' ?><?php $attr2_space='0' ?><?php $attr2_padding='5' ?><?php $attr2_rowclasses='a,b' ?><?php $attr2_columnclasses='a,b' ?><?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_classes)) + if (!empty($attr2_classes)) { - $row_classes = explode(',',$attr_rowclasses); + $row_classes = explode(',',$attr2_rowclasses); $row_class_idx = 999; - unset($attr['rowclasses']); + unset($attr2['rowclasses']); } - 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); + $column_classes = explode(',',$attr2_columnclasses); - unset($attr['columnclasses']); + unset($attr2['columnclasses']); } -?><table class="<?php echo $attr_class ?>" cellspacing="<?php echo $attr_space ?>" width="<?php echo $attr_width ?>" cellpadding="<?php echo $attr_padding ?>"><?php unset($attr) ?><?php unset($attr_width) ?><?php unset($attr_space) ?><?php unset($attr_padding) ?><?php unset($attr_rowclasses) ?><?php unset($attr_columnclasses) ?><?php $attr = array() ?><?php +?><table class="<?php echo $attr2_class ?>" cellspacing="<?php echo $attr2_space ?>" width="<?php echo $attr2_width ?>" cellpadding="<?php echo $attr2_padding ?>"><?php unset($attr2) ?><?php unset($attr2_width) ?><?php unset($attr2_space) ?><?php unset($attr2_padding) ?><?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'=>'menu') ?><?php $attr_class='menu' ?><?php -// if (empty($attr_class)) -// $attr['class']=$row_class; +?><tr class="<?php echo $attr3_class ?>"><?php unset($attr3) ?><?php $attr4 = array('class'=>'menu') ?><?php $attr4_class='menu' ?><?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('align'=>'left','type'=>$type) ?><?php $attr_align='left' ?><?php $attr_type=$type ?><?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('list'=>'path','extract'=>'1','key'=>'list_key','value'=>'xy') ?><?php $attr_list='path' ?><?php $attr_extract='1' ?><?php $attr_key='list_key' ?><?php $attr_value='xy' ?><?php - $list_tmp_key = $attr_key; - $list_tmp_value = $attr_value; - $list_extract = ($attr_extract==true); +?><td <?php foreach( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_class) ?><?php $attr5 = array('align'=>'left','type'=>$type) ?><?php $attr5_align='left' ?><?php $attr5_type=$type ?><?php +if (isset($attr5_elementtype)) { +?><img src="<?php echo $image_dir.'icon_el_'.$attr5_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr5_align ?>"><?php +} elseif (isset($attr5_type)) { +?><img src="<?php echo $image_dir.'icon_'.$attr5_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr5_align ?>"><?php +} elseif (isset($attr5_icon)) { +?><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_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; + $attr5_list_tmp_value = $attr5_value; + $attr5_list_extract = ($attr5_extract==true); + if ( !is_array($$attr5_list) ) + $$attr5_list = array(); +// die('not an array in list,var='.$attr5_list); +// Html::debug($$attr5_list); - foreach( $$attr_list as $$list_tmp_key => $$list_tmp_value ) + foreach( $$attr5_list as $$attr5_list_tmp_key => $$attr5_list_tmp_value ) { - if ( $list_extract ) + if ( $attr5_list_extract ) { - if ( !is_array($$list_tmp_value) ) + if ( !is_array($$attr5_list_tmp_value) ) { - print_r($$list_tmp_value); - die( 'not an array at key: '.$$list_tmp_key ); + print_r($$attr5_list_tmp_value); + die( 'not an array at key: '.$$attr5_list_tmp_key ); } - extract($$list_tmp_value); + extract($$attr5_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('title'=>$title,'target'=>'cms_main','url'=>$url,'class'=>'path') ?><?php $attr_title=$title ?><?php $attr_target='cms_main' ?><?php $attr_url=$url ?><?php $attr_class='path' ?><?php - if(!empty($attr_url)) - $tmp_url = $attr_url; +?><?php unset($attr5) ?><?php unset($attr5_list) ?><?php unset($attr5_extract) ?><?php unset($attr5_key) ?><?php unset($attr5_value) ?><?php $attr6 = array('title'=>$title,'target'=>'cms_main','url'=>$url,'class'=>'path') ?><?php $attr6_title=$title ?><?php $attr6_target='cms_main' ?><?php $attr6_url=$url ?><?php $attr6_class='path' ?><?php + if(!empty($attr6_url)) + $tmp_url = $attr6_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','maxlength'=>'20','value'=>$name) ?><?php $attr_class='text' ?><?php $attr_maxlength='20' ?><?php $attr_value=$name ?><?php - if(empty($attr_title)) - if (!empty($attr_key)) - $attr_title = lang($attr_key).'_HELP'; + $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(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_maxlength) ?><?php unset($attr_value) ?><?php $attr = array() ?></a><?php unset($attr) ?><?php $attr = array('type'=>'filesep') ?><?php $attr_type='filesep' ?><?php - if ($attr_type=='filesep') +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_maxlength) ?><?php unset($attr7_value) ?><?php $attr5 = array() ?></a><?php unset($attr5) ?><?php $attr6 = array('type'=>'filesep') ?><?php $attr6_type='filesep' ?><?php + if ($attr6_type=='filesep') echo '&nbsp;<strong>&raquo;</strong>&nbsp;'; else echo "char error"; -?><?php unset($attr) ?><?php unset($attr_type) ?><?php $attr = array() ?><?php } ?><?php unset($attr) ?><?php $attr = array('title'=>$text,'class'=>'title','value'=>$text) ?><?php $attr_title=$text ?><?php $attr_class='title' ?><?php $attr_value=$text ?><?php - if(empty($attr_title)) - if (!empty($attr_key)) - $attr_title = lang($attr_key).'_HELP'; +?><?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(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]; + //echo $$attr5_array[$attr5_var].'%'; + $tmpArray = $$attr5_array; + if (!empty($attr5_var)) + $tmp_text = $tmpArray[$attr5_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr5_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr5_text)) + if ( isset($$attr5_text)) + $tmp_text = lang($$attr5_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($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_title) ?><?php unset($attr_class) ?><?php unset($attr_value) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('style'=>'text-align:right;','class'=>'menu') ?><?php $attr_style='text-align:right;' ?><?php $attr_class='menu' ?><?php -// if (empty($attr_class)) -// $attr['class']=$row_class; +?></span><?php unset($attr5) ?><?php unset($attr5_title) ?><?php unset($attr5_class) ?><?php unset($attr5_text) ?><?php $attr3 = array() ?></td><?php unset($attr3) ?><?php $attr4 = array('style'=>'text-align:right;','class'=>'menu') ?><?php $attr4_style='text-align:right;' ?><?php $attr4_class='menu' ?><?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_style) ?><?php unset($attr_class) ?><?php $attr = array('list'=>'windowIcons','extract'=>'1','key'=>'list_key','value'=>'list_value') ?><?php $attr_list='windowIcons' ?><?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( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_style) ?><?php unset($attr4_class) ?><?php $attr5 = array('list'=>'windowIcons','extract'=>'1','key'=>'list_key','value'=>'list_value') ?><?php $attr5_list='windowIcons' ?><?php $attr5_extract='1' ?><?php $attr5_key='list_key' ?><?php $attr5_value='list_value' ?><?php + $attr5_list_tmp_key = $attr5_key; + $attr5_list_tmp_value = $attr5_value; + $attr5_list_extract = ($attr5_extract==true); + if ( !is_array($$attr5_list) ) + $$attr5_list = array(); +// die('not an array in list,var='.$attr5_list); +// Html::debug($$attr5_list); - foreach( $$attr_list as $$list_tmp_key => $$list_tmp_value ) + foreach( $$attr5_list as $$attr5_list_tmp_key => $$attr5_list_tmp_value ) { - if ( $list_extract ) + if ( $attr5_list_extract ) { - if ( !is_array($$list_tmp_value) ) + if ( !is_array($$attr5_list_tmp_value) ) { - print_r($$list_tmp_value); - die( 'not an array at key: '.$$list_tmp_key ); + print_r($$attr5_list_tmp_value); + die( 'not an array at key: '.$$attr5_list_tmp_key ); } - extract($$list_tmp_value); + extract($$attr5_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('title'=>'','target'=>'_top','url'=>$url,'class'=>'') ?><?php $attr_title='' ?><?php $attr_target='_top' ?><?php $attr_url=$url ?><?php $attr_class='' ?><?php - if(!empty($attr_url)) - $tmp_url = $attr_url; +?><?php unset($attr5) ?><?php unset($attr5_list) ?><?php unset($attr5_extract) ?><?php unset($attr5_key) ?><?php unset($attr5_value) ?><?php $attr6 = array('target'=>'_top','url'=>$url) ?><?php $attr6_target='_top' ?><?php $attr6_url=$url ?><?php + if(!empty($attr6_url)) + $tmp_url = $attr6_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'=>'middle','type'=>$type) ?><?php $attr_align='middle' ?><?php $attr_type=$type ?><?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() ?></a><?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 + $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('align'=>'middle','type'=>$type) ?><?php $attr7_align='middle' ?><?php $attr7_type=$type ?><?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_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++; 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'=>'subaction','colspan'=>'2') ?><?php $attr_class='subaction' ?><?php $attr_colspan='2' ?><?php -// if (empty($attr_class)) -// $attr['class']=$row_class; +?><tr class="<?php echo $attr3_class ?>"><?php unset($attr3) ?><?php $attr4 = array('class'=>'subaction','colspan'=>'2') ?><?php $attr4_class='subaction' ?><?php $attr4_colspan='2' ?><?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('list'=>'windowMenu','extract'=>'1','key'=>'list_key','value'=>'xy') ?><?php $attr_list='windowMenu' ?><?php $attr_extract='1' ?><?php $attr_key='list_key' ?><?php $attr_value='xy' ?><?php - $list_tmp_key = $attr_key; - $list_tmp_value = $attr_value; - $list_extract = ($attr_extract==true); +?><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('list'=>'windowMenu','extract'=>'1','key'=>'list_key','value'=>'xy') ?><?php $attr5_list='windowMenu' ?><?php $attr5_extract='1' ?><?php $attr5_key='list_key' ?><?php $attr5_value='xy' ?><?php + $attr5_list_tmp_key = $attr5_key; + $attr5_list_tmp_value = $attr5_value; + $attr5_list_extract = ($attr5_extract==true); + if ( !is_array($$attr5_list) ) + $$attr5_list = array(); +// die('not an array in list,var='.$attr5_list); +// Html::debug($$attr5_list); - foreach( $$attr_list as $$list_tmp_key => $$list_tmp_value ) + foreach( $$attr5_list as $$attr5_list_tmp_key => $$attr5_list_tmp_value ) { - if ( $list_extract ) + if ( $attr5_list_extract ) { - if ( !is_array($$list_tmp_value) ) + if ( !is_array($$attr5_list_tmp_value) ) { - print_r($$list_tmp_value); - die( 'not an array at key: '.$$list_tmp_key ); + print_r($$attr5_list_tmp_value); + die( 'not an array at key: '.$$attr5_list_tmp_key ); } - extract($$list_tmp_value); + extract($$attr5_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('not'=>'1','empty'=>'url') ?><?php $attr_not='1' ?><?php $attr_empty='url' ?><?php +?><?php unset($attr5) ?><?php unset($attr5_list) ?><?php unset($attr5_extract) ?><?php unset($attr5_key) ?><?php unset($attr5_value) ?><?php $attr6 = array('not'=>'1','empty'=>'url') ?><?php $attr6_not='1' ?><?php $attr6_empty='url' ?><?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) ) + if ( !isset($$attr6_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; + 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) ) + 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_not) ?><?php unset($attr_empty) ?><?php $attr = array('title'=>'title','target'=>'cms_main_main','url'=>$url,'class'=>'') ?><?php $attr_title='title' ?><?php $attr_target='cms_main_main' ?><?php $attr_url=$url ?><?php $attr_class='' ?><?php - if(!empty($attr_url)) - $tmp_url = $attr_url; +?><?php unset($attr6) ?><?php unset($attr6_not) ?><?php unset($attr6_empty) ?><?php $attr7 = array('title'=>'title','target'=>'cms_main_main','url'=>$url) ?><?php $attr7_title='title' ?><?php $attr7_target='cms_main_main' ?><?php $attr7_url=$url ?><?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('class'=>'text','var'=>'text') ?><?php $attr_class='text' ?><?php $attr_var='text' ?><?php - if(empty($attr_title)) - if (!empty($attr_key)) - $attr_title = lang($attr_key).'_HELP'; + $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(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() ?></a><?php unset($attr) ?><?php $attr = array() ?><?php +?></span><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_var) ?><?php $attr6 = array() ?></a><?php unset($attr6) ?><?php $attr5 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array('empty'=>'url') ?><?php $attr_empty='url' ?><?php +?><?php unset($attr5) ?><?php $attr6 = array('empty'=>'url') ?><?php $attr6_empty='url' ?><?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) ) + if ( !isset($$attr6_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; + 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) ) + 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'=>'inactive','var'=>'text') ?><?php $attr_class='inactive' ?><?php $attr_var='text' ?><?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'=>'inactive','var'=>'text') ?><?php $attr7_class='inactive' ?><?php $attr7_var='text' ?><?php + 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_var) ?><?php $attr = array() ?><?php +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_var) ?><?php $attr5 = array() ?><?php } -?><?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'; +?><?php unset($attr5) ?><?php $attr6 = array('class'=>'text','raw'=>'__') ?><?php $attr6_class='text' ?><?php $attr6_raw='__' ?><?php + 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) ?><!-- +?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_raw) ?><!-- //<?php // if ( hasLang('MENU_'.$act.'_KEY' ) ) // { @@ -603,7 +637,7 @@ if (isset($attr_elementtype)) { // $attrAccesskey = ''; // ?> --> -<?php $attr = array() ?><?php } ?><?php unset($attr) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?></table><?php unset($attr) ?><?php $attr = array() ?> +<?php $attr4 = array() ?><?php } ?><?php unset($attr4) ?><?php $attr3 = array() ?></td><?php unset($attr3) ?><?php $attr2 = array() ?></tr><?php unset($attr2) ?><?php $attr1 = array() ?></table><?php unset($attr1) ?><?php $attr0 = array() ?> <!-- $Id$ --> <?php if ($showDuration) { ?> @@ -614,4 +648,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/model/edit.tpl.php b/themes/default/pages/html/model/edit.tpl.php @@ -1,9 +1,10 @@ -<?php /* source: ./themes/default/include/html/page.inc.php - compile time: Sun, 29 Jan 2006 19:47:31 +0100 */ ?><?php $attr = array('class'=>'') ?><?php $attr_class='' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<?php $attr = array('class'=>'main','title'=>'var') ?><?php $attr_class='main' ?><?php $attr_title='var' ?><?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 $attr_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" /> <link rel="stylesheet" type="text/css" href="./themes/default/css/default.css" /> @@ -12,10 +13,9 @@ <?php } ?> </head> -<body<?php echo !empty($$attr_class)?' class="'.$$attr_class.'"':' class="'.$attr_class.'"' ?>> +<body class="<?php echo $attr_class ?>"> - -<?php unset($attr) ?><?php unset($attr_class) ?><?php /* source: ./themes/default/include/html/form.inc.php - compile time: Sun, 29 Jan 2006 19:47:31 +0100 */ ?><?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 +<?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)) @@ -33,19 +33,32 @@ <input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr_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 /* source: ./themes/default/include/html/window.inc.php - compile time: Sun, 29 Jan 2006 19:47:31 +0100 */ ?><?php $attr = array('title'=>'','name'=>'GLOBAL_GROUPS','icon'=>'group','widths'=>'','width'=>'85%') ?><?php $attr_title='' ?><?php $attr_name='GLOBAL_GROUPS' ?><?php $attr_icon='group' ?><?php $attr_widths='' ?><?php $attr_width='85%' ?><?php +?><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_target) ?><?php unset($attr_method) ?><?php unset($attr_enctype) ?><?php $attr = array('name'=>'GLOBAL_GROUPS','icon'=>'group','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr_name='GLOBAL_GROUPS' ?><?php $attr_icon='group' ?><?php $attr_width='93%' ?><?php $attr_rowclasses='odd,even' ?><?php $attr_columnclasses='1,2,3' ?><?php $coloumn_widths=array(); if (!empty($attr_widths)) { $column_widths = explode(',',$attr_widths); unset($attr['widths']); } + if (!empty($attr_rowclasses)) + { + $row_classes = explode(',',$attr_rowclasses); + $row_class_idx = 999; + unset($attr['rowclasses']); + } + if (!empty($attr_columnclasses)) + { + $column_classes = explode(',',$attr_columnclasses); + unset($attr['columnclasses']); + } global $image_dir; echo '<br/><br/><br/><center>'; echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_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 ( !is_array($path) ) + $path = array(); foreach( $path as $pathElement) { extract($pathElement); @@ -54,13 +67,23 @@ } 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 ) { ?><a href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text'].'_DESC') ?>" class="menu<?php if($this->subActionName==$menu['subaction']) echo '_active' ?>"><?php echo lang($menu['text']) ?></a>&nbsp;&nbsp;&nbsp;<?php } + if ($conf['help']['enabled'] ) + { + ?><a href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.$conf['help']['suffix'] ?> " target="_new" title="<?php echo lang('GLOBAL_HELP') ?>" class="menu">?</a><?php + } ?></td> </tr> @@ -86,28 +109,44 @@ <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 /* source: ./themes/default/include/html/row.inc.php - compile time: Sun, 29 Jan 2006 19:47:31 +0100 */ ?><?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($attr) ?><?php unset($attr_name) ?><?php unset($attr_icon) ?><?php unset($attr_width) ?><?php unset($attr_rowclasses) ?><?php unset($attr_columnclasses) ?><?php $attr = 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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 19:47:31 +0100 */ ?><?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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array() ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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 /* source: ./themes/default/include/html/text.inc.php - compile time: Sun, 29 Jan 2006 19:47:31 +0100 */ ?><?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 +?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -119,55 +158,81 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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)?$$attr_var:'error: variable '.$attr_var.' not present'; + $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'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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 /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 19:47:31 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 19:47:31 +0100 */ ?><?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($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?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; + $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; 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]; -?><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 /* source: ./themes/default/include/html/input.inc.php - compile time: Sun, 29 Jan 2006 19:47:31 +0100 */ ?><?php $attr = array('class'=>'','default'=>'','type'=>'text','index'=>'','name'=>'name','prefix'=>'','value'=>'','size'=>'40','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_index='' ?><?php $attr_name='name' ?><?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 /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 19:47:31 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/row-end.inc.php - compile time: Sun, 29 Jan 2006 19:47:31 +0100 */ ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php /* source: ./themes/default/include/html/row.inc.php - compile time: Sun, 29 Jan 2006 19:47:31 +0100 */ ?><?php $attr = array() ?><?php - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - +?><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'=>'','default'=>'','type'=>'text','name'=>'name','size'=>'40','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_name='name' ?><?php $attr_size='40' ?><?php $attr_maxlength='256' ?><?php $attr_onchange='' ?><input id="id<?php echo $attr_name ?>" name="<?php echo $attr_name ?>" type="<?php echo $attr_type ?>" 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 ?>" onxxxMouseOver="this.focus();" /><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><?php unset($attr_type) ?><?php unset($attr_name) ?><?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 + $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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 19:47:31 +0100 */ ?><?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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array('colspan'=>'2') ?><?php $attr_colspan='2' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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 /* source: ./themes/default/include/html/button.inc.php - compile time: Sun, 29 Jan 2006 19:47:31 +0100 */ ?><?php $attr = array('type'=>'ok') ?><?php $attr_type='ok' ?><?php +?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?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') { $attr_type = 'submit'; - $attr_class = 'ok'; - $attr_text = 'BUTTON_OK'; - $attr_value = 'ok'; +// $attr_class = 'ok'; +// $attr_text = 'BUTTON_OK'; +// $attr_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 /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 19:47:31 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/row-end.inc.php - compile time: Sun, 29 Jan 2006 19:47:31 +0100 */ ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php /* source: ./themes/default/include/html/window-end.inc.php - compile time: Sun, 29 Jan 2006 19:47:31 +0100 */ ?><?php $attr = array() ?> </table> +?><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> </td> </tr> </table> @@ -181,11 +246,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 /* source: ./themes/default/include/html/form-end.inc.php - compile time: Sun, 29 Jan 2006 19:47:31 +0100 */ ?><?php $attr = array() ?></form><?php unset($attr) ?><?php /* source: ./themes/default/include/html/focus.inc.php - compile time: Sun, 29 Jan 2006 19:47:31 +0100 */ ?><?php $attr = array('field'=>'name') ?><?php $attr_field='name' ?><script name="JavaScript" type="text/javascript"><!-- +<?php unset($attr) ?><?php $attr = array() ?></form> + +<?php unset($attr) ?><?php $attr = array('field'=>'name') ?><?php $attr_field='name' ?> +<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 /* source: ./themes/default/include/html/page-end.inc.php - compile time: Sun, 29 Jan 2006 19:47:31 +0100 */ ?><?php $attr = array() ?> +// --> +</script> +<?php unset($attr) ?><?php unset($attr_field) ?><?php $attr = array() ?> <!-- $Id$ --> <?php if ($showDuration) { ?> diff --git a/themes/default/pages/html/model/remove.tpl.php b/themes/default/pages/html/model/remove.tpl.php @@ -1,9 +1,10 @@ -<?php /* source: ./themes/default/include/html/page.inc.php - compile time: Sun, 29 Jan 2006 19:47:30 +0100 */ ?><?php $attr = array('class'=>'') ?><?php $attr_class='' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<?php $attr = array('class'=>'main','title'=>'var') ?><?php $attr_class='main' ?><?php $attr_title='var' ?><?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 $attr_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" /> <link rel="stylesheet" type="text/css" href="./themes/default/css/default.css" /> @@ -12,10 +13,9 @@ <?php } ?> </head> -<body<?php echo !empty($$attr_class)?' class="'.$$attr_class.'"':' class="'.$attr_class.'"' ?>> +<body class="<?php echo $attr_class ?>"> - -<?php unset($attr) ?><?php unset($attr_class) ?><?php /* source: ./themes/default/include/html/form.inc.php - compile time: Sun, 29 Jan 2006 19:47:30 +0100 */ ?><?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 +<?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)) @@ -33,19 +33,32 @@ <input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr_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 /* source: ./themes/default/include/html/window.inc.php - compile time: Sun, 29 Jan 2006 19:47:30 +0100 */ ?><?php $attr = array('title'=>'','name'=>'GLOBAL_GROUPS','icon'=>'group','widths'=>'','width'=>'85%') ?><?php $attr_title='' ?><?php $attr_name='GLOBAL_GROUPS' ?><?php $attr_icon='group' ?><?php $attr_widths='' ?><?php $attr_width='85%' ?><?php +?><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_target) ?><?php unset($attr_method) ?><?php unset($attr_enctype) ?><?php $attr = array('name'=>'GLOBAL_GROUPS','icon'=>'group','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr_name='GLOBAL_GROUPS' ?><?php $attr_icon='group' ?><?php $attr_width='93%' ?><?php $attr_rowclasses='odd,even' ?><?php $attr_columnclasses='1,2,3' ?><?php $coloumn_widths=array(); if (!empty($attr_widths)) { $column_widths = explode(',',$attr_widths); unset($attr['widths']); } + if (!empty($attr_rowclasses)) + { + $row_classes = explode(',',$attr_rowclasses); + $row_class_idx = 999; + unset($attr['rowclasses']); + } + if (!empty($attr_columnclasses)) + { + $column_classes = explode(',',$attr_columnclasses); + unset($attr['columnclasses']); + } global $image_dir; echo '<br/><br/><br/><center>'; echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_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 ( !is_array($path) ) + $path = array(); foreach( $path as $pathElement) { extract($pathElement); @@ -54,13 +67,23 @@ } 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 ) { ?><a href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text'].'_DESC') ?>" class="menu<?php if($this->subActionName==$menu['subaction']) echo '_active' ?>"><?php echo lang($menu['text']) ?></a>&nbsp;&nbsp;&nbsp;<?php } + if ($conf['help']['enabled'] ) + { + ?><a href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.$conf['help']['suffix'] ?> " target="_new" title="<?php echo lang('GLOBAL_HELP') ?>" class="menu">?</a><?php + } ?></td> </tr> @@ -86,28 +109,44 @@ <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 /* source: ./themes/default/include/html/row.inc.php - compile time: Sun, 29 Jan 2006 19:47:30 +0100 */ ?><?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($attr) ?><?php unset($attr_name) ?><?php unset($attr_icon) ?><?php unset($attr_width) ?><?php unset($attr_rowclasses) ?><?php unset($attr_columnclasses) ?><?php $attr = 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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 19:47:30 +0100 */ ?><?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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array() ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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 /* source: ./themes/default/include/html/text.inc.php - compile time: Sun, 29 Jan 2006 19:47:30 +0100 */ ?><?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 +?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -119,30 +158,52 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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)?$$attr_var:'error: variable '.$attr_var.' not present'; + $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'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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 /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 19:47:30 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 19:47:30 +0100 */ ?><?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($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?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; + $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; 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]; -?><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 /* source: ./themes/default/include/html/text.inc.php - compile time: Sun, 29 Jan 2006 19:47:30 +0100 */ ?><?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 +?><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','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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -154,39 +215,66 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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)?$$attr_var:'error: variable '.$attr_var.' not present'; + $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'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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 /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 19:47:30 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/row-end.inc.php - compile time: Sun, 29 Jan 2006 19:47:30 +0100 */ ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php /* source: ./themes/default/include/html/row.inc.php - compile time: Sun, 29 Jan 2006 19:47:30 +0100 */ ?><?php $attr = array() ?><?php - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - +?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = 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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 19:47:30 +0100 */ ?><?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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array() ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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 /* source: ./themes/default/include/html/text.inc.php - compile time: Sun, 29 Jan 2006 19:47:30 +0100 */ ?><?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 +?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php $attr = array('class'=>'text','text'=>'GLOBAL_DELETE') ?><?php $attr_class='text' ?><?php $attr_text='GLOBAL_DELETE' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -198,49 +286,89 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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)?$$attr_var:'error: variable '.$attr_var.' not present'; + $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'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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 /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 19:47:30 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 19:47:30 +0100 */ ?><?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($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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 /* source: ./themes/default/include/html/checkbox.inc.php - compile time: Sun, 29 Jan 2006 19:47:30 +0100 */ ?><?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 /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 19:47:30 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/row-end.inc.php - compile time: Sun, 29 Jan 2006 19:47:30 +0100 */ ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php /* source: ./themes/default/include/html/row.inc.php - compile time: Sun, 29 Jan 2006 19:47:30 +0100 */ ?><?php $attr = array() ?><?php - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; +?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php $attr = array('default'=>'','readonly'=>'','name'=>'delete') ?><?php $attr_default='' ?><?php $attr_readonly='' ?><?php $attr_name='delete' ?><?php + $attr_default = ( $attr_default == true ); + if ( isset($$attr_name) ) + $checked = $$attr_name == true; +// $checked = isset($$$attr_name)&& $$$attr_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() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = 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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 19:47:30 +0100 */ ?><?php $attr = array('width'=>'','style'=>'','class'=>'help','colspan'=>'2') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='help' ?><?php $attr_colspan='2' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><tr class="<?php echo $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'help','colspan'=>'2') ?><?php $attr_class='help' ?><?php $attr_colspan='2' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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 /* source: ./themes/default/include/html/text.inc.php - compile time: Sun, 29 Jan 2006 19:47:30 +0100 */ ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'GROUP_DELETE_DESC','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GROUP_DELETE_DESC' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?><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'=>'GROUP_DELETE_DESC') ?><?php $attr_class='text' ?><?php $attr_text='GROUP_DELETE_DESC' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -252,45 +380,66 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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)?$$attr_var:'error: variable '.$attr_var.' not present'; + $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'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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 /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 19:47:30 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/row-end.inc.php - compile time: Sun, 29 Jan 2006 19:47:30 +0100 */ ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php /* source: ./themes/default/include/html/row.inc.php - compile time: Sun, 29 Jan 2006 19:47:30 +0100 */ ?><?php $attr = array() ?><?php - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - +?></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 + $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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 19:47:30 +0100 */ ?><?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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array('colspan'=>'2') ?><?php $attr_colspan='2' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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 /* source: ./themes/default/include/html/button.inc.php - compile time: Sun, 29 Jan 2006 19:47:30 +0100 */ ?><?php $attr = array('type'=>'ok') ?><?php $attr_type='ok' ?><?php +?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?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') { $attr_type = 'submit'; - $attr_class = 'ok'; - $attr_text = 'BUTTON_OK'; - $attr_value = 'ok'; +// $attr_class = 'ok'; +// $attr_text = 'BUTTON_OK'; +// $attr_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 /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 19:47:30 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/row-end.inc.php - compile time: Sun, 29 Jan 2006 19:47:30 +0100 */ ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php /* source: ./themes/default/include/html/window-end.inc.php - compile time: Sun, 29 Jan 2006 19:47:30 +0100 */ ?><?php $attr = array() ?> </table> +?><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> </td> </tr> </table> @@ -304,11 +453,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 /* source: ./themes/default/include/html/form-end.inc.php - compile time: Sun, 29 Jan 2006 19:47:30 +0100 */ ?><?php $attr = array() ?></form><?php unset($attr) ?><?php /* source: ./themes/default/include/html/focus.inc.php - compile time: Sun, 29 Jan 2006 19:47:30 +0100 */ ?><?php $attr = array('field'=>'delete') ?><?php $attr_field='delete' ?><script name="JavaScript" type="text/javascript"><!-- +<?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 /* source: ./themes/default/include/html/page-end.inc.php - compile time: Sun, 29 Jan 2006 19:47:30 +0100 */ ?><?php $attr = array() ?> +// --> +</script> +<?php unset($attr) ?><?php unset($attr_field) ?><?php $attr = array() ?> <!-- $Id$ --> <?php if ($showDuration) { ?> diff --git a/themes/default/pages/html/object/aclform.tpl.php b/themes/default/pages/html/object/aclform.tpl.php @@ -1,9 +1,10 @@ -<?php /* source: ./themes/default/include/html/page.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array('class'=>'') ?><?php $attr_class='' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<?php $attr = array('class'=>'main','title'=>'var') ?><?php $attr_class='main' ?><?php $attr_title='var' ?><?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 $attr_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" /> <link rel="stylesheet" type="text/css" href="./themes/default/css/default.css" /> @@ -12,10 +13,9 @@ <?php } ?> </head> -<body<?php echo !empty($$attr_class)?' class="'.$$attr_class.'"':' class="'.$attr_class.'"' ?>> +<body class="<?php echo $attr_class ?>"> - -<?php unset($attr) ?><?php unset($attr_class) ?><?php /* source: ./themes/default/include/html/form.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?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 +<?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)) @@ -33,19 +33,32 @@ <input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr_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 /* source: ./themes/default/include/html/window.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array('title'=>'GLOBAL_ADD','name'=>'','icon'=>'','widths'=>'','width'=>'85%') ?><?php $attr_title='GLOBAL_ADD' ?><?php $attr_name='' ?><?php $attr_icon='' ?><?php $attr_widths='' ?><?php $attr_width='85%' ?><?php +?><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_target) ?><?php unset($attr_method) ?><?php unset($attr_enctype) ?><?php $attr = array('title'=>'GLOBAL_ADD','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr_title='GLOBAL_ADD' ?><?php $attr_width='93%' ?><?php $attr_rowclasses='odd,even' ?><?php $attr_columnclasses='1,2,3' ?><?php $coloumn_widths=array(); if (!empty($attr_widths)) { $column_widths = explode(',',$attr_widths); unset($attr['widths']); } + if (!empty($attr_rowclasses)) + { + $row_classes = explode(',',$attr_rowclasses); + $row_class_idx = 999; + unset($attr['rowclasses']); + } + if (!empty($attr_columnclasses)) + { + $column_classes = explode(',',$attr_columnclasses); + unset($attr['columnclasses']); + } global $image_dir; echo '<br/><br/><br/><center>'; echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_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 ( !is_array($path) ) + $path = array(); foreach( $path as $pathElement) { extract($pathElement); @@ -54,13 +67,23 @@ } 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 ) { ?><a href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text'].'_DESC') ?>" class="menu<?php if($this->subActionName==$menu['subaction']) echo '_active' ?>"><?php echo lang($menu['text']) ?></a>&nbsp;&nbsp;&nbsp;<?php } + if ($conf['help']['enabled'] ) + { + ?><a href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.$conf['help']['suffix'] ?> " target="_new" title="<?php echo lang('GLOBAL_HELP') ?>" class="menu">?</a><?php + } ?></td> </tr> @@ -86,28 +109,44 @@ <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 /* source: ./themes/default/include/html/row.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?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($attr) ?><?php unset($attr_title) ?><?php unset($attr_width) ?><?php unset($attr_rowclasses) ?><?php unset($attr_columnclasses) ?><?php $attr = 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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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 /* source: ./themes/default/include/html/text.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'GLOBAL_ALL','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_ALL' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?><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_ALL') ?><?php $attr_class='text' ?><?php $attr_text='GLOBAL_ALL' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -119,41 +158,68 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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)?$$attr_var:'error: variable '.$attr_var.' not present'; + $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'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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 /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?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($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?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; + $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; 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]; -?><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 /* source: ./themes/default/include/html/set.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array('var'=>'type','value'=>'all') ?><?php $attr_var='type' ?><?php $attr_value='all' ?><?php $$attr_var = $attr_value ?><?php unset($attr) ?><?php unset($attr_var) ?><?php unset($attr_value) ?><?php /* source: ./themes/default/include/html/radio.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array('readonly'=>'','name'=>'type','value'=>'type','default'=>'true','prefix'=>'','suffix'=>'') ?><?php $attr_readonly='' ?><?php $attr_name='type' ?><?php $attr_value='type' ?><?php $attr_default='true' ?><?php $attr_prefix='' ?><?php $attr_suffix='' ?><?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_default ) echo 'checked="checked"' ?> /><?php unset($attr) ?><?php unset($attr_readonly) ?><?php unset($attr_name) ?><?php unset($attr_value) ?><?php unset($attr_default) ?><?php unset($attr_prefix) ?><?php unset($attr_suffix) ?><?php /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?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; +?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('var'=>'type','value'=>'all') ?><?php $attr_var='type' ?><?php $attr_value='all' ?><?php $$attr_var = $attr_value ?><?php unset($attr) ?><?php unset($attr_var) ?><?php unset($attr_value) ?><?php $attr = array('name'=>'type','value'=>'type','default'=>'1') ?><?php $attr_name='type' ?><?php $attr_value='type' ?><?php $attr_default='1' ?><?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 unset($attr_default) ?><?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; + $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; 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]; -?><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 /* source: ./themes/default/include/html/text.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?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 +?><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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -165,39 +231,66 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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)?$$attr_var:'error: variable '.$attr_var.' not present'; + $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'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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 /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/row-end.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php /* source: ./themes/default/include/html/row.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array() ?><?php - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - +?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_raw) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = 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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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 /* source: ./themes/default/include/html/text.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'GLOBAL_USER','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_USER' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?><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_USER') ?><?php $attr_class='text' ?><?php $attr_text='GLOBAL_USER' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -209,73 +302,105 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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)?$$attr_var:'error: variable '.$attr_var.' not present'; + $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'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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 /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?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($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?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; + $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; 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]; -?><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 /* source: ./themes/default/include/html/set.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array('var'=>'type','value'=>'user') ?><?php $attr_var='type' ?><?php $attr_value='user' ?><?php $$attr_var = $attr_value ?><?php unset($attr) ?><?php unset($attr_var) ?><?php unset($attr_value) ?><?php /* source: ./themes/default/include/html/radio.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array('readonly'=>'','name'=>'type','value'=>'type','default'=>'','prefix'=>'','suffix'=>'') ?><?php $attr_readonly='' ?><?php $attr_name='type' ?><?php $attr_value='type' ?><?php $attr_default='' ?><?php $attr_prefix='' ?><?php $attr_suffix='' ?><?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_default ) echo 'checked="checked"' ?> /><?php unset($attr) ?><?php unset($attr_readonly) ?><?php unset($attr_name) ?><?php unset($attr_value) ?><?php unset($attr_default) ?><?php unset($attr_prefix) ?><?php unset($attr_suffix) ?><?php /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?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; +?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('var'=>'type','value'=>'user') ?><?php $attr_var='type' ?><?php $attr_value='user' ?><?php $$attr_var = $attr_value ?><?php unset($attr) ?><?php unset($attr_var) ?><?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() ?></td><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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 /* source: ./themes/default/include/html/selectbox.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array('list'=>'users','name'=>'userid','default'=>'','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='users' ?><?php $attr_name='userid' ?><?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 +?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('list'=>'users','name'=>'userid','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='users' ?><?php $attr_name='userid' ?><?php $attr_onchange='' ?><?php $attr_title='' ?><?php $attr_class='' ?><select size="1" id="id<?php echo $attr_name ?>" 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"' ?>><?php foreach( $$attr_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) + if (isset($$attr_name)&&$box_key==$$attr_name || isset($attr_default)&&$box_key == $attr_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 /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/row-end.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php /* source: ./themes/default/include/html/if.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array('var'=>'','value'=>'','invert'=>'','empty'=>'','present'=>'groups','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='groups' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php +?><?php unset($attr) ?><?php unset($attr_list) ?><?php unset($attr_name) ?><?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('present'=>'groups') ?><?php $attr_present='groups' ?><?php // Wahr-Vergleich - if ( !empty($attr_true) ) - $exec = $$attr_true == true; +// Html::debug($attr); + + if ( isset($attr_true) ) + { + if (gettype($attr_true) === '' && gettype($attr_true) === '1') + $exec = $$attr_true == true; + else + $exec = $attr_true == true; + } // Falsch-Vergleich - elseif ( !empty($attr_false) ) - $exec = $$attr_false != true; - + elseif ( isset($attr_false) ) + { + if (gettype($attr_false) === '' && gettype($attr_false) === '1') + $exec = $$attr_false == false; + else + $exec = $attr_false == false; + } // Inhalt-Vergleich mit Wertliste - elseif( !empty($attr_contains) ) + elseif( isset($attr_contains) ) $exec = in_array($$attr_var,explode(',',$attr_contains)); // Inhalt-Vergleich - elseif( !empty($attr_var) ) + elseif( isset($attr_var) ) $exec = $$attr_var == $attr_value; // Vergleich auf leer - elseif ( !empty($attr_empty) ) + elseif ( isset($attr_empty) ) { if ( !isset($$attr_empty) ) - $exec = true; + $exec = empty($attr_empty); elseif ( is_array($$attr_empty) ) $exec = (count($$attr_empty)==0); elseif ( is_bool($$attr_empty) ) @@ -284,53 +409,90 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu $exec = empty( $$attr_empty ); } - // Vergleich auf nicht-leer - elseif ( !empty($attr_present) ) + // 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 = true; + $exec = $$attr_present; elseif ( is_numeric($$attr_present) ) $exec = $$attr_present>=0; else - $exec = !empty( $$attr_present ); + $exec = true; } + else { - die("error in IF"); + Html::debug( $attr ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; } // Ergebnis umdrehen if ( !empty($attr_invert) ) $exec = !$exec; + // Ergebnis umdrehen + if ( !empty($attr_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); + + $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 /* source: ./themes/default/include/html/row.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array() ?><?php - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - +?><?php unset($attr) ?><?php unset($attr_present) ?><?php $attr = 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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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 /* source: ./themes/default/include/html/text.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'GLOBAL_GROUP','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_GROUP' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?><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_GROUP') ?><?php $attr_class='text' ?><?php $attr_text='GLOBAL_GROUP' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -342,74 +504,112 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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)?$$attr_var:'error: variable '.$attr_var.' not present'; + $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'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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 /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?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($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?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; + $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; 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]; -?><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 /* source: ./themes/default/include/html/set.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array('var'=>'type','value'=>'group') ?><?php $attr_var='type' ?><?php $attr_value='group' ?><?php $$attr_var = $attr_value ?><?php unset($attr) ?><?php unset($attr_var) ?><?php unset($attr_value) ?><?php /* source: ./themes/default/include/html/radio.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array('readonly'=>'','name'=>'type','value'=>'type','default'=>'','prefix'=>'','suffix'=>'') ?><?php $attr_readonly='' ?><?php $attr_name='type' ?><?php $attr_value='type' ?><?php $attr_default='' ?><?php $attr_prefix='' ?><?php $attr_suffix='' ?><?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_default ) echo 'checked="checked"' ?> /><?php unset($attr) ?><?php unset($attr_readonly) ?><?php unset($attr_name) ?><?php unset($attr_value) ?><?php unset($attr_default) ?><?php unset($attr_prefix) ?><?php unset($attr_suffix) ?><?php /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?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; +?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('var'=>'type','value'=>'group') ?><?php $attr_var='type' ?><?php $attr_value='group' ?><?php $$attr_var = $attr_value ?><?php unset($attr) ?><?php unset($attr_var) ?><?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() ?></td><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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 /* source: ./themes/default/include/html/selectbox.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array('list'=>'groups','name'=>'groupid','default'=>'','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='groups' ?><?php $attr_name='groupid' ?><?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 +?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('list'=>'groups','name'=>'groupid','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='groups' ?><?php $attr_name='groupid' ?><?php $attr_onchange='' ?><?php $attr_title='' ?><?php $attr_class='' ?><select size="1" id="id<?php echo $attr_name ?>" 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"' ?>><?php foreach( $$attr_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) + if (isset($$attr_name)&&$box_key==$$attr_name || isset($attr_default)&&$box_key == $attr_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 /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/row-end.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php /* source: ./themes/default/include/html/if-end.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array() ?><?php +?><?php unset($attr) ?><?php unset($attr_list) ?><?php unset($attr_name) ?><?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 } -?><?php unset($attr) ?><?php /* source: ./themes/default/include/html/row.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array() ?><?php - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; +?><?php unset($attr) ?><?php $attr = 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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array('width'=>'','style'=>'','class'=>'help','colspan'=>'3') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='help' ?><?php $attr_colspan='3' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><tr class="<?php echo $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'help','colspan'=>'3') ?><?php $attr_class='help' ?><?php $attr_colspan='3' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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 /* source: ./themes/default/include/html/text.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?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 +?><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','raw'=>'_') ?><?php $attr_class='text' ?><?php $attr_raw='_' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -421,39 +621,66 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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)?$$attr_var:'error: variable '.$attr_var.' not present'; + $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'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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 /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/row-end.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php /* source: ./themes/default/include/html/row.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array() ?><?php - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - +?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_raw) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = 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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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 /* source: ./themes/default/include/html/text.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'GLOBAL_LANGUAGE','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_LANGUAGE' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?><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_LANGUAGE') ?><?php $attr_class='text' ?><?php $attr_text='GLOBAL_LANGUAGE' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -465,30 +692,52 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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)?$$attr_var:'error: variable '.$attr_var.' not present'; + $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'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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 /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?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($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?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; + $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; 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]; -?><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 /* source: ./themes/default/include/html/text.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?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 +?><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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -500,61 +749,93 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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)?$$attr_var:'error: variable '.$attr_var.' not present'; + $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'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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 /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?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($attr) ?><?php unset($attr_class) ?><?php unset($attr_raw) ?><?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; + $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; 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]; -?><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 /* source: ./themes/default/include/html/selectbox.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array('list'=>'languages','name'=>'languageid','default'=>'','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='languages' ?><?php $attr_name='languageid' ?><?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 +?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('list'=>'languages','name'=>'languageid','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='languages' ?><?php $attr_name='languageid' ?><?php $attr_onchange='' ?><?php $attr_title='' ?><?php $attr_class='' ?><select size="1" id="id<?php echo $attr_name ?>" 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"' ?>><?php foreach( $$attr_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) + if (isset($$attr_name)&&$box_key==$$attr_name || isset($attr_default)&&$box_key == $attr_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 /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/row-end.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php /* source: ./themes/default/include/html/row.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array() ?><?php - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - +?><?php unset($attr) ?><?php unset($attr_list) ?><?php unset($attr_name) ?><?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 + $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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array('width'=>'','style'=>'','class'=>'help','colspan'=>'3') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='help' ?><?php $attr_colspan='3' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><tr class="<?php echo $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'help','colspan'=>'3') ?><?php $attr_class='help' ?><?php $attr_colspan='3' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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 /* source: ./themes/default/include/html/text.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?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 +?><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','raw'=>'_') ?><?php $attr_class='text' ?><?php $attr_raw='_' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -566,21 +847,32 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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)?$$attr_var:'error: variable '.$attr_var.' not present'; + $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'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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 /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/row-end.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php /* source: ./themes/default/include/html/list.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array('list'=>'show','extract'=>'false','key'=>'list_key','value'=>'t') ?><?php $attr_list='show' ?><?php $attr_extract='false' ?><?php $attr_key='list_key' ?><?php $attr_value='t' ?><?php +?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_raw) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array('list'=>'show','extract'=>'','key'=>'list_key','value'=>'t') ?><?php $attr_list='show' ?><?php $attr_extract='' ?><?php $attr_key='list_key' ?><?php $attr_value='t' ?><?php $list_tmp_key = $attr_key; $list_tmp_value = $attr_value; - $list_extract = ($attr_extract=='true'); + $list_extract = ($attr_extract==true); foreach( $$attr_list as $$list_tmp_key => $$list_tmp_value ) @@ -594,46 +886,61 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu } extract($$list_tmp_value); } -?><?php unset($attr) ?><?php unset($attr_list) ?><?php unset($attr_extract) ?><?php unset($attr_key) ?><?php unset($attr_value) ?><?php /* source: ./themes/default/include/html/row.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array() ?><?php - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - +?><?php unset($attr) ?><?php unset($attr_list) ?><?php unset($attr_extract) ?><?php unset($attr_key) ?><?php unset($attr_value) ?><?php $attr = 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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><td class="<?php echo $fx ?>"><?php echo lang('ACL_'.strtoupper($t)) ?></td> +?><tr class="<?php echo $attr_class ?>"><?php unset($attr) ?><td class="<?php echo $fx ?>"><?php echo lang('ACL_'.strtoupper($t)) ?></td> <td class="<?php echo $fx ?>" width="20"><?php echo lang('ACL_'.strtoupper($t).'_ABBREV') ?></td> <td class="<?php echo $fx ?>"><?php echo Html::checkBox($t,($t=='read'),($t!='read'),array('title'=>lang('ACL_'.strtoupper($t) )) ) ?></td> -<?php /* source: ./themes/default/include/html/row-end.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php /* source: ./themes/default/include/html/list-end.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array() ?><?php } ?><?php unset($attr) ?><?php /* source: ./themes/default/include/html/row.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array() ?><?php - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - +<?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php } ?><?php unset($attr) ?><?php $attr = 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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array('width'=>'','style'=>'','class'=>'act','colspan'=>'3') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='act' ?><?php $attr_colspan='3' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><tr class="<?php echo $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'act','colspan'=>'3') ?><?php $attr_class='act' ?><?php $attr_colspan='3' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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 /* source: ./themes/default/include/html/button.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array('type'=>'ok') ?><?php $attr_type='ok' ?><?php +?><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') { $attr_type = 'submit'; - $attr_class = 'ok'; - $attr_text = 'BUTTON_OK'; - $attr_value = 'ok'; +// $attr_class = 'ok'; +// $attr_text = 'BUTTON_OK'; +// $attr_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 /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/row-end.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php /* source: ./themes/default/include/html/window-end.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array() ?> </table> +?><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> </td> </tr> </table> @@ -647,7 +954,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 /* source: ./themes/default/include/html/form-end.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array() ?></form><?php unset($attr) ?><?php /* source: ./themes/default/include/html/page-end.inc.php - compile time: Sun, 29 Jan 2006 19:43:42 +0100 */ ?><?php $attr = array() ?> +<?php unset($attr) ?><?php $attr = array() ?></form> + +<?php unset($attr) ?><?php $attr = array() ?> <!-- $Id$ --> <?php if ($showDuration) { ?> diff --git a/themes/default/pages/html/object/rights.tpl.php b/themes/default/pages/html/object/rights.tpl.php @@ -1,33 +1,53 @@ -<?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('title'=>'ACL','name'=>'x','icon'=>'','widths'=>'','width'=>'85%') ?><?php $attr_title='ACL' ?><?php $attr_name='x' ?><?php $attr_icon='' ?><?php $attr_widths='' ?><?php $attr_width='85%' ?><?php +<?php unset($attr1) ?><?php unset($attr1_class) ?><?php unset($attr1_title) ?><?php $attr2 = array('title'=>'ACL','name'=>'x','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr2_title='ACL' ?><?php $attr2_name='x' ?><?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(',',$attr2_widths); + unset($attr2['widths']); + } + if (!empty($attr2_rowclasses)) { - $column_widths = explode(',',$attr_widths); - unset($attr['widths']); + $row_classes = explode(',',$attr2_rowclasses); + $row_class_idx = 999; + unset($attr2['rowclasses']); + } + if (!empty($attr2_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) { extract($pathElement); @@ -36,7 +56,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 ) @@ -72,310 +98,491 @@ <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('var'=>'','value'=>'','invert'=>'','empty'=>'acls','present'=>'','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='acls' ?><?php $attr_present='' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php + <table class="n" cellspacing="0" width="100%" cellpadding="4"><?php unset($attr2) ?><?php unset($attr2_title) ?><?php unset($attr2_name) ?><?php unset($attr2_width) ?><?php unset($attr2_rowclasses) ?><?php unset($attr2_columnclasses) ?><?php $attr3 = array('empty'=>'acls') ?><?php $attr3_empty='acls' ?><?php // Wahr-Vergleich - if ( !empty($attr_true) ) - $exec = $$attr_true == true; +// Html::debug($attr3); + + if ( isset($attr3_true) ) + { + if (gettype($attr3_true) === '' && gettype($attr3_true) === '1') + $exec = $$attr3_true == true; + else + $exec = $attr3_true == true; + } // Falsch-Vergleich - elseif ( !empty($attr_false) ) - $exec = $$attr_false != true; - + elseif ( isset($attr3_false) ) + { + if (gettype($attr3_false) === '' && gettype($attr3_false) === '1') + $exec = $$attr3_false == false; + else + $exec = $attr3_false == false; + } // Inhalt-Vergleich mit Wertliste - elseif( !empty($attr_contains) ) - $exec = in_array($$attr_var,explode(',',$attr_contains)); + elseif( isset($attr3_contains) ) + $exec = in_array($attr3_value,explode(',',$attr3_contains)); // Inhalt-Vergleich - elseif( !empty($attr_var) ) - $exec = $$attr_var == $attr_value; + elseif( isset($attr3_equals)&& isset($attr3_value) ) + $exec = $attr3_equals == $attr3_value; // Vergleich auf leer - elseif ( !empty($attr_empty) ) + elseif ( isset($attr3_empty) ) { - if ( !isset($$attr_empty) ) - $exec = true; - elseif ( is_array($$attr_empty) ) - $exec = (count($$attr_empty)==0); - elseif ( is_bool($$attr_empty) ) + if ( !isset($$attr3_empty) ) + $exec = empty($attr3_empty); + elseif ( is_array($$attr3_empty) ) + $exec = (count($$attr3_empty)==0); + elseif ( is_bool($$attr3_empty) ) $exec = true; else - $exec = empty( $$attr_empty ); + $exec = empty( $$attr3_empty ); } - // Vergleich auf nicht-leer - elseif ( !empty($attr_present) ) + // Vergleich auf Vorhandensein + elseif ( isset($attr3_present) ) { - if ( !isset($$attr_present) ) + if ( !isset($$attr3_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; + 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 = !empty( $$attr_present ); + $exec = true; } + else { - die("error in IF"); + Html::debug( $attr3 ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; } // Ergebnis umdrehen - if ( !empty($attr_invert) ) + if ( !empty($attr3_invert) ) + $exec = !$exec; + + // Ergebnis umdrehen + if ( !empty($attr3_not) ) $exec = !$exec; + unset($attr3_true); + unset($attr3_false); + unset($attr3_notempty); + unset($attr3_empty); + unset($attr3_contains); + unset($attr3_present); + unset($attr3_invert); + unset($attr3_not); + unset($attr3_value); + unset($attr3_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($attr3) ?><?php unset($attr3_empty) ?><?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'=>'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 $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($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'=>'GLOBAL_NOT_FOUND','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_NOT_FOUND' ?><?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','text'=>'GLOBAL_NOT_FOUND') ?><?php $attr6_class='text' ?><?php $attr6_text='GLOBAL_NOT_FOUND' ?><?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 (!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)?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) ); + 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 +?></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 $attr2 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array('var'=>'','value'=>'','invert'=>'y','empty'=>'acls','present'=>'','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='y' ?><?php $attr_empty='acls' ?><?php $attr_present='' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php + +?><?php unset($attr2) ?><?php $attr3 = array('invert'=>'y','empty'=>'acls') ?><?php $attr3_invert='y' ?><?php $attr3_empty='acls' ?><?php // Wahr-Vergleich - if ( !empty($attr_true) ) - $exec = $$attr_true == true; +// Html::debug($attr3); + + if ( isset($attr3_true) ) + { + if (gettype($attr3_true) === '' && gettype($attr3_true) === '1') + $exec = $$attr3_true == true; + else + $exec = $attr3_true == true; + } // Falsch-Vergleich - elseif ( !empty($attr_false) ) - $exec = $$attr_false != true; - + elseif ( isset($attr3_false) ) + { + if (gettype($attr3_false) === '' && gettype($attr3_false) === '1') + $exec = $$attr3_false == false; + else + $exec = $attr3_false == false; + } // Inhalt-Vergleich mit Wertliste - elseif( !empty($attr_contains) ) - $exec = in_array($$attr_var,explode(',',$attr_contains)); + elseif( isset($attr3_contains) ) + $exec = in_array($attr3_value,explode(',',$attr3_contains)); // Inhalt-Vergleich - elseif( !empty($attr_var) ) - $exec = $$attr_var == $attr_value; + elseif( isset($attr3_equals)&& isset($attr3_value) ) + $exec = $attr3_equals == $attr3_value; // Vergleich auf leer - elseif ( !empty($attr_empty) ) + elseif ( isset($attr3_empty) ) { - if ( !isset($$attr_empty) ) - $exec = true; - elseif ( is_array($$attr_empty) ) - $exec = (count($$attr_empty)==0); - elseif ( is_bool($$attr_empty) ) + if ( !isset($$attr3_empty) ) + $exec = empty($attr3_empty); + elseif ( is_array($$attr3_empty) ) + $exec = (count($$attr3_empty)==0); + elseif ( is_bool($$attr3_empty) ) $exec = true; else - $exec = empty( $$attr_empty ); + $exec = empty( $$attr3_empty ); } - // Vergleich auf nicht-leer - elseif ( !empty($attr_present) ) + // Vergleich auf Vorhandensein + elseif ( isset($attr3_present) ) { - if ( !isset($$attr_present) ) + if ( !isset($$attr3_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; + 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 = !empty( $$attr_present ); + $exec = true; } + else { - die("error in IF"); + Html::debug( $attr3 ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; } // Ergebnis umdrehen - if ( !empty($attr_invert) ) + if ( !empty($attr3_invert) ) $exec = !$exec; + // Ergebnis umdrehen + if ( !empty($attr3_not) ) + $exec = !$exec; + + unset($attr3_true); + unset($attr3_false); + unset($attr3_notempty); + unset($attr3_empty); + unset($attr3_contains); + unset($attr3_present); + unset($attr3_invert); + unset($attr3_not); + unset($attr3_value); + unset($attr3_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($attr3) ?><?php unset($attr3_invert) ?><?php unset($attr3_empty) ?><?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( $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)) +?><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(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]; + //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)?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) ); + 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_text) ?><?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( $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_LANGUAGE','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_LANGUAGE' ?><?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','text'=>'GLOBAL_LANGUAGE') ?><?php $attr6_class='text' ?><?php $attr6_text='GLOBAL_LANGUAGE' ?><?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 (!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)?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) ); + 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 foreach( $show as $t ) { ?> +?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_text) ?><?php foreach( $show as $t ) { ?> <td class="help"><span title="<?php echo lang('ACL_'.strtoupper($t)) ?>"><strong><?php echo lang('ACL_'.strtoupper($t).'_ABBREV') ?></strong></span></td> <?php } ?> -<?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; +<?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( $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)) +?><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_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 (!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)?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) ); + 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 +?></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 $attr2 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array('list'=>'acls','extract'=>'true','key'=>'aclid','value'=>'z') ?><?php $attr_list='acls' ?><?php $attr_extract='true' ?><?php $attr_key='aclid' ?><?php $attr_value='z' ?><?php - $list_tmp_key = $attr_key; - $list_tmp_value = $attr_value; - $list_extract = ($attr_extract=='true'); + +?><?php unset($attr2) ?><?php $attr3 = array('list'=>'acls','extract'=>'1','key'=>'aclid','value'=>'z') ?><?php $attr3_list='acls' ?><?php $attr3_extract='1' ?><?php $attr3_key='aclid' ?><?php $attr3_value='z' ?><?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 - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - +?><?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($attr4_class)) + $attr4_class=$row_class; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php if ( $z['username'] != '' ) +?><tr class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php if ( $z['username'] != '' ) { ?> <td width="50%" class="<?php echo $fx ?>"><img src="<?php echo $image_dir.'icon_user'.IMG_ICON_EXT ?>" align="left"><?php echo $z['username'] ?></td> <?php } @@ -387,42 +594,66 @@ else { ?> <td width="50%" class="<?php echo $fx ?>"><img src="<?php echo $image_dir.'icon_group'.IMG_ICON_EXT ?>" align="left"><?php echo lang('GLOBAL_ALL') ?></td> <?php } ?> -<?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; +<?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'=>'languagename','text'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='languagename' ?><?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 $attr6 = array('class'=>'text','var'=>'languagename') ?><?php $attr6_class='text' ?><?php $attr6_var='languagename' ?><?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 (!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)?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) ); + 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 foreach( $show as $t ) { ?> +?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_var) ?><?php foreach( $show as $t ) { ?> <td class="<?php echo $fx ?>"><?php echo Html::checkBox('',$z[$t],false,array('title'=>lang('ACL_'.strtoupper($t))) ) ?></td> <?php } ?> <?php if (isset($z['delete_url'])) @@ -433,7 +664,7 @@ else { ?> <td class="<?php echo $fx ?>"><?php echo lang('ACL_INHERITED') ?></td> <?php } ?> -<?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 $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> @@ -447,7 +678,7 @@ else <?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) { ?> @@ -458,4 +689,4 @@ else <?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/page/el.tpl.php b/themes/default/pages/html/page/el.tpl.php @@ -1,33 +1,53 @@ -<?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('title'=>'TEMPLATE_ELEMENTS','name'=>'x','icon'=>'','widths'=>'30%,50%,20%','width'=>'85%') ?><?php $attr_title='TEMPLATE_ELEMENTS' ?><?php $attr_name='x' ?><?php $attr_icon='' ?><?php $attr_widths='30%,50%,20%' ?><?php $attr_width='85%' ?><?php +<?php unset($attr1) ?><?php unset($attr1_class) ?><?php unset($attr1_title) ?><?php $attr2 = array('title'=>'TEMPLATE_ELEMENTS','name'=>'x','widths'=>'30%,50%,20%','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr2_title='TEMPLATE_ELEMENTS' ?><?php $attr2_name='x' ?><?php $attr2_widths='30%,50%,20%' ?><?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(',',$attr2_widths); + unset($attr2['widths']); + } + if (!empty($attr2_rowclasses)) { - $column_widths = explode(',',$attr_widths); - unset($attr['widths']); + $row_classes = explode(',',$attr2_rowclasses); + $row_class_idx = 999; + unset($attr2['rowclasses']); + } + if (!empty($attr2_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) { extract($pathElement); @@ -36,7 +56,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 ) @@ -72,618 +98,1007 @@ <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('var'=>'','value'=>'','invert'=>'true','empty'=>'el','present'=>'','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='true' ?><?php $attr_empty='el' ?><?php $attr_present='' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php + <table class="n" cellspacing="0" width="100%" cellpadding="4"><?php unset($attr2) ?><?php unset($attr2_title) ?><?php unset($attr2_name) ?><?php unset($attr2_widths) ?><?php unset($attr2_width) ?><?php unset($attr2_rowclasses) ?><?php unset($attr2_columnclasses) ?><?php $attr3 = array('invert'=>'1','empty'=>'el') ?><?php $attr3_invert='1' ?><?php $attr3_empty='el' ?><?php // Wahr-Vergleich - if ( !empty($attr_true) ) - $exec = $$attr_true == true; +// Html::debug($attr3); + + if ( isset($attr3_true) ) + { + if (gettype($attr3_true) === '' && gettype($attr3_true) === '1') + $exec = $$attr3_true == true; + else + $exec = $attr3_true == true; + } // Falsch-Vergleich - elseif ( !empty($attr_false) ) - $exec = $$attr_false != true; - + elseif ( isset($attr3_false) ) + { + if (gettype($attr3_false) === '' && gettype($attr3_false) === '1') + $exec = $$attr3_false == false; + else + $exec = $attr3_false == false; + } // Inhalt-Vergleich mit Wertliste - elseif( !empty($attr_contains) ) - $exec = in_array($$attr_var,explode(',',$attr_contains)); + elseif( isset($attr3_contains) ) + $exec = in_array($attr3_value,explode(',',$attr3_contains)); // Inhalt-Vergleich - elseif( !empty($attr_var) ) - $exec = $$attr_var == $attr_value; + elseif( isset($attr3_equals)&& isset($attr3_value) ) + $exec = $attr3_equals == $attr3_value; // Vergleich auf leer - elseif ( !empty($attr_empty) ) + elseif ( isset($attr3_empty) ) { - if ( !isset($$attr_empty) ) - $exec = true; - elseif ( is_array($$attr_empty) ) - $exec = (count($$attr_empty)==0); - elseif ( is_bool($$attr_empty) ) + if ( !isset($$attr3_empty) ) + $exec = empty($attr3_empty); + elseif ( is_array($$attr3_empty) ) + $exec = (count($$attr3_empty)==0); + elseif ( is_bool($$attr3_empty) ) $exec = true; else - $exec = empty( $$attr_empty ); + $exec = empty( $$attr3_empty ); } - // Vergleich auf nicht-leer - elseif ( !empty($attr_present) ) + // Vergleich auf Vorhandensein + elseif ( isset($attr3_present) ) { - if ( !isset($$attr_present) ) + if ( !isset($$attr3_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; + 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 = !empty( $$attr_present ); + $exec = true; } + else { - die("error in IF"); + Html::debug( $attr3 ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; } // Ergebnis umdrehen - if ( !empty($attr_invert) ) + if ( !empty($attr3_invert) ) $exec = !$exec; + // Ergebnis umdrehen + if ( !empty($attr3_not) ) + $exec = !$exec; + + unset($attr3_true); + unset($attr3_false); + unset($attr3_notempty); + unset($attr3_empty); + unset($attr3_contains); + unset($attr3_present); + unset($attr3_invert); + unset($attr3_not); + unset($attr3_value); + unset($attr3_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($attr3) ?><?php unset($attr3_invert) ?><?php unset($attr3_empty) ?><?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( $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'=>'PAGE_ELEMENT_NAME','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='PAGE_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 unset($attr5_class) ?><?php $attr6 = array('class'=>'text','text'=>'PAGE_ELEMENT_NAME') ?><?php $attr6_class='text' ?><?php $attr6_text='PAGE_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 (!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_text) ?><?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( $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'=>'PAGE_ELEMENT_VALUE','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='PAGE_ELEMENT_VALUE' ?><?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','text'=>'PAGE_ELEMENT_VALUE') ?><?php $attr6_class='text' ?><?php $attr6_text='PAGE_ELEMENT_VALUE' ?><?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 (!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_text) ?><?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( $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_ARCHIVE','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_ARCHIVE' ?><?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','text'=>'GLOBAL_ARCHIVE') ?><?php $attr6_class='text' ?><?php $attr6_text='GLOBAL_ARCHIVE' ?><?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 (!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() ?><?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 $attr2 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array('var'=>'','value'=>'','invert'=>'','empty'=>'el','present'=>'','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='el' ?><?php $attr_present='' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php + +?><?php unset($attr2) ?><?php $attr3 = array('empty'=>'el') ?><?php $attr3_empty='el' ?><?php // Wahr-Vergleich - if ( !empty($attr_true) ) - $exec = $$attr_true == true; +// Html::debug($attr3); + + if ( isset($attr3_true) ) + { + if (gettype($attr3_true) === '' && gettype($attr3_true) === '1') + $exec = $$attr3_true == true; + else + $exec = $attr3_true == true; + } // Falsch-Vergleich - elseif ( !empty($attr_false) ) - $exec = $$attr_false != true; - + elseif ( isset($attr3_false) ) + { + if (gettype($attr3_false) === '' && gettype($attr3_false) === '1') + $exec = $$attr3_false == false; + else + $exec = $attr3_false == false; + } // Inhalt-Vergleich mit Wertliste - elseif( !empty($attr_contains) ) - $exec = in_array($$attr_var,explode(',',$attr_contains)); + elseif( isset($attr3_contains) ) + $exec = in_array($attr3_value,explode(',',$attr3_contains)); // Inhalt-Vergleich - elseif( !empty($attr_var) ) - $exec = $$attr_var == $attr_value; + elseif( isset($attr3_equals)&& isset($attr3_value) ) + $exec = $attr3_equals == $attr3_value; // Vergleich auf leer - elseif ( !empty($attr_empty) ) + elseif ( isset($attr3_empty) ) { - if ( !isset($$attr_empty) ) - $exec = true; - elseif ( is_array($$attr_empty) ) - $exec = (count($$attr_empty)==0); - elseif ( is_bool($$attr_empty) ) + if ( !isset($$attr3_empty) ) + $exec = empty($attr3_empty); + elseif ( is_array($$attr3_empty) ) + $exec = (count($$attr3_empty)==0); + elseif ( is_bool($$attr3_empty) ) $exec = true; else - $exec = empty( $$attr_empty ); + $exec = empty( $$attr3_empty ); } - // Vergleich auf nicht-leer - elseif ( !empty($attr_present) ) + // Vergleich auf Vorhandensein + elseif ( isset($attr3_present) ) { - if ( !isset($$attr_present) ) + if ( !isset($$attr3_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; + 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 = !empty( $$attr_present ); + $exec = true; } + else { - die("error in IF"); + Html::debug( $attr3 ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; } // Ergebnis umdrehen - if ( !empty($attr_invert) ) + if ( !empty($attr3_invert) ) $exec = !$exec; + // Ergebnis umdrehen + if ( !empty($attr3_not) ) + $exec = !$exec; + + unset($attr3_true); + unset($attr3_false); + unset($attr3_notempty); + unset($attr3_empty); + unset($attr3_contains); + unset($attr3_present); + unset($attr3_invert); + unset($attr3_not); + unset($attr3_value); + unset($attr3_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($attr3) ?><?php unset($attr3_empty) ?><?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'=>'GLOBAL_NOT_FOUND','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_NOT_FOUND' ?><?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'=>'GLOBAL_NOT_FOUND') ?><?php $attr6_class='text' ?><?php $attr6_text='GLOBAL_NOT_FOUND' ?><?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 (!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() ?><?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 $attr2 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array('list'=>'el','extract'=>'true','key'=>'list_key','value'=>'list_value') ?><?php $attr_list='el' ?><?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'); + +?><?php unset($attr2) ?><?php $attr3 = array('list'=>'el','extract'=>'1','key'=>'list_key','value'=>'list_value') ?><?php $attr3_list='el' ?><?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 - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - +?><?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($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'=>'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 $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($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'=>'desc','target'=>'','url'=>'url','class'=>'','action'=>'','subaction'=>'','id'=>'','var1'=>'','value1'=>'') ?><?php $attr_title='desc' ?><?php $attr_target='' ?><?php $attr_url='url' ?><?php $attr_class='' ?><?php $attr_action='' ?><?php $attr_subaction='' ?><?php $attr_id='' ?><?php $attr_var1='' ?><?php $attr_value1='' ?><?php - if(!empty($attr_url)) - $tmp_url = $$attr_url; +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('title'=>'desc','target'=>'_self','url'=>$url) ?><?php $attr6_title='desc' ?><?php $attr6_target='_self' ?><?php $attr6_url=$url ?><?php + if(!empty($attr6_url)) + $tmp_url = $attr6_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 hasLang($attr_title)?lang($attr_title):lang($$attr_title) ?>"><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_target) ?><?php unset($attr_url) ?><?php unset($attr_class) ?><?php unset($attr_action) ?><?php unset($attr_subaction) ?><?php unset($attr_id) ?><?php unset($attr_var1) ?><?php unset($attr_value1) ?><?php $attr = array('file'=>'','url'=>'','align'=>'left','type'=>'','elementtype'=>'type') ?><?php $attr_file='' ?><?php $attr_url='' ?><?php $attr_align='left' ?><?php $attr_type='' ?><?php $attr_elementtype='type' ?><?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)) + $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('align'=>'left','elementtype'=>$type) ?><?php $attr7_align='left' ?><?php $attr7_elementtype=$type ?><?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_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(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() ?></a><?php unset($attr) ?><?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($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_var) ?><?php $attr5 = array() ?></a><?php unset($attr5) ?><?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'=>'value','text'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='value' ?><?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'=>'value') ?><?php $attr6_class='text' ?><?php $attr6_var='value' ?><?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 (!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('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($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_var) ?><?php $attr6 = array('class'=>'text','raw'=>'_') ?><?php $attr6_class='text' ?><?php $attr6_raw='_' ?><?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 (!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'=>'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_raw) ?><?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'=>'','target'=>'','url'=>'archive_url','class'=>'','action'=>'','subaction'=>'','id'=>'','var1'=>'','value1'=>'') ?><?php $attr_title='' ?><?php $attr_target='' ?><?php $attr_url='archive_url' ?><?php $attr_class='' ?><?php $attr_action='' ?><?php $attr_subaction='' ?><?php $attr_id='' ?><?php $attr_var1='' ?><?php $attr_value1='' ?><?php - if(!empty($attr_url)) - $tmp_url = $$attr_url; +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('target'=>'_self','url'=>$archive_url) ?><?php $attr6_target='_self' ?><?php $attr6_url=$archive_url ?><?php + if(!empty($attr6_url)) + $tmp_url = $attr6_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 hasLang($attr_title)?lang($attr_title):lang($$attr_title) ?>"><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_target) ?><?php unset($attr_url) ?><?php unset($attr_class) ?><?php unset($attr_action) ?><?php unset($attr_subaction) ?><?php unset($attr_id) ?><?php unset($attr_var1) ?><?php unset($attr_value1) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'GLOBAL_ARCHIVE','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_ARCHIVE' ?><?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)) + $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(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() ?></a><?php unset($attr) ?><?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_text) ?><?php $attr5 = array() ?></a><?php unset($attr5) ?><?php $attr6 = array('class'=>'text','raw'=>'_(') ?><?php $attr6_class='text' ?><?php $attr6_raw='_(' ?><?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 (!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('title'=>'','class'=>'','var'=>'archive_count','text'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='archive_count' ?><?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($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(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('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($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_text) ?><?php $attr6 = array('class'=>'text','raw'=>')') ?><?php $attr6_class='text' ?><?php $attr6_raw=')' ?><?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 (!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() ?><?php } ?><?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_raw) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr2 = array() ?><?php } ?><?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($attr3_class)) + $attr3_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'=>'3') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='help' ?><?php $attr_colspan='3' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><tr class="<?php echo $attr3_class ?>"><?php unset($attr3) ?><?php $attr4 = array('class'=>'help','colspan'=>'3') ?><?php $attr4_class='help' ?><?php $attr4_colspan='3' ?><?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($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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'PAGE_ELEMENTS_DESC','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='PAGE_ELEMENTS_DESC' ?><?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( $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(empty($attr5_title)) + if (!empty($attr5_key)) + $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: - //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 $$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 + { + $tmp_text = '&nbsp;'; + //Html::debug($attr5);echo 'text error'; + } + + 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_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($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($attr3_class)) + $attr3_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'=>'3') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='' ?><?php $attr_colspan='3' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><tr class="<?php echo $attr3_class ?>"><?php unset($attr3) ?><?php $attr4 = array('colspan'=>'3') ?><?php $attr4_colspan='3' ?><?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($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_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)) +?><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(empty($attr5_title)) + if (!empty($attr5_key)) + $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: - //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 $$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 + { + $tmp_text = '&nbsp;'; + //Html::debug($attr5);echo 'text error'; + } + + 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_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() ?> </table> +?></span><?php unset($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_raw) ?><?php $attr3 = array() ?></td><?php unset($attr3) ?><?php $attr2 = array() ?></tr><?php unset($attr2) ?><?php $attr1 = array() ?> </table> </td> </tr> </table> @@ -697,7 +1112,7 @@ if (!empty($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) { ?> @@ -708,4 +1123,4 @@ if (!empty($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/page/prop.tpl.php b/themes/default/pages/html/page/prop.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'=>'page','widths'=>'50%,50%','width'=>'85%') ?><?php $attr_title='' ?><?php $attr_name='' ?><?php $attr_icon='page' ?><?php $attr_widths='50%,50%' ?><?php $attr_width='85%' ?><?php +?><?php unset($attr2) ?><?php unset($attr2_target) ?><?php unset($attr2_method) ?><?php unset($attr2_enctype) ?><?php $attr3 = array('icon'=>'page','widths'=>'50%,50%','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr3_icon='page' ?><?php $attr3_widths='50%,50%' ?><?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)) + { + $row_classes = explode(',',$attr3_rowclasses); + $row_class_idx = 999; + unset($attr3['rowclasses']); + } + if (!empty($attr3_columnclasses)) { - $column_widths = explode(',',$attr_widths); - unset($attr['widths']); + $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,196 +116,308 @@ <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_icon) ?><?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'=>'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 $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($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'=>'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)) +?><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(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]; + //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)?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) ); + 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( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('type'=>'text','name'=>'name','size'=>'50','maxlength'=>'256') ?><?php $attr6_type='text' ?><?php $attr6_name='name' ?><?php $attr6_size='50' ?><?php $attr6_maxlength='256' ?><input id="id<?php echo $attr6_name ?>" name="<?php echo $attr6_name ?>" type="<?php echo $attr6_type ?>" size="<?php echo $attr6_size ?>" maxlength="<?php echo $attr6_maxlength ?>" class="<?php echo $attr6_class ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" onxxxMouseOver="this.focus();" /><?php unset($attr6) ?><?php unset($attr6_type) ?><?php unset($attr6_name) ?><?php unset($attr6_size) ?><?php unset($attr6_maxlength) ?><?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; -?><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'=>'name','prefix'=>'','value'=>'','size'=>'50','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_index='' ?><?php $attr_name='name' ?><?php $attr_prefix='' ?><?php $attr_value='' ?><?php $attr_size='50' ?><?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 - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - 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 $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($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'=>'global_filename','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='global_filename' ?><?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','text'=>'global_filename') ?><?php $attr6_class='text' ?><?php $attr6_text='global_filename' ?><?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 (!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)?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) ); + 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( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('type'=>'text','name'=>'filename','size'=>'40','maxlength'=>'256') ?><?php $attr6_type='text' ?><?php $attr6_name='filename' ?><?php $attr6_size='40' ?><?php $attr6_maxlength='256' ?><input id="id<?php echo $attr6_name ?>" name="<?php echo $attr6_name ?>" type="<?php echo $attr6_type ?>" size="<?php echo $attr6_size ?>" maxlength="<?php echo $attr6_maxlength ?>" class="<?php echo $attr6_class ?>" value="<?php echo isset($$attr6_name)?$$attr6_name:$attr6_default ?>" onxxxMouseOver="this.focus();" /><?php unset($attr6) ?><?php unset($attr6_type) ?><?php unset($attr6_name) ?><?php unset($attr6_size) ?><?php unset($attr6_maxlength) ?><?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; -?><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 - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - 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 $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($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'=>'global_description','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='global_description' ?><?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','text'=>'global_description') ?><?php $attr6_class='text' ?><?php $attr6_text='global_description' ?><?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 (!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)?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) ); + 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( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('name'=>'description','rows'=>'10','cols'=>'40') ?><?php $attr6_name='description' ?><?php $attr6_rows='10' ?><?php $attr6_cols='40' ?><textarea class="<?php echo $attr6_class ?>" name="<?php echo $attr6_name ?>" rows="<?php echo $attr6_rows ?>" cols="<?php echo $attr6_cols ?>"><?php echo htmlentities(isset($$attr6_name)?$$attr6_name:$attr6_default) ?></textarea><?php unset($attr6) ?><?php unset($attr6_name) ?><?php unset($attr6_rows) ?><?php unset($attr6_cols) ?><?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; -?><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('name'=>'description','rows'=>'10','cols'=>'40','value'=>'','index'=>'','onchange'=>'','prefix'=>'','class'=>'','default'=>'') ?><?php $attr_name='description' ?><?php $attr_rows='10' ?><?php $attr_cols='40' ?><?php $attr_value='' ?><?php $attr_index='' ?><?php $attr_onchange='' ?><?php $attr_prefix='' ?><?php $attr_class='' ?><?php $attr_default='' ?><textarea name="<?php echo $attr_name ?>" rows="<?php echo $attr_rows ?>" cols="<?php echo $attr_cols ?>"><?php echo htmlentities(isset($$attr_name)?$$attr_name:$attr_default) ?></textarea><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_rows) ?><?php unset($attr_cols) ?><?php unset($attr_value) ?><?php unset($attr_index) ?><?php unset($attr_onchange) ?><?php unset($attr_prefix) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><?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'; - 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> @@ -293,11 +431,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'=>'name') ?><?php $attr_field='name' ?><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'=>'name') ?><?php $attr2_field='name' ?> +<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) { ?> @@ -308,4 +451,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/page/pub.tpl.php b/themes/default/pages/html/page/pub.tpl.php @@ -1,51 +1,71 @@ -<?php $attr = array('class'=>'') ?><?php $attr_class='' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<?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')) +?><!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 $attr-2082672713_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 $attr-2082672713_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($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(); -?><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 $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 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($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 $coloumn_widths=array(); - if (!empty($attr_widths)) + if (!empty($attr1842515611_widths)) + { + $column_widths = explode(',',$attr1842515611_widths); + unset($attr1842515611['widths']); + } + if (!empty($attr1842515611_rowclasses)) { - $column_widths = explode(',',$attr_widths); - unset($attr['widths']); + $row_classes = explode(',',$attr1842515611_rowclasses); + $row_class_idx = 999; + unset($attr1842515611['rowclasses']); + } + if (!empty($attr1842515611_columnclasses)) + { + $column_classes = explode(',',$attr1842515611_columnclasses); + unset($attr1842515611['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="'.$attr1842515611_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($attr1842515611_icon) ) + echo '<img src="'.$image_dir.'icon_'.$attr1842515611_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,103 +116,169 @@ <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($attr1842515611) ?><?php unset($attr1842515611_width) ?><?php unset($attr1842515611_rowclasses) ?><?php unset($attr1842515611_columnclasses) ?><?php $attr-206169288 = 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; + 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 $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; + $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; 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($attr-2068763730_rowspan) ) + $attr-2068763730['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'=>'files','prefix'=>'') ?><?php $attr_default='false' ?><?php $attr_var='' ?><?php $attr_readonly='false' ?><?php $attr_name='files' ?><?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('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)) +?><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 ); + + if ( isset($$attr498629140_name) ) + $checked = $$attr498629140_name == true; +// $checked = isset($$$attr498629140_name)&& $$$attr498629140_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'; + else + $attr498629140_title = ''; + +?><span class="<?php echo $attr498629140_class ?>" title="<?php echo $attr498629140_title ?>"><?php + $attr498629140_title = ''; + if (!empty($attr498629140_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr498629140_array[$attr498629140_var].'%'; + $tmpArray = $$attr498629140_array; + if (!empty($attr498629140_var)) + $tmp_text = $tmpArray[$attr498629140_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr498629140_text]); + } + elseif (!empty($attr498629140_text)) + if ( isset($$attr498629140_text)) + $tmp_text = lang($$attr498629140_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; + else + { + $tmp_text = '&nbsp;'; + //Html::debug($attr498629140);echo 'text error'; } - 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) ); + if ( !empty($attr498629140_maxlength) && intval($attr498629140_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr498629140_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'=>'global_files','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='global_files' ?><?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($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'; + else + $attr498629140_title = ''; + +?><span class="<?php echo $attr498629140_class ?>" title="<?php echo $attr498629140_title ?>"><?php + $attr498629140_title = ''; + if (!empty($attr498629140_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr498629140_array[$attr498629140_var].'%'; + $tmpArray = $$attr498629140_array; + if (!empty($attr498629140_var)) + $tmp_text = $tmpArray[$attr498629140_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr498629140_text]); + } + elseif (!empty($attr498629140_text)) + if ( isset($$attr498629140_text)) + $tmp_text = lang($$attr498629140_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; + else + { + $tmp_text = '&nbsp;'; + //Html::debug($attr498629140);echo 'text error'; } - 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) ); + if ( !empty($attr498629140_maxlength) && intval($attr498629140_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr498629140_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() ?><br/><?php unset($attr) ?><?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($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 + $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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'act','colspan'=>'') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='act' ?><?php $attr_colspan='' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><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; + $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; 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($attr-2068763730_rowspan) ) + $attr-2068763730['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( $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') { - $attr_type = 'submit'; - $attr_class = 'ok'; - $attr_text = 'BUTTON_OK'; - $attr_value = 'ok'; + $attr498629140_type = 'submit'; +// $attr498629140_class = 'ok'; +// $attr498629140_text = 'BUTTON_OK'; +// $attr498629140_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 $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> </td> </tr> </table> @@ -200,7 +292,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($attr) ?><?php $attr = array() ?> +<?php unset($attr450215437) ?><?php $attr-2082672713 = array() ?></form> + +<?php unset($attr-2082672713) ?><?php $attr-186917087 = array() ?> <!-- $Id$ --> <?php if ($showDuration) { ?> @@ -211,4 +305,4 @@ <?php } ?> </body> -</html><?php unset($attr) ?>- \ No newline at end of file +</html><?php unset($attr-186917087) ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/page/showprop.tpl.php b/themes/default/pages/html/page/showprop.tpl.php @@ -1,33 +1,53 @@ -<?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('title'=>'','name'=>'','icon'=>'folder','widths'=>'50%,50%','width'=>'85%') ?><?php $attr_title='' ?><?php $attr_name='' ?><?php $attr_icon='folder' ?><?php $attr_widths='50%,50%' ?><?php $attr_width='85%' ?><?php +<?php unset($attr1) ?><?php unset($attr1_class) ?><?php unset($attr1_title) ?><?php $attr2 = array('icon'=>'folder','widths'=>'50%,50%','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr2_icon='folder' ?><?php $attr2_widths='50%,50%' ?><?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(',',$attr2_widths); + unset($attr2['widths']); + } + if (!empty($attr2_rowclasses)) + { + $row_classes = explode(',',$attr2_rowclasses); + $row_class_idx = 999; + unset($attr2['rowclasses']); + } + if (!empty($attr2_columnclasses)) { - $column_widths = explode(',',$attr_widths); - unset($attr['widths']); + $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) { extract($pathElement); @@ -36,7 +56,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 ) @@ -72,619 +98,1007 @@ <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($attr2) ?><?php unset($attr2_icon) ?><?php unset($attr2_widths) ?><?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($attr3_class)) + $attr3_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 $attr3_class ?>"><?php unset($attr3) ?><?php $attr4 = array('class'=>'fx') ?><?php $attr4_class='fx' ?><?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($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_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)) +?><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_name') ?><?php $attr5_class='text' ?><?php $attr5_text='global_name' ?><?php + if(empty($attr5_title)) + if (!empty($attr5_key)) + $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: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //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($tmpArray[$attr_text]); + $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 + { + $tmp_text = '&nbsp;'; + //Html::debug($attr5);echo 'text error'; } - 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) ); + 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_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($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_text) ?><?php $attr3 = array() ?></td><?php unset($attr3) ?><?php $attr4 = array('class'=>'fx') ?><?php $attr4_class='fx' ?><?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($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_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( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_class) ?><?php $attr5 = array('class'=>'text','var'=>'name') ?><?php $attr5_class='text' ?><?php $attr5_var='name' ?><?php + if(empty($attr5_title)) + if (!empty($attr5_key)) + $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: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //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($tmpArray[$attr_text]); + $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 + { + $tmp_text = '&nbsp;'; + //Html::debug($attr5);echo 'text error'; } - 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) ); + 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_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($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_var) ?><?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($attr3_class)) + $attr3_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 $attr3_class ?>"><?php unset($attr3) ?><?php $attr4 = array('class'=>'fx') ?><?php $attr4_class='fx' ?><?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($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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'global_filename','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='global_filename' ?><?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( $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_filename') ?><?php $attr5_class='text' ?><?php $attr5_text='global_filename' ?><?php + if(empty($attr5_title)) + if (!empty($attr5_key)) + $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: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //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($tmpArray[$attr_text]); + $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 + { + $tmp_text = '&nbsp;'; + //Html::debug($attr5);echo 'text error'; } - 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) ); + 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_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($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_text) ?><?php $attr3 = array() ?></td><?php unset($attr3) ?><?php $attr4 = array('class'=>'fx') ?><?php $attr4_class='fx' ?><?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($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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'','class'=>'','var'=>'filename','text'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='filename' ?><?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( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_class) ?><?php $attr5 = array('class'=>'text','var'=>'filename') ?><?php $attr5_class='text' ?><?php $attr5_var='filename' ?><?php + if(empty($attr5_title)) + if (!empty($attr5_key)) + $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: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr5_array[$attr5_var].'%'; + $tmpArray = $$attr5_array; + if (!empty($attr5_var)) + $tmp_text = $tmpArray[$attr5_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $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 + { + $tmp_text = '&nbsp;'; + //Html::debug($attr5);echo 'text error'; } - 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) ); + 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_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($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_var) ?><?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($attr3_class)) + $attr3_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 $attr3_class ?>"><?php unset($attr3) ?><?php $attr4 = array('class'=>'fx') ?><?php $attr4_class='fx' ?><?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($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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'global_description','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='global_description' ?><?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( $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_description') ?><?php $attr5_class='text' ?><?php $attr5_text='global_description' ?><?php + if(empty($attr5_title)) + if (!empty($attr5_key)) + $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: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr5_array[$attr5_var].'%'; + $tmpArray = $$attr5_array; + if (!empty($attr5_var)) + $tmp_text = $tmpArray[$attr5_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $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 + { + $tmp_text = '&nbsp;'; + //Html::debug($attr5);echo 'text error'; } - 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) ); + 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_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($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_text) ?><?php $attr3 = array() ?></td><?php unset($attr3) ?><?php $attr4 = array('class'=>'fx') ?><?php $attr4_class='fx' ?><?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($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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'','class'=>'','var'=>'description','text'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='description' ?><?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( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_class) ?><?php $attr5 = array('class'=>'text','var'=>'description') ?><?php $attr5_class='text' ?><?php $attr5_var='description' ?><?php + if(empty($attr5_title)) + if (!empty($attr5_key)) + $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: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //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($tmpArray[$attr_text]); + $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 + { + $tmp_text = '&nbsp;'; + //Html::debug($attr5);echo 'text error'; } - 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) ); + 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_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($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_var) ?><?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($attr3_class)) + $attr3_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 $attr3_class ?>"><?php unset($attr3) ?><?php $attr4 = array('class'=>'fx') ?><?php $attr4_class='fx' ?><?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($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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'page_template','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='page_template' ?><?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( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_class) ?><?php $attr5 = array('class'=>'text','text'=>'page_template') ?><?php $attr5_class='text' ?><?php $attr5_text='page_template' ?><?php + if(empty($attr5_title)) + if (!empty($attr5_key)) + $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: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //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($tmpArray[$attr_text]); + $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 + { + $tmp_text = '&nbsp;'; + //Html::debug($attr5);echo 'text error'; } - 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) ); + 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_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($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_text) ?><?php $attr3 = array() ?></td><?php unset($attr3) ?><?php $attr4 = array('class'=>'fx') ?><?php $attr4_class='fx' ?><?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($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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('var'=>'','value'=>'','invert'=>'','empty'=>'','present'=>'template_url','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='template_url' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php +?><td <?php foreach( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_class) ?><?php $attr5 = array('present'=>'template_url') ?><?php $attr5_present='template_url' ?><?php // Wahr-Vergleich - if ( !empty($attr_true) ) - $exec = $$attr_true == true; +// Html::debug($attr5); + + if ( isset($attr5_true) ) + { + if (gettype($attr5_true) === '' && gettype($attr5_true) === '1') + $exec = $$attr5_true == true; + else + $exec = $attr5_true == true; + } // Falsch-Vergleich - elseif ( !empty($attr_false) ) - $exec = $$attr_false != true; - + elseif ( isset($attr5_false) ) + { + if (gettype($attr5_false) === '' && gettype($attr5_false) === '1') + $exec = $$attr5_false == false; + else + $exec = $attr5_false == false; + } // Inhalt-Vergleich mit Wertliste - elseif( !empty($attr_contains) ) - $exec = in_array($$attr_var,explode(',',$attr_contains)); + elseif( isset($attr5_contains) ) + $exec = in_array($attr5_value,explode(',',$attr5_contains)); // Inhalt-Vergleich - elseif( !empty($attr_var) ) - $exec = $$attr_var == $attr_value; + elseif( isset($attr5_equals)&& isset($attr5_value) ) + $exec = $attr5_equals == $attr5_value; // Vergleich auf leer - elseif ( !empty($attr_empty) ) + elseif ( isset($attr5_empty) ) { - if ( !isset($$attr_empty) ) - $exec = true; - elseif ( is_array($$attr_empty) ) - $exec = (count($$attr_empty)==0); - elseif ( is_bool($$attr_empty) ) + if ( !isset($$attr5_empty) ) + $exec = empty($attr5_empty); + elseif ( is_array($$attr5_empty) ) + $exec = (count($$attr5_empty)==0); + elseif ( is_bool($$attr5_empty) ) $exec = true; else - $exec = empty( $$attr_empty ); + $exec = empty( $$attr5_empty ); } - // Vergleich auf nicht-leer - elseif ( !empty($attr_present) ) + // Vergleich auf Vorhandensein + elseif ( isset($attr5_present) ) { - if ( !isset($$attr_present) ) + if ( !isset($$attr5_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; + 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 = !empty( $$attr_present ); + $exec = true; } + else { - die("error in IF"); + Html::debug( $attr5 ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; } // Ergebnis umdrehen - if ( !empty($attr_invert) ) + if ( !empty($attr5_invert) ) + $exec = !$exec; + + // Ergebnis umdrehen + if ( !empty($attr5_not) ) $exec = !$exec; + unset($attr5_true); + unset($attr5_false); + unset($attr5_notempty); + unset($attr5_empty); + unset($attr5_contains); + unset($attr5_present); + unset($attr5_invert); + unset($attr5_not); + unset($attr5_value); + unset($attr5_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('title'=>'','target'=>'','url'=>'template_url','class'=>'','action'=>'','subaction'=>'','id'=>'','var1'=>'','value1'=>'') ?><?php $attr_title='' ?><?php $attr_target='' ?><?php $attr_url='template_url' ?><?php $attr_class='' ?><?php $attr_action='' ?><?php $attr_subaction='' ?><?php $attr_id='' ?><?php $attr_var1='' ?><?php $attr_value1='' ?><?php - if(!empty($attr_url)) - $tmp_url = $$attr_url; +?><?php unset($attr5) ?><?php unset($attr5_present) ?><?php $attr6 = array('target'=>'_self','url'=>'template_url') ?><?php $attr6_target='_self' ?><?php $attr6_url='template_url' ?><?php + if(!empty($attr6_url)) + $tmp_url = $attr6_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 hasLang($attr_title)?lang($attr_title):lang($$attr_title) ?>"><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_target) ?><?php unset($attr_url) ?><?php unset($attr_class) ?><?php unset($attr_action) ?><?php unset($attr_subaction) ?><?php unset($attr_id) ?><?php unset($attr_var1) ?><?php unset($attr_value1) ?><?php $attr = array('file'=>'icon_template','url'=>'','align'=>'left','type'=>'','elementtype'=>'') ?><?php $attr_file='icon_template' ?><?php $attr_url='' ?><?php $attr_align='left' ?><?php $attr_type='' ?><?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'=>'template_name','text'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='template_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)) + $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('file'=>'icon_template','align'=>'left') ?><?php $attr7_file='icon_template' ?><?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_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_file) ?><?php unset($attr7_align) ?><?php $attr7 = array('class'=>'text','var'=>'template_name') ?><?php $attr7_class='text' ?><?php $attr7_var='template_name' ?><?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 $$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[$attr7_text]); + } + elseif (!empty($attr7_text)) + if ( isset($$attr7_text)) + $tmp_text = lang($$attr7_text); else - $tmp_text = lang($tmpArray[$attr_text]); + $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'; } - 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) ); + 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() ?></a><?php unset($attr) ?><?php $attr = array() ?><?php +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_var) ?><?php $attr5 = array() ?></a><?php unset($attr5) ?><?php $attr4 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array('var'=>'','value'=>'','invert'=>'','empty'=>'template_url','present'=>'','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='template_url' ?><?php $attr_present='' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php + +?><?php unset($attr4) ?><?php $attr5 = array('empty'=>'template_url') ?><?php $attr5_empty='template_url' ?><?php // Wahr-Vergleich - if ( !empty($attr_true) ) - $exec = $$attr_true == true; +// Html::debug($attr5); + + if ( isset($attr5_true) ) + { + if (gettype($attr5_true) === '' && gettype($attr5_true) === '1') + $exec = $$attr5_true == true; + else + $exec = $attr5_true == true; + } // Falsch-Vergleich - elseif ( !empty($attr_false) ) - $exec = $$attr_false != true; - + elseif ( isset($attr5_false) ) + { + if (gettype($attr5_false) === '' && gettype($attr5_false) === '1') + $exec = $$attr5_false == false; + else + $exec = $attr5_false == false; + } // Inhalt-Vergleich mit Wertliste - elseif( !empty($attr_contains) ) - $exec = in_array($$attr_var,explode(',',$attr_contains)); + elseif( isset($attr5_contains) ) + $exec = in_array($attr5_value,explode(',',$attr5_contains)); // Inhalt-Vergleich - elseif( !empty($attr_var) ) - $exec = $$attr_var == $attr_value; + elseif( isset($attr5_equals)&& isset($attr5_value) ) + $exec = $attr5_equals == $attr5_value; // Vergleich auf leer - elseif ( !empty($attr_empty) ) + elseif ( isset($attr5_empty) ) { - if ( !isset($$attr_empty) ) - $exec = true; - elseif ( is_array($$attr_empty) ) - $exec = (count($$attr_empty)==0); - elseif ( is_bool($$attr_empty) ) + if ( !isset($$attr5_empty) ) + $exec = empty($attr5_empty); + elseif ( is_array($$attr5_empty) ) + $exec = (count($$attr5_empty)==0); + elseif ( is_bool($$attr5_empty) ) $exec = true; else - $exec = empty( $$attr_empty ); + $exec = empty( $$attr5_empty ); } - // Vergleich auf nicht-leer - elseif ( !empty($attr_present) ) + // Vergleich auf Vorhandensein + elseif ( isset($attr5_present) ) { - if ( !isset($$attr_present) ) + if ( !isset($$attr5_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; + 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 = !empty( $$attr_present ); + $exec = true; } + else { - die("error in IF"); + Html::debug( $attr5 ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; } // Ergebnis umdrehen - if ( !empty($attr_invert) ) + if ( !empty($attr5_invert) ) $exec = !$exec; + // Ergebnis umdrehen + if ( !empty($attr5_not) ) + $exec = !$exec; + + unset($attr5_true); + unset($attr5_false); + unset($attr5_notempty); + unset($attr5_empty); + unset($attr5_contains); + unset($attr5_present); + unset($attr5_invert); + unset($attr5_not); + unset($attr5_value); + unset($attr5_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('file'=>'icon_template','url'=>'','align'=>'left','type'=>'','elementtype'=>'') ?><?php $attr_file='icon_template' ?><?php $attr_url='' ?><?php $attr_align='left' ?><?php $attr_type='' ?><?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'=>'template_name','text'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='template_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)) +?><?php unset($attr5) ?><?php unset($attr5_empty) ?><?php $attr6 = array('file'=>'icon_template','align'=>'left') ?><?php $attr6_file='icon_template' ?><?php $attr6_align='left' ?><?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_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_file) ?><?php unset($attr6_align) ?><?php $attr6 = array('class'=>'text','var'=>'template_name') ?><?php $attr6_class='text' ?><?php $attr6_var='template_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 (!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)?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) ); + 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() ?><?php +?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_var) ?><?php $attr4 = array() ?><?php } -?><?php unset($attr) ?><?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'; +?><?php unset($attr4) ?><?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($attr3_class)) + $attr3_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 $attr3_class ?>"><?php unset($attr3) ?><?php $attr4 = array('class'=>'fx') ?><?php $attr4_class='fx' ?><?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($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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'global_full_filename','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='global_full_filename' ?><?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( $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_full_filename') ?><?php $attr5_class='text' ?><?php $attr5_text='global_full_filename' ?><?php + if(empty($attr5_title)) + if (!empty($attr5_key)) + $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: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr5_array[$attr5_var].'%'; + $tmpArray = $$attr5_array; + if (!empty($attr5_var)) + $tmp_text = $tmpArray[$attr5_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $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 + { + $tmp_text = '&nbsp;'; + //Html::debug($attr5);echo 'text error'; } - 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) ); + 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_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($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_text) ?><?php $attr3 = array() ?></td><?php unset($attr3) ?><?php $attr4 = array('class'=>'fx') ?><?php $attr4_class='fx' ?><?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($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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'','class'=>'','var'=>'full_filename','text'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='full_filename' ?><?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( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_class) ?><?php $attr5 = array('class'=>'text','var'=>'full_filename') ?><?php $attr5_class='text' ?><?php $attr5_var='full_filename' ?><?php + if(empty($attr5_title)) + if (!empty($attr5_key)) + $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: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //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($tmpArray[$attr_text]); + $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 + { + $tmp_text = '&nbsp;'; + //Html::debug($attr5);echo 'text error'; } - 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) ); + 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_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($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_var) ?><?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($attr3_class)) + $attr3_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 $attr3_class ?>"><?php unset($attr3) ?><?php $attr4 = array('class'=>'fx') ?><?php $attr4_class='fx' ?><?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($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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'global_created','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='global_created' ?><?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( $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_created') ?><?php $attr5_class='text' ?><?php $attr5_text='global_created' ?><?php + if(empty($attr5_title)) + if (!empty($attr5_key)) + $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: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //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($tmpArray[$attr_text]); + $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 + { + $tmp_text = '&nbsp;'; + //Html::debug($attr5);echo 'text error'; } - 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) ); + 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_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($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_text) ?><?php $attr3 = array() ?></td><?php unset($attr3) ?><?php $attr4 = array('class'=>'fx') ?><?php $attr4_class='fx' ?><?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($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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('date'=>'create_date') ?><?php $attr_date='create_date' ?><?php - $time = $$attr_date; +?><td <?php foreach( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_class) ?><?php $attr5 = array('date'=>'create_date') ?><?php $attr5_date='create_date' ?><?php + $time = $$attr5_date; $sekunden = time()-$time; $minuten = intval($sekunden/60); @@ -728,33 +1142,52 @@ if (!empty($attr_elementtype)) { echo $jahre.' '.lang('GLOBAL_YEARS'); echo '</span>'; -?><?php unset($attr) ?><?php unset($attr_date) ?><?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)) +?><?php unset($attr5) ?><?php unset($attr5_date) ?><?php $attr5 = array('class'=>'text','raw'=>',_') ?><?php $attr5_class='text' ?><?php $attr5_raw=',_' ?><?php + if(empty($attr5_title)) + if (!empty($attr5_key)) + $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: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr5_array[$attr5_var].'%'; + $tmpArray = $$attr5_array; + if (!empty($attr5_var)) + $tmp_text = $tmpArray[$attr5_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $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 + { + $tmp_text = '&nbsp;'; + //Html::debug($attr5);echo 'text error'; } - 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) ); + 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_title) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><?php unset($attr_text) ?><?php unset($attr_raw) ?><?php unset($attr_maxlength) ?><?php $attr = array('user'=>'create_user') ?><?php $attr_user='create_user' ?><?php - $user = $$attr_user; +?></span><?php unset($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_raw) ?><?php $attr5 = array('user'=>'create_user') ?><?php $attr5_user='create_user' ?><?php + $user = $$attr5_user; if ( empty($user->name) ) $user->name = lang('GLOBAL_UNKNOWN'); if ( empty($user->fullname) ) @@ -764,62 +1197,96 @@ if (!empty($attr_elementtype)) { echo '<a href="mailto:'.$user->mail.'" title="'.$user->fullname.'">'.$user->name.'</a>'; else echo '<span title="'.$user->fullname.'">'.$user->name.'</span>'; -?><?php unset($attr) ?><?php unset($attr_user) ?><?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'; - +?><?php unset($attr5) ?><?php unset($attr5_user) ?><?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($attr3_class)) + $attr3_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 $attr3_class ?>"><?php unset($attr3) ?><?php $attr4 = array('class'=>'fx') ?><?php $attr4_class='fx' ?><?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($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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'global_lastchange','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='global_lastchange' ?><?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( $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(empty($attr5_title)) + if (!empty($attr5_key)) + $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: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr5_array[$attr5_var].'%'; + $tmpArray = $$attr5_array; + if (!empty($attr5_var)) + $tmp_text = $tmpArray[$attr5_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $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 + { + $tmp_text = '&nbsp;'; + //Html::debug($attr5);echo 'text error'; } - 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) ); + 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_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($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_text) ?><?php $attr3 = array() ?></td><?php unset($attr3) ?><?php $attr4 = array('class'=>'fx') ?><?php $attr4_class='fx' ?><?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($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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('date'=>'lastchange_date') ?><?php $attr_date='lastchange_date' ?><?php - $time = $$attr_date; +?><td <?php foreach( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_class) ?><?php $attr5 = array('date'=>'lastchange_date') ?><?php $attr5_date='lastchange_date' ?><?php + $time = $$attr5_date; $sekunden = time()-$time; $minuten = intval($sekunden/60); @@ -863,33 +1330,52 @@ if (!empty($attr_elementtype)) { echo $jahre.' '.lang('GLOBAL_YEARS'); echo '</span>'; -?><?php unset($attr) ?><?php unset($attr_date) ?><?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)) +?><?php unset($attr5) ?><?php unset($attr5_date) ?><?php $attr5 = array('class'=>'text','raw'=>',_') ?><?php $attr5_class='text' ?><?php $attr5_raw=',_' ?><?php + if(empty($attr5_title)) + if (!empty($attr5_key)) + $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: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr5_array[$attr5_var].'%'; + $tmpArray = $$attr5_array; + if (!empty($attr5_var)) + $tmp_text = $tmpArray[$attr5_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $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 + { + $tmp_text = '&nbsp;'; + //Html::debug($attr5);echo 'text error'; } - 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) ); + 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_title) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><?php unset($attr_text) ?><?php unset($attr_raw) ?><?php unset($attr_maxlength) ?><?php $attr = array('user'=>'lastchange_user') ?><?php $attr_user='lastchange_user' ?><?php - $user = $$attr_user; +?></span><?php unset($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_raw) ?><?php $attr5 = array('user'=>'lastchange_user') ?><?php $attr5_user='lastchange_user' ?><?php + $user = $$attr5_user; if ( empty($user->name) ) $user->name = lang('GLOBAL_UNKNOWN'); if ( empty($user->fullname) ) @@ -899,7 +1385,7 @@ if (!empty($attr_elementtype)) { echo '<a href="mailto:'.$user->mail.'" title="'.$user->fullname.'">'.$user->name.'</a>'; else echo '<span title="'.$user->fullname.'">'.$user->name.'</span>'; -?><?php unset($attr) ?><?php unset($attr_user) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?> </table> +?><?php unset($attr5) ?><?php unset($attr5_user) ?><?php $attr3 = array() ?></td><?php unset($attr3) ?><?php $attr2 = array() ?></tr><?php unset($attr2) ?><?php $attr1 = array() ?> </table> </td> </tr> </table> @@ -913,7 +1399,7 @@ if (!empty($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) { ?> @@ -924,4 +1410,4 @@ if (!empty($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/page/src.tpl.php b/themes/default/pages/html/page/src.tpl.php @@ -1,142 +1,3 @@ -<?php /* source: ./themes/default/include/html/page.inc.php - compile time: Sun, 29 Jan 2006 19:46:22 +0100 */ ?><?php $attr = array('class'=>'') ?><?php $attr_class='' ?><!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" /> - <meta name="MSSmartTagsPreventParsing" content="true" /> - <meta name="robots" content="noindex,nofollow" /> - <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.'"' ?>> - - -<?php unset($attr) ?><?php unset($attr_class) ?><?php /* source: ./themes/default/include/html/window.inc.php - compile time: Sun, 29 Jan 2006 19:46:22 +0100 */ ?><?php $attr = array('title'=>'','name'=>'','icon'=>'page','widths'=>'','width'=>'85%') ?><?php $attr_title='' ?><?php $attr_name='' ?><?php $attr_icon='page' ?><?php $attr_widths='' ?><?php $attr_width='85%' ?><?php - $coloumn_widths=array(); - if (!empty($attr_widths)) - { - $column_widths = explode(',',$attr_widths); - unset($attr['widths']); - } - global $image_dir; - echo '<br/><br/><br/><center>'; - echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_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">'; - foreach( $path as $pathElement) - { - extract($pathElement); - echo '<a href="'.$url.'" class="path">'.lang($name).'</a>'; - echo '&nbsp;&raquo;&nbsp;'; - } - echo '<span class="title">'.lang($windowTitle).'</span>'; - ?> - </th> - </tr> - <tr><td class="subaction"> - <?php foreach( $windowMenu as $menu ) - { - ?><a href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text'].'_DESC') ?>" class="menu<?php if($this->subActionName==$menu['subaction']) echo '_active' ?>"><?php echo lang($menu['text']) ?></a>&nbsp;&nbsp;&nbsp;<?php - } - ?></td> - </tr> - -<?php if (isset($notices) && count($notices)>0 ) - { ?> - - <tr> - <td><table> - - <?php foreach( $notices as $notice ) { ?> - - <td><img src="<?php echo $image_dir.'notice_'.$notice['status'].IMG_ICON_EXT ?>" style="padding:10px" /></td> - <td class="f1"><?php if ($notice['name']!='') { ?><img src="<?php echo $image_dir.'icon_'.$notice['type'].IMG_ICON_EXT ?>" align="left" /><?php echo $notice['name'] ?>: <?php } ?><?php if ($notice['status']=='error') { ?><strong><?php } ?><?php echo $notice['text'] ?><?php if ($notice['status']=='error') { ?></strong><?php } ?></td> - </tr> - <?php } ?> - - </table></td> - </tr> - -<?php } ?> - - - - <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 /* source: ./themes/default/include/html/row.inc.php - compile time: Sun, 29 Jan 2006 19:46:22 +0100 */ ?><?php $attr = array() ?><?php - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - - global $cell_column_nr; - $cell_column_nr=0; - -?><tr><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 19:46:22 +0100 */ ?><?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; - - 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]; - -?><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) ?><pre> -<?php /* source: ./themes/default/include/html/text.inc.php - compile time: Sun, 29 Jan 2006 19:46:22 +0100 */ ?><?php $attr = array('title'=>'','class'=>'','var'=>'src','text'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='src' ?><?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)) - { - //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)?$$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 $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) ?></pre> -<?php /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 19:46:22 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/row-end.inc.php - compile time: Sun, 29 Jan 2006 19:46:22 +0100 */ ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php /* source: ./themes/default/include/html/window-end.inc.php - compile time: Sun, 29 Jan 2006 19:46:22 +0100 */ ?><?php $attr = array() ?> </table> - </td> - </tr> -</table> - -</center> - -<?php if ($showDuration) - { ?> -<br/> -<small>&nbsp; -<?php $dur = time()-START_TIME; - echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small> -<?php } ?> -<?php unset($attr) ?><?php /* source: ./themes/default/include/html/page-end.inc.php - compile time: Sun, 29 Jan 2006 19:46:22 +0100 */ ?><?php $attr = array() ?> -<!-- $Id$ --> - -<?php if ($showDuration) { ?> -<br/> -<small>&nbsp; -<?php $dur = time()-START_TIME; -// echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small> -<?php } ?> - -</body> -</html><?php unset($attr) ?>- \ No newline at end of file +<?php $attr-2082672713 = array('class'=>'main','title'=>$cms_title) ?><?php $attr-2082672713_class='main' ?><?php $attr-2082672713_title=$cms_title ?>$attr-2082672713$attr-2082672713$attr-2082672713$attr-2082672713$attr-2082672713$attr-2082672713$attr-2082672713$attr-2082672713$attr-2082672713$attr-2082672713$attr-2082672713$attr-2082672713$attr-2082672713$attr-2082672713$attr-2082672713$attr-2082672713$attr-2082672713$attr-2082672713$attr-2082672713$attr-2082672713$attr-2082672713$attr-2082672713$attr-2082672713$attr-2082672713<?php unset($attr-2082672713) ?><?php unset($attr-2082672713_class) ?><?php unset($attr-2082672713_title) ?><?php $attr450215437 = array('icon'=>'page','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr450215437_icon='page' ?><?php $attr450215437_width='93%' ?><?php $attr450215437_rowclasses='odd,even' ?><?php $attr450215437_columnclasses='1,2,3' ?>$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437$attr450215437<?php unset($attr450215437) ?><?php unset($attr450215437_icon) ?><?php unset($attr450215437_width) ?><?php unset($attr450215437_rowclasses) ?><?php unset($attr450215437_columnclasses) ?><?php $attr1842515611 = array() ?>$attr1842515611$attr1842515611$attr1842515611$attr1842515611$attr1842515611$attr1842515611$attr1842515611$attr1842515611$attr1842515611$attr1842515611$attr1842515611$attr1842515611$attr1842515611$attr1842515611$attr1842515611<?php unset($attr1842515611) ?><?php $attr-206169288 = array('class'=>'fx') ?><?php $attr-206169288_class='fx' ?>$attr-206169288$attr-206169288$attr-206169288$attr-206169288$attr-206169288$attr-206169288$attr-206169288$attr-206169288$attr-206169288$attr-206169288$attr-206169288$attr-206169288$attr-206169288$attr-206169288$attr-206169288$attr-206169288<?php unset($attr-206169288) ?><?php unset($attr-206169288_class) ?><pre> +<?php $attr-2068763730 = array('class'=>'text','var'=>'src') ?><?php $attr-2068763730_class='text' ?><?php $attr-2068763730_var='src' ?>$attr-2068763730$attr-2068763730$attr-2068763730$attr-2068763730$attr-2068763730$attr-2068763730$attr-2068763730$attr-2068763730$attr-2068763730$attr-2068763730$attr-2068763730$attr-2068763730$attr-2068763730$attr-2068763730$attr-2068763730$attr-2068763730$attr-2068763730$attr-2068763730$attr-2068763730$attr-2068763730$attr-2068763730$attr-2068763730$attr-2068763730$attr-2068763730$attr-2068763730$attr-2068763730$attr-2068763730$attr-2068763730$attr-2068763730$attr-2068763730$attr-2068763730$attr-2068763730$attr-2068763730$attr-2068763730$attr-2068763730$attr-2068763730$attr-2068763730$attr-2068763730$attr-2068763730$attr-2068763730$attr-2068763730$attr-2068763730$attr-2068763730$attr-2068763730$attr-2068763730<?php unset($attr-2068763730) ?><?php unset($attr-2068763730_class) ?><?php unset($attr-2068763730_var) ?></pre> +<?php $attr1842515611 = array() ?>$attr1842515611<?php unset($attr1842515611) ?><?php $attr450215437 = array() ?>$attr450215437<?php unset($attr450215437) ?><?php $attr-2082672713 = array() ?>$attr-2082672713$attr-2082672713$attr-2082672713$attr-2082672713$attr-2082672713$attr-2082672713$attr-2082672713$attr-2082672713$attr-2082672713$attr-2082672713$attr-2082672713$attr-2082672713$attr-2082672713$attr-2082672713<?php unset($attr-2082672713) ?><?php $attr-186917087 = array() ?>$attr-186917087$attr-186917087$attr-186917087$attr-186917087$attr-186917087$attr-186917087$attr-186917087$attr-186917087$attr-186917087$attr-186917087$attr-186917087$attr-186917087<?php unset($attr-186917087) ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/pageelement/advanced.tpl.php b/themes/default/pages/html/pageelement/advanced.tpl.php @@ -0,0 +1,3717 @@ +<?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 $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 $attr1_class ?>"> + +<?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 $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($attr2) ?><?php unset($attr2_target) ?><?php unset($attr2_method) ?><?php unset($attr2_enctype) ?><?php +function editBar() +{ +global $image_dir,$objects; +?> +<tr> +<td colspan="2" class="f1"> +<table> +<tr> +<noscript><input type="text" name="addtext" size="10" /></noscript> +<td><noscript><?php echo Html::Checkbox('strong') ?></noscript><a href="javascript:strong();" title="<?php echo lang('PAGE_EDITOR_ADD_STRONG') ?>"><img src="<?php echo $image_dir ?>/editor/bold.png" border"0" /></a></td> +<td><noscript><?php echo Html::Checkbox('emphatic') ?></noscript><a href="javascript:emphatic();" title="<?php echo lang('PAGE_EDITOR_ADD_EMPHATIC') ?>"><img src="<?php echo $image_dir ?>/editor/italic.png" border"0" /></a></td> +<td>&nbsp;&nbsp;&nbsp;&nbsp;</td> +<td><noscript><?php echo Html::Checkbox('table') ?></noscript><a href="javascript:table();" title="<?php echo lang('PAGE_EDITOR_ADD_TABLE') ?>"><img src="<?php echo $image_dir ?>/editor/table.png" border"0" /></a></td> +<td>&nbsp;&nbsp;&nbsp;&nbsp;</td> +<td><noscript><?php echo Html::Checkbox('list') ?></noscript><a href="javascript:list();" title="<?php echo lang('PAGE_EDITOR_ADD_LIST') ?>"><img src="<?php echo $image_dir ?>/editor/list.png" border"0" /></a></td> +<td><noscript><?php echo Html::Checkbox('numlist') ?></noscript><a href="javascript:numlist();" title="<?php echo lang('PAGE_EDITOR_ADD_NUMLIST') ?>"><img src="<?php echo $image_dir ?>/editor/numlist.png" border"0" /></a></td> +<td>&nbsp;&nbsp;&nbsp;&nbsp;</td> +<td><noscript><?php echo Html::Checkbox('image') ?></noscript><a href="javascript:image();" title="<?php echo lang('PAGE_EDITOR_ADD_IMAGE') ?>"><img src="<?php echo $image_dir ?>/editor/image.png" border"0" /></a></td> +<td><noscript><?php echo Html::Checkbox('link') ?></noscript><a href="javascript:link();" title="<?php echo lang('PAGE_EDITOR_ADD_LINK') ?>"><img src="<?php echo $image_dir ?>/editor/link.png" border"0" /></a></td> +<td><?php echo Html::selectBox('objectid',$objects) ?><noscript>&nbsp;&nbsp;&nbsp;<input type="submit" class="submit" name="addmarkup" value="<?php echo lang('GLOBAL_ADD') ?>"/></noscript></td> +</tr> +</table> +</td> +</tr> +<?php } ?> +<script name="Javascript" type="text/javascript" src="<?php echo $tpl_dir ?>../js/editor.js"></script> +<script name="JavaScript" type="text/javascript"> +<!-- +function strong() +{ +insert('text','*','*'); +} +function emphatic() +{ +insert('text','_','_'); +} +function link() +{ +insert('text','"','"->"'+document.forms[0].objectid.value+'"'); +} +function image() +{ +insert('text','','{"'+document.forms[0].objectid.value+'"}'); +} +function list() +{ +insert('text',"\n\n- ","\n- \n- \n"); +} +function numlist() +{ +insert('text',"\n\n# ","\n# \n# \n"); +} +function table() +{ +insert('text',"\n|","| |\n| | |\n"); +} +//--> +--> +</script> +<?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)) + { + $column_widths = explode(',',$attr3_widths); + unset($attr3['widths']); + } + if (!empty($attr3_rowclasses)) + { + $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="'.$attr3_width.'">'; + echo '<tr><td class="menu">'; + 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); + echo '<a href="'.$url.'" class="path">'.lang($name).'</a>'; + echo '&nbsp;&raquo;&nbsp;'; + } + echo '<span class="title">'.lang($windowTitle).'</span>'; + ?> + </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 ) + { + ?><a href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text'].'_DESC') ?>" class="menu<?php if($this->subActionName==$menu['subaction']) echo '_active' ?>"><?php echo lang($menu['text']) ?></a>&nbsp;&nbsp;&nbsp;<?php + } + if ($conf['help']['enabled'] ) + { + ?><a href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.$conf['help']['suffix'] ?> " target="_new" title="<?php echo lang('GLOBAL_HELP') ?>" class="menu">?</a><?php + } + ?></td> + </tr> + +<?php if (isset($notices) && count($notices)>0 ) + { ?> + + <tr> + <td><table> + + <?php foreach( $notices as $notice ) { ?> + + <td><img src="<?php echo $image_dir.'notice_'.$notice['status'].IMG_ICON_EXT ?>" style="padding:10px" /></td> + <td class="f1"><?php if ($notice['name']!='') { ?><img src="<?php echo $image_dir.'icon_'.$notice['type'].IMG_ICON_EXT ?>" align="left" /><?php echo $notice['name'] ?>: <?php } ?><?php if ($notice['status']=='error') { ?><strong><?php } ?><?php echo $notice['text'] ?><?php if ($notice['status']=='error') { ?></strong><?php } ?></td> + </tr> + <?php } ?> + + </table></td> + </tr> + +<?php } ?> + + + + <tr> + <td> + <table class="n" cellspacing="0" width="100%" cellpadding="4"><?php unset($attr3) ?><?php unset($attr3_name) ?><?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 class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5 = array('class'=>'help','colspan'=>'2') ?><?php $attr5_class='help' ?><?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($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('class'=>'text','var'=>'desc') ?><?php $attr6_class='text' ?><?php $attr6_var='desc' ?><?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 (!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_var) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4 = array('equals'=>'date','value'=>$type) ?><?php $attr4_equals='date' ?><?php $attr4_value=$type ?><?php + + // Wahr-Vergleich +// 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 ( 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( isset($attr4_contains) ) + $exec = in_array($attr4_value,explode(',',$attr4_contains)); + + // Inhalt-Vergleich + elseif( isset($attr4_equals)&& isset($attr4_value) ) + $exec = $attr4_equals == $attr4_value; + + // Vergleich auf leer + elseif ( isset($attr4_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( $$attr4_empty ); + } + + // 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; + } + + else + { + Html::debug( $attr4 ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; + } + + // Ergebnis umdrehen + 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($attr4) ?><?php unset($attr4_equals) ?><?php unset($attr4_value) ?><?php $attr5 = array('width'=>'85%','space'=>'0px','padding'=>'0px','rowclasses'=>'odd,even') ?><?php $attr5_width='85%' ?><?php $attr5_space='0px' ?><?php $attr5_padding='0px' ?><?php $attr5_rowclasses='odd,even' ?><?php + $coloumn_widths=array(); + if (!empty($attr5_widths)) + { + $column_widths = explode(',',$attr5_widths); + unset($attr5['widths']); + } + if (!empty($attr5_classes)) + { + $row_classes = explode(',',$attr5_rowclasses); + $row_class_idx = 999; + unset($attr5['rowclasses']); + } + if (!empty($attr5_rowclasses)) + { + $row_classes = explode(',',$attr5_rowclasses); + $row_class_idx = 999; + unset($attr5['rowclasses']); + } + if (!empty($attr5_columnclasses)) + { + $column_classes = explode(',',$attr5_columnclasses); + + unset($attr5['columnclasses']); + } + +?><table class="<?php echo $attr5_class ?>" cellspacing="<?php echo $attr5_space ?>" width="<?php echo $attr5_width ?>" cellpadding="<?php echo $attr5_padding ?>"><?php unset($attr5) ?><?php unset($attr5_width) ?><?php unset($attr5_space) ?><?php unset($attr5_padding) ?><?php unset($attr5_rowclasses) ?><?php $attr6 = 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($attr6_class)) + $attr6_class=$row_class; + + global $cell_column_nr; + $cell_column_nr=0; + + $column_class_idx = 999; + +?><tr class="<?php echo $attr6_class ?>"><?php unset($attr6) ?><?php $attr7 = array('class'=>'help','colspan'=>'7') ?><?php $attr7_class='help' ?><?php $attr7_colspan='7' ?><?php +// if (empty($attr7_class)) +// $attr7['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($attr7_class)) + $attr7['class']=$column_class; + + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr7_rowspan) ) + $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_class) ?><?php unset($attr7_colspan) ?><?php $attr8 = array('target'=>'_self','url'=>$lastmonthurl) ?><?php $attr8_target='_self' ?><?php $attr8_url=$lastmonthurl ?><?php + if(!empty($attr8_url)) + $tmp_url = $attr8_url; + 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('file'=>'left','align'=>'middle') ?><?php $attr9_file='left' ?><?php $attr9_align='middle' ?><?php +if (isset($attr9_elementtype)) { +?><img src="<?php echo $image_dir.'icon_el_'.$attr9_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php +} elseif (isset($attr9_type)) { +?><img src="<?php echo $image_dir.'icon_'.$attr9_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php +} elseif (isset($attr9_icon)) { +?><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_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_file) ?><?php unset($attr9_align) ?><?php $attr7 = array() ?></a><?php unset($attr7) ?><?php $attr8 = array('class'=>'text','raw'=>'_') ?><?php $attr8_class='text' ?><?php $attr8_raw='_' ?><?php + 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_raw) ?><?php $attr8 = array('class'=>'text','text'=>$monthname) ?><?php $attr8_class='text' ?><?php $attr8_text=$monthname ?><?php + 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 $attr8 = array('class'=>'text','raw'=>'_') ?><?php $attr8_class='text' ?><?php $attr8_raw='_' ?><?php + 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_raw) ?><?php $attr8 = array('target'=>'_self','url'=>$nextmonthurl) ?><?php $attr8_target='_self' ?><?php $attr8_url=$nextmonthurl ?><?php + if(!empty($attr8_url)) + $tmp_url = $attr8_url; + 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('file'=>'right','align'=>'middle') ?><?php $attr9_file='right' ?><?php $attr9_align='middle' ?><?php +if (isset($attr9_elementtype)) { +?><img src="<?php echo $image_dir.'icon_el_'.$attr9_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php +} elseif (isset($attr9_type)) { +?><img src="<?php echo $image_dir.'icon_'.$attr9_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php +} elseif (isset($attr9_icon)) { +?><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_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_file) ?><?php unset($attr9_align) ?><?php $attr7 = array() ?></a><?php unset($attr7) ?><?php $attr8 = array('class'=>'text','raw'=>'_____') ?><?php $attr8_class='text' ?><?php $attr8_raw='_____' ?><?php + 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_raw) ?><?php $attr8 = array('target'=>'_self','url'=>$lastyearurl) ?><?php $attr8_target='_self' ?><?php $attr8_url=$lastyearurl ?><?php + if(!empty($attr8_url)) + $tmp_url = $attr8_url; + 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('file'=>'left','align'=>'middle') ?><?php $attr9_file='left' ?><?php $attr9_align='middle' ?><?php +if (isset($attr9_elementtype)) { +?><img src="<?php echo $image_dir.'icon_el_'.$attr9_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php +} elseif (isset($attr9_type)) { +?><img src="<?php echo $image_dir.'icon_'.$attr9_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php +} elseif (isset($attr9_icon)) { +?><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_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_file) ?><?php unset($attr9_align) ?><?php $attr7 = array() ?></a><?php unset($attr7) ?><?php $attr8 = array('class'=>'text','raw'=>'_') ?><?php $attr8_class='text' ?><?php $attr8_raw='_' ?><?php + 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_raw) ?><?php $attr8 = array('class'=>'text','text'=>$yearname) ?><?php $attr8_class='text' ?><?php $attr8_text=$yearname ?><?php + 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 $attr8 = array('class'=>'text','raw'=>'_') ?><?php $attr8_class='text' ?><?php $attr8_raw='_' ?><?php + 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_raw) ?><?php $attr8 = array('target'=>'_self','url'=>$nextyearurl) ?><?php $attr8_target='_self' ?><?php $attr8_url=$nextyearurl ?><?php + if(!empty($attr8_url)) + $tmp_url = $attr8_url; + 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('file'=>'right','align'=>'middle') ?><?php $attr9_file='right' ?><?php $attr9_align='middle' ?><?php +if (isset($attr9_elementtype)) { +?><img src="<?php echo $image_dir.'icon_el_'.$attr9_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php +} elseif (isset($attr9_type)) { +?><img src="<?php echo $image_dir.'icon_'.$attr9_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php +} elseif (isset($attr9_icon)) { +?><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_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_file) ?><?php unset($attr9_align) ?><?php $attr7 = array() ?></a><?php unset($attr7) ?><?php $attr6 = array() ?></td><?php unset($attr6) ?><?php $attr5 = array() ?></tr><?php unset($attr5) ?><?php $attr6 = 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($attr6_class)) + $attr6_class=$row_class; + + global $cell_column_nr; + $cell_column_nr=0; + + $column_class_idx = 999; + +?><tr class="<?php echo $attr6_class ?>"><?php unset($attr6) ?><?php $attr7 = array() ?><?php +// if (empty($attr7_class)) +// $attr7['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($attr7_class)) + $attr7['class']=$column_class; + + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr7_rowspan) ) + $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 $attr8 = array('class'=>'text','text'=>lang('global_nr')) ?><?php $attr8_class='text' ?><?php $attr8_text=lang('global_nr') ?><?php + 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() ?></td><?php unset($attr6) ?><?php $attr7 = array('list'=>'weekdays','extract'=>'','key'=>'list_key','value'=>'weekday') ?><?php $attr7_list='weekdays' ?><?php $attr7_extract='' ?><?php $attr7_key='list_key' ?><?php $attr7_value='weekday' ?><?php + $attr7_list_tmp_key = $attr7_key; + $attr7_list_tmp_value = $attr7_value; + $attr7_list_extract = ($attr7_extract==true); + + if ( !is_array($$attr7_list) ) + $$attr7_list = array(); +// die('not an array in list,var='.$attr7_list); +// Html::debug($$attr7_list); + + foreach( $$attr7_list as $$attr7_list_tmp_key => $$attr7_list_tmp_value ) + { + if ( $attr7_list_extract ) + { + if ( !is_array($$attr7_list_tmp_value) ) + { + print_r($$attr7_list_tmp_value); + die( 'not an array at key: '.$$attr7_list_tmp_key ); + } + extract($$attr7_list_tmp_value); + } +?><?php unset($attr7) ?><?php unset($attr7_list) ?><?php unset($attr7_extract) ?><?php unset($attr7_key) ?><?php unset($attr7_value) ?><?php $attr8 = array() ?><?php +// if (empty($attr8_class)) +// $attr8['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($attr8_class)) + $attr8['class']=$column_class; + + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr8_rowspan) ) + $attr8['width']=$column_widths[$cell_column_nr-1]; + +?><td <?php foreach( $attr8 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr8) ?><?php $attr9 = array('class'=>'text','text'=>$weekday) ?><?php $attr9_class='text' ?><?php $attr9_text=$weekday ?><?php + if(empty($attr9_title)) + if (!empty($attr9_key)) + $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: + //echo $$attr9_array[$attr9_var].'%'; + $tmpArray = $$attr9_array; + if (!empty($attr9_var)) + $tmp_text = $tmpArray[$attr9_var]; + else + $tmp_text = lang($tmpArray[$attr9_text]); + } + elseif (!empty($attr9_text)) + if ( isset($$attr9_text)) + $tmp_text = lang($$attr9_text); + else + $tmp_text = lang($attr9_text); + elseif (!empty($attr9_textvar)) + $tmp_text = lang($$attr9_textvar); + elseif (!empty($attr9_key)) + $tmp_text = lang($attr9_key); + elseif (!empty($attr9_var)) + $tmp_text = isset($$attr9_var)?htmlentities($$attr9_var):'error: variable '.$attr9_var.' not present'; + elseif (!empty($attr9_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr9_raw); + elseif (!empty($attr9_value)) + $tmp_text = $attr9_value; + else + { + $tmp_text = '&nbsp;'; + //Html::debug($attr9);echo 'text error'; + } + + if ( !empty($attr9_maxlength) && intval($attr9_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr9_maxlength) ); + + echo $tmp_text; +?></span><?php unset($attr9) ?><?php unset($attr9_class) ?><?php unset($attr9_text) ?><?php #Html::debug($weeklist) ?> +<?php $attr7 = array() ?></td><?php unset($attr7) ?><?php $attr6 = array() ?><?php } ?><?php unset($attr6) ?><?php $attr5 = array() ?></tr><?php unset($attr5) ?><?php $attr6 = array('list'=>'weeklist','extract'=>'','key'=>'weeknr','value'=>'week') ?><?php $attr6_list='weeklist' ?><?php $attr6_extract='' ?><?php $attr6_key='weeknr' ?><?php $attr6_value='week' ?><?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( $$attr6_list as $$attr6_list_tmp_key => $$attr6_list_tmp_value ) + { + if ( $attr6_list_extract ) + { + if ( !is_array($$attr6_list_tmp_value) ) + { + print_r($$attr6_list_tmp_value); + die( 'not an array at key: '.$$attr6_list_tmp_key ); + } + extract($$attr6_list_tmp_value); + } +?><?php unset($attr6) ?><?php unset($attr6_list) ?><?php unset($attr6_extract) ?><?php unset($attr6_key) ?><?php unset($attr6_value) ?><?php $attr7 = 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($attr7_class)) + $attr7_class=$row_class; + + global $cell_column_nr; + $cell_column_nr=0; + + $column_class_idx = 999; + +?><tr class="<?php echo $attr7_class ?>"><?php unset($attr7) ?><?php $attr8 = array('width'=>'12%') ?><?php $attr8_width='12%' ?><?php +// if (empty($attr8_class)) +// $attr8['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($attr8_class)) + $attr8['class']=$column_class; + + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr8_rowspan) ) + $attr8['width']=$column_widths[$cell_column_nr-1]; + +?><td <?php foreach( $attr8 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr8) ?><?php unset($attr8_width) ?><?php $attr9 = array('class'=>'text','text'=>$weeknr) ?><?php $attr9_class='text' ?><?php $attr9_text=$weeknr ?><?php + if(empty($attr9_title)) + if (!empty($attr9_key)) + $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: + //echo $$attr9_array[$attr9_var].'%'; + $tmpArray = $$attr9_array; + if (!empty($attr9_var)) + $tmp_text = $tmpArray[$attr9_var]; + else + $tmp_text = lang($tmpArray[$attr9_text]); + } + elseif (!empty($attr9_text)) + if ( isset($$attr9_text)) + $tmp_text = lang($$attr9_text); + else + $tmp_text = lang($attr9_text); + elseif (!empty($attr9_textvar)) + $tmp_text = lang($$attr9_textvar); + elseif (!empty($attr9_key)) + $tmp_text = lang($attr9_key); + elseif (!empty($attr9_var)) + $tmp_text = isset($$attr9_var)?htmlentities($$attr9_var):'error: variable '.$attr9_var.' not present'; + elseif (!empty($attr9_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr9_raw); + elseif (!empty($attr9_value)) + $tmp_text = $attr9_value; + else + { + $tmp_text = '&nbsp;'; + //Html::debug($attr9);echo 'text error'; + } + + if ( !empty($attr9_maxlength) && intval($attr9_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr9_maxlength) ); + + echo $tmp_text; +?></span><?php unset($attr9) ?><?php unset($attr9_class) ?><?php unset($attr9_text) ?><?php $attr7 = array() ?></td><?php unset($attr7) ?><?php $attr8 = array('list'=>'week','extract'=>'1','key'=>'list_key','value'=>'list_value') ?><?php $attr8_list='week' ?><?php $attr8_extract='1' ?><?php $attr8_key='list_key' ?><?php $attr8_value='list_value' ?><?php + $attr8_list_tmp_key = $attr8_key; + $attr8_list_tmp_value = $attr8_value; + $attr8_list_extract = ($attr8_extract==true); + + if ( !is_array($$attr8_list) ) + $$attr8_list = array(); +// die('not an array in list,var='.$attr8_list); +// Html::debug($$attr8_list); + + foreach( $$attr8_list as $$attr8_list_tmp_key => $$attr8_list_tmp_value ) + { + if ( $attr8_list_extract ) + { + if ( !is_array($$attr8_list_tmp_value) ) + { + print_r($$attr8_list_tmp_value); + die( 'not an array at key: '.$$attr8_list_tmp_key ); + } + extract($$attr8_list_tmp_value); + } +?><?php unset($attr8) ?><?php unset($attr8_list) ?><?php unset($attr8_extract) ?><?php unset($attr8_key) ?><?php unset($attr8_value) ?><?php $attr9 = array('width'=>'12%') ?><?php $attr9_width='12%' ?><?php +// if (empty($attr9_class)) +// $attr9['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($attr9_class)) + $attr9['class']=$column_class; + + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr9_rowspan) ) + $attr9['width']=$column_widths[$cell_column_nr-1]; + +?><td <?php foreach( $attr9 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr9) ?><?php unset($attr9_width) ?><?php $attr10 = array('empty'=>'url') ?><?php $attr10_empty='url' ?><?php + + // Wahr-Vergleich +// Html::debug($attr10); + + if ( isset($attr10_true) ) + { + if (gettype($attr10_true) === '' && gettype($attr10_true) === '1') + $exec = $$attr10_true == true; + else + $exec = $attr10_true == true; + } + + // Falsch-Vergleich + elseif ( isset($attr10_false) ) + { + if (gettype($attr10_false) === '' && gettype($attr10_false) === '1') + $exec = $$attr10_false == false; + else + $exec = $attr10_false == false; + } + // Inhalt-Vergleich mit Wertliste + elseif( isset($attr10_contains) ) + $exec = in_array($attr10_value,explode(',',$attr10_contains)); + + // Inhalt-Vergleich + elseif( isset($attr10_equals)&& isset($attr10_value) ) + $exec = $attr10_equals == $attr10_value; + + // Vergleich auf leer + elseif ( isset($attr10_empty) ) + { + if ( !isset($$attr10_empty) ) + $exec = empty($attr10_empty); + elseif ( is_array($$attr10_empty) ) + $exec = (count($$attr10_empty)==0); + elseif ( is_bool($$attr10_empty) ) + $exec = true; + else + $exec = empty( $$attr10_empty ); + } + + // Vergleich auf Vorhandensein + elseif ( isset($attr10_present) ) + { + if ( !isset($$attr10_present) ) + $exec = false; + elseif ( is_array($$attr10_present) ) + $exec = (count($$attr10_present)>0); + elseif ( is_bool($$attr10_present) ) + $exec = $$attr10_present; + elseif ( is_numeric($$attr10_present) ) + $exec = $$attr10_present>=0; + else + $exec = true; + } + + else + { + Html::debug( $attr10 ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; + } + + // Ergebnis umdrehen + if ( !empty($attr10_invert) ) + $exec = !$exec; + + // Ergebnis umdrehen + if ( !empty($attr10_not) ) + $exec = !$exec; + + unset($attr10_true); + unset($attr10_false); + unset($attr10_notempty); + unset($attr10_empty); + unset($attr10_contains); + unset($attr10_present); + unset($attr10_invert); + unset($attr10_not); + unset($attr10_value); + unset($attr10_equals); + + $last_exec = $exec; + + if ( $exec ) + { +?><?php unset($attr10) ?><?php unset($attr10_empty) ?><?php $attr11 = array('class'=>'text','raw'=>'__') ?><?php $attr11_class='text' ?><?php $attr11_raw='__' ?><?php + if(empty($attr11_title)) + if (!empty($attr11_key)) + $attr11_title = lang($attr11_key).'_HELP'; + else + $attr11_title = ''; + +?><span class="<?php echo $attr11_class ?>" title="<?php echo $attr11_title ?>"><?php + $attr11_title = ''; + if (!empty($attr11_array)) + { + //geht nicht: + //echo $$attr11_array[$attr11_var].'%'; + $tmpArray = $$attr11_array; + if (!empty($attr11_var)) + $tmp_text = $tmpArray[$attr11_var]; + else + $tmp_text = lang($tmpArray[$attr11_text]); + } + elseif (!empty($attr11_text)) + if ( isset($$attr11_text)) + $tmp_text = lang($$attr11_text); + else + $tmp_text = lang($attr11_text); + elseif (!empty($attr11_textvar)) + $tmp_text = lang($$attr11_textvar); + elseif (!empty($attr11_key)) + $tmp_text = lang($attr11_key); + elseif (!empty($attr11_var)) + $tmp_text = isset($$attr11_var)?htmlentities($$attr11_var):'error: variable '.$attr11_var.' not present'; + elseif (!empty($attr11_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr11_raw); + elseif (!empty($attr11_value)) + $tmp_text = $attr11_value; + else + { + $tmp_text = '&nbsp;'; + //Html::debug($attr11);echo 'text error'; + } + + if ( !empty($attr11_maxlength) && intval($attr11_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr11_maxlength) ); + + echo $tmp_text; +?></span><?php unset($attr11) ?><?php unset($attr11_class) ?><?php unset($attr11_raw) ?><?php $attr11 = array('class'=>'text','text'=>$nr) ?><?php $attr11_class='text' ?><?php $attr11_text=$nr ?><?php + if(empty($attr11_title)) + if (!empty($attr11_key)) + $attr11_title = lang($attr11_key).'_HELP'; + else + $attr11_title = ''; + +?><span class="<?php echo $attr11_class ?>" title="<?php echo $attr11_title ?>"><?php + $attr11_title = ''; + if (!empty($attr11_array)) + { + //geht nicht: + //echo $$attr11_array[$attr11_var].'%'; + $tmpArray = $$attr11_array; + if (!empty($attr11_var)) + $tmp_text = $tmpArray[$attr11_var]; + else + $tmp_text = lang($tmpArray[$attr11_text]); + } + elseif (!empty($attr11_text)) + if ( isset($$attr11_text)) + $tmp_text = lang($$attr11_text); + else + $tmp_text = lang($attr11_text); + elseif (!empty($attr11_textvar)) + $tmp_text = lang($$attr11_textvar); + elseif (!empty($attr11_key)) + $tmp_text = lang($attr11_key); + elseif (!empty($attr11_var)) + $tmp_text = isset($$attr11_var)?htmlentities($$attr11_var):'error: variable '.$attr11_var.' not present'; + elseif (!empty($attr11_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr11_raw); + elseif (!empty($attr11_value)) + $tmp_text = $attr11_value; + else + { + $tmp_text = '&nbsp;'; + //Html::debug($attr11);echo 'text error'; + } + + if ( !empty($attr11_maxlength) && intval($attr11_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr11_maxlength) ); + + echo $tmp_text; +?></span><?php unset($attr11) ?><?php unset($attr11_class) ?><?php unset($attr11_text) ?><?php $attr11 = array('class'=>'text','raw'=>'__') ?><?php $attr11_class='text' ?><?php $attr11_raw='__' ?><?php + if(empty($attr11_title)) + if (!empty($attr11_key)) + $attr11_title = lang($attr11_key).'_HELP'; + else + $attr11_title = ''; + +?><span class="<?php echo $attr11_class ?>" title="<?php echo $attr11_title ?>"><?php + $attr11_title = ''; + if (!empty($attr11_array)) + { + //geht nicht: + //echo $$attr11_array[$attr11_var].'%'; + $tmpArray = $$attr11_array; + if (!empty($attr11_var)) + $tmp_text = $tmpArray[$attr11_var]; + else + $tmp_text = lang($tmpArray[$attr11_text]); + } + elseif (!empty($attr11_text)) + if ( isset($$attr11_text)) + $tmp_text = lang($$attr11_text); + else + $tmp_text = lang($attr11_text); + elseif (!empty($attr11_textvar)) + $tmp_text = lang($$attr11_textvar); + elseif (!empty($attr11_key)) + $tmp_text = lang($attr11_key); + elseif (!empty($attr11_var)) + $tmp_text = isset($$attr11_var)?htmlentities($$attr11_var):'error: variable '.$attr11_var.' not present'; + elseif (!empty($attr11_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr11_raw); + elseif (!empty($attr11_value)) + $tmp_text = $attr11_value; + else + { + $tmp_text = '&nbsp;'; + //Html::debug($attr11);echo 'text error'; + } + + if ( !empty($attr11_maxlength) && intval($attr11_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr11_maxlength) ); + + echo $tmp_text; +?></span><?php unset($attr11) ?><?php unset($attr11_class) ?><?php unset($attr11_raw) ?><?php $attr9 = array() ?><?php + } + +?><?php unset($attr9) ?><?php $attr10 = array('not'=>'1','empty'=>'url') ?><?php $attr10_not='1' ?><?php $attr10_empty='url' ?><?php + + // Wahr-Vergleich +// Html::debug($attr10); + + if ( isset($attr10_true) ) + { + if (gettype($attr10_true) === '' && gettype($attr10_true) === '1') + $exec = $$attr10_true == true; + else + $exec = $attr10_true == true; + } + + // Falsch-Vergleich + elseif ( isset($attr10_false) ) + { + if (gettype($attr10_false) === '' && gettype($attr10_false) === '1') + $exec = $$attr10_false == false; + else + $exec = $attr10_false == false; + } + // Inhalt-Vergleich mit Wertliste + elseif( isset($attr10_contains) ) + $exec = in_array($attr10_value,explode(',',$attr10_contains)); + + // Inhalt-Vergleich + elseif( isset($attr10_equals)&& isset($attr10_value) ) + $exec = $attr10_equals == $attr10_value; + + // Vergleich auf leer + elseif ( isset($attr10_empty) ) + { + if ( !isset($$attr10_empty) ) + $exec = empty($attr10_empty); + elseif ( is_array($$attr10_empty) ) + $exec = (count($$attr10_empty)==0); + elseif ( is_bool($$attr10_empty) ) + $exec = true; + else + $exec = empty( $$attr10_empty ); + } + + // Vergleich auf Vorhandensein + elseif ( isset($attr10_present) ) + { + if ( !isset($$attr10_present) ) + $exec = false; + elseif ( is_array($$attr10_present) ) + $exec = (count($$attr10_present)>0); + elseif ( is_bool($$attr10_present) ) + $exec = $$attr10_present; + elseif ( is_numeric($$attr10_present) ) + $exec = $$attr10_present>=0; + else + $exec = true; + } + + else + { + Html::debug( $attr10 ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; + } + + // Ergebnis umdrehen + if ( !empty($attr10_invert) ) + $exec = !$exec; + + // Ergebnis umdrehen + if ( !empty($attr10_not) ) + $exec = !$exec; + + unset($attr10_true); + unset($attr10_false); + unset($attr10_notempty); + unset($attr10_empty); + unset($attr10_contains); + unset($attr10_present); + unset($attr10_invert); + unset($attr10_not); + unset($attr10_value); + unset($attr10_equals); + + $last_exec = $exec; + + if ( $exec ) + { +?><?php unset($attr10) ?><?php unset($attr10_not) ?><?php unset($attr10_empty) ?><?php $attr11 = array('target'=>'_self','url'=>$url) ?><?php $attr11_target='_self' ?><?php $attr11_url=$url ?><?php + if(!empty($attr11_url)) + $tmp_url = $attr11_url; + else + $tmp_url = Html::url($attr11_action,$attr11_subaction,!empty($$attr11_id)?$$attr11_id:$this->getRequestId(),array(!empty($var1)?$var1:'asdf'=>!empty($value1)?$$value1:'')); +?><a href="<?php echo $tmp_url ?>" class="<?php echo $attr11_class ?>" target="<?php echo $attr11_target ?>" title="<?php echo $attr11_title ?>"><?php unset($attr11) ?><?php unset($attr11_target) ?><?php unset($attr11_url) ?><?php $attr12 = array('class'=>'text','raw'=>'__') ?><?php $attr12_class='text' ?><?php $attr12_raw='__' ?><?php + if(empty($attr12_title)) + if (!empty($attr12_key)) + $attr12_title = lang($attr12_key).'_HELP'; + else + $attr12_title = ''; + +?><span class="<?php echo $attr12_class ?>" title="<?php echo $attr12_title ?>"><?php + $attr12_title = ''; + if (!empty($attr12_array)) + { + //geht nicht: + //echo $$attr12_array[$attr12_var].'%'; + $tmpArray = $$attr12_array; + if (!empty($attr12_var)) + $tmp_text = $tmpArray[$attr12_var]; + else + $tmp_text = lang($tmpArray[$attr12_text]); + } + elseif (!empty($attr12_text)) + if ( isset($$attr12_text)) + $tmp_text = lang($$attr12_text); + else + $tmp_text = lang($attr12_text); + elseif (!empty($attr12_textvar)) + $tmp_text = lang($$attr12_textvar); + elseif (!empty($attr12_key)) + $tmp_text = lang($attr12_key); + elseif (!empty($attr12_var)) + $tmp_text = isset($$attr12_var)?htmlentities($$attr12_var):'error: variable '.$attr12_var.' not present'; + elseif (!empty($attr12_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr12_raw); + elseif (!empty($attr12_value)) + $tmp_text = $attr12_value; + else + { + $tmp_text = '&nbsp;'; + //Html::debug($attr12);echo 'text error'; + } + + if ( !empty($attr12_maxlength) && intval($attr12_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr12_maxlength) ); + + echo $tmp_text; +?></span><?php unset($attr12) ?><?php unset($attr12_class) ?><?php unset($attr12_raw) ?><?php $attr12 = array('class'=>'text','text'=>$nr) ?><?php $attr12_class='text' ?><?php $attr12_text=$nr ?><?php + if(empty($attr12_title)) + if (!empty($attr12_key)) + $attr12_title = lang($attr12_key).'_HELP'; + else + $attr12_title = ''; + +?><span class="<?php echo $attr12_class ?>" title="<?php echo $attr12_title ?>"><?php + $attr12_title = ''; + if (!empty($attr12_array)) + { + //geht nicht: + //echo $$attr12_array[$attr12_var].'%'; + $tmpArray = $$attr12_array; + if (!empty($attr12_var)) + $tmp_text = $tmpArray[$attr12_var]; + else + $tmp_text = lang($tmpArray[$attr12_text]); + } + elseif (!empty($attr12_text)) + if ( isset($$attr12_text)) + $tmp_text = lang($$attr12_text); + else + $tmp_text = lang($attr12_text); + elseif (!empty($attr12_textvar)) + $tmp_text = lang($$attr12_textvar); + elseif (!empty($attr12_key)) + $tmp_text = lang($attr12_key); + elseif (!empty($attr12_var)) + $tmp_text = isset($$attr12_var)?htmlentities($$attr12_var):'error: variable '.$attr12_var.' not present'; + elseif (!empty($attr12_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr12_raw); + elseif (!empty($attr12_value)) + $tmp_text = $attr12_value; + else + { + $tmp_text = '&nbsp;'; + //Html::debug($attr12);echo 'text error'; + } + + if ( !empty($attr12_maxlength) && intval($attr12_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr12_maxlength) ); + + echo $tmp_text; +?></span><?php unset($attr12) ?><?php unset($attr12_class) ?><?php unset($attr12_text) ?><?php $attr12 = array('class'=>'text','raw'=>'__') ?><?php $attr12_class='text' ?><?php $attr12_raw='__' ?><?php + if(empty($attr12_title)) + if (!empty($attr12_key)) + $attr12_title = lang($attr12_key).'_HELP'; + else + $attr12_title = ''; + +?><span class="<?php echo $attr12_class ?>" title="<?php echo $attr12_title ?>"><?php + $attr12_title = ''; + if (!empty($attr12_array)) + { + //geht nicht: + //echo $$attr12_array[$attr12_var].'%'; + $tmpArray = $$attr12_array; + if (!empty($attr12_var)) + $tmp_text = $tmpArray[$attr12_var]; + else + $tmp_text = lang($tmpArray[$attr12_text]); + } + elseif (!empty($attr12_text)) + if ( isset($$attr12_text)) + $tmp_text = lang($$attr12_text); + else + $tmp_text = lang($attr12_text); + elseif (!empty($attr12_textvar)) + $tmp_text = lang($$attr12_textvar); + elseif (!empty($attr12_key)) + $tmp_text = lang($attr12_key); + elseif (!empty($attr12_var)) + $tmp_text = isset($$attr12_var)?htmlentities($$attr12_var):'error: variable '.$attr12_var.' not present'; + elseif (!empty($attr12_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr12_raw); + elseif (!empty($attr12_value)) + $tmp_text = $attr12_value; + else + { + $tmp_text = '&nbsp;'; + //Html::debug($attr12);echo 'text error'; + } + + if ( !empty($attr12_maxlength) && intval($attr12_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr12_maxlength) ); + + echo $tmp_text; +?></span><?php unset($attr12) ?><?php unset($attr12_class) ?><?php unset($attr12_raw) ?><?php $attr10 = array() ?></a><?php unset($attr10) ?><?php $attr9 = array() ?><?php + } + +?><?php unset($attr9) ?><?php $attr10 = array('true'=>$today) ?><?php $attr10_true=$today ?><?php + + // Wahr-Vergleich +// Html::debug($attr10); + + if ( isset($attr10_true) ) + { + if (gettype($attr10_true) === '' && gettype($attr10_true) === '1') + $exec = $$attr10_true == true; + else + $exec = $attr10_true == true; + } + + // Falsch-Vergleich + elseif ( isset($attr10_false) ) + { + if (gettype($attr10_false) === '' && gettype($attr10_false) === '1') + $exec = $$attr10_false == false; + else + $exec = $attr10_false == false; + } + // Inhalt-Vergleich mit Wertliste + elseif( isset($attr10_contains) ) + $exec = in_array($attr10_value,explode(',',$attr10_contains)); + + // Inhalt-Vergleich + elseif( isset($attr10_equals)&& isset($attr10_value) ) + $exec = $attr10_equals == $attr10_value; + + // Vergleich auf leer + elseif ( isset($attr10_empty) ) + { + if ( !isset($$attr10_empty) ) + $exec = empty($attr10_empty); + elseif ( is_array($$attr10_empty) ) + $exec = (count($$attr10_empty)==0); + elseif ( is_bool($$attr10_empty) ) + $exec = true; + else + $exec = empty( $$attr10_empty ); + } + + // Vergleich auf Vorhandensein + elseif ( isset($attr10_present) ) + { + if ( !isset($$attr10_present) ) + $exec = false; + elseif ( is_array($$attr10_present) ) + $exec = (count($$attr10_present)>0); + elseif ( is_bool($$attr10_present) ) + $exec = $$attr10_present; + elseif ( is_numeric($$attr10_present) ) + $exec = $$attr10_present>=0; + else + $exec = true; + } + + else + { + Html::debug( $attr10 ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; + } + + // Ergebnis umdrehen + if ( !empty($attr10_invert) ) + $exec = !$exec; + + // Ergebnis umdrehen + if ( !empty($attr10_not) ) + $exec = !$exec; + + unset($attr10_true); + unset($attr10_false); + unset($attr10_notempty); + unset($attr10_empty); + unset($attr10_contains); + unset($attr10_present); + unset($attr10_invert); + unset($attr10_not); + unset($attr10_value); + unset($attr10_equals); + + $last_exec = $exec; + + if ( $exec ) + { +?><?php unset($attr10) ?><?php unset($attr10_true) ?><?php $attr11 = array('class'=>'text','raw'=>'*') ?><?php $attr11_class='text' ?><?php $attr11_raw='*' ?><?php + if(empty($attr11_title)) + if (!empty($attr11_key)) + $attr11_title = lang($attr11_key).'_HELP'; + else + $attr11_title = ''; + +?><span class="<?php echo $attr11_class ?>" title="<?php echo $attr11_title ?>"><?php + $attr11_title = ''; + if (!empty($attr11_array)) + { + //geht nicht: + //echo $$attr11_array[$attr11_var].'%'; + $tmpArray = $$attr11_array; + if (!empty($attr11_var)) + $tmp_text = $tmpArray[$attr11_var]; + else + $tmp_text = lang($tmpArray[$attr11_text]); + } + elseif (!empty($attr11_text)) + if ( isset($$attr11_text)) + $tmp_text = lang($$attr11_text); + else + $tmp_text = lang($attr11_text); + elseif (!empty($attr11_textvar)) + $tmp_text = lang($$attr11_textvar); + elseif (!empty($attr11_key)) + $tmp_text = lang($attr11_key); + elseif (!empty($attr11_var)) + $tmp_text = isset($$attr11_var)?htmlentities($$attr11_var):'error: variable '.$attr11_var.' not present'; + elseif (!empty($attr11_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr11_raw); + elseif (!empty($attr11_value)) + $tmp_text = $attr11_value; + else + { + $tmp_text = '&nbsp;'; + //Html::debug($attr11);echo 'text error'; + } + + if ( !empty($attr11_maxlength) && intval($attr11_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr11_maxlength) ); + + echo $tmp_text; +?></span><?php unset($attr11) ?><?php unset($attr11_class) ?><?php unset($attr11_raw) ?><?php $attr9 = array() ?><?php + } + +?><?php unset($attr9) ?><?php $attr8 = array() ?></td><?php unset($attr8) ?><?php $attr7 = array() ?><?php } ?><?php unset($attr7) ?><?php $attr6 = array() ?></tr><?php unset($attr6) ?><?php $attr5 = array() ?><?php } ?><?php unset($attr5) ?><?php $attr6 = 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($attr6_class)) + $attr6_class=$row_class; + + global $cell_column_nr; + $cell_column_nr=0; + + $column_class_idx = 999; + +?><tr class="<?php echo $attr6_class ?>"><?php unset($attr6) ?><?php $attr7 = array('class'=>'fx','colspan'=>'2') ?><?php $attr7_class='fx' ?><?php $attr7_colspan='2' ?><?php +// if (empty($attr7_class)) +// $attr7['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($attr7_class)) + $attr7['class']=$column_class; + + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr7_rowspan) ) + $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_class) ?><?php unset($attr7_colspan) ?><?php $attr8 = array('class'=>'text','text'=>lang('date')) ?><?php $attr8_class='text' ?><?php $attr8_text=lang('date') ?><?php + 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() ?></td><?php unset($attr6) ?><?php $attr7 = array('class'=>'fx','colspan'=>'5') ?><?php $attr7_class='fx' ?><?php $attr7_colspan='5' ?><?php +// if (empty($attr7_class)) +// $attr7['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($attr7_class)) + $attr7['class']=$column_class; + + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr7_rowspan) ) + $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_class) ?><?php unset($attr7_colspan) ?><?php $attr8 = array('list'=>'all_years','name'=>'year') ?><?php $attr8_list='all_years' ?><?php $attr8_name='year' ?><select size="1" id="id<?php echo $attr8_name ?>" name="<?php echo $attr8_name ?>" onchange="<?php echo $attr8_onchange ?>" title="<?php echo $attr8_title ?>" class="<?php echo $attr8_class ?>"<?php +if (count($$attr8_list)==1) echo ' disabled="disabled"' +?>><?php + foreach( $$attr8_list as $box_key=>$box_value ) + { + echo '<option class="'.$attr8_class.'" value="'.$box_key.'"'; + if (isset($$attr8_name)&&$box_key==$$attr8_name || isset($attr8_default)&&$box_key == $attr8_default) + echo ' selected="selected"'; + echo '>'.$box_value.'</option>'; + } +?></select><?php +if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" value="'.$box_key.'" />' +?><?php unset($attr8) ?><?php unset($attr8_list) ?><?php unset($attr8_name) ?><?php $attr8 = array('class'=>'text','raw'=>'_-_') ?><?php $attr8_class='text' ?><?php $attr8_raw='_-_' ?><?php + 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_raw) ?><?php $attr8 = array('list'=>'all_months','name'=>'month') ?><?php $attr8_list='all_months' ?><?php $attr8_name='month' ?><select size="1" id="id<?php echo $attr8_name ?>" name="<?php echo $attr8_name ?>" onchange="<?php echo $attr8_onchange ?>" title="<?php echo $attr8_title ?>" class="<?php echo $attr8_class ?>"<?php +if (count($$attr8_list)==1) echo ' disabled="disabled"' +?>><?php + foreach( $$attr8_list as $box_key=>$box_value ) + { + echo '<option class="'.$attr8_class.'" value="'.$box_key.'"'; + if (isset($$attr8_name)&&$box_key==$$attr8_name || isset($attr8_default)&&$box_key == $attr8_default) + echo ' selected="selected"'; + echo '>'.$box_value.'</option>'; + } +?></select><?php +if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" value="'.$box_key.'" />' +?><?php unset($attr8) ?><?php unset($attr8_list) ?><?php unset($attr8_name) ?><?php $attr8 = array('class'=>'text','raw'=>'_-_') ?><?php $attr8_class='text' ?><?php $attr8_raw='_-_' ?><?php + 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_raw) ?><?php $attr8 = array('list'=>'all_days','name'=>'day') ?><?php $attr8_list='all_days' ?><?php $attr8_name='day' ?><select size="1" id="id<?php echo $attr8_name ?>" name="<?php echo $attr8_name ?>" onchange="<?php echo $attr8_onchange ?>" title="<?php echo $attr8_title ?>" class="<?php echo $attr8_class ?>"<?php +if (count($$attr8_list)==1) echo ' disabled="disabled"' +?>><?php + foreach( $$attr8_list as $box_key=>$box_value ) + { + echo '<option class="'.$attr8_class.'" value="'.$box_key.'"'; + if (isset($$attr8_name)&&$box_key==$$attr8_name || isset($attr8_default)&&$box_key == $attr8_default) + echo ' selected="selected"'; + echo '>'.$box_value.'</option>'; + } +?></select><?php +if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" value="'.$box_key.'" />' +?><?php unset($attr8) ?><?php unset($attr8_list) ?><?php unset($attr8_name) ?><?php $attr6 = array() ?></td><?php unset($attr6) ?><?php $attr5 = array() ?></tr><?php unset($attr5) ?><?php $attr6 = 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($attr6_class)) + $attr6_class=$row_class; + + global $cell_column_nr; + $cell_column_nr=0; + + $column_class_idx = 999; + +?><tr class="<?php echo $attr6_class ?>"><?php unset($attr6) ?><?php $attr7 = array('class'=>'fx','colspan'=>'2') ?><?php $attr7_class='fx' ?><?php $attr7_colspan='2' ?><?php +// if (empty($attr7_class)) +// $attr7['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($attr7_class)) + $attr7['class']=$column_class; + + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr7_rowspan) ) + $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_class) ?><?php unset($attr7_colspan) ?><?php $attr8 = array('class'=>'text','text'=>lang('date_time')) ?><?php $attr8_class='text' ?><?php $attr8_text=lang('date_time') ?><?php + 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() ?></td><?php unset($attr6) ?><?php $attr7 = array('class'=>'fx','colspan'=>'5') ?><?php $attr7_class='fx' ?><?php $attr7_colspan='5' ?><?php +// if (empty($attr7_class)) +// $attr7['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($attr7_class)) + $attr7['class']=$column_class; + + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr7_rowspan) ) + $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_class) ?><?php unset($attr7_colspan) ?><?php $attr8 = array('list'=>'all_hours','name'=>'hour') ?><?php $attr8_list='all_hours' ?><?php $attr8_name='hour' ?><select size="1" id="id<?php echo $attr8_name ?>" name="<?php echo $attr8_name ?>" onchange="<?php echo $attr8_onchange ?>" title="<?php echo $attr8_title ?>" class="<?php echo $attr8_class ?>"<?php +if (count($$attr8_list)==1) echo ' disabled="disabled"' +?>><?php + foreach( $$attr8_list as $box_key=>$box_value ) + { + echo '<option class="'.$attr8_class.'" value="'.$box_key.'"'; + if (isset($$attr8_name)&&$box_key==$$attr8_name || isset($attr8_default)&&$box_key == $attr8_default) + echo ' selected="selected"'; + echo '>'.$box_value.'</option>'; + } +?></select><?php +if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" value="'.$box_key.'" />' +?><?php unset($attr8) ?><?php unset($attr8_list) ?><?php unset($attr8_name) ?><?php $attr8 = array('class'=>'text','raw'=>'_-_') ?><?php $attr8_class='text' ?><?php $attr8_raw='_-_' ?><?php + 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_raw) ?><?php $attr8 = array('list'=>'all_minutes','name'=>'minute') ?><?php $attr8_list='all_minutes' ?><?php $attr8_name='minute' ?><select size="1" id="id<?php echo $attr8_name ?>" name="<?php echo $attr8_name ?>" onchange="<?php echo $attr8_onchange ?>" title="<?php echo $attr8_title ?>" class="<?php echo $attr8_class ?>"<?php +if (count($$attr8_list)==1) echo ' disabled="disabled"' +?>><?php + foreach( $$attr8_list as $box_key=>$box_value ) + { + echo '<option class="'.$attr8_class.'" value="'.$box_key.'"'; + if (isset($$attr8_name)&&$box_key==$$attr8_name || isset($attr8_default)&&$box_key == $attr8_default) + echo ' selected="selected"'; + echo '>'.$box_value.'</option>'; + } +?></select><?php +if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" value="'.$box_key.'" />' +?><?php unset($attr8) ?><?php unset($attr8_list) ?><?php unset($attr8_name) ?><?php $attr8 = array('class'=>'text','raw'=>'_-_') ?><?php $attr8_class='text' ?><?php $attr8_raw='_-_' ?><?php + 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_raw) ?><?php $attr8 = array('list'=>'all_seconds','name'=>'second') ?><?php $attr8_list='all_seconds' ?><?php $attr8_name='second' ?><select size="1" id="id<?php echo $attr8_name ?>" name="<?php echo $attr8_name ?>" onchange="<?php echo $attr8_onchange ?>" title="<?php echo $attr8_title ?>" class="<?php echo $attr8_class ?>"<?php +if (count($$attr8_list)==1) echo ' disabled="disabled"' +?>><?php + foreach( $$attr8_list as $box_key=>$box_value ) + { + echo '<option class="'.$attr8_class.'" value="'.$box_key.'"'; + if (isset($$attr8_name)&&$box_key==$$attr8_name || isset($attr8_default)&&$box_key == $attr8_default) + echo ' selected="selected"'; + echo '>'.$box_value.'</option>'; + } +?></select><?php +if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" value="'.$box_key.'" />' +?><?php unset($attr8) ?><?php unset($attr8_list) ?><?php unset($attr8_name) ?><?php $attr6 = array() ?></td><?php unset($attr6) ?><?php $attr5 = array() ?></tr><?php unset($attr5) ?><?php $attr4 = array() ?></table><?php unset($attr4) ?><?php $attr3 = array() ?><?php + } + +?><?php unset($attr3) ?><?php $attr4 = array('equals'=>'text','value'=>$type) ?><?php $attr4_equals='text' ?><?php $attr4_value=$type ?><?php + + // Wahr-Vergleich +// 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 ( 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( isset($attr4_contains) ) + $exec = in_array($attr4_value,explode(',',$attr4_contains)); + + // Inhalt-Vergleich + elseif( isset($attr4_equals)&& isset($attr4_value) ) + $exec = $attr4_equals == $attr4_value; + + // Vergleich auf leer + elseif ( isset($attr4_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( $$attr4_empty ); + } + + // 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; + } + + else + { + Html::debug( $attr4 ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; + } + + // Ergebnis umdrehen + 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($attr4) ?><?php unset($attr4_equals) ?><?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 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($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 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(); +document.forms[0].<?php echo $attr7_field ?>.select(); +// --> +</script> +<?php unset($attr7) ?><?php unset($attr7_field) ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3 = array() ?><?php + } + +?><?php unset($attr3) ?><?php $attr4 = array('equals'=>'longtext','value'=>$type) ?><?php $attr4_equals='longtext' ?><?php $attr4_value=$type ?><?php + + // Wahr-Vergleich +// 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 ( 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( isset($attr4_contains) ) + $exec = in_array($attr4_value,explode(',',$attr4_contains)); + + // Inhalt-Vergleich + elseif( isset($attr4_equals)&& isset($attr4_value) ) + $exec = $attr4_equals == $attr4_value; + + // Vergleich auf leer + elseif ( isset($attr4_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( $$attr4_empty ); + } + + // 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; + } + + else + { + Html::debug( $attr4 ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; + } + + // Ergebnis umdrehen + 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($attr4) ?><?php unset($attr4_equals) ?><?php unset($attr4_value) ?><?php $attr5 = array('true'=>$html) ?><?php $attr5_true=$html ?><?php + + // Wahr-Vergleich +// Html::debug($attr5); + + if ( isset($attr5_true) ) + { + if (gettype($attr5_true) === '' && gettype($attr5_true) === '1') + $exec = $$attr5_true == true; + else + $exec = $attr5_true == true; + } + + // Falsch-Vergleich + elseif ( isset($attr5_false) ) + { + if (gettype($attr5_false) === '' && gettype($attr5_false) === '1') + $exec = $$attr5_false == false; + else + $exec = $attr5_false == false; + } + // Inhalt-Vergleich mit Wertliste + elseif( isset($attr5_contains) ) + $exec = in_array($attr5_value,explode(',',$attr5_contains)); + + // Inhalt-Vergleich + elseif( isset($attr5_equals)&& isset($attr5_value) ) + $exec = $attr5_equals == $attr5_value; + + // Vergleich auf leer + elseif ( isset($attr5_empty) ) + { + if ( !isset($$attr5_empty) ) + $exec = empty($attr5_empty); + elseif ( is_array($$attr5_empty) ) + $exec = (count($$attr5_empty)==0); + elseif ( is_bool($$attr5_empty) ) + $exec = true; + else + $exec = empty( $$attr5_empty ); + } + + // 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; + } + + else + { + Html::debug( $attr5 ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; + } + + // Ergebnis umdrehen + if ( !empty($attr5_invert) ) + $exec = !$exec; + + // Ergebnis umdrehen + if ( !empty($attr5_not) ) + $exec = !$exec; + + unset($attr5_true); + unset($attr5_false); + unset($attr5_notempty); + unset($attr5_empty); + unset($attr5_contains); + unset($attr5_present); + unset($attr5_invert); + unset($attr5_not); + unset($attr5_value); + unset($attr5_equals); + + $last_exec = $exec; + + if ( $exec ) + { +?><?php unset($attr5) ?><?php unset($attr5_true) ?><?php +include('./editor/fckeditor.php'); +$editor = new FCKeditor('text') ; +$editor->BasePath = './editor/'; +$editor->Value = $text; +$editor->Height = '290'; +$editor->Config['CustomConfigurationsPath'] = '../openrat-fckconfig.js'; +$editor->Create(); +?> +<?php $attr4 = array() ?><?php + } + +?><?php unset($attr4) ?><?php $attr5 = array('true'=>$wiki) ?><?php $attr5_true=$wiki ?><?php + + // Wahr-Vergleich +// Html::debug($attr5); + + if ( isset($attr5_true) ) + { + if (gettype($attr5_true) === '' && gettype($attr5_true) === '1') + $exec = $$attr5_true == true; + else + $exec = $attr5_true == true; + } + + // Falsch-Vergleich + elseif ( isset($attr5_false) ) + { + if (gettype($attr5_false) === '' && gettype($attr5_false) === '1') + $exec = $$attr5_false == false; + else + $exec = $attr5_false == false; + } + // Inhalt-Vergleich mit Wertliste + elseif( isset($attr5_contains) ) + $exec = in_array($attr5_value,explode(',',$attr5_contains)); + + // Inhalt-Vergleich + elseif( isset($attr5_equals)&& isset($attr5_value) ) + $exec = $attr5_equals == $attr5_value; + + // Vergleich auf leer + elseif ( isset($attr5_empty) ) + { + if ( !isset($$attr5_empty) ) + $exec = empty($attr5_empty); + elseif ( is_array($$attr5_empty) ) + $exec = (count($$attr5_empty)==0); + elseif ( is_bool($$attr5_empty) ) + $exec = true; + else + $exec = empty( $$attr5_empty ); + } + + // 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; + } + + else + { + Html::debug( $attr5 ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; + } + + // Ergebnis umdrehen + if ( !empty($attr5_invert) ) + $exec = !$exec; + + // Ergebnis umdrehen + if ( !empty($attr5_not) ) + $exec = !$exec; + + unset($attr5_true); + unset($attr5_false); + unset($attr5_notempty); + unset($attr5_empty); + unset($attr5_contains); + unset($attr5_present); + unset($attr5_invert); + unset($attr5_not); + unset($attr5_value); + unset($attr5_equals); + + $last_exec = $exec; + + if ( $exec ) + { +?><?php unset($attr5) ?><?php unset($attr5_true) ?><?php $attr6 = array('present'=>'preview_text') ?><?php $attr6_present='preview_text' ?><?php + + // Wahr-Vergleich +// Html::debug($attr6); + + if ( isset($attr6_true) ) + { + if (gettype($attr6_true) === '' && gettype($attr6_true) === '1') + $exec = $$attr6_true == true; + else + $exec = $attr6_true == true; + } + + // Falsch-Vergleich + elseif ( isset($attr6_false) ) + { + if (gettype($attr6_false) === '' && gettype($attr6_false) === '1') + $exec = $$attr6_false == false; + else + $exec = $attr6_false == false; + } + // Inhalt-Vergleich mit Wertliste + elseif( isset($attr6_contains) ) + $exec = in_array($attr6_value,explode(',',$attr6_contains)); + + // Inhalt-Vergleich + elseif( isset($attr6_equals)&& isset($attr6_value) ) + $exec = $attr6_equals == $attr6_value; + + // Vergleich auf leer + elseif ( isset($attr6_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( $$attr6_empty ); + } + + // 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; + } + + else + { + Html::debug( $attr6 ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; + } + + // Ergebnis umdrehen + if ( !empty($attr6_invert) ) + $exec = !$exec; + + // Ergebnis umdrehen + if ( !empty($attr6_not) ) + $exec = !$exec; + + 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($attr6) ?><?php unset($attr6_present) ?><?php $attr7 = 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($attr7_class)) + $attr7_class=$row_class; + + global $cell_column_nr; + $cell_column_nr=0; + + $column_class_idx = 999; + +?><tr class="<?php echo $attr7_class ?>"><?php unset($attr7) ?><?php $attr8 = array('class'=>'fx','colspan'=>'2') ?><?php $attr8_class='fx' ?><?php $attr8_colspan='2' ?><?php +// if (empty($attr8_class)) +// $attr8['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($attr8_class)) + $attr8['class']=$column_class; + + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr8_rowspan) ) + $attr8['width']=$column_widths[$cell_column_nr-1]; + +?><td <?php foreach( $attr8 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_colspan) ?><?php $attr9 = array('class'=>'text','var'=>'preview_text') ?><?php $attr9_class='text' ?><?php $attr9_var='preview_text' ?><?php + if(empty($attr9_title)) + if (!empty($attr9_key)) + $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: + //echo $$attr9_array[$attr9_var].'%'; + $tmpArray = $$attr9_array; + if (!empty($attr9_var)) + $tmp_text = $tmpArray[$attr9_var]; + else + $tmp_text = lang($tmpArray[$attr9_text]); + } + elseif (!empty($attr9_text)) + if ( isset($$attr9_text)) + $tmp_text = lang($$attr9_text); + else + $tmp_text = lang($attr9_text); + elseif (!empty($attr9_textvar)) + $tmp_text = lang($$attr9_textvar); + elseif (!empty($attr9_key)) + $tmp_text = lang($attr9_key); + elseif (!empty($attr9_var)) + $tmp_text = isset($$attr9_var)?htmlentities($$attr9_var):'error: variable '.$attr9_var.' not present'; + elseif (!empty($attr9_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr9_raw); + elseif (!empty($attr9_value)) + $tmp_text = $attr9_value; + else + { + $tmp_text = '&nbsp;'; + //Html::debug($attr9);echo 'text error'; + } + + if ( !empty($attr9_maxlength) && intval($attr9_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr9_maxlength) ); + + echo $tmp_text; +?></span><?php unset($attr9) ?><?php unset($attr9_class) ?><?php unset($attr9_var) ?><?php editBar() ?> +<?php $attr7 = array() ?></td><?php unset($attr7) ?><?php $attr6 = array() ?></tr><?php unset($attr6) ?><?php $attr5 = array() ?><?php + } + +?><?php unset($attr5) ?><?php $attr6 = 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($attr6_class)) + $attr6_class=$row_class; + + global $cell_column_nr; + $cell_column_nr=0; + + $column_class_idx = 999; + +?><tr class="<?php echo $attr6_class ?>"><?php unset($attr6) ?><?php $attr7 = array('class'=>'fx','colspan'=>'2') ?><?php $attr7_class='fx' ?><?php $attr7_colspan='2' ?><?php +// if (empty($attr7_class)) +// $attr7['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($attr7_class)) + $attr7['class']=$column_class; + + global $cell_column_nr; + $cell_column_nr++; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr7_rowspan) ) + $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_class) ?><?php unset($attr7_colspan) ?><?php $attr8 = array('name'=>'text','rows'=>'25','cols'=>'70','class'=>'longtext') ?><?php $attr8_name='text' ?><?php $attr8_rows='25' ?><?php $attr8_cols='70' ?><?php $attr8_class='longtext' ?><textarea class="<?php echo $attr8_class ?>" name="<?php echo $attr8_name ?>" rows="<?php echo $attr8_rows ?>" cols="<?php echo $attr8_cols ?>"><?php echo htmlentities(isset($$attr8_name)?$$attr8_name:$attr8_default) ?></textarea><?php unset($attr8) ?><?php unset($attr8_name) ?><?php unset($attr8_rows) ?><?php unset($attr8_cols) ?><?php unset($attr8_class) ?><?php $attr8 = array('field'=>'text') ?><?php $attr8_field='text' ?> +<script name="JavaScript" type="text/javascript"> +<!-- +document.forms[0].<?php echo $attr8_field ?>.focus(); +document.forms[0].<?php echo $attr8_field ?>.select(); +// --> +</script> +<?php unset($attr8) ?><?php unset($attr8_field) ?><?php $attr6 = array() ?></td><?php unset($attr6) ?><?php $attr5 = array() ?></tr><?php unset($attr5) ?><?php $attr4 = array() ?><?php + } + +?><?php unset($attr4) ?><?php $attr3 = array() ?><?php + } + +?><?php unset($attr3) ?><?php $attr4 = array('equals'=>'link','value'=>$type) ?><?php $attr4_equals='link' ?><?php $attr4_value=$type ?><?php + + // Wahr-Vergleich +// 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 ( 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( isset($attr4_contains) ) + $exec = in_array($attr4_value,explode(',',$attr4_contains)); + + // Inhalt-Vergleich + elseif( isset($attr4_equals)&& isset($attr4_value) ) + $exec = $attr4_equals == $attr4_value; + + // Vergleich auf leer + elseif ( isset($attr4_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( $$attr4_empty ); + } + + // 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; + } + + else + { + Html::debug( $attr4 ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; + } + + // Ergebnis umdrehen + 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($attr4) ?><?php unset($attr4_equals) ?><?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 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($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 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 ) + { + 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($$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 $attr7 = array('field'=>'linkobjectid') ?><?php $attr7_field='linkobjectid' ?> +<script name="JavaScript" type="text/javascript"> +<!-- +document.forms[0].<?php echo $attr7_field ?>.focus(); +document.forms[0].<?php echo $attr7_field ?>.select(); +// --> +</script> +<?php unset($attr7) ?><?php unset($attr7_field) ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3 = array() ?><?php + } + +?><?php unset($attr3) ?><?php $attr4 = array('equals'=>'list','value'=>$type) ?><?php $attr4_equals='list' ?><?php $attr4_value=$type ?><?php + + // Wahr-Vergleich +// 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 ( 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( isset($attr4_contains) ) + $exec = in_array($attr4_value,explode(',',$attr4_contains)); + + // Inhalt-Vergleich + elseif( isset($attr4_equals)&& isset($attr4_value) ) + $exec = $attr4_equals == $attr4_value; + + // Vergleich auf leer + elseif ( isset($attr4_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( $$attr4_empty ); + } + + // 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; + } + + else + { + Html::debug( $attr4 ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; + } + + // Ergebnis umdrehen + 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($attr4) ?><?php unset($attr4_equals) ?><?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 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($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 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 ) + { + 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($$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 $attr7 = array('field'=>'linkobjectid') ?><?php $attr7_field='linkobjectid' ?> +<script name="JavaScript" type="text/javascript"> +<!-- +document.forms[0].<?php echo $attr7_field ?>.focus(); +document.forms[0].<?php echo $attr7_field ?>.select(); +// --> +</script> +<?php unset($attr7) ?><?php unset($attr7_field) ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3 = array() ?><?php + } + +?><?php unset($attr3) ?><?php $attr4 = array('equals'=>'number','value'=>$type) ?><?php $attr4_equals='number' ?><?php $attr4_value=$type ?><?php + + // Wahr-Vergleich +// 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 ( 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( isset($attr4_contains) ) + $exec = in_array($attr4_value,explode(',',$attr4_contains)); + + // Inhalt-Vergleich + elseif( isset($attr4_equals)&& isset($attr4_value) ) + $exec = $attr4_equals == $attr4_value; + + // Vergleich auf leer + elseif ( isset($attr4_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( $$attr4_empty ); + } + + // 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; + } + + else + { + Html::debug( $attr4 ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; + } + + // Ergebnis umdrehen + 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($attr4) ?><?php unset($attr4_equals) ?><?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 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($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 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(); +document.forms[0].<?php echo $attr7_field ?>.select(); +// --> +</script> +<?php unset($attr7) ?><?php unset($attr7_field) ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3 = array() ?><?php + } + +?><?php unset($attr3) ?><?php $attr4 = array('equals'=>'select','value'=>$type) ?><?php $attr4_equals='select' ?><?php $attr4_value=$type ?><?php + + // Wahr-Vergleich +// 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 ( 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( isset($attr4_contains) ) + $exec = in_array($attr4_value,explode(',',$attr4_contains)); + + // Inhalt-Vergleich + elseif( isset($attr4_equals)&& isset($attr4_value) ) + $exec = $attr4_equals == $attr4_value; + + // Vergleich auf leer + elseif ( isset($attr4_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( $$attr4_empty ); + } + + // 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; + } + + else + { + Html::debug( $attr4 ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; + } + + // Ergebnis umdrehen + 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($attr4) ?><?php unset($attr4_equals) ?><?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 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($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 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 ) + { + 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($$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 $attr7 = array('field'=>'text') ?><?php $attr7_field='text' ?> +<script name="JavaScript" type="text/javascript"> +<!-- +document.forms[0].<?php echo $attr7_field ?>.focus(); +document.forms[0].<?php echo $attr7_field ?>.select(); +// --> +</script> +<?php unset($attr7) ?><?php unset($attr7_field) ?><?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'=>'release') ?><?php $attr4_present='release' ?><?php + + // Wahr-Vergleich +// 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 ( 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( isset($attr4_contains) ) + $exec = in_array($attr4_value,explode(',',$attr4_contains)); + + // Inhalt-Vergleich + elseif( isset($attr4_equals)&& isset($attr4_value) ) + $exec = $attr4_equals == $attr4_value; + + // Vergleich auf leer + elseif ( isset($attr4_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( $$attr4_empty ); + } + + // 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; + } + + else + { + Html::debug( $attr4 ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; + } + + // Ergebnis umdrehen + 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($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 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($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 unset($attr6_class) ?><?php unset($attr6_colspan) ?><?php $attr7 = array('default'=>'','readonly'=>'','name'=>'release') ?><?php $attr7_default='' ?><?php $attr7_readonly='' ?><?php $attr7_name='release' ?><?php + $attr7_default = ( $attr7_default == true ); + + if ( isset($$attr7_name) ) + $checked = $$attr7_name == true; +// $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 + 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('class'=>'text','text'=>'GLOBAL_RELEASE') ?><?php $attr7_class='text' ?><?php $attr7_text='GLOBAL_RELEASE' ?><?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() ?></td><?php unset($attr5) ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3 = array() ?><?php + } + +?><?php unset($attr3) ?><?php $attr4 = array('present'=>'publish') ?><?php $attr4_present='publish' ?><?php + + // Wahr-Vergleich +// 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 ( 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( isset($attr4_contains) ) + $exec = in_array($attr4_value,explode(',',$attr4_contains)); + + // Inhalt-Vergleich + elseif( isset($attr4_equals)&& isset($attr4_value) ) + $exec = $attr4_equals == $attr4_value; + + // Vergleich auf leer + elseif ( isset($attr4_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( $$attr4_empty ); + } + + // 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; + } + + else + { + Html::debug( $attr4 ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; + } + + // Ergebnis umdrehen + 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($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 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($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 unset($attr6_class) ?><?php unset($attr6_colspan) ?><?php $attr7 = array('default'=>'','readonly'=>'','name'=>'publish') ?><?php $attr7_default='' ?><?php $attr7_readonly='' ?><?php $attr7_name='publish' ?><?php + $attr7_default = ( $attr7_default == true ); + + if ( isset($$attr7_name) ) + $checked = $$attr7_name == true; +// $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 + 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('class'=>'text','text'=>'PAGE_PUBLISH_AFTER_SAVE') ?><?php $attr7_class='text' ?><?php $attr7_text='PAGE_PUBLISH_AFTER_SAVE' ?><?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() ?></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 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($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('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') + { + $attr6_type = 'submit'; +// $attr6_class = 'ok'; +// $attr6_text = 'BUTTON_OK'; +// $attr6_value = 'ok'; + } +?><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> + +</center> + +<?php if ($showDuration) + { ?> +<br/> +<small>&nbsp; +<?php $dur = time()-START_TIME; + echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small> +<?php } ?> +<?php unset($attr2) ?><?php $attr1 = array() ?></form> + +<?php unset($attr1) ?><?php $attr2 = array('field'=>'text') ?><?php $attr2_field='text' ?> +<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) { ?> +<br/> +<small>&nbsp; +<?php $dur = time()-START_TIME; +// echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small> +<?php } ?> + +</body> +</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 @@ -1,51 +1,71 @@ -<?php /* source: ./themes/default/include/html/page.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?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 /* source: ./themes/default/include/html/form.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?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 /* source: ./themes/default/include/html/window.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array('title'=>'','name'=>'','icon'=>'','widths'=>'5%,5%,5%,15%,15%,35%,10%,10%','width'=>'85%') ?><?php $attr_title='' ?><?php $attr_name='' ?><?php $attr_icon='' ?><?php $attr_widths='5%,5%,5%,15%,15%,35%,10%,10%' ?><?php $attr_width='85%' ?><?php +?><?php unset($attr2) ?><?php unset($attr2_target) ?><?php unset($attr2_method) ?><?php unset($attr2_enctype) ?><?php $attr3 = array('widths'=>'5%,5%,5%,15%,15%,35%,10%,10%','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr3_widths='5%,5%,5%,15%,15%,35%,10%,10%' ?><?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,13 +74,23 @@ } 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 ) { ?><a href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text'].'_DESC') ?>" class="menu<?php if($this->subActionName==$menu['subaction']) echo '_active' ?>"><?php echo lang($menu['text']) ?></a>&nbsp;&nbsp;&nbsp;<?php } + if ($conf['help']['enabled'] ) + { + ?><a href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.$conf['help']['suffix'] ?> " target="_new" title="<?php echo lang('GLOBAL_HELP') ?>" class="menu">?</a><?php + } ?></td> </tr> @@ -86,940 +116,1346 @@ <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 /* source: ./themes/default/include/html/row.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?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_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 /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?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( $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 /* source: ./themes/default/include/html/text.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'GLOBAL_NR','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_NR' ?><?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','text'=>'GLOBAL_NR') ?><?php $attr6_class='text' ?><?php $attr6_text='GLOBAL_NR' ?><?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 (!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 /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array('width'=>'','style'=>'','class'=>'help','colspan'=>'2') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='help' ?><?php $attr_colspan='2' ?><?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'=>'help','colspan'=>'2') ?><?php $attr5_class='help' ?><?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 /* source: ./themes/default/include/html/text.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'GLOBAL_COMPARE','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_COMPARE' ?><?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 unset($attr5_colspan) ?><?php $attr6 = array('class'=>'text','text'=>'GLOBAL_COMPARE') ?><?php $attr6_class='text' ?><?php $attr6_text='GLOBAL_COMPARE' ?><?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 (!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 /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?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_text) ?><?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( $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 /* source: ./themes/default/include/html/text.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'DATE','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='DATE' ?><?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','text'=>'DATE') ?><?php $attr6_class='text' ?><?php $attr6_text='DATE' ?><?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 (!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 /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?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_text) ?><?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( $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 /* source: ./themes/default/include/html/text.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'GLOBAL_USER','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_USER' ?><?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','text'=>'GLOBAL_USER') ?><?php $attr6_class='text' ?><?php $attr6_text='GLOBAL_USER' ?><?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 (!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 /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?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_text) ?><?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( $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 /* source: ./themes/default/include/html/text.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'GLOBAL_VALUE','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_VALUE' ?><?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','text'=>'GLOBAL_VALUE') ?><?php $attr6_class='text' ?><?php $attr6_text='GLOBAL_VALUE' ?><?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 (!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 /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?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_text) ?><?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( $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 /* source: ./themes/default/include/html/text.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?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)) +?><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(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]; + //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 /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?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( $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 /* source: ./themes/default/include/html/text.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?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)) +?><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(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]; + //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 /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/row-end.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php /* source: ./themes/default/include/html/if.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array('var'=>'','value'=>'','invert'=>'','empty'=>'el','present'=>'','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='el' ?><?php $attr_present='' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php +?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_raw) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4 = array('empty'=>'el') ?><?php $attr4_empty='el' ?><?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 nicht-leer - elseif ( !empty($attr_present) ) + // Vergleich auf Vorhandensein + elseif ( isset($attr4_present) ) { - if ( !isset($$attr_present) ) + if ( !isset($$attr4_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; + 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 = !empty( $$attr_present ); + $exec = true; } + 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) ) + 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 /* source: ./themes/default/include/html/row.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array() ?><?php - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - +?><?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($attr5_class)) + $attr5_class=$row_class; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array('width'=>'','style'=>'','class'=>'fx','colspan'=>'8') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?php $attr_colspan='8' ?><?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('class'=>'fx','colspan'=>'8') ?><?php $attr6_class='fx' ?><?php $attr6_colspan='8' ?><?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 /* source: ./themes/default/include/html/text.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'GLOBAL_NOT_FOUND','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_NOT_FOUND' ?><?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 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(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]; + //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($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'; } - 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($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 /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/row-end.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php /* source: ./themes/default/include/html/if-end.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?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 /* source: ./themes/default/include/html/list.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array('list'=>'el','extract'=>'true','key'=>'list_key','value'=>'list_value') ?><?php $attr_list='el' ?><?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'); + +?><?php unset($attr3) ?><?php $attr4 = array('list'=>'el','extract'=>'1','key'=>'list_key','value'=>'list_value') ?><?php $attr4_list='el' ?><?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 /* source: ./themes/default/include/html/row.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?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 /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?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('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($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 /* source: ./themes/default/include/html/text.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array('title'=>'','class'=>'','var'=>'lfd_nr','text'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='lfd_nr' ?><?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 unset($attr6_class) ?><?php $attr7 = array('class'=>'text','text'=>$lfd_nr) ?><?php $attr7_class='text' ?><?php $attr7_text=$lfd_nr ?><?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 $$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($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'; } - 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($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 /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?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($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_text) ?><?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($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 /* source: ./themes/default/include/html/radio.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array('readonly'=>'','name'=>'compareid','value'=>'lfd_nr','default'=>'','prefix'=>'','suffix'=>'') ?><?php $attr_readonly='' ?><?php $attr_name='compareid' ?><?php $attr_value='lfd_nr' ?><?php $attr_default='' ?><?php $attr_prefix='' ?><?php $attr_suffix='' ?><?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_default ) echo 'checked="checked"' ?> /><?php unset($attr) ?><?php unset($attr_readonly) ?><?php unset($attr_name) ?><?php unset($attr_value) ?><?php unset($attr_default) ?><?php unset($attr_prefix) ?><?php unset($attr_suffix) ?><?php /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?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; +?><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 +// 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 /* source: ./themes/default/include/html/radio.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array('readonly'=>'','name'=>'withid','value'=>'lfd_nr','default'=>'','prefix'=>'','suffix'=>'') ?><?php $attr_readonly='' ?><?php $attr_name='withid' ?><?php $attr_value='lfd_nr' ?><?php $attr_default='' ?><?php $attr_prefix='' ?><?php $attr_suffix='' ?><?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_default ) echo 'checked="checked"' ?> /><?php unset($attr) ?><?php unset($attr_readonly) ?><?php unset($attr_name) ?><?php unset($attr_value) ?><?php unset($attr_default) ?><?php unset($attr_prefix) ?><?php unset($attr_suffix) ?><?php /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?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; +?><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 +// 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 /* source: ./themes/default/include/html/text.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array('title'=>'','class'=>'','var'=>'date','text'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='date' ?><?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 unset($attr6_class) ?><?php $attr7 = array('class'=>'text','var'=>'date') ?><?php $attr7_class='text' ?><?php $attr7_var='date' ?><?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 $$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($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'; } - 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($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 /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?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($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_var) ?><?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($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 /* source: ./themes/default/include/html/text.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array('title'=>'','class'=>'','var'=>'user','text'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='user' ?><?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 unset($attr6_class) ?><?php $attr7 = array('class'=>'text','text'=>'user') ?><?php $attr7_class='text' ?><?php $attr7_text='user' ?><?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 $$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($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'; } - 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($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 /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?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($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_text) ?><?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($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 /* source: ./themes/default/include/html/text.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array('title'=>'','class'=>'','var'=>'value','text'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='value' ?><?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 unset($attr6_class) ?><?php $attr7 = array('class'=>'text','text'=>$value) ?><?php $attr7_class='text' ?><?php $attr7_text=$value ?><?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 $$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[$attr7_text]); + } + elseif (!empty($attr7_text)) + if ( isset($$attr7_text)) + $tmp_text = lang($$attr7_text); else - $tmp_text = lang($tmpArray[$attr_text]); + $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'; } - 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($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 /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?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($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_text) ?><?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($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 /* source: ./themes/default/include/html/if.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array('var'=>'','value'=>'','invert'=>'','empty'=>'','present'=>'','contains'=>'','true'=>'public','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='' ?><?php $attr_contains='' ?><?php $attr_true='public' ?><?php $attr_false='' ?><?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'=>$public) ?><?php $attr7_true=$public ?><?php // Wahr-Vergleich - if ( !empty($attr_true) ) - $exec = $$attr_true == true; +// Html::debug($attr7); + + if ( isset($attr7_true) ) + { + if (gettype($attr7_true) === '' && gettype($attr7_true) === '1') + $exec = $$attr7_true == true; + else + $exec = $attr7_true == true; + } // Falsch-Vergleich - elseif ( !empty($attr_false) ) - $exec = $$attr_false != true; - + elseif ( isset($attr7_false) ) + { + if (gettype($attr7_false) === '' && gettype($attr7_false) === '1') + $exec = $$attr7_false == false; + else + $exec = $attr7_false == false; + } // Inhalt-Vergleich mit Wertliste - elseif( !empty($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( !empty($attr_var) ) - $exec = $$attr_var == $attr_value; + elseif( isset($attr7_equals)&& isset($attr7_value) ) + $exec = $attr7_equals == $attr7_value; // Vergleich auf leer - elseif ( !empty($attr_empty) ) + elseif ( isset($attr7_empty) ) { - if ( !isset($$attr_empty) ) - $exec = true; - 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 nicht-leer - elseif ( !empty($attr_present) ) + // Vergleich auf Vorhandensein + elseif ( isset($attr7_present) ) { - if ( !isset($$attr_present) ) + if ( !isset($$attr7_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; + 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 = !empty( $$attr_present ); + $exec = true; } + else { - die("error in IF"); + Html::debug( $attr7 ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; } // Ergebnis umdrehen - if ( !empty($attr_invert) ) + if ( !empty($attr7_invert) ) + $exec = !$exec; + + // Ergebnis umdrehen + if ( !empty($attr7_not) ) $exec = !$exec; + 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_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 /* source: ./themes/default/include/html/text.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'GLOBAL_PUBLIC','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_PUBLIC' ?><?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)) +?><?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(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 $$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($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'; } - 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($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_title) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><?php unset($attr_text) ?><?php unset($attr_raw) ?><?php unset($attr_maxlength) ?><?php /* source: ./themes/default/include/html/if-end.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array() ?><?php +?></span><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_text) ?><?php $attr6 = array() ?><?php } -?><?php unset($attr) ?><?php /* source: ./themes/default/include/html/if.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array('var'=>'','value'=>'','invert'=>'','empty'=>'','present'=>'releaseUrl','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='releaseUrl' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php - - // Wahr-Vergleich - if ( !empty($attr_true) ) - $exec = $$attr_true == true; - - // Falsch-Vergleich - elseif ( !empty($attr_false) ) - $exec = $$attr_false != true; - - // Inhalt-Vergleich mit Wertliste - elseif( !empty($attr_contains) ) - $exec = in_array($$attr_var,explode(',',$attr_contains)); - - // Inhalt-Vergleich - elseif( !empty($attr_var) ) - $exec = $$attr_var == $attr_value; - - // Vergleich auf leer - elseif ( !empty($attr_empty) ) + +?><?php unset($attr6) ?><?php $attr7 = array() ?><?php + if ( !$last_exec ) { - if ( !isset($$attr_empty) ) - $exec = true; - elseif ( is_array($$attr_empty) ) - $exec = (count($$attr_empty)==0); - elseif ( is_bool($$attr_empty) ) - $exec = true; +?><?php unset($attr7) ?><?php $attr8 = array('target'=>'_self','url'=>$releaseUrl) ?><?php $attr8_target='_self' ?><?php $attr8_url=$releaseUrl ?><?php + if(!empty($attr8_url)) + $tmp_url = $attr8_url; + 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(empty($attr9_title)) + if (!empty($attr9_key)) + $attr9_title = lang($attr9_key).'_HELP'; else - $exec = empty( $$attr_empty ); - } + $attr9_title = ''; - // Vergleich auf nicht-leer - elseif ( !empty($attr_present) ) +?><span class="<?php echo $attr9_class ?>" title="<?php echo $attr9_title ?>"><?php + $attr9_title = ''; + if (!empty($attr9_array)) { - 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; + //geht nicht: + //echo $$attr9_array[$attr9_var].'%'; + $tmpArray = $$attr9_array; + if (!empty($attr9_var)) + $tmp_text = $tmpArray[$attr9_var]; else - $exec = !empty( $$attr_present ); + $tmp_text = lang($tmpArray[$attr9_text]); } + elseif (!empty($attr9_text)) + if ( isset($$attr9_text)) + $tmp_text = lang($$attr9_text); + else + $tmp_text = lang($attr9_text); + elseif (!empty($attr9_textvar)) + $tmp_text = lang($$attr9_textvar); + elseif (!empty($attr9_key)) + $tmp_text = lang($attr9_key); + elseif (!empty($attr9_var)) + $tmp_text = isset($$attr9_var)?htmlentities($$attr9_var):'error: variable '.$attr9_var.' not present'; + elseif (!empty($attr9_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr9_raw); + elseif (!empty($attr9_value)) + $tmp_text = $attr9_value; else { - die("error in IF"); - } - - // Ergebnis umdrehen - if ( !empty($attr_invert) ) - $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 /* source: ./themes/default/include/html/link.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array('title'=>'','target'=>'','url'=>'releaseUrl','class'=>'','action'=>'','subaction'=>'','id'=>'','var1'=>'','value1'=>'') ?><?php $attr_title='' ?><?php $attr_target='' ?><?php $attr_url='releaseUrl' ?><?php $attr_class='' ?><?php $attr_action='' ?><?php $attr_subaction='' ?><?php $attr_id='' ?><?php $attr_var1='' ?><?php $attr_value1='' ?><?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 hasLang($attr_title)?lang($attr_title):lang($$attr_title) ?>"><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_target) ?><?php unset($attr_url) ?><?php unset($attr_class) ?><?php unset($attr_action) ?><?php unset($attr_subaction) ?><?php unset($attr_id) ?><?php unset($attr_var1) ?><?php unset($attr_value1) ?><?php /* source: ./themes/default/include/html/text.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'GLOBAL_RELEASE','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_RELEASE' ?><?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)) - { - //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]); + $tmp_text = '&nbsp;'; + //Html::debug($attr9);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($attr9_maxlength) && intval($attr9_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr9_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 /* source: ./themes/default/include/html/link-end.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array() ?></a><?php unset($attr) ?><?php /* source: ./themes/default/include/html/if-end.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array() ?><?php +?></span><?php unset($attr9) ?><?php unset($attr9_class) ?><?php unset($attr9_text) ?><?php $attr7 = array() ?></a><?php unset($attr7) ?><?php $attr6 = array() ?><?php } -?><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?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; +?><?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($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 /* source: ./themes/default/include/html/if.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array('var'=>'','value'=>'','invert'=>'','empty'=>'','present'=>'','contains'=>'','true'=>'active','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='' ?><?php $attr_contains='' ?><?php $attr_true='active' ?><?php $attr_false='' ?><?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'=>$active) ?><?php $attr7_true=$active ?><?php // Wahr-Vergleich - if ( !empty($attr_true) ) - $exec = $$attr_true == true; +// Html::debug($attr7); + + if ( isset($attr7_true) ) + { + if (gettype($attr7_true) === '' && gettype($attr7_true) === '1') + $exec = $$attr7_true == true; + else + $exec = $attr7_true == true; + } // Falsch-Vergleich - elseif ( !empty($attr_false) ) - $exec = $$attr_false != true; - + elseif ( isset($attr7_false) ) + { + if (gettype($attr7_false) === '' && gettype($attr7_false) === '1') + $exec = $$attr7_false == false; + else + $exec = $attr7_false == false; + } // Inhalt-Vergleich mit Wertliste - elseif( !empty($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( !empty($attr_var) ) - $exec = $$attr_var == $attr_value; + elseif( isset($attr7_equals)&& isset($attr7_value) ) + $exec = $attr7_equals == $attr7_value; // Vergleich auf leer - elseif ( !empty($attr_empty) ) + elseif ( isset($attr7_empty) ) { - if ( !isset($$attr_empty) ) - $exec = true; - 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 nicht-leer - elseif ( !empty($attr_present) ) + // Vergleich auf Vorhandensein + elseif ( isset($attr7_present) ) { - if ( !isset($$attr_present) ) + if ( !isset($$attr7_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; + 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 = !empty( $$attr_present ); + $exec = true; } + else { - die("error in IF"); + Html::debug( $attr7 ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; } // Ergebnis umdrehen - if ( !empty($attr_invert) ) + if ( !empty($attr7_invert) ) $exec = !$exec; + // Ergebnis umdrehen + if ( !empty($attr7_not) ) + $exec = !$exec; + + 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_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 /* source: ./themes/default/include/html/text.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'GLOBAL_ACTIVE','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_ACTIVE' ?><?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)) +?><?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(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 $$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($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'; } - 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($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_title) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><?php unset($attr_text) ?><?php unset($attr_raw) ?><?php unset($attr_maxlength) ?><?php /* source: ./themes/default/include/html/if-end.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array() ?><?php +?></span><?php unset($attr8) ?><?php unset($attr8_class) ?><?php unset($attr8_text) ?><?php $attr6 = array() ?><?php } -?><?php unset($attr) ?><?php /* source: ./themes/default/include/html/if.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array('var'=>'','value'=>'','invert'=>'','empty'=>'','present'=>'useUrl','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='useUrl' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php - - // Wahr-Vergleich - if ( !empty($attr_true) ) - $exec = $$attr_true == true; - - // Falsch-Vergleich - elseif ( !empty($attr_false) ) - $exec = $$attr_false != true; - - // Inhalt-Vergleich mit Wertliste - elseif( !empty($attr_contains) ) - $exec = in_array($$attr_var,explode(',',$attr_contains)); - - // Inhalt-Vergleich - elseif( !empty($attr_var) ) - $exec = $$attr_var == $attr_value; - - // Vergleich auf leer - elseif ( !empty($attr_empty) ) + +?><?php unset($attr6) ?><?php $attr7 = array() ?><?php + if ( !$last_exec ) { - if ( !isset($$attr_empty) ) - $exec = true; - elseif ( is_array($$attr_empty) ) - $exec = (count($$attr_empty)==0); - elseif ( is_bool($$attr_empty) ) - $exec = true; +?><?php unset($attr7) ?><?php $attr8 = array('target'=>'_self','url'=>$useUrl) ?><?php $attr8_target='_self' ?><?php $attr8_url=$useUrl ?><?php + if(!empty($attr8_url)) + $tmp_url = $attr8_url; + 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(empty($attr9_title)) + if (!empty($attr9_key)) + $attr9_title = lang($attr9_key).'_HELP'; else - $exec = empty( $$attr_empty ); - } + $attr9_title = ''; - // Vergleich auf nicht-leer - elseif ( !empty($attr_present) ) +?><span class="<?php echo $attr9_class ?>" title="<?php echo $attr9_title ?>"><?php + $attr9_title = ''; + if (!empty($attr9_array)) { - 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; + //geht nicht: + //echo $$attr9_array[$attr9_var].'%'; + $tmpArray = $$attr9_array; + if (!empty($attr9_var)) + $tmp_text = $tmpArray[$attr9_var]; else - $exec = !empty( $$attr_present ); + $tmp_text = lang($tmpArray[$attr9_text]); } + elseif (!empty($attr9_text)) + if ( isset($$attr9_text)) + $tmp_text = lang($$attr9_text); + else + $tmp_text = lang($attr9_text); + elseif (!empty($attr9_textvar)) + $tmp_text = lang($$attr9_textvar); + elseif (!empty($attr9_key)) + $tmp_text = lang($attr9_key); + elseif (!empty($attr9_var)) + $tmp_text = isset($$attr9_var)?htmlentities($$attr9_var):'error: variable '.$attr9_var.' not present'; + elseif (!empty($attr9_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr9_raw); + elseif (!empty($attr9_value)) + $tmp_text = $attr9_value; else { - die("error in IF"); - } - - // Ergebnis umdrehen - if ( !empty($attr_invert) ) - $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 /* source: ./themes/default/include/html/link.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array('title'=>'','target'=>'','url'=>'useUrl','class'=>'','action'=>'','subaction'=>'','id'=>'','var1'=>'','value1'=>'') ?><?php $attr_title='' ?><?php $attr_target='' ?><?php $attr_url='useUrl' ?><?php $attr_class='' ?><?php $attr_action='' ?><?php $attr_subaction='' ?><?php $attr_id='' ?><?php $attr_var1='' ?><?php $attr_value1='' ?><?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 hasLang($attr_title)?lang($attr_title):lang($$attr_title) ?>"><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_target) ?><?php unset($attr_url) ?><?php unset($attr_class) ?><?php unset($attr_action) ?><?php unset($attr_subaction) ?><?php unset($attr_id) ?><?php unset($attr_var1) ?><?php unset($attr_value1) ?><?php /* source: ./themes/default/include/html/text.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'GLOBAL_USE','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_USE' ?><?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)) - { - //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]); + $tmp_text = '&nbsp;'; + //Html::debug($attr9);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($attr9_maxlength) && intval($attr9_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr9_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 /* source: ./themes/default/include/html/link-end.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array() ?></a><?php unset($attr) ?><?php /* source: ./themes/default/include/html/if-end.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array() ?><?php +?></span><?php unset($attr9) ?><?php unset($attr9_class) ?><?php unset($attr9_text) ?><?php $attr7 = array() ?></a><?php unset($attr7) ?><?php $attr6 = array() ?><?php } -?><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/row-end.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php /* source: ./themes/default/include/html/list-end.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array() ?><?php } ?><?php unset($attr) ?><?php /* source: ./themes/default/include/html/row.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array() ?><?php - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - +?><?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 /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array('width'=>'','style'=>'','class'=>'act','colspan'=>'8') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='act' ?><?php $attr_colspan='8' ?><?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'=>'8') ?><?php $attr5_class='act' ?><?php $attr5_colspan='8' ?><?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 /* source: ./themes/default/include/html/button.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?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 /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/row-end.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php /* source: ./themes/default/include/html/window-end.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?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> @@ -1033,7 +1469,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 /* source: ./themes/default/include/html/form-end.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array() ?></form><?php unset($attr) ?><?php /* source: ./themes/default/include/html/page-end.inc.php - compile time: Sun, 29 Jan 2006 16:25:45 +0100 */ ?><?php $attr = array() ?> +<?php unset($attr2) ?><?php $attr1 = array() ?></form> + +<?php unset($attr1) ?><?php $attr0 = array() ?> <!-- $Id$ --> <?php if ($showDuration) { ?> @@ -1044,4 +1482,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/pageelement/edit.tpl.php b/themes/default/pages/html/pageelement/edit.tpl.php @@ -0,0 +1,1613 @@ +<?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 $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 $attr1_class ?>"> + +<?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 $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($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)) + { + $column_widths = explode(',',$attr3_widths); + unset($attr3['widths']); + } + if (!empty($attr3_rowclasses)) + { + $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="'.$attr3_width.'">'; + echo '<tr><td class="menu">'; + 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); + echo '<a href="'.$url.'" class="path">'.lang($name).'</a>'; + echo '&nbsp;&raquo;&nbsp;'; + } + echo '<span class="title">'.lang($windowTitle).'</span>'; + ?> + </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 ) + { + ?><a href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text'].'_DESC') ?>" class="menu<?php if($this->subActionName==$menu['subaction']) echo '_active' ?>"><?php echo lang($menu['text']) ?></a>&nbsp;&nbsp;&nbsp;<?php + } + if ($conf['help']['enabled'] ) + { + ?><a href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.$conf['help']['suffix'] ?> " target="_new" title="<?php echo lang('GLOBAL_HELP') ?>" class="menu">?</a><?php + } + ?></td> + </tr> + +<?php if (isset($notices) && count($notices)>0 ) + { ?> + + <tr> + <td><table> + + <?php foreach( $notices as $notice ) { ?> + + <td><img src="<?php echo $image_dir.'notice_'.$notice['status'].IMG_ICON_EXT ?>" style="padding:10px" /></td> + <td class="f1"><?php if ($notice['name']!='') { ?><img src="<?php echo $image_dir.'icon_'.$notice['type'].IMG_ICON_EXT ?>" align="left" /><?php echo $notice['name'] ?>: <?php } ?><?php if ($notice['status']=='error') { ?><strong><?php } ?><?php echo $notice['text'] ?><?php if ($notice['status']=='error') { ?></strong><?php } ?></td> + </tr> + <?php } ?> + + </table></td> + </tr> + +<?php } ?> + + + + <tr> + <td> + <table class="n" cellspacing="0" width="100%" cellpadding="4"><?php unset($attr3) ?><?php unset($attr3_name) ?><?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 class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5 = array('class'=>'help','colspan'=>'2') ?><?php $attr5_class='help' ?><?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($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('class'=>'text','var'=>'desc') ?><?php $attr6_class='text' ?><?php $attr6_var='desc' ?><?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 (!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_var) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4 = array('equals'=>'date','value'=>$type) ?><?php $attr4_equals='date' ?><?php $attr4_value=$type ?><?php + + // Wahr-Vergleich +// 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 ( 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( isset($attr4_contains) ) + $exec = in_array($attr4_value,explode(',',$attr4_contains)); + + // Inhalt-Vergleich + elseif( isset($attr4_equals)&& isset($attr4_value) ) + $exec = $attr4_equals == $attr4_value; + + // Vergleich auf leer + elseif ( isset($attr4_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( $$attr4_empty ); + } + + // 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; + } + + else + { + Html::debug( $attr4 ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; + } + + // Ergebnis umdrehen + 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($attr4) ?><?php unset($attr4_equals) ?><?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 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($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 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(); +document.forms[0].<?php echo $attr7_field ?>.select(); +// --> +</script> +<?php unset($attr7) ?><?php unset($attr7_field) ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3 = array() ?><?php + } + +?><?php unset($attr3) ?><?php $attr4 = array('equals'=>'text','value'=>$type) ?><?php $attr4_equals='text' ?><?php $attr4_value=$type ?><?php + + // Wahr-Vergleich +// 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 ( 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( isset($attr4_contains) ) + $exec = in_array($attr4_value,explode(',',$attr4_contains)); + + // Inhalt-Vergleich + elseif( isset($attr4_equals)&& isset($attr4_value) ) + $exec = $attr4_equals == $attr4_value; + + // Vergleich auf leer + elseif ( isset($attr4_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( $$attr4_empty ); + } + + // 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; + } + + else + { + Html::debug( $attr4 ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; + } + + // Ergebnis umdrehen + 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($attr4) ?><?php unset($attr4_equals) ?><?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 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($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 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(); +document.forms[0].<?php echo $attr7_field ?>.select(); +// --> +</script> +<?php unset($attr7) ?><?php unset($attr7_field) ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3 = array() ?><?php + } + +?><?php unset($attr3) ?><?php $attr4 = array('equals'=>'longtext','value'=>$type) ?><?php $attr4_equals='longtext' ?><?php $attr4_value=$type ?><?php + + // Wahr-Vergleich +// 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 ( 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( isset($attr4_contains) ) + $exec = in_array($attr4_value,explode(',',$attr4_contains)); + + // Inhalt-Vergleich + elseif( isset($attr4_equals)&& isset($attr4_value) ) + $exec = $attr4_equals == $attr4_value; + + // Vergleich auf leer + elseif ( isset($attr4_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( $$attr4_empty ); + } + + // 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; + } + + else + { + Html::debug( $attr4 ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; + } + + // Ergebnis umdrehen + 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($attr4) ?><?php unset($attr4_equals) ?><?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 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($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 unset($attr6_class) ?><?php unset($attr6_colspan) ?><?php $attr7 = array('name'=>'text','rows'=>'25','cols'=>'70','class'=>'longtext') ?><?php $attr7_name='text' ?><?php $attr7_rows='25' ?><?php $attr7_cols='70' ?><?php $attr7_class='longtext' ?><textarea class="<?php echo $attr7_class ?>" name="<?php echo $attr7_name ?>" rows="<?php echo $attr7_rows ?>" cols="<?php echo $attr7_cols ?>"><?php echo htmlentities(isset($$attr7_name)?$$attr7_name:$attr7_default) ?></textarea><?php unset($attr7) ?><?php unset($attr7_name) ?><?php unset($attr7_rows) ?><?php unset($attr7_cols) ?><?php unset($attr7_class) ?><?php $attr7 = array('field'=>'text') ?><?php $attr7_field='text' ?> +<script name="JavaScript" type="text/javascript"> +<!-- +document.forms[0].<?php echo $attr7_field ?>.focus(); +document.forms[0].<?php echo $attr7_field ?>.select(); +// --> +</script> +<?php unset($attr7) ?><?php unset($attr7_field) ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3 = array() ?><?php + } + +?><?php unset($attr3) ?><?php $attr4 = array('equals'=>'link','value'=>$type) ?><?php $attr4_equals='link' ?><?php $attr4_value=$type ?><?php + + // Wahr-Vergleich +// 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 ( 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( isset($attr4_contains) ) + $exec = in_array($attr4_value,explode(',',$attr4_contains)); + + // Inhalt-Vergleich + elseif( isset($attr4_equals)&& isset($attr4_value) ) + $exec = $attr4_equals == $attr4_value; + + // Vergleich auf leer + elseif ( isset($attr4_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( $$attr4_empty ); + } + + // 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; + } + + else + { + Html::debug( $attr4 ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; + } + + // Ergebnis umdrehen + 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($attr4) ?><?php unset($attr4_equals) ?><?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 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($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 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 ) + { + 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($$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 $attr7 = array('field'=>'linkobjectid') ?><?php $attr7_field='linkobjectid' ?> +<script name="JavaScript" type="text/javascript"> +<!-- +document.forms[0].<?php echo $attr7_field ?>.focus(); +document.forms[0].<?php echo $attr7_field ?>.select(); +// --> +</script> +<?php unset($attr7) ?><?php unset($attr7_field) ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3 = array() ?><?php + } + +?><?php unset($attr3) ?><?php $attr4 = array('equals'=>'list','value'=>$type) ?><?php $attr4_equals='list' ?><?php $attr4_value=$type ?><?php + + // Wahr-Vergleich +// 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 ( 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( isset($attr4_contains) ) + $exec = in_array($attr4_value,explode(',',$attr4_contains)); + + // Inhalt-Vergleich + elseif( isset($attr4_equals)&& isset($attr4_value) ) + $exec = $attr4_equals == $attr4_value; + + // Vergleich auf leer + elseif ( isset($attr4_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( $$attr4_empty ); + } + + // 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; + } + + else + { + Html::debug( $attr4 ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; + } + + // Ergebnis umdrehen + 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($attr4) ?><?php unset($attr4_equals) ?><?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 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($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 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 ) + { + 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($$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 $attr7 = array('field'=>'linkobjectid') ?><?php $attr7_field='linkobjectid' ?> +<script name="JavaScript" type="text/javascript"> +<!-- +document.forms[0].<?php echo $attr7_field ?>.focus(); +document.forms[0].<?php echo $attr7_field ?>.select(); +// --> +</script> +<?php unset($attr7) ?><?php unset($attr7_field) ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3 = array() ?><?php + } + +?><?php unset($attr3) ?><?php $attr4 = array('equals'=>'number','value'=>$type) ?><?php $attr4_equals='number' ?><?php $attr4_value=$type ?><?php + + // Wahr-Vergleich +// 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 ( 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( isset($attr4_contains) ) + $exec = in_array($attr4_value,explode(',',$attr4_contains)); + + // Inhalt-Vergleich + elseif( isset($attr4_equals)&& isset($attr4_value) ) + $exec = $attr4_equals == $attr4_value; + + // Vergleich auf leer + elseif ( isset($attr4_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( $$attr4_empty ); + } + + // 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; + } + + else + { + Html::debug( $attr4 ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; + } + + // Ergebnis umdrehen + 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($attr4) ?><?php unset($attr4_equals) ?><?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 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($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 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(); +document.forms[0].<?php echo $attr7_field ?>.select(); +// --> +</script> +<?php unset($attr7) ?><?php unset($attr7_field) ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3 = array() ?><?php + } + +?><?php unset($attr3) ?><?php $attr4 = array('equals'=>'select','value'=>$type) ?><?php $attr4_equals='select' ?><?php $attr4_value=$type ?><?php + + // Wahr-Vergleich +// 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 ( 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( isset($attr4_contains) ) + $exec = in_array($attr4_value,explode(',',$attr4_contains)); + + // Inhalt-Vergleich + elseif( isset($attr4_equals)&& isset($attr4_value) ) + $exec = $attr4_equals == $attr4_value; + + // Vergleich auf leer + elseif ( isset($attr4_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( $$attr4_empty ); + } + + // 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; + } + + else + { + Html::debug( $attr4 ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; + } + + // Ergebnis umdrehen + 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($attr4) ?><?php unset($attr4_equals) ?><?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 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($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 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 ) + { + 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($$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 $attr7 = array('field'=>'text') ?><?php $attr7_field='text' ?> +<script name="JavaScript" type="text/javascript"> +<!-- +document.forms[0].<?php echo $attr7_field ?>.focus(); +document.forms[0].<?php echo $attr7_field ?>.select(); +// --> +</script> +<?php unset($attr7) ?><?php unset($attr7_field) ?><?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'=>'release') ?><?php $attr4_present='release' ?><?php + + // Wahr-Vergleich +// 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 ( 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( isset($attr4_contains) ) + $exec = in_array($attr4_value,explode(',',$attr4_contains)); + + // Inhalt-Vergleich + elseif( isset($attr4_equals)&& isset($attr4_value) ) + $exec = $attr4_equals == $attr4_value; + + // Vergleich auf leer + elseif ( isset($attr4_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( $$attr4_empty ); + } + + // 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; + } + + else + { + Html::debug( $attr4 ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; + } + + // Ergebnis umdrehen + 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($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 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($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 unset($attr6_class) ?><?php unset($attr6_colspan) ?><?php $attr7 = array('default'=>'','readonly'=>'','name'=>'release') ?><?php $attr7_default='' ?><?php $attr7_readonly='' ?><?php $attr7_name='release' ?><?php + $attr7_default = ( $attr7_default == true ); + + if ( isset($$attr7_name) ) + $checked = $$attr7_name == true; +// $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 + 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('class'=>'text','text'=>'GLOBAL_RELEASE') ?><?php $attr7_class='text' ?><?php $attr7_text='GLOBAL_RELEASE' ?><?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() ?></td><?php unset($attr5) ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3 = array() ?><?php + } + +?><?php unset($attr3) ?><?php $attr4 = array('present'=>'publish') ?><?php $attr4_present='publish' ?><?php + + // Wahr-Vergleich +// 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 ( 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( isset($attr4_contains) ) + $exec = in_array($attr4_value,explode(',',$attr4_contains)); + + // Inhalt-Vergleich + elseif( isset($attr4_equals)&& isset($attr4_value) ) + $exec = $attr4_equals == $attr4_value; + + // Vergleich auf leer + elseif ( isset($attr4_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( $$attr4_empty ); + } + + // 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; + } + + else + { + Html::debug( $attr4 ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; + } + + // Ergebnis umdrehen + 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($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 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($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 unset($attr6_class) ?><?php unset($attr6_colspan) ?><?php $attr7 = array('default'=>'','readonly'=>'','name'=>'publish') ?><?php $attr7_default='' ?><?php $attr7_readonly='' ?><?php $attr7_name='publish' ?><?php + $attr7_default = ( $attr7_default == true ); + + if ( isset($$attr7_name) ) + $checked = $$attr7_name == true; +// $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 + 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('class'=>'text','text'=>'PAGE_PUBLISH_AFTER_SAVE') ?><?php $attr7_class='text' ?><?php $attr7_text='PAGE_PUBLISH_AFTER_SAVE' ?><?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() ?></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 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($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('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') + { + $attr6_type = 'submit'; +// $attr6_class = 'ok'; +// $attr6_text = 'BUTTON_OK'; +// $attr6_value = 'ok'; + } +?><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> + +</center> + +<?php if ($showDuration) + { ?> +<br/> +<small>&nbsp; +<?php $dur = time()-START_TIME; + echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small> +<?php } ?> +<?php unset($attr2) ?><?php $attr1 = array() ?></form> + +<?php unset($attr1) ?><?php $attr0 = array() ?> +<!-- $Id$ --> + +<?php if ($showDuration) { ?> +<br/> +<small>&nbsp; +<?php $dur = time()-START_TIME; +// echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small> +<?php } ?> + +</body> +</html><?php unset($attr0) ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/pageelement/editdate.tpl.php b/themes/default/pages/html/pageelement/editdate.tpl.php @@ -1,21 +1,28 @@ -<?php $attr = array('class'=>'') ?><?php $attr_class='' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<?php $attr = array('class'=>'main','title'=>'var') ?><?php $attr_class='main' ?><?php $attr_title='var' ?><?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 $attr_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 $attr_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 +<?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)) @@ -33,19 +40,32 @@ <input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr_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'=>'element','icon'=>'','widths'=>'','width'=>'85%') ?><?php $attr_title='' ?><?php $attr_name='element' ?><?php $attr_icon='' ?><?php $attr_widths='' ?><?php $attr_width='85%' ?><?php +?><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_target) ?><?php unset($attr_method) ?><?php unset($attr_enctype) ?><?php $attr = array('name'=>'element','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr_name='element' ?><?php $attr_width='93%' ?><?php $attr_rowclasses='odd,even' ?><?php $attr_columnclasses='1,2,3' ?><?php $coloumn_widths=array(); if (!empty($attr_widths)) { $column_widths = explode(',',$attr_widths); unset($attr['widths']); } + if (!empty($attr_rowclasses)) + { + $row_classes = explode(',',$attr_rowclasses); + $row_class_idx = 999; + unset($attr['rowclasses']); + } + if (!empty($attr_columnclasses)) + { + $column_classes = explode(',',$attr_columnclasses); + unset($attr['columnclasses']); + } global $image_dir; echo '<br/><br/><br/><center>'; echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_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 ( !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,28 +116,44 @@ <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($attr) ?><?php unset($attr_name) ?><?php unset($attr_width) ?><?php unset($attr_rowclasses) ?><?php unset($attr_columnclasses) ?><?php $attr = 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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'help','colspan'=>'2') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='help' ?><?php $attr_colspan='2' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><tr class="<?php echo $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'help','colspan'=>'2') ?><?php $attr_class='help' ?><?php $attr_colspan='2' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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'=>'desc','text'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='desc' ?><?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 +?><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','var'=>'desc') ?><?php $attr_class='text' ?><?php $attr_var='desc' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -123,59 +165,91 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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($attr) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = 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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'fx','colspan'=>'2') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?php $attr_colspan='2' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><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; + $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; 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]; -?><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'=>'ansidate','default'=>'','type'=>'text','index'=>'','name'=>'ansidate','prefix'=>'','value'=>'','size'=>'25','maxlength'=>'25','onchange'=>'') ?><?php $attr_class='ansidate' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_index='' ?><?php $attr_name='ansidate' ?><?php $attr_prefix='' ?><?php $attr_value='' ?><?php $attr_size='25' ?><?php $attr_maxlength='25' ?><?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('var'=>'','value'=>'','invert'=>'','empty'=>'','present'=>'release','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='release' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php +?><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'=>'ansidate','default'=>'','type'=>'text','name'=>'ansidate','size'=>'25','maxlength'=>'25','onchange'=>'') ?><?php $attr_class='ansidate' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_name='ansidate' ?><?php $attr_size='25' ?><?php $attr_maxlength='25' ?><?php $attr_onchange='' ?><input id="id<?php echo $attr_name ?>" name="<?php echo $attr_name ?>" type="<?php echo $attr_type ?>" 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 ?>" onxxxMouseOver="this.focus();" /><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><?php unset($attr_type) ?><?php unset($attr_name) ?><?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('present'=>'release') ?><?php $attr_present='release' ?><?php // Wahr-Vergleich - if ( !empty($attr_true) ) - $exec = $$attr_true == true; +// Html::debug($attr); + + if ( isset($attr_true) ) + { + if (gettype($attr_true) === '' && gettype($attr_true) === '1') + $exec = $$attr_true == true; + else + $exec = $attr_true == true; + } // Falsch-Vergleich - elseif ( !empty($attr_false) ) - $exec = $$attr_false != true; - + elseif ( isset($attr_false) ) + { + if (gettype($attr_false) === '' && gettype($attr_false) === '1') + $exec = $$attr_false == false; + else + $exec = $attr_false == false; + } // Inhalt-Vergleich mit Wertliste - elseif( !empty($attr_contains) ) + elseif( isset($attr_contains) ) $exec = in_array($$attr_var,explode(',',$attr_contains)); // Inhalt-Vergleich - elseif( !empty($attr_var) ) + elseif( isset($attr_var) ) $exec = $$attr_var == $attr_value; // Vergleich auf leer - elseif ( !empty($attr_empty) ) + elseif ( isset($attr_empty) ) { if ( !isset($$attr_empty) ) - $exec = true; + $exec = empty($attr_empty); elseif ( is_array($$attr_empty) ) $exec = (count($$attr_empty)==0); elseif ( is_bool($$attr_empty) ) @@ -184,53 +258,98 @@ $exec = empty( $$attr_empty ); } - // Vergleich auf nicht-leer - elseif ( !empty($attr_present) ) + // 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 = true; + $exec = $$attr_present; elseif ( is_numeric($$attr_present) ) $exec = $$attr_present>=0; else - $exec = !empty( $$attr_present ); + $exec = true; } + else { - die("error in IF"); + Html::debug( $attr ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; } // Ergebnis umdrehen if ( !empty($attr_invert) ) $exec = !$exec; + // Ergebnis umdrehen + if ( !empty($attr_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); + + $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($attr) ?><?php unset($attr_present) ?><?php $attr = 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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'fx','colspan'=>'2') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?php $attr_colspan='2' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><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; + $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; 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]; -?><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'=>'release','prefix'=>'') ?><?php $attr_default='false' ?><?php $attr_var='' ?><?php $attr_readonly='false' ?><?php $attr_name='release' ?><?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('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 +?><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('default'=>'','readonly'=>'','name'=>'release') ?><?php $attr_default='' ?><?php $attr_readonly='' ?><?php $attr_name='release' ?><?php + $attr_default = ( $attr_default == true ); + + if ( isset($$attr_name) ) + $checked = $$attr_name == true; +// $checked = isset($$$attr_name)&& $$$attr_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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -242,20 +361,37 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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'=>'GLOBAL_RELEASE','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_RELEASE' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_raw) ?><?php $attr = array('class'=>'text','text'=>'GLOBAL_RELEASE') ?><?php $attr_class='text' ?><?php $attr_text='GLOBAL_RELEASE' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -267,42 +403,65 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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 +?></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 } -?><?php unset($attr) ?><?php $attr = array('var'=>'','value'=>'','invert'=>'','empty'=>'','present'=>'publish','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='publish' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php + +?><?php unset($attr) ?><?php $attr = array('present'=>'publish') ?><?php $attr_present='publish' ?><?php // Wahr-Vergleich - if ( !empty($attr_true) ) - $exec = $$attr_true == true; +// Html::debug($attr); + + if ( isset($attr_true) ) + { + if (gettype($attr_true) === '' && gettype($attr_true) === '1') + $exec = $$attr_true == true; + else + $exec = $attr_true == true; + } // Falsch-Vergleich - elseif ( !empty($attr_false) ) - $exec = $$attr_false != true; - + elseif ( isset($attr_false) ) + { + if (gettype($attr_false) === '' && gettype($attr_false) === '1') + $exec = $$attr_false == false; + else + $exec = $attr_false == false; + } // Inhalt-Vergleich mit Wertliste - elseif( !empty($attr_contains) ) + elseif( isset($attr_contains) ) $exec = in_array($$attr_var,explode(',',$attr_contains)); // Inhalt-Vergleich - elseif( !empty($attr_var) ) + elseif( isset($attr_var) ) $exec = $$attr_var == $attr_value; // Vergleich auf leer - elseif ( !empty($attr_empty) ) + elseif ( isset($attr_empty) ) { if ( !isset($$attr_empty) ) - $exec = true; + $exec = empty($attr_empty); elseif ( is_array($$attr_empty) ) $exec = (count($$attr_empty)==0); elseif ( is_bool($$attr_empty) ) @@ -311,53 +470,98 @@ $exec = empty( $$attr_empty ); } - // Vergleich auf nicht-leer - elseif ( !empty($attr_present) ) + // 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 = true; + $exec = $$attr_present; elseif ( is_numeric($$attr_present) ) $exec = $$attr_present>=0; else - $exec = !empty( $$attr_present ); + $exec = true; } + else { - die("error in IF"); + Html::debug( $attr ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; } // Ergebnis umdrehen if ( !empty($attr_invert) ) $exec = !$exec; + // Ergebnis umdrehen + if ( !empty($attr_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); + + $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($attr) ?><?php unset($attr_present) ?><?php $attr = 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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'fx','colspan'=>'2') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?php $attr_colspan='2' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><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; + $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; 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]; -?><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'=>'publish','prefix'=>'') ?><?php $attr_default='false' ?><?php $attr_var='' ?><?php $attr_readonly='false' ?><?php $attr_name='publish' ?><?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('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 +?><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('default'=>'','readonly'=>'','name'=>'publish') ?><?php $attr_default='' ?><?php $attr_readonly='' ?><?php $attr_name='publish' ?><?php + $attr_default = ( $attr_default == true ); + + if ( isset($$attr_name) ) + $checked = $$attr_name == true; +// $checked = isset($$$attr_name)&& $$$attr_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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -369,20 +573,37 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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'=>'PAGE_PUBLISH_AFTER_SAVE','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='PAGE_PUBLISH_AFTER_SAVE' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_raw) ?><?php $attr = array('class'=>'text','text'=>'PAGE_PUBLISH_AFTER_SAVE') ?><?php $attr_class='text' ?><?php $attr_text='PAGE_PUBLISH_AFTER_SAVE' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -394,47 +615,69 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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 +?></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 } -?><?php unset($attr) ?><?php $attr = array() ?><?php - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; +?><?php unset($attr) ?><?php $attr = 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; + 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 $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; + $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; 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]; -?><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 +?><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') { $attr_type = 'submit'; - $attr_class = 'ok'; - $attr_text = 'BUTTON_OK'; - $attr_value = 'ok'; +// $attr_class = 'ok'; +// $attr_text = 'BUTTON_OK'; +// $attr_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 $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> </td> </tr> </table> @@ -448,10 +691,15 @@ <?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'=>'text') ?><?php $attr_field='text' ?><script name="JavaScript" type="text/javascript"><!-- +<?php unset($attr) ?><?php $attr = array() ?></form> + +<?php unset($attr) ?><?php $attr = array('field'=>'text') ?><?php $attr_field='text' ?> +<script name="JavaScript" type="text/javascript"> +<!-- document.forms[0].<?php echo $attr_field ?>.focus(); document.forms[0].<?php echo $attr_field ?>.select(); -//--></script> +// --> +</script> <?php unset($attr) ?><?php unset($attr_field) ?><?php $attr = array() ?> <!-- $Id$ --> diff --git a/themes/default/pages/html/pageelement/editdatecalendar.tpl.php b/themes/default/pages/html/pageelement/editdatecalendar.tpl.php @@ -1,21 +1,28 @@ -<?php $attr = array('class'=>'') ?><?php $attr_class='' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<?php $attr = array('class'=>'main','title'=>'var') ?><?php $attr_class='main' ?><?php $attr_title='var' ?><?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 $attr_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 $attr_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 +<?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)) @@ -33,19 +40,32 @@ <input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr_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'=>'element','icon'=>'','widths'=>'','width'=>'85%') ?><?php $attr_title='' ?><?php $attr_name='element' ?><?php $attr_icon='' ?><?php $attr_widths='' ?><?php $attr_width='85%' ?><?php +?><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_target) ?><?php unset($attr_method) ?><?php unset($attr_enctype) ?><?php $attr = array('name'=>'element','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr_name='element' ?><?php $attr_width='93%' ?><?php $attr_rowclasses='odd,even' ?><?php $attr_columnclasses='1,2,3' ?><?php $coloumn_widths=array(); if (!empty($attr_widths)) { $column_widths = explode(',',$attr_widths); unset($attr['widths']); } + if (!empty($attr_rowclasses)) + { + $row_classes = explode(',',$attr_rowclasses); + $row_class_idx = 999; + unset($attr['rowclasses']); + } + if (!empty($attr_columnclasses)) + { + $column_classes = explode(',',$attr_columnclasses); + unset($attr['columnclasses']); + } global $image_dir; echo '<br/><br/><br/><center>'; echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_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 ( !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,28 +116,44 @@ <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($attr) ?><?php unset($attr_name) ?><?php unset($attr_width) ?><?php unset($attr_rowclasses) ?><?php unset($attr_columnclasses) ?><?php $attr = 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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'help','colspan'=>'2') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='help' ?><?php $attr_colspan='2' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><tr class="<?php echo $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'help','colspan'=>'2') ?><?php $attr_class='help' ?><?php $attr_colspan='2' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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'=>'desc','text'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='desc' ?><?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 +?><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','var'=>'desc') ?><?php $attr_class='text' ?><?php $attr_var='desc' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -123,18 +165,29 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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) ?><tr> +?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><tr> <th colspan="7"><?php echo $name ?> (<?php echo $title ?>)</th> </tr> <?php @@ -185,6 +238,7 @@ $lastyear--; $lastmonth = 12; } echo '&nbsp;&nbsp;<a href="'.Html::url('pageelement','edit','-',array('year'=>$lastyear,'month'=>$lastmonth,'day'=>$day,'hour'=>$hour,'minute'=>$minute,'second'=>$second)).'">'.lang('DATE_LAST_MONTH').'</a>&nbsp;&laquo;&nbsp;</td>'; +// Link auf heutiges Datum echo '<td style="text-align:center"><a href="'.$todayurl.'">'.lang('DATE_TODAY').'</a></td>'; $nextyear = $year; $nextmonth = $month + 1; @@ -198,29 +252,40 @@ $nextyear = $year+1; echo '&nbsp;&nbsp;&raquo;&nbsp;<a href="'.Html::url('pageelement','edit','-',array('year'=>$nextyear,'month'=>$month,'day'=>$day,'hour'=>$hour,'minute'=>$minute,'second'=>$second)).'">'.lang('DATE_NEXT_YEAR').'</a></td>'; ?> </tr> -<?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array('var'=>'','value'=>'','invert'=>'','empty'=>'','present'=>'release','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='release' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php +<?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array('present'=>'release') ?><?php $attr_present='release' ?><?php // Wahr-Vergleich - if ( !empty($attr_true) ) - $exec = $$attr_true == true; +// Html::debug($attr); + + if ( isset($attr_true) ) + { + if (gettype($attr_true) === '' && gettype($attr_true) === '1') + $exec = $$attr_true == true; + else + $exec = $attr_true == true; + } // Falsch-Vergleich - elseif ( !empty($attr_false) ) - $exec = $$attr_false != true; - + elseif ( isset($attr_false) ) + { + if (gettype($attr_false) === '' && gettype($attr_false) === '1') + $exec = $$attr_false == false; + else + $exec = $attr_false == false; + } // Inhalt-Vergleich mit Wertliste - elseif( !empty($attr_contains) ) + elseif( isset($attr_contains) ) $exec = in_array($$attr_var,explode(',',$attr_contains)); // Inhalt-Vergleich - elseif( !empty($attr_var) ) + elseif( isset($attr_var) ) $exec = $$attr_var == $attr_value; // Vergleich auf leer - elseif ( !empty($attr_empty) ) + elseif ( isset($attr_empty) ) { if ( !isset($$attr_empty) ) - $exec = true; + $exec = empty($attr_empty); elseif ( is_array($$attr_empty) ) $exec = (count($$attr_empty)==0); elseif ( is_bool($$attr_empty) ) @@ -229,53 +294,98 @@ echo '&nbsp;&nbsp;&raquo;&nbsp;<a href="'.Html::url('pageelement','edit','-',arr $exec = empty( $$attr_empty ); } - // Vergleich auf nicht-leer - elseif ( !empty($attr_present) ) + // 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 = true; + $exec = $$attr_present; elseif ( is_numeric($$attr_present) ) $exec = $$attr_present>=0; else - $exec = !empty( $$attr_present ); + $exec = true; } + else { - die("error in IF"); + Html::debug( $attr ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; } // Ergebnis umdrehen if ( !empty($attr_invert) ) $exec = !$exec; + // Ergebnis umdrehen + if ( !empty($attr_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); + + $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($attr) ?><?php unset($attr_present) ?><?php $attr = 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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'fx','colspan'=>'2') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?php $attr_colspan='2' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><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; + $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; 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]; -?><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'=>'release','prefix'=>'') ?><?php $attr_default='false' ?><?php $attr_var='' ?><?php $attr_readonly='false' ?><?php $attr_name='release' ?><?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('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 +?><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('default'=>'','readonly'=>'','name'=>'release') ?><?php $attr_default='' ?><?php $attr_readonly='' ?><?php $attr_name='release' ?><?php + $attr_default = ( $attr_default == true ); + + if ( isset($$attr_name) ) + $checked = $$attr_name == true; +// $checked = isset($$$attr_name)&& $$$attr_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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -287,20 +397,37 @@ echo '&nbsp;&nbsp;&raquo;&nbsp;<a href="'.Html::url('pageelement','edit','-',arr $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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'=>'GLOBAL_RELEASE','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_RELEASE' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_raw) ?><?php $attr = array('class'=>'text','text'=>'GLOBAL_RELEASE') ?><?php $attr_class='text' ?><?php $attr_text='GLOBAL_RELEASE' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -312,42 +439,65 @@ echo '&nbsp;&nbsp;&raquo;&nbsp;<a href="'.Html::url('pageelement','edit','-',arr $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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 +?></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 } -?><?php unset($attr) ?><?php $attr = array('var'=>'','value'=>'','invert'=>'','empty'=>'','present'=>'publish','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='publish' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php + +?><?php unset($attr) ?><?php $attr = array('present'=>'publish') ?><?php $attr_present='publish' ?><?php // Wahr-Vergleich - if ( !empty($attr_true) ) - $exec = $$attr_true == true; +// Html::debug($attr); + + if ( isset($attr_true) ) + { + if (gettype($attr_true) === '' && gettype($attr_true) === '1') + $exec = $$attr_true == true; + else + $exec = $attr_true == true; + } // Falsch-Vergleich - elseif ( !empty($attr_false) ) - $exec = $$attr_false != true; - + elseif ( isset($attr_false) ) + { + if (gettype($attr_false) === '' && gettype($attr_false) === '1') + $exec = $$attr_false == false; + else + $exec = $attr_false == false; + } // Inhalt-Vergleich mit Wertliste - elseif( !empty($attr_contains) ) + elseif( isset($attr_contains) ) $exec = in_array($$attr_var,explode(',',$attr_contains)); // Inhalt-Vergleich - elseif( !empty($attr_var) ) + elseif( isset($attr_var) ) $exec = $$attr_var == $attr_value; // Vergleich auf leer - elseif ( !empty($attr_empty) ) + elseif ( isset($attr_empty) ) { if ( !isset($$attr_empty) ) - $exec = true; + $exec = empty($attr_empty); elseif ( is_array($$attr_empty) ) $exec = (count($$attr_empty)==0); elseif ( is_bool($$attr_empty) ) @@ -356,53 +506,98 @@ echo '&nbsp;&nbsp;&raquo;&nbsp;<a href="'.Html::url('pageelement','edit','-',arr $exec = empty( $$attr_empty ); } - // Vergleich auf nicht-leer - elseif ( !empty($attr_present) ) + // 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 = true; + $exec = $$attr_present; elseif ( is_numeric($$attr_present) ) $exec = $$attr_present>=0; else - $exec = !empty( $$attr_present ); + $exec = true; } + else { - die("error in IF"); + Html::debug( $attr ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; } // Ergebnis umdrehen if ( !empty($attr_invert) ) $exec = !$exec; + // Ergebnis umdrehen + if ( !empty($attr_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); + + $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($attr) ?><?php unset($attr_present) ?><?php $attr = 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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'fx','colspan'=>'2') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?php $attr_colspan='2' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><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; + $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; 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]; -?><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'=>'publish','prefix'=>'') ?><?php $attr_default='false' ?><?php $attr_var='' ?><?php $attr_readonly='false' ?><?php $attr_name='publish' ?><?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('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 +?><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('default'=>'','readonly'=>'','name'=>'publish') ?><?php $attr_default='' ?><?php $attr_readonly='' ?><?php $attr_name='publish' ?><?php + $attr_default = ( $attr_default == true ); + + if ( isset($$attr_name) ) + $checked = $$attr_name == true; +// $checked = isset($$$attr_name)&& $$$attr_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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -414,20 +609,37 @@ echo '&nbsp;&nbsp;&raquo;&nbsp;<a href="'.Html::url('pageelement','edit','-',arr $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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'=>'PAGE_PUBLISH_AFTER_SAVE','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='PAGE_PUBLISH_AFTER_SAVE' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_raw) ?><?php $attr = array('class'=>'text','text'=>'PAGE_PUBLISH_AFTER_SAVE') ?><?php $attr_class='text' ?><?php $attr_text='PAGE_PUBLISH_AFTER_SAVE' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -439,47 +651,69 @@ echo '&nbsp;&nbsp;&raquo;&nbsp;<a href="'.Html::url('pageelement','edit','-',arr $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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 +?></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 } -?><?php unset($attr) ?><?php $attr = array() ?><?php - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; +?><?php unset($attr) ?><?php $attr = 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; + 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 $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; + $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; 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]; -?><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 +?><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') { $attr_type = 'submit'; - $attr_class = 'ok'; - $attr_text = 'BUTTON_OK'; - $attr_value = 'ok'; +// $attr_class = 'ok'; +// $attr_text = 'BUTTON_OK'; +// $attr_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 $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> </td> </tr> </table> @@ -493,10 +727,15 @@ echo '&nbsp;&nbsp;&raquo;&nbsp;<a href="'.Html::url('pageelement','edit','-',arr <?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'=>'text') ?><?php $attr_field='text' ?><script name="JavaScript" type="text/javascript"><!-- +<?php unset($attr) ?><?php $attr = array() ?></form> + +<?php unset($attr) ?><?php $attr = array('field'=>'text') ?><?php $attr_field='text' ?> +<script name="JavaScript" type="text/javascript"> +<!-- document.forms[0].<?php echo $attr_field ?>.focus(); document.forms[0].<?php echo $attr_field ?>.select(); -//--></script> +// --> +</script> <?php unset($attr) ?><?php unset($attr_field) ?><?php $attr = array() ?> <!-- $Id$ --> diff --git a/themes/default/pages/html/pageelement/editdateform.tpl.php b/themes/default/pages/html/pageelement/editdateform.tpl.php @@ -1,21 +1,28 @@ -<?php $attr = array('class'=>'') ?><?php $attr_class='' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<?php $attr = array('class'=>'main','title'=>'var') ?><?php $attr_class='main' ?><?php $attr_title='var' ?><?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 $attr_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 $attr_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 +<?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)) @@ -33,19 +40,32 @@ <input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr_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'=>'element','icon'=>'','widths'=>'','width'=>'85%') ?><?php $attr_title='' ?><?php $attr_name='element' ?><?php $attr_icon='' ?><?php $attr_widths='' ?><?php $attr_width='85%' ?><?php +?><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_target) ?><?php unset($attr_method) ?><?php unset($attr_enctype) ?><?php $attr = array('name'=>'element','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr_name='element' ?><?php $attr_width='93%' ?><?php $attr_rowclasses='odd,even' ?><?php $attr_columnclasses='1,2,3' ?><?php $coloumn_widths=array(); if (!empty($attr_widths)) { $column_widths = explode(',',$attr_widths); unset($attr['widths']); } + if (!empty($attr_rowclasses)) + { + $row_classes = explode(',',$attr_rowclasses); + $row_class_idx = 999; + unset($attr['rowclasses']); + } + if (!empty($attr_columnclasses)) + { + $column_classes = explode(',',$attr_columnclasses); + unset($attr['columnclasses']); + } global $image_dir; echo '<br/><br/><br/><center>'; echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_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 ( !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,28 +116,44 @@ <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($attr) ?><?php unset($attr_name) ?><?php unset($attr_width) ?><?php unset($attr_rowclasses) ?><?php unset($attr_columnclasses) ?><?php $attr = 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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'help','colspan'=>'2') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='help' ?><?php $attr_colspan='2' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><tr class="<?php echo $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'help','colspan'=>'2') ?><?php $attr_class='help' ?><?php $attr_colspan='2' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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'=>'desc','text'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='desc' ?><?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 +?><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','var'=>'desc') ?><?php $attr_class='text' ?><?php $attr_var='desc' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -123,39 +165,66 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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($attr) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = 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; + 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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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'=>'date','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='date' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?><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'=>'date') ?><?php $attr_class='text' ?><?php $attr_text='date' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -167,42 +236,64 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?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; + $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; 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]; -?><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'=>'all_years','name'=>'year','default'=>'','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='all_years' ?><?php $attr_name='year' ?><?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 +?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('list'=>'all_years','name'=>'year','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='all_years' ?><?php $attr_name='year' ?><?php $attr_onchange='' ?><?php $attr_title='' ?><?php $attr_class='' ?><select size="1" id="id<?php echo $attr_name ?>" 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"' ?>><?php foreach( $$attr_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) + if (isset($$attr_name)&&$box_key==$$attr_name || isset($attr_default)&&$box_key == $attr_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('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 +?><?php unset($attr) ?><?php unset($attr_list) ?><?php unset($attr_name) ?><?php unset($attr_onchange) ?><?php unset($attr_title) ?><?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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -214,32 +305,49 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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('list'=>'all_months','name'=>'month','default'=>'','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='all_months' ?><?php $attr_name='month' ?><?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 +?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_raw) ?><?php $attr = array('list'=>'all_months','name'=>'month','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='all_months' ?><?php $attr_name='month' ?><?php $attr_onchange='' ?><?php $attr_title='' ?><?php $attr_class='' ?><select size="1" id="id<?php echo $attr_name ?>" 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"' ?>><?php foreach( $$attr_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) + if (isset($$attr_name)&&$box_key==$$attr_name || isset($attr_default)&&$box_key == $attr_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('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 +?><?php unset($attr) ?><?php unset($attr_list) ?><?php unset($attr_name) ?><?php unset($attr_onchange) ?><?php unset($attr_title) ?><?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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -251,51 +359,78 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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('list'=>'all_days','name'=>'day','default'=>'','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='all_days' ?><?php $attr_name='day' ?><?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 +?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_raw) ?><?php $attr = array('list'=>'all_days','name'=>'day','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='all_days' ?><?php $attr_name='day' ?><?php $attr_onchange='' ?><?php $attr_title='' ?><?php $attr_class='' ?><select size="1" id="id<?php echo $attr_name ?>" 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"' ?>><?php foreach( $$attr_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) + if (isset($$attr_name)&&$box_key==$$attr_name || isset($attr_default)&&$box_key == $attr_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 - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - +?><?php unset($attr) ?><?php unset($attr_list) ?><?php unset($attr_name) ?><?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 + $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; + 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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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'=>'date_time','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='date_time' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?><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'=>'date_time') ?><?php $attr_class='text' ?><?php $attr_text='date_time' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -307,421 +442,53 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?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; + $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; 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]; -?><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'=>'all_hours','name'=>'hour','default'=>'','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='all_hours' ?><?php $attr_name='hour' ?><?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 +?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('list'=>'all_hours','name'=>'hour','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='all_hours' ?><?php $attr_name='hour' ?><?php $attr_onchange='' ?><?php $attr_title='' ?><?php $attr_class='' ?><select size="1" id="id<?php echo $attr_name ?>" 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"' ?>><?php foreach( $$attr_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) + if (isset($$attr_name)&&$box_key==$$attr_name || isset($attr_default)&&$box_key == $attr_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('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)) - { - //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 $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('list'=>'all_minutes','name'=>'minute','default'=>'','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='all_minutes' ?><?php $attr_name='minute' ?><?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"' -?>><?php - foreach( $$attr_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 ' 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('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)) - { - //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 $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('list'=>'all_seconds','name'=>'second','default'=>'','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='all_seconds' ?><?php $attr_name='second' ?><?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"' -?>><?php - foreach( $$attr_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 ' 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('var'=>'','value'=>'','invert'=>'','empty'=>'','present'=>'release','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='release' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php - - // Wahr-Vergleich - if ( !empty($attr_true) ) - $exec = $$attr_true == true; - - // Falsch-Vergleich - elseif ( !empty($attr_false) ) - $exec = $$attr_false != true; - - // Inhalt-Vergleich mit Wertliste - elseif( !empty($attr_contains) ) - $exec = in_array($$attr_var,explode(',',$attr_contains)); - - // Inhalt-Vergleich - elseif( !empty($attr_var) ) - $exec = $$attr_var == $attr_value; - - // Vergleich auf leer - elseif ( !empty($attr_empty) ) - { - if ( !isset($$attr_empty) ) - $exec = true; - elseif ( is_array($$attr_empty) ) - $exec = (count($$attr_empty)==0); - elseif ( is_bool($$attr_empty) ) - $exec = true; - else - $exec = empty( $$attr_empty ); - } - - // Vergleich auf nicht-leer - elseif ( !empty($attr_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 = !empty( $$attr_present ); - } - else - { - die("error in IF"); - } - - // Ergebnis umdrehen - if ( !empty($attr_invert) ) - $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'; - - global $cell_column_nr; - $cell_column_nr=0; - -?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'fx','colspan'=>'2') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?php $attr_colspan='2' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; - - 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]; - -?><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'=>'release','prefix'=>'') ?><?php $attr_default='false' ?><?php $attr_var='' ?><?php $attr_readonly='false' ?><?php $attr_name='release' ?><?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('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)) - { - //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 $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'=>'GLOBAL_RELEASE','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_RELEASE' ?><?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)) - { - //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 $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'=>'publish','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='publish' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php - - // Wahr-Vergleich - if ( !empty($attr_true) ) - $exec = $$attr_true == true; - - // Falsch-Vergleich - elseif ( !empty($attr_false) ) - $exec = $$attr_false != true; - - // Inhalt-Vergleich mit Wertliste - elseif( !empty($attr_contains) ) - $exec = in_array($$attr_var,explode(',',$attr_contains)); - - // Inhalt-Vergleich - elseif( !empty($attr_var) ) - $exec = $$attr_var == $attr_value; - - // Vergleich auf leer - elseif ( !empty($attr_empty) ) - { - if ( !isset($$attr_empty) ) - $exec = true; - elseif ( is_array($$attr_empty) ) - $exec = (count($$attr_empty)==0); - elseif ( is_bool($$attr_empty) ) - $exec = true; - else - $exec = empty( $$attr_empty ); - } - - // Vergleich auf nicht-leer - elseif ( !empty($attr_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 = !empty( $$attr_present ); - } - else - { - die("error in IF"); - } - - // Ergebnis umdrehen - if ( !empty($attr_invert) ) - $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'; - - global $cell_column_nr; - $cell_column_nr=0; - -?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'fx','colspan'=>'2') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?php $attr_colspan='2' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; - - 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]; - -?><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'=>'publish','prefix'=>'') ?><?php $attr_default='false' ?><?php $attr_var='' ?><?php $attr_readonly='false' ?><?php $attr_name='publish' ?><?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('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)) - { - //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 $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'=>'PAGE_PUBLISH_AFTER_SAVE','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='PAGE_PUBLISH_AFTER_SAVE' ?><?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)) - { - //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 $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() ?><?php - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - - global $cell_column_nr; - $cell_column_nr=0; - -?><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; - - 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]; - -?><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') - { - $attr_type = 'submit'; - $attr_class = 'ok'; - $attr_text = 'BUTTON_OK'; - $attr_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> - </td> - </tr> -</table> - -</center> - -<?php if ($showDuration) - { ?> -<br/> -<small>&nbsp; -<?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'=>'text') ?><?php $attr_field='text' ?><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() ?> -<!-- $Id$ --> - -<?php if ($showDuration) { ?> -<br/> -<small>&nbsp; -<?php $dur = time()-START_TIME; -// echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small> -<?php } ?> - -</body> -</html><?php unset($attr) ?>- \ No newline at end of file +?><?php unset($attr) ?><?php unset($attr_list) ?><?php unset($attr_name) ?><?php unset($attr_onchange) ?><?php unset($attr_title) ?><?php unset($attr_class) ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/pageelement/editlink.tpl.php b/themes/default/pages/html/pageelement/editlink.tpl.php @@ -1,21 +1,28 @@ -<?php $attr = array('class'=>'') ?><?php $attr_class='' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<?php $attr = array('class'=>'main','title'=>'var') ?><?php $attr_class='main' ?><?php $attr_title='var' ?><?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 $attr_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 $attr_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 +<?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)) @@ -33,19 +40,32 @@ <input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr_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'=>'element','icon'=>'','widths'=>'','width'=>'85%') ?><?php $attr_title='' ?><?php $attr_name='element' ?><?php $attr_icon='' ?><?php $attr_widths='' ?><?php $attr_width='85%' ?><?php +?><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_target) ?><?php unset($attr_method) ?><?php unset($attr_enctype) ?><?php $attr = array('name'=>'element','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr_name='element' ?><?php $attr_width='93%' ?><?php $attr_rowclasses='odd,even' ?><?php $attr_columnclasses='1,2,3' ?><?php $coloumn_widths=array(); if (!empty($attr_widths)) { $column_widths = explode(',',$attr_widths); unset($attr['widths']); } + if (!empty($attr_rowclasses)) + { + $row_classes = explode(',',$attr_rowclasses); + $row_class_idx = 999; + unset($attr['rowclasses']); + } + if (!empty($attr_columnclasses)) + { + $column_classes = explode(',',$attr_columnclasses); + unset($attr['columnclasses']); + } global $image_dir; echo '<br/><br/><br/><center>'; echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_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 ( !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,28 +116,44 @@ <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($attr) ?><?php unset($attr_name) ?><?php unset($attr_width) ?><?php unset($attr_rowclasses) ?><?php unset($attr_columnclasses) ?><?php $attr = 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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'help','colspan'=>'2') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='help' ?><?php $attr_colspan='2' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><tr class="<?php echo $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'help','colspan'=>'2') ?><?php $attr_class='help' ?><?php $attr_colspan='2' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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'=>'desc','text'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='desc' ?><?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 +?><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','var'=>'desc') ?><?php $attr_class='text' ?><?php $attr_var='desc' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -123,71 +165,103 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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($attr) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = 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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'fx','colspan'=>'2') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?php $attr_colspan='2' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><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; + $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; 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]; -?><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'=>'objects','name'=>'linkobjectid','default'=>'','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='objects' ?><?php $attr_name='linkobjectid' ?><?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 +?><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'=>'objects','name'=>'linkobjectid','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='objects' ?><?php $attr_name='linkobjectid' ?><?php $attr_onchange='' ?><?php $attr_title='' ?><?php $attr_class='' ?><select size="1" id="id<?php echo $attr_name ?>" 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"' ?>><?php foreach( $$attr_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) + if (isset($$attr_name)&&$box_key==$$attr_name || isset($attr_default)&&$box_key == $attr_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('var'=>'','value'=>'','invert'=>'','empty'=>'','present'=>'release','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='release' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php +?><?php unset($attr) ?><?php unset($attr_list) ?><?php unset($attr_name) ?><?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('present'=>'release') ?><?php $attr_present='release' ?><?php // Wahr-Vergleich - if ( !empty($attr_true) ) - $exec = $$attr_true == true; +// Html::debug($attr); + + if ( isset($attr_true) ) + { + if (gettype($attr_true) === '' && gettype($attr_true) === '1') + $exec = $$attr_true == true; + else + $exec = $attr_true == true; + } // Falsch-Vergleich - elseif ( !empty($attr_false) ) - $exec = $$attr_false != true; - + elseif ( isset($attr_false) ) + { + if (gettype($attr_false) === '' && gettype($attr_false) === '1') + $exec = $$attr_false == false; + else + $exec = $attr_false == false; + } // Inhalt-Vergleich mit Wertliste - elseif( !empty($attr_contains) ) + elseif( isset($attr_contains) ) $exec = in_array($$attr_var,explode(',',$attr_contains)); // Inhalt-Vergleich - elseif( !empty($attr_var) ) + elseif( isset($attr_var) ) $exec = $$attr_var == $attr_value; // Vergleich auf leer - elseif ( !empty($attr_empty) ) + elseif ( isset($attr_empty) ) { if ( !isset($$attr_empty) ) - $exec = true; + $exec = empty($attr_empty); elseif ( is_array($$attr_empty) ) $exec = (count($$attr_empty)==0); elseif ( is_bool($$attr_empty) ) @@ -196,53 +270,98 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu $exec = empty( $$attr_empty ); } - // Vergleich auf nicht-leer - elseif ( !empty($attr_present) ) + // 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 = true; + $exec = $$attr_present; elseif ( is_numeric($$attr_present) ) $exec = $$attr_present>=0; else - $exec = !empty( $$attr_present ); + $exec = true; } + else { - die("error in IF"); + Html::debug( $attr ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; } // Ergebnis umdrehen if ( !empty($attr_invert) ) $exec = !$exec; + // Ergebnis umdrehen + if ( !empty($attr_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); + + $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($attr) ?><?php unset($attr_present) ?><?php $attr = 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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'fx','colspan'=>'2') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?php $attr_colspan='2' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><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; + $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; 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]; -?><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'=>'release','prefix'=>'') ?><?php $attr_default='false' ?><?php $attr_var='' ?><?php $attr_readonly='false' ?><?php $attr_name='release' ?><?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('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 +?><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('default'=>'','readonly'=>'','name'=>'release') ?><?php $attr_default='' ?><?php $attr_readonly='' ?><?php $attr_name='release' ?><?php + $attr_default = ( $attr_default == true ); + + if ( isset($$attr_name) ) + $checked = $$attr_name == true; +// $checked = isset($$$attr_name)&& $$$attr_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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -254,20 +373,37 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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'=>'GLOBAL_RELEASE','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_RELEASE' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_raw) ?><?php $attr = array('class'=>'text','text'=>'GLOBAL_RELEASE') ?><?php $attr_class='text' ?><?php $attr_text='GLOBAL_RELEASE' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -279,42 +415,65 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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 +?></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 } -?><?php unset($attr) ?><?php $attr = array('var'=>'','value'=>'','invert'=>'','empty'=>'','present'=>'publish','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='publish' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php + +?><?php unset($attr) ?><?php $attr = array('present'=>'publish') ?><?php $attr_present='publish' ?><?php // Wahr-Vergleich - if ( !empty($attr_true) ) - $exec = $$attr_true == true; +// Html::debug($attr); + + if ( isset($attr_true) ) + { + if (gettype($attr_true) === '' && gettype($attr_true) === '1') + $exec = $$attr_true == true; + else + $exec = $attr_true == true; + } // Falsch-Vergleich - elseif ( !empty($attr_false) ) - $exec = $$attr_false != true; - + elseif ( isset($attr_false) ) + { + if (gettype($attr_false) === '' && gettype($attr_false) === '1') + $exec = $$attr_false == false; + else + $exec = $attr_false == false; + } // Inhalt-Vergleich mit Wertliste - elseif( !empty($attr_contains) ) + elseif( isset($attr_contains) ) $exec = in_array($$attr_var,explode(',',$attr_contains)); // Inhalt-Vergleich - elseif( !empty($attr_var) ) + elseif( isset($attr_var) ) $exec = $$attr_var == $attr_value; // Vergleich auf leer - elseif ( !empty($attr_empty) ) + elseif ( isset($attr_empty) ) { if ( !isset($$attr_empty) ) - $exec = true; + $exec = empty($attr_empty); elseif ( is_array($$attr_empty) ) $exec = (count($$attr_empty)==0); elseif ( is_bool($$attr_empty) ) @@ -323,53 +482,98 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu $exec = empty( $$attr_empty ); } - // Vergleich auf nicht-leer - elseif ( !empty($attr_present) ) + // 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 = true; + $exec = $$attr_present; elseif ( is_numeric($$attr_present) ) $exec = $$attr_present>=0; else - $exec = !empty( $$attr_present ); + $exec = true; } + else { - die("error in IF"); + Html::debug( $attr ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; } // Ergebnis umdrehen if ( !empty($attr_invert) ) $exec = !$exec; + // Ergebnis umdrehen + if ( !empty($attr_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); + + $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($attr) ?><?php unset($attr_present) ?><?php $attr = 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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'fx','colspan'=>'2') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?php $attr_colspan='2' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><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; + $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; 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]; -?><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'=>'publish','prefix'=>'') ?><?php $attr_default='false' ?><?php $attr_var='' ?><?php $attr_readonly='false' ?><?php $attr_name='publish' ?><?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('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 +?><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('default'=>'','readonly'=>'','name'=>'publish') ?><?php $attr_default='' ?><?php $attr_readonly='' ?><?php $attr_name='publish' ?><?php + $attr_default = ( $attr_default == true ); + + if ( isset($$attr_name) ) + $checked = $$attr_name == true; +// $checked = isset($$$attr_name)&& $$$attr_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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -381,20 +585,37 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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'=>'PAGE_PUBLISH_AFTER_SAVE','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='PAGE_PUBLISH_AFTER_SAVE' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_raw) ?><?php $attr = array('class'=>'text','text'=>'PAGE_PUBLISH_AFTER_SAVE') ?><?php $attr_class='text' ?><?php $attr_text='PAGE_PUBLISH_AFTER_SAVE' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -406,47 +627,69 @@ if (count($$attr_list)==1) echo '<input type="hidden" name="'.$attr_name.'" valu $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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 +?></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 } -?><?php unset($attr) ?><?php $attr = array() ?><?php - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; +?><?php unset($attr) ?><?php $attr = 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; + 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 $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; + $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; 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]; -?><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 +?><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') { $attr_type = 'submit'; - $attr_class = 'ok'; - $attr_text = 'BUTTON_OK'; - $attr_value = 'ok'; +// $attr_class = 'ok'; +// $attr_text = 'BUTTON_OK'; +// $attr_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 $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> </td> </tr> </table> @@ -460,10 +703,15 @@ 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('field'=>'linkobjectid') ?><?php $attr_field='linkobjectid' ?><script name="JavaScript" type="text/javascript"><!-- +<?php unset($attr) ?><?php $attr = array() ?></form> + +<?php unset($attr) ?><?php $attr = array('field'=>'linkobjectid') ?><?php $attr_field='linkobjectid' ?> +<script name="JavaScript" type="text/javascript"> +<!-- document.forms[0].<?php echo $attr_field ?>.focus(); document.forms[0].<?php echo $attr_field ?>.select(); -//--></script> +// --> +</script> <?php unset($attr) ?><?php unset($attr_field) ?><?php $attr = array() ?> <!-- $Id$ --> diff --git a/themes/default/pages/html/pageelement/editlongtext.tpl.php b/themes/default/pages/html/pageelement/editlongtext.tpl.php @@ -1,11 +1,19 @@ -<?php $attr = array('class'=>'main') ?><?php $attr_class='main' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<?php $attr = array('class'=>'main','title'=>'var') ?><?php $attr_class='main' ?><?php $attr_title='var' ?><?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 $attr_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 ?>" /> @@ -14,8 +22,7 @@ <body class="<?php echo $attr_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 +<?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)) @@ -33,7 +40,7 @@ <input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr_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 +?><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_target) ?><?php unset($attr_method) ?><?php unset($attr_enctype) ?><?php function editBar() { global $image_dir,$objects; @@ -90,21 +97,35 @@ function table() { insert('text',"\n|","| |\n| | |\n"); } +//--> --> </script> -<?php $attr = array('title'=>'','name'=>'element','icon'=>'','widths'=>'','width'=>'85%') ?><?php $attr_title='' ?><?php $attr_name='element' ?><?php $attr_icon='' ?><?php $attr_widths='' ?><?php $attr_width='85%' ?><?php +<?php $attr = array('name'=>'element','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr_name='element' ?><?php $attr_width='93%' ?><?php $attr_rowclasses='odd,even' ?><?php $attr_columnclasses='1,2,3' ?><?php $coloumn_widths=array(); if (!empty($attr_widths)) { $column_widths = explode(',',$attr_widths); unset($attr['widths']); } + if (!empty($attr_rowclasses)) + { + $row_classes = explode(',',$attr_rowclasses); + $row_class_idx = 999; + unset($attr['rowclasses']); + } + if (!empty($attr_columnclasses)) + { + $column_classes = explode(',',$attr_columnclasses); + unset($attr['columnclasses']); + } global $image_dir; echo '<br/><br/><br/><center>'; echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_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 ( !is_array($path) ) + $path = array(); foreach( $path as $pathElement) { extract($pathElement); @@ -113,7 +134,13 @@ insert('text',"\n|","| |\n| | |\n"); } 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 ) @@ -149,28 +176,44 @@ insert('text',"\n|","| |\n| | |\n"); <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($attr) ?><?php unset($attr_name) ?><?php unset($attr_width) ?><?php unset($attr_rowclasses) ?><?php unset($attr_columnclasses) ?><?php $attr = 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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'help','colspan'=>'2') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='help' ?><?php $attr_colspan='2' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><tr class="<?php echo $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'help','colspan'=>'2') ?><?php $attr_class='help' ?><?php $attr_colspan='2' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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'=>'desc','text'=>'','textvar'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='desc' ?><?php $attr_text='' ?><?php $attr_textvar='' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?><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','var'=>'desc') ?><?php $attr_class='text' ?><?php $attr_var='desc' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -182,42 +225,62 @@ insert('text',"\n|","| |\n| | |\n"); $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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_textvar) ?><?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('var'=>'','value'=>'','invert'=>'','empty'=>'','present'=>'preview_text','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='preview_text' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php +?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array('present'=>'preview_text') ?><?php $attr_present='preview_text' ?><?php // Wahr-Vergleich - if ( !empty($attr_true) ) - $exec = $$attr_true == true; +// Html::debug($attr); + + if ( isset($attr_true) ) + { + if (gettype($attr_true) === '' && gettype($attr_true) === '1') + $exec = $$attr_true == true; + else + $exec = $attr_true == true; + } // Falsch-Vergleich - elseif ( !empty($attr_false) ) - $exec = $$attr_false != true; - + elseif ( isset($attr_false) ) + { + if (gettype($attr_false) === '' && gettype($attr_false) === '1') + $exec = $$attr_false == false; + else + $exec = $attr_false == false; + } // Inhalt-Vergleich mit Wertliste - elseif( !empty($attr_contains) ) + elseif( isset($attr_contains) ) $exec = in_array($$attr_var,explode(',',$attr_contains)); // Inhalt-Vergleich - elseif( !empty($attr_var) ) + elseif( isset($attr_var) ) $exec = $$attr_var == $attr_value; // Vergleich auf leer - elseif ( !empty($attr_empty) ) + elseif ( isset($attr_empty) ) { if ( !isset($$attr_empty) ) - $exec = true; + $exec = empty($attr_empty); elseif ( is_array($$attr_empty) ) $exec = (count($$attr_empty)==0); elseif ( is_bool($$attr_empty) ) @@ -227,67 +290,89 @@ insert('text',"\n|","| |\n| | |\n"); } // Vergleich auf Vorhandensein - elseif ( !empty($attr_present) ) + 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 = true; + $exec = $$attr_present; elseif ( is_numeric($$attr_present) ) $exec = $$attr_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( $attr ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; } // Ergebnis umdrehen if ( !empty($attr_invert) ) $exec = !$exec; + // Ergebnis umdrehen + if ( !empty($attr_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); + + $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($attr) ?><?php unset($attr_present) ?><?php $attr = 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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'fx','colspan'=>'2') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?php $attr_colspan='2' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><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; + $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; 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]; -?><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'=>'preview_text','text'=>'','textvar'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='preview_text' ?><?php $attr_text='' ?><?php $attr_textvar='' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?><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','var'=>'preview_text') ?><?php $attr_class='text' ?><?php $attr_var='preview_text' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -299,42 +384,62 @@ insert('text',"\n|","| |\n| | |\n"); $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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_textvar) ?><?php unset($attr_raw) ?><?php unset($attr_maxlength) ?><?php editBar() ?> +?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><?php editBar() ?> <?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 - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; +?><?php unset($attr) ?><?php $attr = 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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'fx','colspan'=>'2') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?php $attr_colspan='2' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><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; + $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; 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]; -?><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('name'=>'text','rows'=>'25','cols'=>'70','value'=>'','index'=>'','onchange'=>'','prefix'=>'','class'=>'longtext','default'=>'') ?><?php $attr_name='text' ?><?php $attr_rows='25' ?><?php $attr_cols='70' ?><?php $attr_value='' ?><?php $attr_index='' ?><?php $attr_onchange='' ?><?php $attr_prefix='' ?><?php $attr_class='longtext' ?><?php $attr_default='' ?><textarea class="<?php echo $attr_class ?>" name="<?php echo $attr_name ?>" rows="<?php echo $attr_rows ?>" cols="<?php echo $attr_cols ?>"><?php echo htmlentities(isset($$attr_name)?$$attr_name:$attr_default) ?></textarea><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_rows) ?><?php unset($attr_cols) ?><?php unset($attr_value) ?><?php unset($attr_index) ?><?php unset($attr_onchange) ?><?php unset($attr_prefix) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><tr> +?><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('name'=>'text','rows'=>'25','cols'=>'70','class'=>'longtext') ?><?php $attr_name='text' ?><?php $attr_rows='25' ?><?php $attr_cols='70' ?><?php $attr_class='longtext' ?><textarea class="<?php echo $attr_class ?>" name="<?php echo $attr_name ?>" rows="<?php echo $attr_rows ?>" cols="<?php echo $attr_cols ?>"><?php echo htmlentities(isset($$attr_name)?$$attr_name:$attr_default) ?></textarea><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_rows) ?><?php unset($attr_cols) ?><?php unset($attr_class) ?><tr> <td class="f2"><?php if ( $release ) echo Html::checkBox('release',true).' '.lang('GLOBAL_RELEASE') ?></td> <td class="f2"><?php echo Html::checkBox('html',$html,false) ?> <span title="<?php echo lang('EL_PROP_HTML_DESC') ?>"><?php echo lang('EL_PROP_HTML') ?></span></td> </tr> @@ -343,33 +448,43 @@ insert('text',"\n|","| |\n| | |\n"); <td class="f2" rowspan="2"><?php echo Html::checkBox('wiki',$wiki,false) ?> <span title="<?php echo lang('EL_PROP_WIKI_DESC') ?>"><?php echo lang('EL_PROP_WIKI') ?></span><?php if ($wiki) echo '<br/>'.lang('PAGE_LONGTEXT_WIKI_DESC') ?></td> </tr> <?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'; - + $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; + 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 $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; + $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; 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]; -?><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 +?><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') { $attr_type = 'submit'; - $attr_class = 'ok'; - $attr_text = 'BUTTON_OK'; - $attr_value = 'ok'; +// $attr_class = 'ok'; +// $attr_text = 'BUTTON_OK'; +// $attr_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 $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> </td> </tr> </table> @@ -383,10 +498,15 @@ insert('text',"\n|","| |\n| | |\n"); <?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'=>'text') ?><?php $attr_field='text' ?><script name="JavaScript" type="text/javascript"><!-- +<?php unset($attr) ?><?php $attr = array() ?></form> + +<?php unset($attr) ?><?php $attr = array('field'=>'text') ?><?php $attr_field='text' ?> +<script name="JavaScript" type="text/javascript"> +<!-- document.forms[0].<?php echo $attr_field ?>.focus(); document.forms[0].<?php echo $attr_field ?>.select(); -//--></script> +// --> +</script> <?php unset($attr) ?><?php unset($attr_field) ?><?php $attr = array() ?> <!-- $Id$ --> diff --git a/themes/default/pages/html/pageelement/editnumber.tpl.php b/themes/default/pages/html/pageelement/editnumber.tpl.php @@ -1,11 +1,19 @@ -<?php $attr = array('class'=>'main') ?><?php $attr_class='main' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<?php $attr = array('class'=>'main','title'=>'var') ?><?php $attr_class='main' ?><?php $attr_title='var' ?><?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 $attr_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 ?>" /> @@ -14,8 +22,7 @@ <body class="<?php echo $attr_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 +<?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)) @@ -33,19 +40,32 @@ <input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr_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'=>'element','icon'=>'','widths'=>'','width'=>'93%') ?><?php $attr_title='' ?><?php $attr_name='element' ?><?php $attr_icon='' ?><?php $attr_widths='' ?><?php $attr_width='93%' ?><?php +?><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_target) ?><?php unset($attr_method) ?><?php unset($attr_enctype) ?><?php $attr = array('name'=>'element','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr_name='element' ?><?php $attr_width='93%' ?><?php $attr_rowclasses='odd,even' ?><?php $attr_columnclasses='1,2,3' ?><?php $coloumn_widths=array(); if (!empty($attr_widths)) { $column_widths = explode(',',$attr_widths); unset($attr['widths']); } + if (!empty($attr_rowclasses)) + { + $row_classes = explode(',',$attr_rowclasses); + $row_class_idx = 999; + unset($attr['rowclasses']); + } + if (!empty($attr_columnclasses)) + { + $column_classes = explode(',',$attr_columnclasses); + unset($attr['columnclasses']); + } global $image_dir; echo '<br/><br/><br/><center>'; echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_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 ( !is_array($path) ) + $path = array(); foreach( $path as $pathElement) { extract($pathElement); @@ -96,28 +116,44 @@ <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($attr) ?><?php unset($attr_name) ?><?php unset($attr_width) ?><?php unset($attr_rowclasses) ?><?php unset($attr_columnclasses) ?><?php $attr = 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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'help','colspan'=>'2') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='help' ?><?php $attr_colspan='2' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><tr class="<?php echo $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'help','colspan'=>'2') ?><?php $attr_class='help' ?><?php $attr_colspan='2' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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'=>'desc','text'=>'','textvar'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='desc' ?><?php $attr_text='' ?><?php $attr_textvar='' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?><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','var'=>'desc') ?><?php $attr_class='text' ?><?php $attr_var='desc' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -129,60 +165,95 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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_textvar) ?><?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($attr) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = 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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'fx','colspan'=>'2') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?php $attr_colspan='2' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><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; + $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; 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]; -?><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('name'=>'decimals','default'=>'decimals') ?><?php $attr_name='decimals' ?><?php $attr_default='decimals' ?><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('class'=>'','default'=>'','type'=>'text','index'=>'','name'=>'number','prefix'=>'','value'=>'','size'=>'15','maxlength'=>'20','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_index='' ?><?php $attr_name='number' ?><?php $attr_prefix='' ?><?php $attr_value='' ?><?php $attr_size='15' ?><?php $attr_maxlength='20' ?><?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 - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - +?><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('name'=>'decimals','default'=>'decimals') ?><?php $attr_name='decimals' ?><?php $attr_default='decimals' ?><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('class'=>'','default'=>'','type'=>'text','name'=>'number','size'=>'15','maxlength'=>'20','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_name='number' ?><?php $attr_size='15' ?><?php $attr_maxlength='20' ?><?php $attr_onchange='' ?><input id="id<?php echo $attr_name ?>" name="<?php echo $attr_name ?>" type="<?php echo $attr_type ?>" 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 ?>" onxxxMouseOver="this.focus();" /><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><?php unset($attr_type) ?><?php unset($attr_name) ?><?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 + $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; + 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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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_decimals','textvar'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='global_decimals' ?><?php $attr_textvar='' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?><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_decimals') ?><?php $attr_class='text' ?><?php $attr_text='global_decimals' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -194,32 +265,52 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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_textvar) ?><?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($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?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; + $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; 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]; -?><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'=>'decimals','text'=>'','textvar'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='decimals' ?><?php $attr_text='' ?><?php $attr_textvar='' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?><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','var'=>'decimals') ?><?php $attr_class='text' ?><?php $attr_var='decimals' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -231,42 +322,62 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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_textvar) ?><?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('var'=>'','value'=>'','invert'=>'','empty'=>'','present'=>'release','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='release' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php +?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array('present'=>'release') ?><?php $attr_present='release' ?><?php // Wahr-Vergleich - if ( !empty($attr_true) ) - $exec = $$attr_true == true; +// Html::debug($attr); + + if ( isset($attr_true) ) + { + if (gettype($attr_true) === '' && gettype($attr_true) === '1') + $exec = $$attr_true == true; + else + $exec = $attr_true == true; + } // Falsch-Vergleich - elseif ( !empty($attr_false) ) - $exec = $$attr_false != true; - + elseif ( isset($attr_false) ) + { + if (gettype($attr_false) === '' && gettype($attr_false) === '1') + $exec = $$attr_false == false; + else + $exec = $attr_false == false; + } // Inhalt-Vergleich mit Wertliste - elseif( !empty($attr_contains) ) + elseif( isset($attr_contains) ) $exec = in_array($$attr_var,explode(',',$attr_contains)); // Inhalt-Vergleich - elseif( !empty($attr_var) ) + elseif( isset($attr_var) ) $exec = $$attr_var == $attr_value; // Vergleich auf leer - elseif ( !empty($attr_empty) ) + elseif ( isset($attr_empty) ) { if ( !isset($$attr_empty) ) - $exec = true; + $exec = empty($attr_empty); elseif ( is_array($$attr_empty) ) $exec = (count($$attr_empty)==0); elseif ( is_bool($$attr_empty) ) @@ -276,76 +387,97 @@ } // Vergleich auf Vorhandensein - elseif ( !empty($attr_present) ) + 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 = true; + $exec = $$attr_present; elseif ( is_numeric($$attr_present) ) $exec = $$attr_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( $attr ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; } // Ergebnis umdrehen if ( !empty($attr_invert) ) $exec = !$exec; + // Ergebnis umdrehen + if ( !empty($attr_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); + + $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($attr) ?><?php unset($attr_present) ?><?php $attr = 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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'fx','colspan'=>'2') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?php $attr_colspan='2' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><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; + $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; 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]; -?><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'=>'release') ?><?php $attr_default='false' ?><?php $attr_readonly='false' ?><?php $attr_name='release' ?><?php - $attr_name = !empty($$attr_name)?$$attr_name:$attr_name; - $attr_readonly = ( $attr_readonly == 'true' ); - $attr_default = ( $attr_default == 'true' ); +?><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('default'=>'','readonly'=>'','name'=>'release') ?><?php $attr_default='' ?><?php $attr_readonly='' ?><?php $attr_name='release' ?><?php + $attr_default = ( $attr_default == true ); if ( isset($$attr_name) ) - $checked = isset($$$attr_name)&& $$$attr_name==true; + $checked = $$attr_name == true; +// $checked = isset($$$attr_name)&& $$$attr_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('title'=>'','class'=>'','var'=>'','text'=>'','textvar'=>'','raw'=>'_','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='' ?><?php $attr_textvar='' ?><?php $attr_raw='_' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php + $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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -357,22 +489,37 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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_textvar) ?><?php unset($attr_raw) ?><?php unset($attr_maxlength) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'GLOBAL_RELEASE','textvar'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_RELEASE' ?><?php $attr_textvar='' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_raw) ?><?php $attr = array('class'=>'text','text'=>'GLOBAL_RELEASE') ?><?php $attr_class='text' ?><?php $attr_text='GLOBAL_RELEASE' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -384,44 +531,65 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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_textvar) ?><?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 +?></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 } -?><?php unset($attr) ?><?php $attr = array('var'=>'','value'=>'','invert'=>'','empty'=>'','present'=>'publish','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='publish' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php + +?><?php unset($attr) ?><?php $attr = array('present'=>'publish') ?><?php $attr_present='publish' ?><?php // Wahr-Vergleich - if ( !empty($attr_true) ) - $exec = $$attr_true == true; +// Html::debug($attr); + + if ( isset($attr_true) ) + { + if (gettype($attr_true) === '' && gettype($attr_true) === '1') + $exec = $$attr_true == true; + else + $exec = $attr_true == true; + } // Falsch-Vergleich - elseif ( !empty($attr_false) ) - $exec = $$attr_false != true; - + elseif ( isset($attr_false) ) + { + if (gettype($attr_false) === '' && gettype($attr_false) === '1') + $exec = $$attr_false == false; + else + $exec = $attr_false == false; + } // Inhalt-Vergleich mit Wertliste - elseif( !empty($attr_contains) ) + elseif( isset($attr_contains) ) $exec = in_array($$attr_var,explode(',',$attr_contains)); // Inhalt-Vergleich - elseif( !empty($attr_var) ) + elseif( isset($attr_var) ) $exec = $$attr_var == $attr_value; // Vergleich auf leer - elseif ( !empty($attr_empty) ) + elseif ( isset($attr_empty) ) { if ( !isset($$attr_empty) ) - $exec = true; + $exec = empty($attr_empty); elseif ( is_array($$attr_empty) ) $exec = (count($$attr_empty)==0); elseif ( is_bool($$attr_empty) ) @@ -431,76 +599,97 @@ } // Vergleich auf Vorhandensein - elseif ( !empty($attr_present) ) + 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 = true; + $exec = $$attr_present; elseif ( is_numeric($$attr_present) ) $exec = $$attr_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( $attr ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; } // Ergebnis umdrehen if ( !empty($attr_invert) ) $exec = !$exec; + // Ergebnis umdrehen + if ( !empty($attr_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); + + $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($attr) ?><?php unset($attr_present) ?><?php $attr = 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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'fx','colspan'=>'2') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?php $attr_colspan='2' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><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; + $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; 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]; -?><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'=>'publish') ?><?php $attr_default='false' ?><?php $attr_readonly='false' ?><?php $attr_name='publish' ?><?php - $attr_name = !empty($$attr_name)?$$attr_name:$attr_name; - $attr_readonly = ( $attr_readonly == 'true' ); - $attr_default = ( $attr_default == 'true' ); +?><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('default'=>'','readonly'=>'','name'=>'publish') ?><?php $attr_default='' ?><?php $attr_readonly='' ?><?php $attr_name='publish' ?><?php + $attr_default = ( $attr_default == true ); if ( isset($$attr_name) ) - $checked = isset($$$attr_name)&& $$$attr_name==true; + $checked = $$attr_name == true; +// $checked = isset($$$attr_name)&& $$$attr_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('title'=>'','class'=>'','var'=>'','text'=>'','textvar'=>'','raw'=>'_','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='' ?><?php $attr_textvar='' ?><?php $attr_raw='_' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php + $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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -512,22 +701,37 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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_textvar) ?><?php unset($attr_raw) ?><?php unset($attr_maxlength) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'PAGE_PUBLISH_AFTER_SAVE','textvar'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='PAGE_PUBLISH_AFTER_SAVE' ?><?php $attr_textvar='' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_raw) ?><?php $attr = array('class'=>'text','text'=>'PAGE_PUBLISH_AFTER_SAVE') ?><?php $attr_class='text' ?><?php $attr_text='PAGE_PUBLISH_AFTER_SAVE' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -539,49 +743,69 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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_textvar) ?><?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 +?></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 } -?><?php unset($attr) ?><?php $attr = array() ?><?php - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; +?><?php unset($attr) ?><?php $attr = 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; + 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 $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; + $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; 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]; -?><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 +?><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') { $attr_type = 'submit'; - $attr_class = 'ok'; - $attr_text = 'BUTTON_OK'; - $attr_value = 'ok'; +// $attr_class = 'ok'; +// $attr_text = 'BUTTON_OK'; +// $attr_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 $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> </td> </tr> </table> @@ -595,10 +819,15 @@ <?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'=>'text') ?><?php $attr_field='text' ?><script name="JavaScript" type="text/javascript"><!-- +<?php unset($attr) ?><?php $attr = array() ?></form> + +<?php unset($attr) ?><?php $attr = array('field'=>'text') ?><?php $attr_field='text' ?> +<script name="JavaScript" type="text/javascript"> +<!-- document.forms[0].<?php echo $attr_field ?>.focus(); document.forms[0].<?php echo $attr_field ?>.select(); -//--></script> +// --> +</script> <?php unset($attr) ?><?php unset($attr_field) ?><?php $attr = array() ?> <!-- $Id$ --> diff --git a/themes/default/pages/html/pageelement/edittext.tpl.php b/themes/default/pages/html/pageelement/edittext.tpl.php @@ -1,9 +1,10 @@ -<?php $attr = array('class'=>'main') ?><?php $attr_class='main' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<?php $attr = array('class'=>'main','title'=>'var') ?><?php $attr_class='main' ?><?php $attr_title='var' ?><?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 $attr_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" /> <link rel="stylesheet" type="text/css" href="./themes/default/css/default.css" /> @@ -14,8 +15,7 @@ <body class="<?php echo $attr_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 +<?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)) @@ -33,19 +33,32 @@ <input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr_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'=>'element','icon'=>'','widths'=>'','width'=>'85%') ?><?php $attr_title='' ?><?php $attr_name='element' ?><?php $attr_icon='' ?><?php $attr_widths='' ?><?php $attr_width='85%' ?><?php +?><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_target) ?><?php unset($attr_method) ?><?php unset($attr_enctype) ?><?php $attr = array('name'=>'element','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr_name='element' ?><?php $attr_width='93%' ?><?php $attr_rowclasses='odd,even' ?><?php $attr_columnclasses='1,2,3' ?><?php $coloumn_widths=array(); if (!empty($attr_widths)) { $column_widths = explode(',',$attr_widths); unset($attr['widths']); } + if (!empty($attr_rowclasses)) + { + $row_classes = explode(',',$attr_rowclasses); + $row_class_idx = 999; + unset($attr['rowclasses']); + } + if (!empty($attr_columnclasses)) + { + $column_classes = explode(',',$attr_columnclasses); + unset($attr['columnclasses']); + } global $image_dir; echo '<br/><br/><br/><center>'; echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_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 ( !is_array($path) ) + $path = array(); foreach( $path as $pathElement) { extract($pathElement); @@ -54,7 +67,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,28 +109,44 @@ <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($attr) ?><?php unset($attr_name) ?><?php unset($attr_width) ?><?php unset($attr_rowclasses) ?><?php unset($attr_columnclasses) ?><?php $attr = 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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'help','colspan'=>'2') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='help' ?><?php $attr_colspan='2' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><tr class="<?php echo $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'help','colspan'=>'2') ?><?php $attr_class='help' ?><?php $attr_colspan='2' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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'=>'desc','text'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='desc' ?><?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 +?><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','var'=>'desc') ?><?php $attr_class='text' ?><?php $attr_var='desc' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -123,59 +158,91 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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($attr) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = 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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'fx','colspan'=>'2') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?php $attr_colspan='2' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><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; + $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; 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]; -?><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'=>'ansidate','default'=>'','type'=>'text','index'=>'','name'=>'text','prefix'=>'','value'=>'','size'=>'50','maxlength'=>'255','onchange'=>'') ?><?php $attr_class='ansidate' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_index='' ?><?php $attr_name='text' ?><?php $attr_prefix='' ?><?php $attr_value='' ?><?php $attr_size='50' ?><?php $attr_maxlength='255' ?><?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('var'=>'','value'=>'','invert'=>'','empty'=>'','present'=>'release','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='release' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php +?><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'=>'ansidate','default'=>'','type'=>'text','name'=>'text','size'=>'50','maxlength'=>'255','onchange'=>'') ?><?php $attr_class='ansidate' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_name='text' ?><?php $attr_size='50' ?><?php $attr_maxlength='255' ?><?php $attr_onchange='' ?><input id="id<?php echo $attr_name ?>" name="<?php echo $attr_name ?>" type="<?php echo $attr_type ?>" 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 ?>" onxxxMouseOver="this.focus();" /><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><?php unset($attr_type) ?><?php unset($attr_name) ?><?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('present'=>'release') ?><?php $attr_present='release' ?><?php // Wahr-Vergleich - if ( !empty($attr_true) ) - $exec = $$attr_true == true; +// Html::debug($attr); + + if ( isset($attr_true) ) + { + if (gettype($attr_true) === '' && gettype($attr_true) === '1') + $exec = $$attr_true == true; + else + $exec = $attr_true == true; + } // Falsch-Vergleich - elseif ( !empty($attr_false) ) - $exec = $$attr_false != true; - + elseif ( isset($attr_false) ) + { + if (gettype($attr_false) === '' && gettype($attr_false) === '1') + $exec = $$attr_false == false; + else + $exec = $attr_false == false; + } // Inhalt-Vergleich mit Wertliste - elseif( !empty($attr_contains) ) + elseif( isset($attr_contains) ) $exec = in_array($$attr_var,explode(',',$attr_contains)); // Inhalt-Vergleich - elseif( !empty($attr_var) ) + elseif( isset($attr_var) ) $exec = $$attr_var == $attr_value; // Vergleich auf leer - elseif ( !empty($attr_empty) ) + elseif ( isset($attr_empty) ) { if ( !isset($$attr_empty) ) - $exec = true; + $exec = empty($attr_empty); elseif ( is_array($$attr_empty) ) $exec = (count($$attr_empty)==0); elseif ( is_bool($$attr_empty) ) @@ -185,76 +252,97 @@ } // Vergleich auf Vorhandensein - elseif ( !empty($attr_present) ) + 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 = true; + $exec = $$attr_present; elseif ( is_numeric($$attr_present) ) $exec = $$attr_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( $attr ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; } // Ergebnis umdrehen if ( !empty($attr_invert) ) $exec = !$exec; + // Ergebnis umdrehen + if ( !empty($attr_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); + + $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($attr) ?><?php unset($attr_present) ?><?php $attr = 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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'fx','colspan'=>'2') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?php $attr_colspan='2' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><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; + $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; 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]; -?><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'=>'release') ?><?php $attr_default='false' ?><?php $attr_readonly='false' ?><?php $attr_name='release' ?><?php - $attr_name = !empty($$attr_name)?$$attr_name:$attr_name; - $attr_readonly = ( $attr_readonly == 'true' ); - $attr_default = ( $attr_default == 'true' ); +?><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('default'=>'','readonly'=>'','name'=>'release') ?><?php $attr_default='' ?><?php $attr_readonly='' ?><?php $attr_name='release' ?><?php + $attr_default = ( $attr_default == true ); if ( isset($$attr_name) ) - $checked = isset($$$attr_name)&& $$$attr_name==true; + $checked = $$attr_name == true; +// $checked = isset($$$attr_name)&& $$$attr_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('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 + $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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -266,20 +354,37 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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'=>'GLOBAL_RELEASE','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GLOBAL_RELEASE' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_raw) ?><?php $attr = array('class'=>'text','text'=>'GLOBAL_RELEASE') ?><?php $attr_class='text' ?><?php $attr_text='GLOBAL_RELEASE' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -291,42 +396,65 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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 +?></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 } -?><?php unset($attr) ?><?php $attr = array('var'=>'','value'=>'','invert'=>'','empty'=>'','present'=>'publish','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='publish' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?php + +?><?php unset($attr) ?><?php $attr = array('present'=>'publish') ?><?php $attr_present='publish' ?><?php // Wahr-Vergleich - if ( !empty($attr_true) ) - $exec = $$attr_true == true; +// Html::debug($attr); + + if ( isset($attr_true) ) + { + if (gettype($attr_true) === '' && gettype($attr_true) === '1') + $exec = $$attr_true == true; + else + $exec = $attr_true == true; + } // Falsch-Vergleich - elseif ( !empty($attr_false) ) - $exec = $$attr_false != true; - + elseif ( isset($attr_false) ) + { + if (gettype($attr_false) === '' && gettype($attr_false) === '1') + $exec = $$attr_false == false; + else + $exec = $attr_false == false; + } // Inhalt-Vergleich mit Wertliste - elseif( !empty($attr_contains) ) + elseif( isset($attr_contains) ) $exec = in_array($$attr_var,explode(',',$attr_contains)); // Inhalt-Vergleich - elseif( !empty($attr_var) ) + elseif( isset($attr_var) ) $exec = $$attr_var == $attr_value; // Vergleich auf leer - elseif ( !empty($attr_empty) ) + elseif ( isset($attr_empty) ) { if ( !isset($$attr_empty) ) - $exec = true; + $exec = empty($attr_empty); elseif ( is_array($$attr_empty) ) $exec = (count($$attr_empty)==0); elseif ( is_bool($$attr_empty) ) @@ -336,76 +464,97 @@ } // Vergleich auf Vorhandensein - elseif ( !empty($attr_present) ) + 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 = true; + $exec = $$attr_present; elseif ( is_numeric($$attr_present) ) $exec = $$attr_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( $attr ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; } // Ergebnis umdrehen if ( !empty($attr_invert) ) $exec = !$exec; + // Ergebnis umdrehen + if ( !empty($attr_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); + + $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($attr) ?><?php unset($attr_present) ?><?php $attr = 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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'fx','colspan'=>'2') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?php $attr_colspan='2' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><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; + $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; 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]; -?><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'=>'publish') ?><?php $attr_default='false' ?><?php $attr_readonly='false' ?><?php $attr_name='publish' ?><?php - $attr_name = !empty($$attr_name)?$$attr_name:$attr_name; - $attr_readonly = ( $attr_readonly == 'true' ); - $attr_default = ( $attr_default == 'true' ); +?><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('default'=>'','readonly'=>'','name'=>'publish') ?><?php $attr_default='' ?><?php $attr_readonly='' ?><?php $attr_name='publish' ?><?php + $attr_default = ( $attr_default == true ); if ( isset($$attr_name) ) - $checked = isset($$$attr_name)&& $$$attr_name==true; + $checked = $$attr_name == true; +// $checked = isset($$$attr_name)&& $$$attr_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('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 + $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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -417,20 +566,37 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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'=>'PAGE_PUBLISH_AFTER_SAVE','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='PAGE_PUBLISH_AFTER_SAVE' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_raw) ?><?php $attr = array('class'=>'text','text'=>'PAGE_PUBLISH_AFTER_SAVE') ?><?php $attr_class='text' ?><?php $attr_text='PAGE_PUBLISH_AFTER_SAVE' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -442,47 +608,69 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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); - else echo 'text error'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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 +?></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 } -?><?php unset($attr) ?><?php $attr = array() ?><?php - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; +?><?php unset($attr) ?><?php $attr = 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; + 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 $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; + $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; 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]; -?><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 +?><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') { $attr_type = 'submit'; - $attr_class = 'ok'; - $attr_text = 'BUTTON_OK'; - $attr_value = 'ok'; +// $attr_class = 'ok'; +// $attr_text = 'BUTTON_OK'; +// $attr_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 $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> </td> </tr> </table> @@ -496,10 +684,15 @@ <?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'=>'text') ?><?php $attr_field='text' ?><script name="JavaScript" type="text/javascript"><!-- +<?php unset($attr) ?><?php $attr = array() ?></form> + +<?php unset($attr) ?><?php $attr = array('field'=>'text') ?><?php $attr_field='text' ?> +<script name="JavaScript" type="text/javascript"> +<!-- document.forms[0].<?php echo $attr_field ?>.focus(); document.forms[0].<?php echo $attr_field ?>.select(); -//--></script> +// --> +</script> <?php unset($attr) ?><?php unset($attr_field) ?><?php $attr = array() ?> <!-- $Id$ --> diff --git a/themes/default/pages/html/pageelement/show.tpl.php b/themes/default/pages/html/pageelement/show.tpl.php @@ -1,33 +1,53 @@ -<?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('title'=>'','name'=>'element','icon'=>'','widths'=>'','width'=>'85%') ?><?php $attr_title='' ?><?php $attr_name='element' ?><?php $attr_icon='' ?><?php $attr_widths='' ?><?php $attr_width='85%' ?><?php +<?php unset($attr1) ?><?php unset($attr1_class) ?><?php unset($attr1_title) ?><?php $attr2 = array('name'=>'element','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr2_name='element' ?><?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(',',$attr2_widths); + unset($attr2['widths']); + } + if (!empty($attr2_rowclasses)) + { + $row_classes = explode(',',$attr2_rowclasses); + $row_class_idx = 999; + unset($attr2['rowclasses']); + } + if (!empty($attr2_columnclasses)) { - $column_widths = explode(',',$attr_widths); - unset($attr['widths']); + $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) { extract($pathElement); @@ -36,7 +56,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 ) @@ -72,51 +98,80 @@ <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($attr2) ?><?php unset($attr2_name) ?><?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($attr3_class)) + $attr3_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'=>'2') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?php $attr_colspan='2' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><tr class="<?php echo $attr3_class ?>"><?php unset($attr3) ?><?php $attr4 = array('class'=>'fx','colspan'=>'2') ?><?php $attr4_class='fx' ?><?php $attr4_colspan='2' ?><?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($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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'','class'=>'','var'=>'value','text'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='value' ?><?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( $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','var'=>'value') ?><?php $attr5_class='text' ?><?php $attr5_var='value' ?><?php + if(empty($attr5_title)) + if (!empty($attr5_key)) + $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: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //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($tmpArray[$attr_text]); + $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 + { + $tmp_text = '&nbsp;'; + //Html::debug($attr5);echo 'text error'; } - 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) ); + 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_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() ?> </table> +?></span><?php unset($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_var) ?><?php $attr3 = array() ?></td><?php unset($attr3) ?><?php $attr2 = array() ?></tr><?php unset($attr2) ?><?php $attr1 = array() ?> </table> </td> </tr> </table> @@ -130,7 +185,7 @@ <?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) { ?> @@ -141,4 +196,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/profile/edit.tpl.php b/themes/default/pages/html/profile/edit.tpl.php @@ -1,9 +1,10 @@ -<?php $attr = array('class'=>'') ?><?php $attr_class='' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<?php $attr = array('class'=>'main','title'=>'var') ?><?php $attr_class='main' ?><?php $attr_title='var' ?><?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 $attr_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" /> <link rel="stylesheet" type="text/css" href="./themes/default/css/default.css" /> @@ -12,10 +13,9 @@ <?php } ?> </head> -<body<?php echo !empty($$attr_class)?' class="'.$$attr_class.'"':' class="'.$attr_class.'"' ?>> +<body class="<?php echo $attr_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 +<?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)) @@ -33,19 +33,32 @@ <input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr_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'=>'user_profile','icon'=>'user','widths'=>'','width'=>'85%') ?><?php $attr_title='' ?><?php $attr_name='user_profile' ?><?php $attr_icon='user' ?><?php $attr_widths='' ?><?php $attr_width='85%' ?><?php +?><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_target) ?><?php unset($attr_method) ?><?php unset($attr_enctype) ?><?php $attr = array('name'=>'user_profile','icon'=>'user','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr_name='user_profile' ?><?php $attr_icon='user' ?><?php $attr_width='93%' ?><?php $attr_rowclasses='odd,even' ?><?php $attr_columnclasses='1,2,3' ?><?php $coloumn_widths=array(); if (!empty($attr_widths)) { $column_widths = explode(',',$attr_widths); unset($attr['widths']); } + if (!empty($attr_rowclasses)) + { + $row_classes = explode(',',$attr_rowclasses); + $row_class_idx = 999; + unset($attr['rowclasses']); + } + if (!empty($attr_columnclasses)) + { + $column_classes = explode(',',$attr_columnclasses); + unset($attr['columnclasses']); + } global $image_dir; echo '<br/><br/><br/><center>'; echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_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 ( !is_array($path) ) + $path = array(); foreach( $path as $pathElement) { extract($pathElement); @@ -54,13 +67,23 @@ } 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 ) { ?><a href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text'].'_DESC') ?>" class="menu<?php if($this->subActionName==$menu['subaction']) echo '_active' ?>"><?php echo lang($menu['text']) ?></a>&nbsp;&nbsp;&nbsp;<?php } + if ($conf['help']['enabled'] ) + { + ?><a href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.$conf['help']['suffix'] ?> " target="_new" title="<?php echo lang('GLOBAL_HELP') ?>" class="menu">?</a><?php + } ?></td> </tr> @@ -86,28 +109,44 @@ <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($attr) ?><?php unset($attr_name) ?><?php unset($attr_icon) ?><?php unset($attr_width) ?><?php unset($attr_rowclasses) ?><?php unset($attr_columnclasses) ?><?php $attr = 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; + 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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array() ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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'=>'user_username','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='user_username' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php $attr = array('class'=>'text','text'=>'user_username') ?><?php $attr_class='text' ?><?php $attr_text='user_username' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -119,30 +158,52 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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)?$$attr_var:'error: variable '.$attr_var.' not present'; + $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'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?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; + $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; 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]; -?><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 +?><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','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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -154,39 +215,66 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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)?$$attr_var:'error: variable '.$attr_var.' not present'; + $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'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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($attr) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = 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; + 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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array() ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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'=>'user_fullname','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='user_fullname' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php $attr = array('class'=>'text','text'=>'user_fullname') ?><?php $attr_class='text' ?><?php $attr_text='user_fullname' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -198,49 +286,81 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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)?$$attr_var:'error: variable '.$attr_var.' not present'; + $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'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?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; + $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; 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]; -?><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'=>'fullname','prefix'=>'','value'=>'','size'=>'40','maxlength'=>'128','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_index='' ?><?php $attr_name='fullname' ?><?php $attr_prefix='' ?><?php $attr_value='' ?><?php $attr_size='40' ?><?php $attr_maxlength='128' ?><?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 - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - +?><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'=>'','default'=>'','type'=>'text','name'=>'fullname','size'=>'40','maxlength'=>'128','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_name='fullname' ?><?php $attr_size='40' ?><?php $attr_maxlength='128' ?><?php $attr_onchange='' ?><input id="id<?php echo $attr_name ?>" name="<?php echo $attr_name ?>" type="<?php echo $attr_type ?>" 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 ?>" onxxxMouseOver="this.focus();" /><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><?php unset($attr_type) ?><?php unset($attr_name) ?><?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 + $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; + 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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array() ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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'=>'user_tel','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='user_tel' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php $attr = array('class'=>'text','text'=>'user_tel') ?><?php $attr_class='text' ?><?php $attr_text='user_tel' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -252,49 +372,81 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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)?$$attr_var:'error: variable '.$attr_var.' not present'; + $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'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?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; + $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; 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]; -?><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'=>'tel','prefix'=>'','value'=>'','size'=>'40','maxlength'=>'128','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_index='' ?><?php $attr_name='tel' ?><?php $attr_prefix='' ?><?php $attr_value='' ?><?php $attr_size='40' ?><?php $attr_maxlength='128' ?><?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 - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - +?><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'=>'','default'=>'','type'=>'text','name'=>'tel','size'=>'40','maxlength'=>'128','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_name='tel' ?><?php $attr_size='40' ?><?php $attr_maxlength='128' ?><?php $attr_onchange='' ?><input id="id<?php echo $attr_name ?>" name="<?php echo $attr_name ?>" type="<?php echo $attr_type ?>" 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 ?>" onxxxMouseOver="this.focus();" /><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><?php unset($attr_type) ?><?php unset($attr_name) ?><?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 + $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; + 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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array() ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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'=>'user_mail','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='user_mail' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php $attr = array('class'=>'text','text'=>'user_mail') ?><?php $attr_class='text' ?><?php $attr_text='user_mail' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -306,49 +458,81 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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)?$$attr_var:'error: variable '.$attr_var.' not present'; + $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'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?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; + $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; 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]; -?><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'=>'mail','prefix'=>'','value'=>'','size'=>'40','maxlength'=>'128','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_index='' ?><?php $attr_name='mail' ?><?php $attr_prefix='' ?><?php $attr_value='' ?><?php $attr_size='40' ?><?php $attr_maxlength='128' ?><?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 - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - +?><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'=>'','default'=>'','type'=>'text','name'=>'mail','size'=>'40','maxlength'=>'128','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_name='mail' ?><?php $attr_size='40' ?><?php $attr_maxlength='128' ?><?php $attr_onchange='' ?><input id="id<?php echo $attr_name ?>" name="<?php echo $attr_name ?>" type="<?php echo $attr_type ?>" 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 ?>" onxxxMouseOver="this.focus();" /><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><?php unset($attr_type) ?><?php unset($attr_name) ?><?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 + $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; + 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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array() ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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'=>'user_desc','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='user_desc' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php $attr = array('class'=>'text','text'=>'user_desc') ?><?php $attr_class='text' ?><?php $attr_text='user_desc' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -360,49 +544,81 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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)?$$attr_var:'error: variable '.$attr_var.' not present'; + $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'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?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; + $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; 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]; -?><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'=>'desc','prefix'=>'','value'=>'','size'=>'40','maxlength'=>'128','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_index='' ?><?php $attr_name='desc' ?><?php $attr_prefix='' ?><?php $attr_value='' ?><?php $attr_size='40' ?><?php $attr_maxlength='128' ?><?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 - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - +?><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'=>'','default'=>'','type'=>'text','name'=>'desc','size'=>'40','maxlength'=>'128','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_name='desc' ?><?php $attr_size='40' ?><?php $attr_maxlength='128' ?><?php $attr_onchange='' ?><input id="id<?php echo $attr_name ?>" name="<?php echo $attr_name ?>" type="<?php echo $attr_type ?>" 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 ?>" onxxxMouseOver="this.focus();" /><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><?php unset($attr_type) ?><?php unset($attr_name) ?><?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 + $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; + 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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array() ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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'=>'user_style','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='user_style' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php $attr = array('class'=>'text','text'=>'user_style') ?><?php $attr_class='text' ?><?php $attr_text='user_style' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -414,67 +630,93 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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)?$$attr_var:'error: variable '.$attr_var.' not present'; + $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'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?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; + $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; 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]; -?><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'=>'allstyles','name'=>'style','default'=>'style','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='allstyles' ?><?php $attr_name='style' ?><?php $attr_default='style' ?><?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 +?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('list'=>'allstyles','name'=>'style','default'=>'style','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='allstyles' ?><?php $attr_name='style' ?><?php $attr_default='style' ?><?php $attr_onchange='' ?><?php $attr_title='' ?><?php $attr_class='' ?><select size="1" id="id<?php echo $attr_name ?>" 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"' ?>><?php foreach( $$attr_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) + if (isset($$attr_name)&&$box_key==$$attr_name || isset($attr_default)&&$box_key == $attr_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 - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - + $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; + 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 $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; + $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; 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]; -?><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 +?><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') { $attr_type = 'submit'; - $attr_class = 'ok'; - $attr_text = 'BUTTON_OK'; - $attr_value = 'ok'; +// $attr_class = 'ok'; +// $attr_text = 'BUTTON_OK'; +// $attr_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 $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> </td> </tr> </table> @@ -488,10 +730,15 @@ 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('field'=>'fullname') ?><?php $attr_field='fullname' ?><script name="JavaScript" type="text/javascript"><!-- +<?php unset($attr) ?><?php $attr = array() ?></form> + +<?php unset($attr) ?><?php $attr = array('field'=>'fullname') ?><?php $attr_field='fullname' ?> +<script name="JavaScript" type="text/javascript"> +<!-- document.forms[0].<?php echo $attr_field ?>.focus(); document.forms[0].<?php echo $attr_field ?>.select(); -//--></script> +// --> +</script> <?php unset($attr) ?><?php unset($attr_field) ?><?php $attr = array() ?> <!-- $Id$ --> diff --git a/themes/default/pages/html/project/add.tpl.php b/themes/default/pages/html/project/add.tpl.php @@ -1,9 +1,10 @@ -<?php $attr = array('class'=>'') ?><?php $attr_class='' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<?php $attr = array('class'=>'main','title'=>'var') ?><?php $attr_class='main' ?><?php $attr_title='var' ?><?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 $attr_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" /> <link rel="stylesheet" type="text/css" href="./themes/default/css/default.css" /> @@ -12,10 +13,9 @@ <?php } ?> </head> -<body<?php echo !empty($$attr_class)?' class="'.$$attr_class.'"':' class="'.$attr_class.'"' ?>> +<body class="<?php echo $attr_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 +<?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)) @@ -33,19 +33,32 @@ <input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr_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'=>'GLOBAL_PROJECTS','icon'=>'project','widths'=>'','width'=>'85%') ?><?php $attr_title='' ?><?php $attr_name='GLOBAL_PROJECTS' ?><?php $attr_icon='project' ?><?php $attr_widths='' ?><?php $attr_width='85%' ?><?php +?><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_target) ?><?php unset($attr_method) ?><?php unset($attr_enctype) ?><?php $attr = array('name'=>'GLOBAL_PROJECTS','icon'=>'project','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr_name='GLOBAL_PROJECTS' ?><?php $attr_icon='project' ?><?php $attr_width='93%' ?><?php $attr_rowclasses='odd,even' ?><?php $attr_columnclasses='1,2,3' ?><?php $coloumn_widths=array(); if (!empty($attr_widths)) { $column_widths = explode(',',$attr_widths); unset($attr['widths']); } + if (!empty($attr_rowclasses)) + { + $row_classes = explode(',',$attr_rowclasses); + $row_class_idx = 999; + unset($attr['rowclasses']); + } + if (!empty($attr_columnclasses)) + { + $column_classes = explode(',',$attr_columnclasses); + unset($attr['columnclasses']); + } global $image_dir; echo '<br/><br/><br/><center>'; echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_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 ( !is_array($path) ) + $path = array(); foreach( $path as $pathElement) { extract($pathElement); @@ -54,7 +67,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,53 +109,73 @@ <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($attr) ?><?php unset($attr_name) ?><?php unset($attr_icon) ?><?php unset($attr_width) ?><?php unset($attr_rowclasses) ?><?php unset($attr_columnclasses) ?><?php $attr = 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; + 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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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'=>'name','prefix'=>'','value'=>'','size'=>'40','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_index='' ?><?php $attr_name='name' ?><?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 - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - +?><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'=>'','default'=>'','type'=>'text','name'=>'name','size'=>'40','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_name='name' ?><?php $attr_size='40' ?><?php $attr_maxlength='256' ?><?php $attr_onchange='' ?><input id="id<?php echo $attr_name ?>" name="<?php echo $attr_name ?>" type="<?php echo $attr_type ?>" 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 ?>" onxxxMouseOver="this.focus();" /><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><?php unset($attr_type) ?><?php unset($attr_name) ?><?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 + $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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php $attr = array('width'=>'','style'=>'','class'=>'act','colspan'=>'') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='act' ?><?php $attr_colspan='' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><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; + $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; 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]; -?><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 +?><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') { $attr_type = 'submit'; - $attr_class = 'ok'; - $attr_text = 'BUTTON_OK'; - $attr_value = 'ok'; +// $attr_class = 'ok'; +// $attr_text = 'BUTTON_OK'; +// $attr_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 $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> </td> </tr> </table> @@ -150,7 +189,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($attr) ?><?php $attr = array() ?> +<?php unset($attr) ?><?php $attr = array() ?></form> + +<?php unset($attr) ?><?php $attr = array() ?> <!-- $Id$ --> <?php if ($showDuration) { ?> diff --git a/themes/default/pages/html/project/edit.tpl.php b/themes/default/pages/html/project/edit.tpl.php @@ -1,9 +1,10 @@ -<?php $attr = array('class'=>'') ?><?php $attr_class='' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<?php $attr = array('class'=>'main','title'=>'var') ?><?php $attr_class='main' ?><?php $attr_title='var' ?><?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 $attr_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" /> <link rel="stylesheet" type="text/css" href="./themes/default/css/default.css" /> @@ -12,10 +13,9 @@ <?php } ?> </head> -<body<?php echo !empty($$attr_class)?' class="'.$$attr_class.'"':' class="'.$attr_class.'"' ?>> +<body class="<?php echo $attr_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 +<?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)) @@ -33,19 +33,32 @@ <input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr_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'=>'GLOBAL_PROJECT','icon'=>'project','widths'=>'','width'=>'85%') ?><?php $attr_title='' ?><?php $attr_name='GLOBAL_PROJECT' ?><?php $attr_icon='project' ?><?php $attr_widths='' ?><?php $attr_width='85%' ?><?php +?><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_target) ?><?php unset($attr_method) ?><?php unset($attr_enctype) ?><?php $attr = array('name'=>'GLOBAL_PROJECT','icon'=>'project','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr_name='GLOBAL_PROJECT' ?><?php $attr_icon='project' ?><?php $attr_width='93%' ?><?php $attr_rowclasses='odd,even' ?><?php $attr_columnclasses='1,2,3' ?><?php $coloumn_widths=array(); if (!empty($attr_widths)) { $column_widths = explode(',',$attr_widths); unset($attr['widths']); } + if (!empty($attr_rowclasses)) + { + $row_classes = explode(',',$attr_rowclasses); + $row_class_idx = 999; + unset($attr['rowclasses']); + } + if (!empty($attr_columnclasses)) + { + $column_classes = explode(',',$attr_columnclasses); + unset($attr['columnclasses']); + } global $image_dir; echo '<br/><br/><br/><center>'; echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_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 ( !is_array($path) ) + $path = array(); foreach( $path as $pathElement) { extract($pathElement); @@ -54,7 +67,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,28 +109,44 @@ <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($attr) ?><?php unset($attr_name) ?><?php unset($attr_icon) ?><?php unset($attr_width) ?><?php unset($attr_rowclasses) ?><?php unset($attr_columnclasses) ?><?php $attr = 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; + 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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array() ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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'=>'PROJECT_NAME','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='PROJECT_NAME' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php $attr = array('class'=>'text','text'=>'PROJECT_NAME') ?><?php $attr_class='text' ?><?php $attr_text='PROJECT_NAME' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -123,49 +158,81 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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)?$$attr_var:'error: variable '.$attr_var.' not present'; + $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'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?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; + $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; 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]; -?><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'=>'name','prefix'=>'','value'=>'','size'=>'50','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_index='' ?><?php $attr_name='name' ?><?php $attr_prefix='' ?><?php $attr_value='' ?><?php $attr_size='50' ?><?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 - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - +?><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'=>'','default'=>'','type'=>'text','name'=>'name','size'=>'50','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_name='name' ?><?php $attr_size='50' ?><?php $attr_maxlength='256' ?><?php $attr_onchange='' ?><input id="id<?php echo $attr_name ?>" name="<?php echo $attr_name ?>" type="<?php echo $attr_type ?>" 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 ?>" onxxxMouseOver="this.focus();" /><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><?php unset($attr_type) ?><?php unset($attr_name) ?><?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 + $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; + 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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array() ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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'=>'PROJECT_TARGET_DIR','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='PROJECT_TARGET_DIR' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php $attr = array('class'=>'text','text'=>'PROJECT_TARGET_DIR') ?><?php $attr_class='text' ?><?php $attr_text='PROJECT_TARGET_DIR' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -177,49 +244,81 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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)?$$attr_var:'error: variable '.$attr_var.' not present'; + $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'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?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; + $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; 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]; -?><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'=>'filename','default'=>'','type'=>'text','index'=>'','name'=>'target_dir','prefix'=>'','value'=>'','size'=>'50','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='filename' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_index='' ?><?php $attr_name='target_dir' ?><?php $attr_prefix='' ?><?php $attr_value='' ?><?php $attr_size='50' ?><?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 - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - +?><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'=>'filename','default'=>'','type'=>'text','name'=>'target_dir','size'=>'50','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='filename' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_name='target_dir' ?><?php $attr_size='50' ?><?php $attr_maxlength='256' ?><?php $attr_onchange='' ?><input id="id<?php echo $attr_name ?>" name="<?php echo $attr_name ?>" type="<?php echo $attr_type ?>" 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 ?>" onxxxMouseOver="this.focus();" /><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><?php unset($attr_type) ?><?php unset($attr_name) ?><?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 + $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; + 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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array() ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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'=>'PROJECT_FTP_URL','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='PROJECT_FTP_URL' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php $attr = array('class'=>'text','text'=>'PROJECT_FTP_URL') ?><?php $attr_class='text' ?><?php $attr_text='PROJECT_FTP_URL' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -231,49 +330,81 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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)?$$attr_var:'error: variable '.$attr_var.' not present'; + $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'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?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; + $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; 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]; -?><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'=>'ftp_url','prefix'=>'','value'=>'','size'=>'40','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_index='' ?><?php $attr_name='ftp_url' ?><?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 - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - +?><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'=>'','default'=>'','type'=>'text','name'=>'ftp_url','size'=>'40','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_name='ftp_url' ?><?php $attr_size='40' ?><?php $attr_maxlength='256' ?><?php $attr_onchange='' ?><input id="id<?php echo $attr_name ?>" name="<?php echo $attr_name ?>" type="<?php echo $attr_type ?>" 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 ?>" onxxxMouseOver="this.focus();" /><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><?php unset($attr_type) ?><?php unset($attr_name) ?><?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 + $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; + 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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array() ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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'=>'PROJECT_FTP_PASSIVE','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='PROJECT_FTP_PASSIVE' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php $attr = array('class'=>'text','text'=>'PROJECT_FTP_PASSIVE') ?><?php $attr_class='text' ?><?php $attr_text='PROJECT_FTP_PASSIVE' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -285,49 +416,89 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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)?$$attr_var:'error: variable '.$attr_var.' not present'; + $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'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?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; + $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; 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]; -?><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'=>'ftp_passive','prefix'=>'') ?><?php $attr_default='false' ?><?php $attr_var='' ?><?php $attr_readonly='false' ?><?php $attr_name='ftp_passive' ?><?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( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('default'=>'','readonly'=>'','name'=>'ftp_passive') ?><?php $attr_default='' ?><?php $attr_readonly='' ?><?php $attr_name='ftp_passive' ?><?php + $attr_default = ( $attr_default == true ); + if ( isset($$attr_name) ) + $checked = $$attr_name == true; +// $checked = isset($$$attr_name)&& $$$attr_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() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = 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; + 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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array() ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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'=>'PROJECT_CMD_AFTER_PUBLISH','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='PROJECT_CMD_AFTER_PUBLISH' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php $attr = array('class'=>'text','text'=>'PROJECT_CMD_AFTER_PUBLISH') ?><?php $attr_class='text' ?><?php $attr_text='PROJECT_CMD_AFTER_PUBLISH' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -339,49 +510,81 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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)?$$attr_var:'error: variable '.$attr_var.' not present'; + $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'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?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; + $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; 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]; -?><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'=>'cmd_after_publish','prefix'=>'','value'=>'','size'=>'40','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_index='' ?><?php $attr_name='cmd_after_publish' ?><?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 - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - +?><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'=>'','default'=>'','type'=>'text','name'=>'cmd_after_publish','size'=>'40','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_name='cmd_after_publish' ?><?php $attr_size='40' ?><?php $attr_maxlength='256' ?><?php $attr_onchange='' ?><input id="id<?php echo $attr_name ?>" name="<?php echo $attr_name ?>" type="<?php echo $attr_type ?>" 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 ?>" onxxxMouseOver="this.focus();" /><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_default) ?><?php unset($attr_type) ?><?php unset($attr_name) ?><?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 + $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; + 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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array() ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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'=>'PROJECT_CONTENT_NEGOTIATION','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='PROJECT_CONTENT_NEGOTIATION' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php $attr = array('class'=>'text','text'=>'PROJECT_CONTENT_NEGOTIATION') ?><?php $attr_class='text' ?><?php $attr_text='PROJECT_CONTENT_NEGOTIATION' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -393,49 +596,89 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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)?$$attr_var:'error: variable '.$attr_var.' not present'; + $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'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?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; + $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; 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]; -?><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'=>'content_negotiation','prefix'=>'') ?><?php $attr_default='false' ?><?php $attr_var='' ?><?php $attr_readonly='false' ?><?php $attr_name='content_negotiation' ?><?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( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('default'=>'','readonly'=>'','name'=>'content_negotiation') ?><?php $attr_default='' ?><?php $attr_readonly='' ?><?php $attr_name='content_negotiation' ?><?php + $attr_default = ( $attr_default == true ); + if ( isset($$attr_name) ) + $checked = $$attr_name == true; +// $checked = isset($$$attr_name)&& $$$attr_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() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = 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; + 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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array() ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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'=>'PROJECT_CUT_INDEX','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='PROJECT_CUT_INDEX' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php $attr = array('class'=>'text','text'=>'PROJECT_CUT_INDEX') ?><?php $attr_class='text' ?><?php $attr_text='PROJECT_CUT_INDEX' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -447,55 +690,89 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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)?$$attr_var:'error: variable '.$attr_var.' not present'; + $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'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?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; + $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; 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]; -?><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'=>'cut_index','prefix'=>'') ?><?php $attr_default='false' ?><?php $attr_var='' ?><?php $attr_readonly='false' ?><?php $attr_name='cut_index' ?><?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( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('default'=>'','readonly'=>'','name'=>'cut_index') ?><?php $attr_default='' ?><?php $attr_readonly='' ?><?php $attr_name='cut_index' ?><?php + $attr_default = ( $attr_default == true ); + if ( isset($$attr_name) ) + $checked = $$attr_name == true; +// $checked = isset($$$attr_name)&& $$$attr_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() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = 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; + 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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array('colspan'=>'2') ?><?php $attr_colspan='2' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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 +?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?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') { $attr_type = 'submit'; - $attr_class = 'ok'; - $attr_text = 'BUTTON_OK'; - $attr_value = 'ok'; +// $attr_class = 'ok'; +// $attr_text = 'BUTTON_OK'; +// $attr_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 $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> </td> </tr> </table> @@ -509,7 +786,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($attr) ?><?php $attr = array() ?> +<?php unset($attr) ?><?php $attr = array() ?></form> + +<?php unset($attr) ?><?php $attr = array() ?> <!-- $Id$ --> <?php if ($showDuration) { ?> diff --git a/themes/default/pages/html/project/listing.tpl.php b/themes/default/pages/html/project/listing.tpl.php @@ -1,9 +1,10 @@ -<?php $attr = array('class'=>'main title') ?><?php $attr_class='main title' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<?php $attr = array('class'=>'main','title'=>'var') ?><?php $attr_class='main' ?><?php $attr_title='var' ?><?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> - <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> + <meta http-equiv="content-type" content="text/html; charset=<?php echo lang('CHARSET') ?>" /> <meta name="MSSmartTagsPreventParsing" content="true" /> <meta name="robots" content="noindex,nofollow" /> <link rel="stylesheet" type="text/css" href="./themes/default/css/default.css" /> @@ -14,7 +15,7 @@ <body class="<?php echo $attr_class ?>"> -<?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('name'=>'GLOBAL_PROJECTS','icon'=>'project','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr_name='GLOBAL_PROJECTS' ?><?php $attr_icon='project' ?><?php $attr_width='93%' ?><?php $attr_rowclasses='odd,even' ?><?php $attr_columnclasses='1,2,3' ?><?php +<?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_title) ?><?php $attr = array('name'=>'GLOBAL_PROJECTS','icon'=>'project','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr_name='GLOBAL_PROJECTS' ?><?php $attr_icon='project' ?><?php $attr_width='93%' ?><?php $attr_rowclasses='odd,even' ?><?php $attr_columnclasses='1,2,3' ?><?php $coloumn_widths=array(); if (!empty($attr_widths)) { @@ -38,6 +39,8 @@ 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 ( !is_array($path) ) + $path = array(); foreach( $path as $pathElement) { extract($pathElement); @@ -141,9 +144,9 @@ $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('file'=>'icon_project','align'=>'left') ?><?php $attr_file='icon_project' ?><?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 +?><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 +?><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)) { diff --git a/themes/default/pages/html/project/maintenance.tpl.php b/themes/default/pages/html/project/maintenance.tpl.php @@ -1,9 +1,10 @@ -<?php $attr = array('class'=>'main') ?><?php $attr_class='main' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<?php $attr = array('class'=>'main','title'=>'var') ?><?php $attr_class='main' ?><?php $attr_title='var' ?><?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 $attr_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" /> <link rel="stylesheet" type="text/css" href="./themes/default/css/default.css" /> @@ -14,8 +15,7 @@ <body class="<?php echo $attr_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 +<?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)) @@ -33,19 +33,32 @@ <input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr_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'=>'GLOBAL_PROJECT','icon'=>'project','widths'=>'','width'=>'85%') ?><?php $attr_title='' ?><?php $attr_name='GLOBAL_PROJECT' ?><?php $attr_icon='project' ?><?php $attr_widths='' ?><?php $attr_width='85%' ?><?php +?><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_target) ?><?php unset($attr_method) ?><?php unset($attr_enctype) ?><?php $attr = array('name'=>'GLOBAL_PROJECT','icon'=>'project','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr_name='GLOBAL_PROJECT' ?><?php $attr_icon='project' ?><?php $attr_width='93%' ?><?php $attr_rowclasses='odd,even' ?><?php $attr_columnclasses='1,2,3' ?><?php $coloumn_widths=array(); if (!empty($attr_widths)) { $column_widths = explode(',',$attr_widths); unset($attr['widths']); } + if (!empty($attr_rowclasses)) + { + $row_classes = explode(',',$attr_rowclasses); + $row_class_idx = 999; + unset($attr['rowclasses']); + } + if (!empty($attr_columnclasses)) + { + $column_classes = explode(',',$attr_columnclasses); + unset($attr['columnclasses']); + } global $image_dir; echo '<br/><br/><br/><center>'; echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_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 ( !is_array($path) ) + $path = array(); foreach( $path as $pathElement) { extract($pathElement); @@ -54,7 +67,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,7 +109,7 @@ <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() ?> </table> + <table class="n" cellspacing="0" width="100%" cellpadding="4"><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_icon) ?><?php unset($attr_width) ?><?php unset($attr_rowclasses) ?><?php unset($attr_columnclasses) ?><?php $attr = array() ?> </table> </td> </tr> </table> @@ -104,7 +123,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($attr) ?><?php $attr = array() ?> +<?php unset($attr) ?><?php $attr = array() ?></form> + +<?php unset($attr) ?><?php $attr = array() ?> <!-- $Id$ --> <?php if ($showDuration) { ?> diff --git a/themes/default/pages/html/project/remove.tpl.php b/themes/default/pages/html/project/remove.tpl.php @@ -1,9 +1,10 @@ -<?php /* source: ./themes/default/include/html/page.inc.php - compile time: Sun, 29 Jan 2006 19:48:01 +0100 */ ?><?php $attr = array('class'=>'') ?><?php $attr_class='' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<?php $attr = array('class'=>'main','title'=>'var') ?><?php $attr_class='main' ?><?php $attr_title='var' ?><?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 $attr_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" /> <link rel="stylesheet" type="text/css" href="./themes/default/css/default.css" /> @@ -12,10 +13,9 @@ <?php } ?> </head> -<body<?php echo !empty($$attr_class)?' class="'.$$attr_class.'"':' class="'.$attr_class.'"' ?>> +<body class="<?php echo $attr_class ?>"> - -<?php unset($attr) ?><?php unset($attr_class) ?><?php /* source: ./themes/default/include/html/form.inc.php - compile time: Sun, 29 Jan 2006 19:48:01 +0100 */ ?><?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 +<?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)) @@ -33,19 +33,32 @@ <input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr_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 /* source: ./themes/default/include/html/window.inc.php - compile time: Sun, 29 Jan 2006 19:48:01 +0100 */ ?><?php $attr = array('title'=>'','name'=>'GLOBAL_PROJECT','icon'=>'group','widths'=>'','width'=>'85%') ?><?php $attr_title='' ?><?php $attr_name='GLOBAL_PROJECT' ?><?php $attr_icon='group' ?><?php $attr_widths='' ?><?php $attr_width='85%' ?><?php +?><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_target) ?><?php unset($attr_method) ?><?php unset($attr_enctype) ?><?php $attr = array('name'=>'GLOBAL_PROJECT','icon'=>'group','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr_name='GLOBAL_PROJECT' ?><?php $attr_icon='group' ?><?php $attr_width='93%' ?><?php $attr_rowclasses='odd,even' ?><?php $attr_columnclasses='1,2,3' ?><?php $coloumn_widths=array(); if (!empty($attr_widths)) { $column_widths = explode(',',$attr_widths); unset($attr['widths']); } + if (!empty($attr_rowclasses)) + { + $row_classes = explode(',',$attr_rowclasses); + $row_class_idx = 999; + unset($attr['rowclasses']); + } + if (!empty($attr_columnclasses)) + { + $column_classes = explode(',',$attr_columnclasses); + unset($attr['columnclasses']); + } global $image_dir; echo '<br/><br/><br/><center>'; echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_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 ( !is_array($path) ) + $path = array(); foreach( $path as $pathElement) { extract($pathElement); @@ -54,13 +67,23 @@ } 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 ) { ?><a href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text'].'_DESC') ?>" class="menu<?php if($this->subActionName==$menu['subaction']) echo '_active' ?>"><?php echo lang($menu['text']) ?></a>&nbsp;&nbsp;&nbsp;<?php } + if ($conf['help']['enabled'] ) + { + ?><a href="<?php echo $conf['help']['url'].$actionName.'/'.$subActionName.$conf['help']['suffix'] ?> " target="_new" title="<?php echo lang('GLOBAL_HELP') ?>" class="menu">?</a><?php + } ?></td> </tr> @@ -86,28 +109,44 @@ <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 /* source: ./themes/default/include/html/row.inc.php - compile time: Sun, 29 Jan 2006 19:48:01 +0100 */ ?><?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($attr) ?><?php unset($attr_name) ?><?php unset($attr_icon) ?><?php unset($attr_width) ?><?php unset($attr_rowclasses) ?><?php unset($attr_columnclasses) ?><?php $attr = 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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 19:48:01 +0100 */ ?><?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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array() ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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 /* source: ./themes/default/include/html/text.inc.php - compile time: Sun, 29 Jan 2006 19:48:01 +0100 */ ?><?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 +?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -119,30 +158,52 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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)?$$attr_var:'error: variable '.$attr_var.' not present'; + $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'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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 /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 19:48:01 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 19:48:01 +0100 */ ?><?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($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?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; + $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; 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]; -?><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 /* source: ./themes/default/include/html/text.inc.php - compile time: Sun, 29 Jan 2006 19:48:01 +0100 */ ?><?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 +?><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','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'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -154,39 +215,66 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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)?$$attr_var:'error: variable '.$attr_var.' not present'; + $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'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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 /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 19:48:01 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/row-end.inc.php - compile time: Sun, 29 Jan 2006 19:48:01 +0100 */ ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php /* source: ./themes/default/include/html/row.inc.php - compile time: Sun, 29 Jan 2006 19:48:01 +0100 */ ?><?php $attr = array() ?><?php - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - +?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = 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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 19:48:01 +0100 */ ?><?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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array() ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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 /* source: ./themes/default/include/html/text.inc.php - compile time: Sun, 29 Jan 2006 19:48:01 +0100 */ ?><?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 +?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php $attr = array('class'=>'text','text'=>'GLOBAL_DELETE') ?><?php $attr_class='text' ?><?php $attr_text='GLOBAL_DELETE' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -198,49 +286,89 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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)?$$attr_var:'error: variable '.$attr_var.' not present'; + $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'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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 /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 19:48:01 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 19:48:01 +0100 */ ?><?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($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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 /* source: ./themes/default/include/html/checkbox.inc.php - compile time: Sun, 29 Jan 2006 19:48:01 +0100 */ ?><?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 /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 19:48:01 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/row-end.inc.php - compile time: Sun, 29 Jan 2006 19:48:01 +0100 */ ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php /* source: ./themes/default/include/html/row.inc.php - compile time: Sun, 29 Jan 2006 19:48:01 +0100 */ ?><?php $attr = array() ?><?php - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; +?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php $attr = array('default'=>'','readonly'=>'','name'=>'delete') ?><?php $attr_default='' ?><?php $attr_readonly='' ?><?php $attr_name='delete' ?><?php + $attr_default = ( $attr_default == true ); + if ( isset($$attr_name) ) + $checked = $$attr_name == true; +// $checked = isset($$$attr_name)&& $$$attr_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() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = 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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 19:48:01 +0100 */ ?><?php $attr = array('width'=>'','style'=>'','class'=>'help','colspan'=>'2') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='help' ?><?php $attr_colspan='2' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><tr class="<?php echo $attr_class ?>"><?php unset($attr) ?><?php $attr = array('class'=>'help','colspan'=>'2') ?><?php $attr_class='help' ?><?php $attr_colspan='2' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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 /* source: ./themes/default/include/html/text.inc.php - compile time: Sun, 29 Jan 2006 19:48:01 +0100 */ ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'GROUP_DELETE_DESC','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='GROUP_DELETE_DESC' ?><?php $attr_raw='' ?><?php $attr_maxlength='' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php +?><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'=>'GROUP_DELETE_DESC') ?><?php $attr_class='text' ?><?php $attr_text='GROUP_DELETE_DESC' ?><?php + if(empty($attr_title)) + if (!empty($attr_key)) + $attr_title = lang($attr_key).'_HELP'; + else + $attr_title = ''; + +?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php + $attr_title = ''; if (!empty($attr_array)) { //geht nicht: @@ -252,45 +380,66 @@ $tmp_text = lang($tmpArray[$attr_text]); } elseif (!empty($attr_text)) - $tmp_text = lang($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)?$$attr_var:'error: variable '.$attr_var.' not present'; + $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'; + elseif (!empty($attr_value)) + $tmp_text = $attr_value; + else + { Html::debug($attr);echo 'text error'; + } if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) $tmp_text = Text::maxLength( $tmp_text,intval($attr_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 /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 19:48:01 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/row-end.inc.php - compile time: Sun, 29 Jan 2006 19:48:01 +0100 */ ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php /* source: ./themes/default/include/html/row.inc.php - compile time: Sun, 29 Jan 2006 19:48:01 +0100 */ ?><?php $attr = array() ?><?php - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; - +?></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 + $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; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 19:48:01 +0100 */ ?><?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 $attr_class ?>"><?php unset($attr) ?><?php $attr = array('colspan'=>'2') ?><?php $attr_colspan='2' ?><?php +// if (empty($attr_class)) +// $attr['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; 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]; -?><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 /* source: ./themes/default/include/html/button.inc.php - compile time: Sun, 29 Jan 2006 19:48:01 +0100 */ ?><?php $attr = array('type'=>'ok') ?><?php $attr_type='ok' ?><?php +?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?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') { $attr_type = 'submit'; - $attr_class = 'ok'; - $attr_text = 'BUTTON_OK'; - $attr_value = 'ok'; +// $attr_class = 'ok'; +// $attr_text = 'BUTTON_OK'; +// $attr_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 /* source: ./themes/default/include/html/cell-end.inc.php - compile time: Sun, 29 Jan 2006 19:48:01 +0100 */ ?><?php $attr = array() ?></td><?php unset($attr) ?><?php /* source: ./themes/default/include/html/row-end.inc.php - compile time: Sun, 29 Jan 2006 19:48:01 +0100 */ ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php /* source: ./themes/default/include/html/window-end.inc.php - compile time: Sun, 29 Jan 2006 19:48:01 +0100 */ ?><?php $attr = array() ?> </table> +?><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> </td> </tr> </table> @@ -304,11 +453,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 /* source: ./themes/default/include/html/form-end.inc.php - compile time: Sun, 29 Jan 2006 19:48:01 +0100 */ ?><?php $attr = array() ?></form><?php unset($attr) ?><?php /* source: ./themes/default/include/html/focus.inc.php - compile time: Sun, 29 Jan 2006 19:48:01 +0100 */ ?><?php $attr = array('field'=>'delete') ?><?php $attr_field='delete' ?><script name="JavaScript" type="text/javascript"><!-- +<?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 /* source: ./themes/default/include/html/page-end.inc.php - compile time: Sun, 29 Jan 2006 19:48:01 +0100 */ ?><?php $attr = array() ?> +// --> +</script> +<?php unset($attr) ?><?php unset($attr_field) ?><?php $attr = array() ?> <!-- $Id$ --> <?php if ($showDuration) { ?> diff --git a/themes/default/pages/html/title/show.tpl.php b/themes/default/pages/html/title/show.tpl.php @@ -1,259 +1,407 @@ -<?php $attr = array('class'=>'title') ?><?php $attr_class='title' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<?php $attr1 = array('class'=>'title','title'=>$cms_title) ?><?php $attr1_class='title' ?><?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('class'=>'','width'=>'100%','space'=>'0','padding'=>'5','widths'=>'') ?><?php $attr_class='' ?><?php $attr_width='100%' ?><?php $attr_space='0' ?><?php $attr_padding='5' ?><?php $attr_widths='' ?><?php +<?php unset($attr1) ?><?php unset($attr1_class) ?><?php unset($attr1_title) ?><?php $attr2 = array('width'=>'100%','space'=>'0','padding'=>'5','rowclasses'=>'odd,even') ?><?php $attr2_width='100%' ?><?php $attr2_space='0' ?><?php $attr2_padding='5' ?><?php $attr2_rowclasses='odd,even' ?><?php $coloumn_widths=array(); - if (!empty($attr_widths)) + if (!empty($attr2_widths)) + { + $column_widths = explode(',',$attr2_widths); + unset($attr2['widths']); + } + if (!empty($attr2_classes)) + { + $row_classes = explode(',',$attr2_rowclasses); + $row_class_idx = 999; + unset($attr2['rowclasses']); + } + if (!empty($attr2_rowclasses)) + { + $row_classes = explode(',',$attr2_rowclasses); + $row_class_idx = 999; + unset($attr2['rowclasses']); + } + if (!empty($attr2_columnclasses)) { - $column_widths = explode(',',$attr_widths); - unset($attr['widths']); + $column_classes = explode(',',$attr2_columnclasses); + + unset($attr2['columnclasses']); } -?><table class="<?php echo $attr_class ?>" cellspacing="<?php echo $attr_space ?>" width="<?php echo $attr_width ?>" cellpadding="<?php echo $attr_padding ?>"><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_width) ?><?php unset($attr_space) ?><?php unset($attr_padding) ?><?php unset($attr_widths) ?><?php $attr = array() ?><?php - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; +?><table class="<?php echo $attr2_class ?>" cellspacing="<?php echo $attr2_space ?>" width="<?php echo $attr2_width ?>" cellpadding="<?php echo $attr2_padding ?>"><?php unset($attr2) ?><?php unset($attr2_width) ?><?php unset($attr2_space) ?><?php unset($attr2_padding) ?><?php unset($attr2_rowclasses) ?><?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($attr3_class)) + $attr3_class=$row_class; + global $cell_column_nr; $cell_column_nr=0; + + $column_class_idx = 999; -?><tr><?php unset($attr) ?><?php $attr = array('width'=>'30%','style'=>'','class'=>'title','colspan'=>'') ?><?php $attr_width='30%' ?><?php $attr_style='' ?><?php $attr_class='title' ?><?php $attr_colspan='' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><tr class="<?php echo $attr3_class ?>"><?php unset($attr3) ?><?php $attr4 = array('width'=>'40%','class'=>'title') ?><?php $attr4_width='40%' ?><?php $attr4_class='title' ?><?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($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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('file'=>'','url'=>'','icon'=>'database','align'=>'left','type'=>'','elementtype'=>'') ?><?php $attr_file='' ?><?php $attr_url='' ?><?php $attr_icon='database' ?><?php $attr_align='left' ?><?php $attr_type='' ?><?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_icon)) { -?><img src="<?php echo $image_dir.'icon_'.$attr_icon.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_icon) ?><?php unset($attr_align) ?><?php unset($attr_type) ?><?php unset($attr_elementtype) ?><?php $attr = array('title'=>'dbid','class'=>'','var'=>'dbname','text'=>'','textvar'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='dbid' ?><?php $attr_class='' ?><?php $attr_var='dbname' ?><?php $attr_text='' ?><?php $attr_textvar='' ?><?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( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_width) ?><?php unset($attr4_class) ?><?php $attr5 = array('icon'=>'database','align'=>'left') ?><?php $attr5_icon='database' ?><?php $attr5_align='left' ?><?php +if (isset($attr5_elementtype)) { +?><img src="<?php echo $image_dir.'icon_el_'.$attr5_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr5_align ?>"><?php +} elseif (isset($attr5_type)) { +?><img src="<?php echo $image_dir.'icon_'.$attr5_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr5_align ?>"><?php +} elseif (isset($attr5_icon)) { +?><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_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(empty($attr5_title)) + if (!empty($attr5_key)) + $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: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //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($tmpArray[$attr_text]); + $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 + { + $tmp_text = '&nbsp;'; + //Html::debug($attr5);echo 'text error'; } - elseif (!empty($attr_text)) - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - 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) ); + 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_title) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><?php unset($attr_text) ?><?php unset($attr_textvar) ?><?php unset($attr_raw) ?><?php unset($attr_maxlength) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('width'=>'40%','style'=>'text-align:center;','class'=>'title','colspan'=>'') ?><?php $attr_width='40%' ?><?php $attr_style='text-align:center;' ?><?php $attr_class='title' ?><?php $attr_colspan='' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?></span><?php unset($attr5) ?><?php unset($attr5_title) ?><?php unset($attr5_class) ?><?php unset($attr5_text) ?><?php $attr3 = array() ?></td><?php unset($attr3) ?><?php $attr4 = array('width'=>'20%','style'=>'text-align:center;','class'=>'title') ?><?php $attr4_width='20%' ?><?php $attr4_style='text-align:center;' ?><?php $attr4_class='title' ?><?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($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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'','class'=>'','var'=>'cms_title','text'=>'','textvar'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='cms_title' ?><?php $attr_text='' ?><?php $attr_textvar='' ?><?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( $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(empty($attr5_title)) + if (!empty($attr5_key)) + $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: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //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($tmpArray[$attr_text]); + $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 + { + $tmp_text = '&nbsp;'; + //Html::debug($attr5);echo 'text error'; } - elseif (!empty($attr_text)) - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - 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) ); + 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_title) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><?php unset($attr_text) ?><?php unset($attr_textvar) ?><?php unset($attr_raw) ?><?php unset($attr_maxlength) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('width'=>'30%','style'=>'text-align:right;','class'=>'title','colspan'=>'') ?><?php $attr_width='30%' ?><?php $attr_style='text-align:right;' ?><?php $attr_class='title' ?><?php $attr_colspan='' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?></span><?php unset($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_var) ?><?php $attr3 = array() ?></td><?php unset($attr3) ?><?php $attr4 = array('width'=>'40%','style'=>'text-align:right;','class'=>'title') ?><?php $attr4_width='40%' ?><?php $attr4_style='text-align:right;' ?><?php $attr4_class='title' ?><?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($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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('file'=>'','url'=>'','icon'=>'user','align'=>'right','type'=>'','elementtype'=>'') ?><?php $attr_file='' ?><?php $attr_url='' ?><?php $attr_icon='user' ?><?php $attr_align='right' ?><?php $attr_type='' ?><?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_icon)) { -?><img src="<?php echo $image_dir.'icon_'.$attr_icon.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_icon) ?><?php unset($attr_align) ?><?php unset($attr_type) ?><?php unset($attr_elementtype) ?><?php $attr = array('title'=>'USER_LOGOUT_DESC','target'=>'_top','url'=>'logout_url','class'=>'','action'=>'','subaction'=>'','id'=>'','var1'=>'','value1'=>'') ?><?php $attr_title='USER_LOGOUT_DESC' ?><?php $attr_target='_top' ?><?php $attr_url='logout_url' ?><?php $attr_class='' ?><?php $attr_action='' ?><?php $attr_subaction='' ?><?php $attr_id='' ?><?php $attr_var1='' ?><?php $attr_value1='' ?><?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_width) ?><?php unset($attr4_style) ?><?php unset($attr4_class) ?><?php $attr5 = array('icon'=>'user','align'=>'right') ?><?php $attr5_icon='user' ?><?php $attr5_align='right' ?><?php +if (isset($attr5_elementtype)) { +?><img src="<?php echo $image_dir.'icon_el_'.$attr5_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr5_align ?>"><?php +} elseif (isset($attr5_type)) { +?><img src="<?php echo $image_dir.'icon_'.$attr5_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr5_align ?>"><?php +} elseif (isset($attr5_icon)) { +?><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_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)) + $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 hasLang($attr_title)?lang($attr_title):lang($$attr_title) ?>"><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_target) ?><?php unset($attr_url) ?><?php unset($attr_class) ?><?php unset($attr_action) ?><?php unset($attr_subaction) ?><?php unset($attr_id) ?><?php unset($attr_var1) ?><?php unset($attr_value1) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'USER_LOGOUT','textvar'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='USER_LOGOUT' ?><?php $attr_textvar='' ?><?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)) + $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(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]; + //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_textvar)) - $tmp_text = lang($$attr_textvar); - 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) ); + 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_textvar) ?><?php unset($attr_raw) ?><?php unset($attr_maxlength) ?><?php $attr = array() ?></a><?php unset($attr) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'','textvar'=>'','raw'=>' (','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='' ?><?php $attr_textvar='' ?><?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($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(empty($attr5_title)) + if (!empty($attr5_key)) + $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: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //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($tmpArray[$attr_text]); + $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 + { + $tmp_text = '&nbsp;'; + //Html::debug($attr5);echo 'text error'; } - elseif (!empty($attr_text)) - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - 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) ); + 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_title) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><?php unset($attr_text) ?><?php unset($attr_textvar) ?><?php unset($attr_raw) ?><?php unset($attr_maxlength) ?><?php $attr = array('title'=>'USER_PROFILE_DESC','target'=>'cms_main_main','url'=>'profile_url','class'=>'','action'=>'','subaction'=>'','id'=>'','var1'=>'','value1'=>'') ?><?php $attr_title='USER_PROFILE_DESC' ?><?php $attr_target='cms_main_main' ?><?php $attr_url='profile_url' ?><?php $attr_class='' ?><?php $attr_action='' ?><?php $attr_subaction='' ?><?php $attr_id='' ?><?php $attr_var1='' ?><?php $attr_value1='' ?><?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'=>'USER_PROFILE_DESC','target'=>'cms_main_main','url'=>$profile_url) ?><?php $attr5_title='USER_PROFILE_DESC' ?><?php $attr5_target='cms_main_main' ?><?php $attr5_url=$profile_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 hasLang($attr_title)?lang($attr_title):lang($$attr_title) ?>"><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_target) ?><?php unset($attr_url) ?><?php unset($attr_class) ?><?php unset($attr_action) ?><?php unset($attr_subaction) ?><?php unset($attr_id) ?><?php unset($attr_var1) ?><?php unset($attr_value1) ?><?php $attr = array('title'=>'','class'=>'','var'=>'userfullname','text'=>'','textvar'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='userfullname' ?><?php $attr_text='' ?><?php $attr_textvar='' ?><?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)) + $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(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]; + //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_textvar)) - $tmp_text = lang($$attr_textvar); - 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) ); + 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_textvar) ?><?php unset($attr_raw) ?><?php unset($attr_maxlength) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'','textvar'=>'','raw'=>')','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='' ?><?php $attr_textvar='' ?><?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($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_text) ?><?php $attr6 = array('class'=>'text','raw'=>')') ?><?php $attr6_class='text' ?><?php $attr6_raw=')' ?><?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 (!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_textvar)) - $tmp_text = lang($$attr_textvar); - 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) ); + 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_textvar) ?><?php unset($attr_raw) ?><?php unset($attr_maxlength) ?><?php $attr = array() ?></a><?php unset($attr) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?></table><?php unset($attr) ?><?php $attr = array() ?> +?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_raw) ?><?php $attr4 = array() ?></a><?php unset($attr4) ?><?php $attr3 = array() ?></td><?php unset($attr3) ?><?php $attr2 = array() ?></tr><?php unset($attr2) ?><?php $attr1 = array() ?></table><?php unset($attr1) ?><?php $attr0 = array() ?> <!-- $Id$ --> <?php if ($showDuration) { ?> @@ -264,4 +412,4 @@ if (!empty($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/tree/show.tpl.php b/themes/default/pages/html/tree/show.tpl.php @@ -1,21 +1,28 @@ -<?php $attr = array('class'=>'tree') ?><?php $attr_class='tree' ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<?php $attr1 = array('class'=>'tree','title'=>$cms_title) ?><?php $attr1_class='tree' ?><?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) ?><!-- $Id$ --> +<?php unset($attr1) ?><?php unset($attr1_class) ?><?php unset($attr1_title) ?><!-- $Id$ --> <table cellpadding="0" cellspacing="0" border="0"> <?php foreach( $zeilen as $z ) { ?> @@ -37,7 +44,7 @@ </tr> <?php } ?> </table> -<?php $attr = array() ?> +<?php $attr0 = array() ?> <!-- $Id$ --> <?php if ($showDuration) { ?> @@ -48,4 +55,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/treetitle/show.tpl.php b/themes/default/pages/html/treetitle/show.tpl.php @@ -1,231 +1,355 @@ -<?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('class'=>'','width'=>'100%','space'=>'0','padding'=>'5','widths'=>'') ?><?php $attr_class='' ?><?php $attr_width='100%' ?><?php $attr_space='0' ?><?php $attr_padding='5' ?><?php $attr_widths='' ?><?php +<?php unset($attr1) ?><?php unset($attr1_class) ?><?php unset($attr1_title) ?><?php $attr2 = array('width'=>'100%','space'=>'0','padding'=>'5','rowclasses'=>'odd,even') ?><?php $attr2_width='100%' ?><?php $attr2_space='0' ?><?php $attr2_padding='5' ?><?php $attr2_rowclasses='odd,even' ?><?php $coloumn_widths=array(); - if (!empty($attr_widths)) + if (!empty($attr2_widths)) + { + $column_widths = explode(',',$attr2_widths); + unset($attr2['widths']); + } + if (!empty($attr2_classes)) + { + $row_classes = explode(',',$attr2_rowclasses); + $row_class_idx = 999; + unset($attr2['rowclasses']); + } + if (!empty($attr2_rowclasses)) { - $column_widths = explode(',',$attr_widths); - unset($attr['widths']); + $row_classes = explode(',',$attr2_rowclasses); + $row_class_idx = 999; + unset($attr2['rowclasses']); + } + if (!empty($attr2_columnclasses)) + { + $column_classes = explode(',',$attr2_columnclasses); + + unset($attr2['columnclasses']); } -?><table class="<?php echo $attr_class ?>" cellspacing="<?php echo $attr_space ?>" width="<?php echo $attr_width ?>" cellpadding="<?php echo $attr_padding ?>"><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_width) ?><?php unset($attr_space) ?><?php unset($attr_padding) ?><?php unset($attr_widths) ?><?php $attr = array() ?><?php - global $fx; - if ( $fx =='f1') - $fx='f2'; - else $fx='f1'; +?><table class="<?php echo $attr2_class ?>" cellspacing="<?php echo $attr2_space ?>" width="<?php echo $attr2_width ?>" cellpadding="<?php echo $attr2_padding ?>"><?php unset($attr2) ?><?php unset($attr2_width) ?><?php unset($attr2_space) ?><?php unset($attr2_padding) ?><?php unset($attr2_rowclasses) ?><?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($attr3_class)) + $attr3_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'=>'menu','colspan'=>'') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='menu' ?><?php $attr_colspan='' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><tr class="<?php echo $attr3_class ?>"><?php unset($attr3) ?><?php $attr4 = array('class'=>'menu') ?><?php $attr4_class='menu' ?><?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($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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('file'=>'','url'=>'','align'=>'left','type'=>'type','elementtype'=>'') ?><?php $attr_file='' ?><?php $attr_url='' ?><?php $attr_align='left' ?><?php $attr_type='type' ?><?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('list'=>'path','extract'=>'true','key'=>'list_key','value'=>'xy') ?><?php $attr_list='path' ?><?php $attr_extract='true' ?><?php $attr_key='list_key' ?><?php $attr_value='xy' ?><?php - $list_tmp_key = $attr_key; - $list_tmp_value = $attr_value; - $list_extract = ($attr_extract=='true'); +?><td <?php foreach( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_class) ?><?php $attr5 = array('align'=>'left','type'=>$type) ?><?php $attr5_align='left' ?><?php $attr5_type=$type ?><?php +if (isset($attr5_elementtype)) { +?><img src="<?php echo $image_dir.'icon_el_'.$attr5_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr5_align ?>"><?php +} elseif (isset($attr5_type)) { +?><img src="<?php echo $image_dir.'icon_'.$attr5_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr5_align ?>"><?php +} elseif (isset($attr5_icon)) { +?><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_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; + $attr5_list_tmp_value = $attr5_value; + $attr5_list_extract = ($attr5_extract==true); + if ( !is_array($$attr5_list) ) + $$attr5_list = array(); +// die('not an array in list,var='.$attr5_list); +// Html::debug($$attr5_list); - foreach( $$attr_list as $$list_tmp_key => $$list_tmp_value ) + foreach( $$attr5_list as $$attr5_list_tmp_key => $$attr5_list_tmp_value ) { - if ( $list_extract ) + if ( $attr5_list_extract ) { - if ( !is_array($$list_tmp_value) ) + if ( !is_array($$attr5_list_tmp_value) ) { - print_r($$list_tmp_value); - die( 'not an array at key: '.$$list_tmp_key ); + print_r($$attr5_list_tmp_value); + die( 'not an array at key: '.$$attr5_list_tmp_key ); } - extract($$list_tmp_value); + extract($$attr5_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('title'=>'title','target'=>'cms_main','url'=>'url','class'=>'path','action'=>'','subaction'=>'','id'=>'','var1'=>'','value1'=>'') ?><?php $attr_title='title' ?><?php $attr_target='cms_main' ?><?php $attr_url='url' ?><?php $attr_class='path' ?><?php $attr_action='' ?><?php $attr_subaction='' ?><?php $attr_id='' ?><?php $attr_var1='' ?><?php $attr_value1='' ?><?php - if(!empty($attr_url)) - $tmp_url = $$attr_url; +?><?php unset($attr5) ?><?php unset($attr5_list) ?><?php unset($attr5_extract) ?><?php unset($attr5_key) ?><?php unset($attr5_value) ?><?php $attr6 = array('title'=>'title','target'=>'cms_main','url'=>$url,'class'=>'path') ?><?php $attr6_title='title' ?><?php $attr6_target='cms_main' ?><?php $attr6_url=$url ?><?php $attr6_class='path' ?><?php + if(!empty($attr6_url)) + $tmp_url = $attr6_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 hasLang($attr_title)?lang($attr_title):lang($$attr_title) ?>"><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_target) ?><?php unset($attr_url) ?><?php unset($attr_class) ?><?php unset($attr_action) ?><?php unset($attr_subaction) ?><?php unset($attr_id) ?><?php unset($attr_var1) ?><?php unset($attr_value1) ?><?php $attr = array('title'=>'','class'=>'','var'=>'name','text'=>'','textvar'=>'','raw'=>'','maxlength'=>'20') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='name' ?><?php $attr_text='' ?><?php $attr_textvar='' ?><?php $attr_raw='' ?><?php $attr_maxlength='20' ?><?php - if(empty($attr_title)) $attr_title = $attr_text; -?><span class="<?php echo $attr_class ?>"><?php - if (!empty($attr_array)) + $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(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]; + //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($tmpArray[$attr_text]); + $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'; } - elseif (!empty($attr_text)) - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - 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) ); + 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_textvar) ?><?php unset($attr_raw) ?><?php unset($attr_maxlength) ?><?php $attr = array() ?></a><?php unset($attr) ?><?php $attr = array('type'=>'filesep') ?><?php $attr_type='filesep' ?><?php - if ($attr_type=='filesep') +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_var) ?><?php unset($attr7_maxlength) ?><?php $attr5 = array() ?></a><?php unset($attr5) ?><?php $attr6 = array('type'=>'filesep') ?><?php $attr6_type='filesep' ?><?php + if ($attr6_type=='filesep') echo '&nbsp;<strong>&raquo;</strong>&nbsp;'; else echo "char error"; -?><?php unset($attr) ?><?php unset($attr_type) ?><?php $attr = array() ?><?php } ?><?php unset($attr) ?><?php $attr = array('title'=>'text','class'=>'title','var'=>'text','text'=>'','textvar'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='text' ?><?php $attr_class='title' ?><?php $attr_var='text' ?><?php $attr_text='' ?><?php $attr_textvar='' ?><?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)) +?><?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(empty($attr5_title)) + if (!empty($attr5_key)) + $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: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr5_array[$attr5_var].'%'; + $tmpArray = $$attr5_array; + if (!empty($attr5_var)) + $tmp_text = $tmpArray[$attr5_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $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 + { + $tmp_text = '&nbsp;'; + //Html::debug($attr5);echo 'text error'; } - elseif (!empty($attr_text)) - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - 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) ); + 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_title) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><?php unset($attr_text) ?><?php unset($attr_textvar) ?><?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($attr5) ?><?php unset($attr5_title) ?><?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($attr3_class)) + $attr3_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'=>'subaction','colspan'=>'') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='subaction' ?><?php $attr_colspan='' ?><?php - global $fx; - if (!isset($attr_class)) $attr_class=''; - if ($attr_class=='fx') $attr['class']=$fx; +?><tr class="<?php echo $attr3_class ?>"><?php unset($attr3) ?><?php $attr4 = array('class'=>'subaction') ?><?php $attr4_class='subaction' ?><?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($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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('list'=>'windowMenu','extract'=>'true','key'=>'list_key','value'=>'list_value') ?><?php $attr_list='windowMenu' ?><?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'); +?><td <?php foreach( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_class) ?><?php $attr5 = array('list'=>'windowMenu','extract'=>'1','key'=>'list_key','value'=>'list_value') ?><?php $attr5_list='windowMenu' ?><?php $attr5_extract='1' ?><?php $attr5_key='list_key' ?><?php $attr5_value='list_value' ?><?php + $attr5_list_tmp_key = $attr5_key; + $attr5_list_tmp_value = $attr5_value; + $attr5_list_extract = ($attr5_extract==true); + if ( !is_array($$attr5_list) ) + $$attr5_list = array(); +// die('not an array in list,var='.$attr5_list); +// Html::debug($$attr5_list); - foreach( $$attr_list as $$list_tmp_key => $$list_tmp_value ) + foreach( $$attr5_list as $$attr5_list_tmp_key => $$attr5_list_tmp_value ) { - if ( $list_extract ) + if ( $attr5_list_extract ) { - if ( !is_array($$list_tmp_value) ) + if ( !is_array($$attr5_list_tmp_value) ) { - print_r($$list_tmp_value); - die( 'not an array at key: '.$$list_tmp_key ); + print_r($$attr5_list_tmp_value); + die( 'not an array at key: '.$$attr5_list_tmp_key ); } - extract($$list_tmp_value); + extract($$attr5_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('title'=>'title','target'=>'_parent','url'=>'url','class'=>'','action'=>'','subaction'=>'','id'=>'','var1'=>'','value1'=>'') ?><?php $attr_title='title' ?><?php $attr_target='_parent' ?><?php $attr_url='url' ?><?php $attr_class='' ?><?php $attr_action='' ?><?php $attr_subaction='' ?><?php $attr_id='' ?><?php $attr_var1='' ?><?php $attr_value1='' ?><?php - if(!empty($attr_url)) - $tmp_url = $$attr_url; +?><?php unset($attr5) ?><?php unset($attr5_list) ?><?php unset($attr5_extract) ?><?php unset($attr5_key) ?><?php unset($attr5_value) ?><?php $attr6 = array('title'=>$title,'target'=>'_parent','url'=>$url) ?><?php $attr6_title=$title ?><?php $attr6_target='_parent' ?><?php $attr6_url=$url ?><?php + if(!empty($attr6_url)) + $tmp_url = $attr6_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 hasLang($attr_title)?lang($attr_title):lang($$attr_title) ?>"><?php unset($attr) ?><?php unset($attr_title) ?><?php unset($attr_target) ?><?php unset($attr_url) ?><?php unset($attr_class) ?><?php unset($attr_action) ?><?php unset($attr_subaction) ?><?php unset($attr_id) ?><?php unset($attr_var1) ?><?php unset($attr_value1) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'','textvar'=>'text','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='' ?><?php $attr_textvar='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)) + $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(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]; + //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($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'; } - elseif (!empty($attr_text)) - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - 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) ); + 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_textvar) ?><?php unset($attr_raw) ?><?php unset($attr_maxlength) ?><?php $attr = array() ?></a><?php unset($attr) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'','textvar'=>'','raw'=>'__','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='' ?><?php $attr_textvar='' ?><?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_text) ?><?php $attr5 = array() ?></a><?php unset($attr5) ?><?php $attr6 = array('class'=>'text','raw'=>'__') ?><?php $attr6_class='text' ?><?php $attr6_raw='__' ?><?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 (!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_textvar)) - $tmp_text = lang($$attr_textvar); - 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) ); + 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_textvar) ?><?php unset($attr_raw) ?><?php unset($attr_maxlength) ?><?php $attr = array() ?><?php } ?><?php unset($attr) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?></table><?php unset($attr) ?><?php $attr = array() ?> +?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_raw) ?><?php $attr4 = array() ?><?php } ?><?php unset($attr4) ?><?php $attr3 = array() ?></td><?php unset($attr3) ?><?php $attr2 = array() ?></tr><?php unset($attr2) ?><?php $attr1 = array() ?></table><?php unset($attr1) ?><?php $attr0 = array() ?> <!-- $Id$ --> <?php if ($showDuration) { ?> @@ -236,4 +360,4 @@ if (!empty($attr_elementtype)) { <?php } ?> </body> -</html><?php unset($attr) ?>- \ No newline at end of file +</html><?php unset($attr0) ?>+ \ No newline at end of file