openrat-cms

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

commit 388ecd4e425ed731314697a16a331042439b11a5
parent c24fe177533ce3e9c30b7439e9fb5e6b7e658d4c
Author: dankert <devnull@localhost>
Date:   Wed, 14 Mar 2007 21:07:54 +0100

*** empty log message ***

Diffstat:
themes/default/pages/html/background/show.tpl.php | 1-
themes/default/pages/html/border/show.tpl.php | 1-
themes/default/pages/html/file/edit.tpl.php | 112++++++++++++++++++++++++++++++++++++++++++-------------------------------------
themes/default/pages/html/file/prop.tpl.php | 39+++++++++++++++++++++++++++++++--------
themes/default/pages/html/file/pub.tpl.php | 1-
themes/default/pages/html/file/size.tpl.php | 61+++++++++++++++++++++++++++++++++++++++++++++----------------
themes/default/pages/html/folder/edit.tpl.php | 1-
themes/default/pages/html/folder/order.tpl.php | 1-
themes/default/pages/html/folder/pub.tpl.php | 1-
themes/default/pages/html/folder/select.tpl.php | 1-
themes/default/pages/html/folder/show.tpl.php | 1-
themes/default/pages/html/index/projectmenu.tpl.php | 1-
themes/default/pages/html/index/showlogin.tpl.php | 1-
themes/default/pages/html/mainmenu/show.tpl.php | 1-
themes/default/pages/html/object/rights.tpl.php | 85+++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------
themes/default/pages/html/page/el.tpl.php | 1-
themes/default/pages/html/page/pub.tpl.php | 1-
themes/default/pages/html/pageelement/advanced.tpl.php | 1259++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------------
themes/default/pages/html/pageelement/edit.tpl.php | 1-
themes/default/pages/html/profile/confirmmail.tpl.php | 313+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/profile/edit.tpl.php | 792++++++++++++++++++++++++++++++++++++++-----------------------------------------
themes/default/pages/html/profile/mail.tpl.php | 313+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
themes/default/pages/html/profile/pwchange.tpl.php | 459+++++++++++++++++++++++++++++++++++++++++++++----------------------------------
themes/default/pages/html/project/edit.tpl.php | 864++++++++++++++++++++++++++++++++++++++++++-------------------------------------
themes/default/pages/html/project/listing.tpl.php | 280+++++++++++++++++++++++++++++++++++++++++++------------------------------------
themes/default/pages/html/template/add.tpl.php | 161+++++++++++++++++++++++++++++++++++++++++++++++++++----------------------------
themes/default/pages/html/template/edit.tpl.php | 13+++++++------
themes/default/pages/html/template/el.tpl.php | 41++++++++++++++++++++++-------------------
themes/default/pages/html/template/listing.tpl.php | 28+++++++++++++++-------------
themes/default/pages/html/title/show.tpl.php | 1-
themes/default/pages/html/tree/show.tpl.php | 1-
themes/default/pages/html/treetitle/show.tpl.php | 1-
themes/default/pages/html/user/edit.tpl.php | 981++++++++++++++++++++++++++++++++++++++++++-------------------------------------
themes/default/pages/html/user/listing.tpl.php | 577+++++++++++++++++++++++++++++++++++++++++++------------------------------------
themes/default/pages/html/user/pw.tpl.php | 939+++++++++++++++++++++++++++++++++++++++++++++++--------------------------------
35 files changed, 4466 insertions(+), 2868 deletions(-)

diff --git a/themes/default/pages/html/background/show.tpl.php b/themes/default/pages/html/background/show.tpl.php @@ -1,7 +1,6 @@ <?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 $attr1_title ?></title> <meta http-equiv="content-type" content="text/html; charset=<?php echo lang('CHARSET') ?>" /> diff --git a/themes/default/pages/html/border/show.tpl.php b/themes/default/pages/html/border/show.tpl.php @@ -1,7 +1,6 @@ <?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 $attr1_title ?></title> <meta http-equiv="content-type" content="text/html; charset=<?php echo lang('CHARSET') ?>" /> diff --git a/themes/default/pages/html/file/edit.tpl.php b/themes/default/pages/html/file/edit.tpl.php @@ -1,62 +1,68 @@ -<?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'=>'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)) - $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'=>'file','subaction'=>'replace','target'=>'_self','method'=>'post','enctype'=>'multipart/form-data') ?><?php $attr2_action='file' ?><?php $attr2_subaction='replace' ?><?php $attr2_target='_self' ?><?php $attr2_method='post' ?><?php $attr2_enctype='multipart/form-data' ?><?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'=>'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 +?><?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'=>'asdfdfs','name'=>'asdf','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr3_title='asdfdfs' ?><?php $attr3_name='asdf' ?><?php $attr3_width='93%' ?><?php $attr3_rowclasses='odd,even' ?><?php $attr3_columnclasses='1,2,3' ?><?php $coloumn_widths=array(); - if (!empty($attr_widths)) + if (!empty($attr3_widths)) { - $column_widths = explode(',',$attr_widths); - unset($attr['widths']); + $column_widths = explode(',',$attr3_widths); + unset($attr3['widths']); } - if (!empty($attr_rowclasses)) + if (!empty($attr3_rowclasses)) { - $row_classes = explode(',',$attr_rowclasses); + $row_classes = explode(',',$attr3_rowclasses); $row_class_idx = 999; - unset($attr['rowclasses']); + unset($attr3['rowclasses']); } - if (!empty($attr_columnclasses)) + if (!empty($attr3_columnclasses)) { - $column_classes = explode(',',$attr_columnclasses); - unset($attr['columnclasses']); + $column_classes = explode(',',$attr3_columnclasses); + unset($attr3['columnclasses']); } global $image_dir; echo '<br/><br/><br/><center>'; - echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_width.'">'; + echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr3_width.'">'; echo '<tr><td class="menu">'; - if ( !empty($attr_icon) ) - echo '<img src="'.$image_dir.'icon_'.$attr_icon.IMG_ICON_EXT.'" align="left" border="0">'; + if ( !empty($attr3_icon) ) + echo '<img src="'.$image_dir.'icon_'.$attr3_icon.IMG_ICON_EXT.'" align="left" border="0">'; if ( !is_array($path) ) $path = array(); foreach( $path as $pathElement) @@ -109,44 +115,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_width) ?><?php unset($attr_rowclasses) ?><?php unset($attr_columnclasses) ?><?php $attr = array() ?><?php + <table class="n" cellspacing="0" width="100%" cellpadding="4"><?php unset($attr3) ?><?php unset($attr3_title) ?><?php unset($attr3_name) ?><?php unset($attr3_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() ?><?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 $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') +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6 = array('name'=>'file','class'=>'upload') ?><?php $attr6_name='file' ?><?php $attr6_class='upload' ?><input type="file" name="<?php echo $attr6_name ?>" class="<?php echo $attr6_class ?>" /><?php unset($attr6) ?><?php unset($attr6_name) ?><?php unset($attr6_class) ?><?php $attr6 = array('type'=>'ok','class'=>'ok','value'=>'ok','text'=>'button_ok') ?><?php $attr6_type='ok' ?><?php $attr6_class='ok' ?><?php $attr6_value='ok' ?><?php $attr6_text='button_ok' ?><?php + if ($attr6_type=='ok') { - $attr_type = 'submit'; -// $attr_class = 'ok'; -// $attr_text = 'BUTTON_OK'; -// $attr_value = 'ok'; + $attr6_type = 'submit'; +// $attr6_class = 'ok'; +// $attr6_text = 'BUTTON_OK'; +// $attr6_value = 'ok'; } -?><input type="<?php echo $attr_type ?>" name="<?php echo $attr_value ?>" class="<?php echo $attr_class ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo lang($attr_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($attr) ?><?php unset($attr_type) ?><?php unset($attr_class) ?><?php unset($attr_value) ?><?php unset($attr_text) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?> </table> +?><input type="<?php echo $attr6_type ?>" name="<?php echo $attr6_value ?>" class="<?php echo $attr6_class ?>" value="&nbsp;&nbsp;&nbsp;&nbsp;<?php echo lang($attr6_text) ?>&nbsp;&nbsp;&nbsp;&nbsp;" /><?php unset($attr6) ?><?php unset($attr6_type) ?><?php unset($attr6_class) ?><?php unset($attr6_value) ?><?php unset($attr6_text) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr2 = array() ?> </table> </td> </tr> </table> @@ -160,9 +166,9 @@ <?php $dur = time()-START_TIME; echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small> <?php } ?> -<?php unset($attr) ?><?php $attr = array() ?></form> +<?php unset($attr2) ?><?php $attr1 = array() ?></form> -<?php unset($attr) ?><?php $attr = array() ?> +<?php unset($attr1) ?><?php $attr0 = array() ?> <!-- $Id$ --> <?php if ($showDuration) { ?> @@ -173,4 +179,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/file/prop.tpl.php b/themes/default/pages/html/file/prop.tpl.php @@ -1,7 +1,6 @@ <?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') ?>" /> @@ -146,14 +145,20 @@ $attr5['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6 = array('class'=>'text','text'=>'global_name') ?><?php $attr6_class='text' ?><?php $attr6_text='global_name' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + if(empty($attr6_title)) if (!empty($attr6_key)) - $attr6_title = lang($attr6_key).'_HELP'; + $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: @@ -204,7 +209,7 @@ if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) $attr5['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6 = array('class'=>'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 +?><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; @@ -234,14 +239,20 @@ $attr5['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6 = array('class'=>'text','text'=>'global_filename') ?><?php $attr6_class='text' ?><?php $attr6_text='global_filename' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + if(empty($attr6_title)) if (!empty($attr6_key)) - $attr6_title = lang($attr6_key).'_HELP'; + $attr6_title = lang($attr6_key.'_HELP'); else $attr6_title = ''; ?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php $attr6_title = ''; + if (!empty($attr6_array)) { //geht nicht: @@ -292,7 +303,7 @@ if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) $attr5['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6 = array('class'=>'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 +?><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; @@ -322,14 +333,20 @@ $attr5['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6 = array('class'=>'text','text'=>'file_extension') ?><?php $attr6_class='text' ?><?php $attr6_text='file_extension' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + if(empty($attr6_title)) if (!empty($attr6_key)) - $attr6_title = lang($attr6_key).'_HELP'; + $attr6_title = lang($attr6_key.'_HELP'); else $attr6_title = ''; ?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php $attr6_title = ''; + if (!empty($attr6_array)) { //geht nicht: @@ -380,7 +397,7 @@ if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) $attr5['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6 = array('class'=>'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 +?><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; @@ -410,14 +427,20 @@ $attr5['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6 = array('class'=>'text','text'=>'global_description') ?><?php $attr6_class='text' ?><?php $attr6_text='global_description' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + if(empty($attr6_title)) if (!empty($attr6_key)) - $attr6_title = lang($attr6_key).'_HELP'; + $attr6_title = lang($attr6_key.'_HELP'); else $attr6_title = ''; ?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php $attr6_title = ''; + if (!empty($attr6_array)) { //geht nicht: diff --git a/themes/default/pages/html/file/pub.tpl.php b/themes/default/pages/html/file/pub.tpl.php @@ -1,7 +1,6 @@ <?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') ?>" /> diff --git a/themes/default/pages/html/file/size.tpl.php b/themes/default/pages/html/file/size.tpl.php @@ -1,7 +1,6 @@ <?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') ?>" /> @@ -145,15 +144,21 @@ 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('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 +?><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 if (!empty($attr6_value)) echo '_' ?><?php echo $attr6_value ?>"><?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 ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + if(empty($attr7_title)) if (!empty($attr7_key)) - $attr7_title = lang($attr7_key).'_HELP'; + $attr7_title = lang($attr7_key.'_HELP'); else $attr7_title = ''; ?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php $attr7_title = ''; + if (!empty($attr7_array)) { //geht nicht: @@ -204,7 +209,7 @@ 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('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 +?><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( $$attr6_list as $box_key=>$box_value ) @@ -245,15 +250,21 @@ if (count($$attr6_list)==1) echo '<input type="hidden" name="'.$attr6_name.'" va 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('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 +?><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 if (!empty($attr6_value)) echo '_' ?><?php echo $attr6_value ?>"><?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 ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + if(empty($attr7_title)) if (!empty($attr7_key)) - $attr7_title = lang($attr7_key).'_HELP'; + $attr7_title = lang($attr7_key.'_HELP'); else $attr7_title = ''; ?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php $attr7_title = ''; + if (!empty($attr7_array)) { //geht nicht: @@ -304,7 +315,7 @@ if (count($$attr6_list)==1) echo '<input type="hidden" name="'.$attr6_name.'" va 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'=>'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 +?><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; @@ -333,15 +344,21 @@ if (count($$attr6_list)==1) echo '<input type="hidden" name="'.$attr6_name.'" va 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('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 +?><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 if (!empty($attr6_value)) echo '_' ?><?php echo $attr6_value ?>"><?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 ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + if(empty($attr7_title)) if (!empty($attr7_key)) - $attr7_title = lang($attr7_key).'_HELP'; + $attr7_title = lang($attr7_key.'_HELP'); else $attr7_title = ''; ?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php $attr7_title = ''; + if (!empty($attr7_array)) { //geht nicht: @@ -392,7 +409,7 @@ if (count($$attr6_list)==1) echo '<input type="hidden" name="'.$attr6_name.'" va 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'=>'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 +?><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; @@ -421,15 +438,21 @@ if (count($$attr6_list)==1) echo '<input type="hidden" name="'.$attr6_name.'" va 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('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 +?><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 if (!empty($attr6_value)) echo '_' ?><?php echo $attr6_value ?>"><?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 ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + if(empty($attr7_title)) if (!empty($attr7_key)) - $attr7_title = lang($attr7_key).'_HELP'; + $attr7_title = lang($attr7_key.'_HELP'); else $attr7_title = ''; ?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php $attr7_title = ''; + if (!empty($attr7_array)) { //geht nicht: @@ -480,7 +503,7 @@ if (count($$attr6_list)==1) echo '<input type="hidden" name="'.$attr6_name.'" va 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('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 +?><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( $$attr6_list as $box_key=>$box_value ) @@ -521,15 +544,21 @@ if (count($$attr6_list)==1) echo '<input type="hidden" name="'.$attr6_name.'" va 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('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 +?><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 if (!empty($attr6_value)) echo '_' ?><?php echo $attr6_value ?>"><?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 ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + if(empty($attr7_title)) if (!empty($attr7_key)) - $attr7_title = lang($attr7_key).'_HELP'; + $attr7_title = lang($attr7_key.'_HELP'); else $attr7_title = ''; ?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php $attr7_title = ''; + if (!empty($attr7_array)) { //geht nicht: @@ -580,7 +609,7 @@ if (count($$attr6_list)==1) echo '<input type="hidden" name="'.$attr6_name.'" va 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('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 +?><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( $$attr6_list as $box_key=>$box_value ) diff --git a/themes/default/pages/html/folder/edit.tpl.php b/themes/default/pages/html/folder/edit.tpl.php @@ -1,7 +1,6 @@ <?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') ?>" /> diff --git a/themes/default/pages/html/folder/order.tpl.php b/themes/default/pages/html/folder/order.tpl.php @@ -1,7 +1,6 @@ <?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') ?>" /> diff --git a/themes/default/pages/html/folder/pub.tpl.php b/themes/default/pages/html/folder/pub.tpl.php @@ -1,7 +1,6 @@ <?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') ?>" /> diff --git a/themes/default/pages/html/folder/select.tpl.php b/themes/default/pages/html/folder/select.tpl.php @@ -1,7 +1,6 @@ <?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') ?>" /> diff --git a/themes/default/pages/html/folder/show.tpl.php b/themes/default/pages/html/folder/show.tpl.php @@ -1,7 +1,6 @@ <?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') ?>" /> diff --git a/themes/default/pages/html/index/projectmenu.tpl.php b/themes/default/pages/html/index/projectmenu.tpl.php @@ -1,7 +1,6 @@ <?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') ?>" /> diff --git a/themes/default/pages/html/index/showlogin.tpl.php b/themes/default/pages/html/index/showlogin.tpl.php @@ -1,7 +1,6 @@ <?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') ?>" /> diff --git a/themes/default/pages/html/mainmenu/show.tpl.php b/themes/default/pages/html/mainmenu/show.tpl.php @@ -1,7 +1,6 @@ <?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') ?>" /> diff --git a/themes/default/pages/html/object/rights.tpl.php b/themes/default/pages/html/object/rights.tpl.php @@ -1,7 +1,6 @@ <?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') ?>" /> @@ -143,16 +142,17 @@ // Vergleich auf Vorhandensein elseif ( isset($attr3_present) ) { - if ( !isset($$attr3_present) ) - $exec = false; - elseif ( is_array($$attr3_present) ) - $exec = (count($$attr3_present)>0); - elseif ( is_bool($$attr3_present) ) - $exec = $$attr3_present; - elseif ( is_numeric($$attr3_present) ) - $exec = $$attr3_present>=0; - else - $exec = true; + $exec = isset($$attr3_present); +// if ( !isset($$attr3_present) ) +// $exec = false; +// elseif ( is_array($$attr3_present) ) +// $exec = (count($$attr3_present)>0); +// elseif ( is_bool($$attr3_present) ) +// $exec = $$attr3_present; +// elseif ( is_numeric($$attr3_present) ) +// $exec = $$attr3_present>=0; +// else +// $exec = true; } else @@ -164,6 +164,7 @@ } // Ergebnis umdrehen + // TODO: Bald ausbauen, stattdessen "not" verwenden. if ( !empty($attr3_invert) ) $exec = !$exec; @@ -216,14 +217,20 @@ $attr5['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('class'=>'text','text'=>'GLOBAL_NOT_FOUND') ?><?php $attr6_class='text' ?><?php $attr6_text='GLOBAL_NOT_FOUND' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + if(empty($attr6_title)) if (!empty($attr6_key)) - $attr6_title = lang($attr6_key).'_HELP'; + $attr6_title = lang($attr6_key.'_HELP'); else $attr6_title = ''; ?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php $attr6_title = ''; + if (!empty($attr6_array)) { //geht nicht: @@ -307,16 +314,17 @@ // Vergleich auf Vorhandensein elseif ( isset($attr3_present) ) { - if ( !isset($$attr3_present) ) - $exec = false; - elseif ( is_array($$attr3_present) ) - $exec = (count($$attr3_present)>0); - elseif ( is_bool($$attr3_present) ) - $exec = $$attr3_present; - elseif ( is_numeric($$attr3_present) ) - $exec = $$attr3_present>=0; - else - $exec = true; + $exec = isset($$attr3_present); +// if ( !isset($$attr3_present) ) +// $exec = false; +// elseif ( is_array($$attr3_present) ) +// $exec = (count($$attr3_present)>0); +// elseif ( is_bool($$attr3_present) ) +// $exec = $$attr3_present; +// elseif ( is_numeric($$attr3_present) ) +// $exec = $$attr3_present>=0; +// else +// $exec = true; } else @@ -328,6 +336,7 @@ } // Ergebnis umdrehen + // TODO: Bald ausbauen, stattdessen "not" verwenden. if ( !empty($attr3_invert) ) $exec = !$exec; @@ -380,14 +389,20 @@ $attr5['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('class'=>'text','text'=>'GLOBAL_NAME') ?><?php $attr6_class='text' ?><?php $attr6_text='GLOBAL_NAME' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + if(empty($attr6_title)) if (!empty($attr6_key)) - $attr6_title = lang($attr6_key).'_HELP'; + $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: @@ -439,14 +454,20 @@ $attr5['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('class'=>'text','text'=>'GLOBAL_LANGUAGE') ?><?php $attr6_class='text' ?><?php $attr6_text='GLOBAL_LANGUAGE' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + if(empty($attr6_title)) if (!empty($attr6_key)) - $attr6_title = lang($attr6_key).'_HELP'; + $attr6_title = lang($attr6_key.'_HELP'); else $attr6_title = ''; ?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php $attr6_title = ''; + if (!empty($attr6_array)) { //geht nicht: @@ -501,14 +522,20 @@ $attr5['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('class'=>'text','text'=>'global_delete') ?><?php $attr6_class='text' ?><?php $attr6_text='global_delete' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + if(empty($attr6_title)) if (!empty($attr6_key)) - $attr6_title = lang($attr6_key).'_HELP'; + $attr6_title = lang($attr6_key.'_HELP'); else $attr6_title = ''; ?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php $attr6_title = ''; + if (!empty($attr6_array)) { //geht nicht: @@ -610,14 +637,20 @@ else $attr5['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6 = array('class'=>'text','var'=>'languagename') ?><?php $attr6_class='text' ?><?php $attr6_var='languagename' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + if(empty($attr6_title)) if (!empty($attr6_key)) - $attr6_title = lang($attr6_key).'_HELP'; + $attr6_title = lang($attr6_key.'_HELP'); else $attr6_title = ''; ?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php $attr6_title = ''; + if (!empty($attr6_array)) { //geht nicht: diff --git a/themes/default/pages/html/page/el.tpl.php b/themes/default/pages/html/page/el.tpl.php @@ -1,7 +1,6 @@ <?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') ?>" /> diff --git a/themes/default/pages/html/page/pub.tpl.php b/themes/default/pages/html/page/pub.tpl.php @@ -1,7 +1,6 @@ <?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') ?>" /> diff --git a/themes/default/pages/html/pageelement/advanced.tpl.php b/themes/default/pages/html/pageelement/advanced.tpl.php @@ -40,67 +40,7 @@ <input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr2_id ?>" /><?php if ( $conf['interface']['url_sessionid'] ) echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; -?><?php unset($attr2) ?><?php unset($attr2_target) ?><?php unset($attr2_method) ?><?php unset($attr2_enctype) ?><?php -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 +?><?php unset($attr2) ?><?php unset($attr2_target) ?><?php unset($attr2_method) ?><?php unset($attr2_enctype) ?><?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)) { @@ -206,14 +146,20 @@ insert('text',"\n|","| |\n| | |\n"); $attr5['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_colspan) ?><?php $attr6 = array('class'=>'text','var'=>'desc') ?><?php $attr6_class='text' ?><?php $attr6_var='desc' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + if(empty($attr6_title)) if (!empty($attr6_key)) - $attr6_title = lang($attr6_key).'_HELP'; + $attr6_title = lang($attr6_key.'_HELP'); else $attr6_title = ''; ?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php $attr6_title = ''; + if (!empty($attr6_array)) { //geht nicht: @@ -294,16 +240,17 @@ insert('text',"\n|","| |\n| | |\n"); // Vergleich auf Vorhandensein elseif ( isset($attr4_present) ) { - if ( !isset($$attr4_present) ) - $exec = false; - elseif ( is_array($$attr4_present) ) - $exec = (count($$attr4_present)>0); - elseif ( is_bool($$attr4_present) ) - $exec = $$attr4_present; - elseif ( is_numeric($$attr4_present) ) - $exec = $$attr4_present>=0; - else - $exec = true; + $exec = isset($$attr4_present); +// if ( !isset($$attr4_present) ) +// $exec = false; +// elseif ( is_array($$attr4_present) ) +// $exec = (count($$attr4_present)>0); +// elseif ( is_bool($$attr4_present) ) +// $exec = $$attr4_present; +// elseif ( is_numeric($$attr4_present) ) +// $exec = $$attr4_present>=0; +// else +// $exec = true; } else @@ -315,6 +262,7 @@ insert('text',"\n|","| |\n| | |\n"); } // Ergebnis umdrehen + // TODO: Bald ausbauen, stattdessen "not" verwenden. if ( !empty($attr4_invert) ) $exec = !$exec; @@ -406,16 +354,24 @@ if (isset($attr9_elementtype)) { ?><img src="<?php echo $image_dir.'icon_'.$attr9_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php } elseif (isset($attr9_url)) { ?><img src="<?php echo $attr9_url ?>" border="0" align="<?php echo $attr9_align ?>"><?php +} elseif (isset($attr9_fileext)) { +?><img src="<?php echo $image_dir.$attr9_fileext ?>" border="0" align="<?php echo $attr9_align ?>"><?php } elseif (isset($attr9_file)) { ?><img src="<?php echo $image_dir.$attr9_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php } ?><?php unset($attr9) ?><?php unset($attr9_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 ( isset($attr8_prefix)&& isset($attr8_key)) + $attr8_key = $attr8_prefix.$attr8_key; + if ( isset($attr8_suffix)&& isset($attr8_key)) + $attr8_key = $attr8_key.$attr8_suffix; + if(empty($attr8_title)) if (!empty($attr8_key)) - $attr8_title = lang($attr8_key).'_HELP'; + $attr8_title = lang($attr8_key.'_HELP'); else $attr8_title = ''; ?><span class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php $attr8_title = ''; + if (!empty($attr8_array)) { //geht nicht: @@ -452,14 +408,20 @@ if (isset($attr9_elementtype)) { 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 ( isset($attr8_prefix)&& isset($attr8_key)) + $attr8_key = $attr8_prefix.$attr8_key; + if ( isset($attr8_suffix)&& isset($attr8_key)) + $attr8_key = $attr8_key.$attr8_suffix; + if(empty($attr8_title)) if (!empty($attr8_key)) - $attr8_title = lang($attr8_key).'_HELP'; + $attr8_title = lang($attr8_key.'_HELP'); else $attr8_title = ''; ?><span class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php $attr8_title = ''; + if (!empty($attr8_array)) { //geht nicht: @@ -496,14 +458,20 @@ if (isset($attr9_elementtype)) { 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 ( isset($attr8_prefix)&& isset($attr8_key)) + $attr8_key = $attr8_prefix.$attr8_key; + if ( isset($attr8_suffix)&& isset($attr8_key)) + $attr8_key = $attr8_key.$attr8_suffix; + if(empty($attr8_title)) if (!empty($attr8_key)) - $attr8_title = lang($attr8_key).'_HELP'; + $attr8_title = lang($attr8_key.'_HELP'); else $attr8_title = ''; ?><span class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php $attr8_title = ''; + if (!empty($attr8_array)) { //geht nicht: @@ -553,16 +521,24 @@ if (isset($attr9_elementtype)) { ?><img src="<?php echo $image_dir.'icon_'.$attr9_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php } elseif (isset($attr9_url)) { ?><img src="<?php echo $attr9_url ?>" border="0" align="<?php echo $attr9_align ?>"><?php +} elseif (isset($attr9_fileext)) { +?><img src="<?php echo $image_dir.$attr9_fileext ?>" border="0" align="<?php echo $attr9_align ?>"><?php } elseif (isset($attr9_file)) { ?><img src="<?php echo $image_dir.$attr9_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php } ?><?php unset($attr9) ?><?php unset($attr9_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 ( isset($attr8_prefix)&& isset($attr8_key)) + $attr8_key = $attr8_prefix.$attr8_key; + if ( isset($attr8_suffix)&& isset($attr8_key)) + $attr8_key = $attr8_key.$attr8_suffix; + if(empty($attr8_title)) if (!empty($attr8_key)) - $attr8_title = lang($attr8_key).'_HELP'; + $attr8_title = lang($attr8_key.'_HELP'); else $attr8_title = ''; ?><span class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php $attr8_title = ''; + if (!empty($attr8_array)) { //geht nicht: @@ -612,16 +588,24 @@ if (isset($attr9_elementtype)) { ?><img src="<?php echo $image_dir.'icon_'.$attr9_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php } elseif (isset($attr9_url)) { ?><img src="<?php echo $attr9_url ?>" border="0" align="<?php echo $attr9_align ?>"><?php +} elseif (isset($attr9_fileext)) { +?><img src="<?php echo $image_dir.$attr9_fileext ?>" border="0" align="<?php echo $attr9_align ?>"><?php } elseif (isset($attr9_file)) { ?><img src="<?php echo $image_dir.$attr9_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php } ?><?php unset($attr9) ?><?php unset($attr9_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 ( isset($attr8_prefix)&& isset($attr8_key)) + $attr8_key = $attr8_prefix.$attr8_key; + if ( isset($attr8_suffix)&& isset($attr8_key)) + $attr8_key = $attr8_key.$attr8_suffix; + if(empty($attr8_title)) if (!empty($attr8_key)) - $attr8_title = lang($attr8_key).'_HELP'; + $attr8_title = lang($attr8_key.'_HELP'); else $attr8_title = ''; ?><span class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php $attr8_title = ''; + if (!empty($attr8_array)) { //geht nicht: @@ -658,14 +642,20 @@ if (isset($attr9_elementtype)) { 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 ( isset($attr8_prefix)&& isset($attr8_key)) + $attr8_key = $attr8_prefix.$attr8_key; + if ( isset($attr8_suffix)&& isset($attr8_key)) + $attr8_key = $attr8_key.$attr8_suffix; + if(empty($attr8_title)) if (!empty($attr8_key)) - $attr8_title = lang($attr8_key).'_HELP'; + $attr8_title = lang($attr8_key.'_HELP'); else $attr8_title = ''; ?><span class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php $attr8_title = ''; + if (!empty($attr8_array)) { //geht nicht: @@ -702,14 +692,20 @@ if (isset($attr9_elementtype)) { 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 ( isset($attr8_prefix)&& isset($attr8_key)) + $attr8_key = $attr8_prefix.$attr8_key; + if ( isset($attr8_suffix)&& isset($attr8_key)) + $attr8_key = $attr8_key.$attr8_suffix; + if(empty($attr8_title)) if (!empty($attr8_key)) - $attr8_title = lang($attr8_key).'_HELP'; + $attr8_title = lang($attr8_key.'_HELP'); else $attr8_title = ''; ?><span class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php $attr8_title = ''; + if (!empty($attr8_array)) { //geht nicht: @@ -759,6 +755,8 @@ if (isset($attr9_elementtype)) { ?><img src="<?php echo $image_dir.'icon_'.$attr9_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php } elseif (isset($attr9_url)) { ?><img src="<?php echo $attr9_url ?>" border="0" align="<?php echo $attr9_align ?>"><?php +} elseif (isset($attr9_fileext)) { +?><img src="<?php echo $image_dir.$attr9_fileext ?>" border="0" align="<?php echo $attr9_align ?>"><?php } elseif (isset($attr9_file)) { ?><img src="<?php echo $image_dir.$attr9_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr9_align ?>"><?php } ?><?php unset($attr9) ?><?php unset($attr9_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++; @@ -790,14 +788,20 @@ if (isset($attr9_elementtype)) { $attr7['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr7 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr7) ?><?php $attr8 = array('class'=>'text','text'=>lang('global_nr')) ?><?php $attr8_class='text' ?><?php $attr8_text=lang('global_nr') ?><?php + if ( isset($attr8_prefix)&& isset($attr8_key)) + $attr8_key = $attr8_prefix.$attr8_key; + if ( isset($attr8_suffix)&& isset($attr8_key)) + $attr8_key = $attr8_key.$attr8_suffix; + if(empty($attr8_title)) if (!empty($attr8_key)) - $attr8_title = lang($attr8_key).'_HELP'; + $attr8_title = lang($attr8_key.'_HELP'); else $attr8_title = ''; ?><span class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php $attr8_title = ''; + if (!empty($attr8_array)) { //geht nicht: @@ -870,14 +874,20 @@ if (isset($attr9_elementtype)) { $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 ( isset($attr9_prefix)&& isset($attr9_key)) + $attr9_key = $attr9_prefix.$attr9_key; + if ( isset($attr9_suffix)&& isset($attr9_key)) + $attr9_key = $attr9_key.$attr9_suffix; + if(empty($attr9_title)) if (!empty($attr9_key)) - $attr9_title = lang($attr9_key).'_HELP'; + $attr9_title = lang($attr9_key.'_HELP'); else $attr9_title = ''; ?><span class="<?php echo $attr9_class ?>" title="<?php echo $attr9_title ?>"><?php $attr9_title = ''; + if (!empty($attr9_array)) { //geht nicht: @@ -913,8 +923,7 @@ if (isset($attr9_elementtype)) { $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 +?></span><?php unset($attr9) ?><?php unset($attr9_class) ?><?php unset($attr9_text) ?><?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); @@ -965,14 +974,20 @@ if (isset($attr9_elementtype)) { $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 ( isset($attr9_prefix)&& isset($attr9_key)) + $attr9_key = $attr9_prefix.$attr9_key; + if ( isset($attr9_suffix)&& isset($attr9_key)) + $attr9_key = $attr9_key.$attr9_suffix; + if(empty($attr9_title)) if (!empty($attr9_key)) - $attr9_title = lang($attr9_key).'_HELP'; + $attr9_title = lang($attr9_key.'_HELP'); else $attr9_title = ''; ?><span class="<?php echo $attr9_class ?>" title="<?php echo $attr9_title ?>"><?php $attr9_title = ''; + if (!empty($attr9_array)) { //geht nicht: @@ -1089,16 +1104,17 @@ if (isset($attr9_elementtype)) { // 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; + $exec = 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 @@ -1110,6 +1126,7 @@ if (isset($attr9_elementtype)) { } // Ergebnis umdrehen + // TODO: Bald ausbauen, stattdessen "not" verwenden. if ( !empty($attr10_invert) ) $exec = !$exec; @@ -1133,14 +1150,20 @@ if (isset($attr9_elementtype)) { if ( $exec ) { ?><?php unset($attr10) ?><?php unset($attr10_empty) ?><?php $attr11 = array('class'=>'text','raw'=>'__') ?><?php $attr11_class='text' ?><?php $attr11_raw='__' ?><?php + if ( isset($attr11_prefix)&& isset($attr11_key)) + $attr11_key = $attr11_prefix.$attr11_key; + if ( isset($attr11_suffix)&& isset($attr11_key)) + $attr11_key = $attr11_key.$attr11_suffix; + if(empty($attr11_title)) if (!empty($attr11_key)) - $attr11_title = lang($attr11_key).'_HELP'; + $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: @@ -1177,14 +1200,20 @@ if (isset($attr9_elementtype)) { 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 ( isset($attr11_prefix)&& isset($attr11_key)) + $attr11_key = $attr11_prefix.$attr11_key; + if ( isset($attr11_suffix)&& isset($attr11_key)) + $attr11_key = $attr11_key.$attr11_suffix; + if(empty($attr11_title)) if (!empty($attr11_key)) - $attr11_title = lang($attr11_key).'_HELP'; + $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: @@ -1221,14 +1250,20 @@ if (isset($attr9_elementtype)) { 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 ( isset($attr11_prefix)&& isset($attr11_key)) + $attr11_key = $attr11_prefix.$attr11_key; + if ( isset($attr11_suffix)&& isset($attr11_key)) + $attr11_key = $attr11_key.$attr11_suffix; + if(empty($attr11_title)) if (!empty($attr11_key)) - $attr11_title = lang($attr11_key).'_HELP'; + $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: @@ -1312,16 +1347,17 @@ if (isset($attr9_elementtype)) { // 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; + $exec = 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 @@ -1333,6 +1369,7 @@ if (isset($attr9_elementtype)) { } // Ergebnis umdrehen + // TODO: Bald ausbauen, stattdessen "not" verwenden. if ( !empty($attr10_invert) ) $exec = !$exec; @@ -1361,14 +1398,20 @@ if (isset($attr9_elementtype)) { 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 ( isset($attr12_prefix)&& isset($attr12_key)) + $attr12_key = $attr12_prefix.$attr12_key; + if ( isset($attr12_suffix)&& isset($attr12_key)) + $attr12_key = $attr12_key.$attr12_suffix; + if(empty($attr12_title)) if (!empty($attr12_key)) - $attr12_title = lang($attr12_key).'_HELP'; + $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: @@ -1405,14 +1448,20 @@ if (isset($attr9_elementtype)) { 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 ( isset($attr12_prefix)&& isset($attr12_key)) + $attr12_key = $attr12_prefix.$attr12_key; + if ( isset($attr12_suffix)&& isset($attr12_key)) + $attr12_key = $attr12_key.$attr12_suffix; + if(empty($attr12_title)) if (!empty($attr12_key)) - $attr12_title = lang($attr12_key).'_HELP'; + $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: @@ -1449,14 +1498,20 @@ if (isset($attr9_elementtype)) { 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 ( isset($attr12_prefix)&& isset($attr12_key)) + $attr12_key = $attr12_prefix.$attr12_key; + if ( isset($attr12_suffix)&& isset($attr12_key)) + $attr12_key = $attr12_key.$attr12_suffix; + if(empty($attr12_title)) if (!empty($attr12_key)) - $attr12_title = lang($attr12_key).'_HELP'; + $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: @@ -1540,16 +1595,17 @@ if (isset($attr9_elementtype)) { // 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; + $exec = 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 @@ -1561,6 +1617,7 @@ if (isset($attr9_elementtype)) { } // Ergebnis umdrehen + // TODO: Bald ausbauen, stattdessen "not" verwenden. if ( !empty($attr10_invert) ) $exec = !$exec; @@ -1584,14 +1641,20 @@ if (isset($attr9_elementtype)) { if ( $exec ) { ?><?php unset($attr10) ?><?php unset($attr10_true) ?><?php $attr11 = array('class'=>'text','raw'=>'*') ?><?php $attr11_class='text' ?><?php $attr11_raw='*' ?><?php + if ( isset($attr11_prefix)&& isset($attr11_key)) + $attr11_key = $attr11_prefix.$attr11_key; + if ( isset($attr11_suffix)&& isset($attr11_key)) + $attr11_key = $attr11_key.$attr11_suffix; + if(empty($attr11_title)) if (!empty($attr11_key)) - $attr11_title = lang($attr11_key).'_HELP'; + $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: @@ -1660,14 +1723,20 @@ if (isset($attr9_elementtype)) { $attr7['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr7 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_colspan) ?><?php $attr8 = array('class'=>'text','text'=>lang('date')) ?><?php $attr8_class='text' ?><?php $attr8_text=lang('date') ?><?php + if ( isset($attr8_prefix)&& isset($attr8_key)) + $attr8_key = $attr8_prefix.$attr8_key; + if ( isset($attr8_suffix)&& isset($attr8_key)) + $attr8_key = $attr8_key.$attr8_suffix; + if(empty($attr8_title)) if (!empty($attr8_key)) - $attr8_title = lang($attr8_key).'_HELP'; + $attr8_title = lang($attr8_key.'_HELP'); else $attr8_title = ''; ?><span class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php $attr8_title = ''; + if (!empty($attr8_array)) { //geht nicht: @@ -1718,7 +1787,7 @@ if (isset($attr9_elementtype)) { 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 +?><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 ) @@ -1731,14 +1800,20 @@ if (count($$attr8_list)==1) echo ' disabled="disabled"' ?></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 ( isset($attr8_prefix)&& isset($attr8_key)) + $attr8_key = $attr8_prefix.$attr8_key; + if ( isset($attr8_suffix)&& isset($attr8_key)) + $attr8_key = $attr8_key.$attr8_suffix; + if(empty($attr8_title)) if (!empty($attr8_key)) - $attr8_title = lang($attr8_key).'_HELP'; + $attr8_title = lang($attr8_key.'_HELP'); else $attr8_title = ''; ?><span class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php $attr8_title = ''; + if (!empty($attr8_array)) { //geht nicht: @@ -1774,7 +1849,7 @@ if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" va $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 +?></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 ) @@ -1787,14 +1862,20 @@ if (count($$attr8_list)==1) echo ' disabled="disabled"' ?></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 ( isset($attr8_prefix)&& isset($attr8_key)) + $attr8_key = $attr8_prefix.$attr8_key; + if ( isset($attr8_suffix)&& isset($attr8_key)) + $attr8_key = $attr8_key.$attr8_suffix; + if(empty($attr8_title)) if (!empty($attr8_key)) - $attr8_title = lang($attr8_key).'_HELP'; + $attr8_title = lang($attr8_key.'_HELP'); else $attr8_title = ''; ?><span class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php $attr8_title = ''; + if (!empty($attr8_array)) { //geht nicht: @@ -1830,7 +1911,7 @@ if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" va $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 +?></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 ) @@ -1872,14 +1953,20 @@ if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" va $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 ( isset($attr8_prefix)&& isset($attr8_key)) + $attr8_key = $attr8_prefix.$attr8_key; + if ( isset($attr8_suffix)&& isset($attr8_key)) + $attr8_key = $attr8_key.$attr8_suffix; + if(empty($attr8_title)) if (!empty($attr8_key)) - $attr8_title = lang($attr8_key).'_HELP'; + $attr8_title = lang($attr8_key.'_HELP'); else $attr8_title = ''; ?><span class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php $attr8_title = ''; + if (!empty($attr8_array)) { //geht nicht: @@ -1930,7 +2017,7 @@ if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" va 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 +?><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 ) @@ -1943,14 +2030,20 @@ if (count($$attr8_list)==1) echo ' disabled="disabled"' ?></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 ( isset($attr8_prefix)&& isset($attr8_key)) + $attr8_key = $attr8_prefix.$attr8_key; + if ( isset($attr8_suffix)&& isset($attr8_key)) + $attr8_key = $attr8_key.$attr8_suffix; + if(empty($attr8_title)) if (!empty($attr8_key)) - $attr8_title = lang($attr8_key).'_HELP'; + $attr8_title = lang($attr8_key.'_HELP'); else $attr8_title = ''; ?><span class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php $attr8_title = ''; + if (!empty($attr8_array)) { //geht nicht: @@ -1986,7 +2079,7 @@ if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" va $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 +?></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 ) @@ -1999,14 +2092,20 @@ if (count($$attr8_list)==1) echo ' disabled="disabled"' ?></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 ( isset($attr8_prefix)&& isset($attr8_key)) + $attr8_key = $attr8_prefix.$attr8_key; + if ( isset($attr8_suffix)&& isset($attr8_key)) + $attr8_key = $attr8_key.$attr8_suffix; + if(empty($attr8_title)) if (!empty($attr8_key)) - $attr8_title = lang($attr8_key).'_HELP'; + $attr8_title = lang($attr8_key.'_HELP'); else $attr8_title = ''; ?><span class="<?php echo $attr8_class ?>" title="<?php echo $attr8_title ?>"><?php $attr8_title = ''; + if (!empty($attr8_array)) { //geht nicht: @@ -2042,7 +2141,7 @@ if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" va $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 +?></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 ) @@ -2102,16 +2201,17 @@ if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" va // Vergleich auf Vorhandensein elseif ( isset($attr4_present) ) { - if ( !isset($$attr4_present) ) - $exec = false; - elseif ( is_array($$attr4_present) ) - $exec = (count($$attr4_present)>0); - elseif ( is_bool($$attr4_present) ) - $exec = $$attr4_present; - elseif ( is_numeric($$attr4_present) ) - $exec = $$attr4_present>=0; - else - $exec = true; + $exec = isset($$attr4_present); +// if ( !isset($$attr4_present) ) +// $exec = false; +// elseif ( is_array($$attr4_present) ) +// $exec = (count($$attr4_present)>0); +// elseif ( is_bool($$attr4_present) ) +// $exec = $$attr4_present; +// elseif ( is_numeric($$attr4_present) ) +// $exec = $$attr4_present>=0; +// else +// $exec = true; } else @@ -2123,6 +2223,7 @@ if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" va } // Ergebnis umdrehen + // TODO: Bald ausbauen, stattdessen "not" verwenden. if ( !empty($attr4_invert) ) $exec = !$exec; @@ -2174,7 +2275,7 @@ if (count($$attr8_list)==1) echo '<input type="hidden" name="'.$attr8_name.'" va if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) ) $attr6['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_colspan) ?><?php $attr7 = array('class'=>'text','type'=>'text','name'=>'text','size'=>'50','maxlength'=>'255') ?><?php $attr7_class='text' ?><?php $attr7_type='text' ?><?php $attr7_name='text' ?><?php $attr7_size='50' ?><?php $attr7_maxlength='255' ?><input id="id<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" type="<?php echo $attr7_type ?>" size="<?php echo $attr7_size ?>" maxlength="<?php echo $attr7_maxlength ?>" class="<?php echo $attr7_class ?>" value="<?php echo isset($$attr7_name)?$$attr7_name:$attr7_default ?>" onxxxMouseOver="this.focus();" /><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_type) ?><?php unset($attr7_name) ?><?php unset($attr7_size) ?><?php unset($attr7_maxlength) ?><?php $attr7 = array('field'=>'text') ?><?php $attr7_field='text' ?> +?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_colspan) ?><?php $attr7 = array('class'=>'text','type'=>'text','name'=>'text','size'=>'50','maxlength'=>'255') ?><?php $attr7_class='text' ?><?php $attr7_type='text' ?><?php $attr7_name='text' ?><?php $attr7_size='50' ?><?php $attr7_maxlength='255' ?><input id="id_<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" type="<?php echo $attr7_type ?>" size="<?php echo $attr7_size ?>" maxlength="<?php echo $attr7_maxlength ?>" class="<?php echo $attr7_class ?>" value="<?php echo isset($$attr7_name)?$$attr7_name:$attr7_default ?>" onxxxMouseOver="this.focus();" /><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_type) ?><?php unset($attr7_name) ?><?php unset($attr7_size) ?><?php unset($attr7_maxlength) ?><?php $attr7 = array('field'=>'text') ?><?php $attr7_field='text' ?> <script name="JavaScript" type="text/javascript"> <!-- document.forms[0].<?php echo $attr7_field ?>.focus(); @@ -2229,16 +2330,17 @@ document.forms[0].<?php echo $attr7_field ?>.select(); // Vergleich auf Vorhandensein elseif ( isset($attr4_present) ) { - if ( !isset($$attr4_present) ) - $exec = false; - elseif ( is_array($$attr4_present) ) - $exec = (count($$attr4_present)>0); - elseif ( is_bool($$attr4_present) ) - $exec = $$attr4_present; - elseif ( is_numeric($$attr4_present) ) - $exec = $$attr4_present>=0; - else - $exec = true; + $exec = isset($$attr4_present); +// if ( !isset($$attr4_present) ) +// $exec = false; +// elseif ( is_array($$attr4_present) ) +// $exec = (count($$attr4_present)>0); +// elseif ( is_bool($$attr4_present) ) +// $exec = $$attr4_present; +// elseif ( is_numeric($$attr4_present) ) +// $exec = $$attr4_present>=0; +// else +// $exec = true; } else @@ -2250,6 +2352,7 @@ document.forms[0].<?php echo $attr7_field ?>.select(); } // Ergebnis umdrehen + // TODO: Bald ausbauen, stattdessen "not" verwenden. if ( !empty($attr4_invert) ) $exec = !$exec; @@ -2272,320 +2375,422 @@ document.forms[0].<?php echo $attr7_field ?>.select(); if ( $exec ) { -?><?php unset($attr4) ?><?php unset($attr4_equals) ?><?php unset($attr4_value) ?><?php $attr5 = array('true'=>$html) ?><?php $attr5_true=$html ?><?php +?><?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('equals'=>'html','value'=>$editor) ?><?php $attr7_equals='html' ?><?php $attr7_value=$editor ?><?php // Wahr-Vergleich -// Html::debug($attr5); +// Html::debug($attr7); - if ( isset($attr5_true) ) + if ( isset($attr7_true) ) { - if (gettype($attr5_true) === '' && gettype($attr5_true) === '1') - $exec = $$attr5_true == true; + if (gettype($attr7_true) === '' && gettype($attr7_true) === '1') + $exec = $$attr7_true == true; else - $exec = $attr5_true == true; + $exec = $attr7_true == true; } // Falsch-Vergleich - elseif ( isset($attr5_false) ) + elseif ( isset($attr7_false) ) { - if (gettype($attr5_false) === '' && gettype($attr5_false) === '1') - $exec = $$attr5_false == false; + if (gettype($attr7_false) === '' && gettype($attr7_false) === '1') + $exec = $$attr7_false == false; else - $exec = $attr5_false == false; + $exec = $attr7_false == false; } // Inhalt-Vergleich mit Wertliste - elseif( isset($attr5_contains) ) - $exec = in_array($attr5_value,explode(',',$attr5_contains)); + elseif( isset($attr7_contains) ) + $exec = in_array($attr7_value,explode(',',$attr7_contains)); // Inhalt-Vergleich - elseif( isset($attr5_equals)&& isset($attr5_value) ) - $exec = $attr5_equals == $attr5_value; + elseif( isset($attr7_equals)&& isset($attr7_value) ) + $exec = $attr7_equals == $attr7_value; // Vergleich auf leer - elseif ( isset($attr5_empty) ) + elseif ( isset($attr7_empty) ) { - if ( !isset($$attr5_empty) ) - $exec = empty($attr5_empty); - elseif ( is_array($$attr5_empty) ) - $exec = (count($$attr5_empty)==0); - elseif ( is_bool($$attr5_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( $$attr5_empty ); + $exec = empty( $$attr7_empty ); } // Vergleich auf Vorhandensein - elseif ( isset($attr5_present) ) + elseif ( isset($attr7_present) ) { - if ( !isset($$attr5_present) ) - $exec = false; - elseif ( is_array($$attr5_present) ) - $exec = (count($$attr5_present)>0); - elseif ( is_bool($$attr5_present) ) - $exec = $$attr5_present; - elseif ( is_numeric($$attr5_present) ) - $exec = $$attr5_present>=0; - else - $exec = true; + $exec = isset($$attr7_present); +// if ( !isset($$attr7_present) ) +// $exec = false; +// elseif ( is_array($$attr7_present) ) +// $exec = (count($$attr7_present)>0); +// elseif ( is_bool($$attr7_present) ) +// $exec = $$attr7_present; +// elseif ( is_numeric($$attr7_present) ) +// $exec = $$attr7_present>=0; +// else +// $exec = true; } else { - Html::debug( $attr5 ); + Html::debug( $attr7 ); echo("error in IF line ".__LINE__); echo("assume: FALSE"); $exec = false; } // Ergebnis umdrehen - if ( !empty($attr5_invert) ) + // TODO: Bald ausbauen, stattdessen "not" verwenden. + if ( !empty($attr7_invert) ) $exec = !$exec; // Ergebnis umdrehen - if ( !empty($attr5_not) ) + if ( !empty($attr7_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); + 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($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 unset($attr7) ?><?php unset($attr7_equals) ?><?php unset($attr7_value) ?><?php $attr8 = array('name'=>'text','type'=>'html') ?><?php $attr8_name='text' ?><?php $attr8_type='html' ?><?php + +if ($attr8_type=='fckeditor' || $attr8_type=='html') +{ + include('./editor/fckeditor.php'); + $editor = new FCKeditor( $attr8_name ) ; + $editor->BasePath = './editor/'; + $editor->Value = $$attr8_name; + $editor->Height = '290'; + $editor->Config['CustomConfigurationsPath'] = '../openrat-fckconfig.js'; + $editor->Create(); +} +elseif ($attr8_type=='wiki') +{ + ?> +<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 + 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 + echo '<textarea name="'.$attr8_name.'" class="editor">'.$$attr8_name.'</textarea>'; +} +elseif ($attr8_type=='text' || $attr8_type=='raw') +{ + echo '<textarea name="'.$attr8_name.'" class="editor">'.$$attr8_name.'</textarea>'; +} +else +{ + echo "Unknown editor type: ".$attr8_type; +} ?> -<?php $attr4 = array() ?><?php +<?php unset($attr8) ?><?php unset($attr8_name) ?><?php unset($attr8_type) ?><?php $attr6 = array() ?><?php } -?><?php unset($attr4) ?><?php $attr5 = array('true'=>$wiki) ?><?php $attr5_true=$wiki ?><?php +?><?php unset($attr6) ?><?php $attr7 = array('equals'=>'wiki','value'=>$editor) ?><?php $attr7_equals='wiki' ?><?php $attr7_value=$editor ?><?php // Wahr-Vergleich -// Html::debug($attr5); +// Html::debug($attr7); - if ( isset($attr5_true) ) + if ( isset($attr7_true) ) { - if (gettype($attr5_true) === '' && gettype($attr5_true) === '1') - $exec = $$attr5_true == true; + if (gettype($attr7_true) === '' && gettype($attr7_true) === '1') + $exec = $$attr7_true == true; else - $exec = $attr5_true == true; + $exec = $attr7_true == true; } // Falsch-Vergleich - elseif ( isset($attr5_false) ) + elseif ( isset($attr7_false) ) { - if (gettype($attr5_false) === '' && gettype($attr5_false) === '1') - $exec = $$attr5_false == false; + if (gettype($attr7_false) === '' && gettype($attr7_false) === '1') + $exec = $$attr7_false == false; else - $exec = $attr5_false == false; + $exec = $attr7_false == false; } // Inhalt-Vergleich mit Wertliste - elseif( isset($attr5_contains) ) - $exec = in_array($attr5_value,explode(',',$attr5_contains)); + elseif( isset($attr7_contains) ) + $exec = in_array($attr7_value,explode(',',$attr7_contains)); // Inhalt-Vergleich - elseif( isset($attr5_equals)&& isset($attr5_value) ) - $exec = $attr5_equals == $attr5_value; + elseif( isset($attr7_equals)&& isset($attr7_value) ) + $exec = $attr7_equals == $attr7_value; // Vergleich auf leer - elseif ( isset($attr5_empty) ) + elseif ( isset($attr7_empty) ) { - if ( !isset($$attr5_empty) ) - $exec = empty($attr5_empty); - elseif ( is_array($$attr5_empty) ) - $exec = (count($$attr5_empty)==0); - elseif ( is_bool($$attr5_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( $$attr5_empty ); + $exec = empty( $$attr7_empty ); } // Vergleich auf Vorhandensein - elseif ( isset($attr5_present) ) + elseif ( isset($attr7_present) ) { - if ( !isset($$attr5_present) ) - $exec = false; - elseif ( is_array($$attr5_present) ) - $exec = (count($$attr5_present)>0); - elseif ( is_bool($$attr5_present) ) - $exec = $$attr5_present; - elseif ( is_numeric($$attr5_present) ) - $exec = $$attr5_present>=0; - else - $exec = true; + $exec = isset($$attr7_present); +// if ( !isset($$attr7_present) ) +// $exec = false; +// elseif ( is_array($$attr7_present) ) +// $exec = (count($$attr7_present)>0); +// elseif ( is_bool($$attr7_present) ) +// $exec = $$attr7_present; +// elseif ( is_numeric($$attr7_present) ) +// $exec = $$attr7_present>=0; +// else +// $exec = true; } else { - Html::debug( $attr5 ); + Html::debug( $attr7 ); echo("error in IF line ".__LINE__); echo("assume: FALSE"); $exec = false; } // Ergebnis umdrehen - if ( !empty($attr5_invert) ) + // TODO: Bald ausbauen, stattdessen "not" verwenden. + if ( !empty($attr7_invert) ) $exec = !$exec; // Ergebnis umdrehen - if ( !empty($attr5_not) ) + if ( !empty($attr7_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); + 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($attr5) ?><?php unset($attr5_true) ?><?php $attr6 = array('present'=>'preview_text') ?><?php $attr6_present='preview_text' ?><?php +?><?php unset($attr7) ?><?php unset($attr7_equals) ?><?php unset($attr7_value) ?><?php $attr8 = array('present'=>'preview_text') ?><?php $attr8_present='preview_text' ?><?php // Wahr-Vergleich -// Html::debug($attr6); +// Html::debug($attr8); - if ( isset($attr6_true) ) + if ( isset($attr8_true) ) { - if (gettype($attr6_true) === '' && gettype($attr6_true) === '1') - $exec = $$attr6_true == true; + if (gettype($attr8_true) === '' && gettype($attr8_true) === '1') + $exec = $$attr8_true == true; else - $exec = $attr6_true == true; + $exec = $attr8_true == true; } // Falsch-Vergleich - elseif ( isset($attr6_false) ) + elseif ( isset($attr8_false) ) { - if (gettype($attr6_false) === '' && gettype($attr6_false) === '1') - $exec = $$attr6_false == false; + if (gettype($attr8_false) === '' && gettype($attr8_false) === '1') + $exec = $$attr8_false == false; else - $exec = $attr6_false == false; + $exec = $attr8_false == false; } // Inhalt-Vergleich mit Wertliste - elseif( isset($attr6_contains) ) - $exec = in_array($attr6_value,explode(',',$attr6_contains)); + elseif( isset($attr8_contains) ) + $exec = in_array($attr8_value,explode(',',$attr8_contains)); // Inhalt-Vergleich - elseif( isset($attr6_equals)&& isset($attr6_value) ) - $exec = $attr6_equals == $attr6_value; + elseif( isset($attr8_equals)&& isset($attr8_value) ) + $exec = $attr8_equals == $attr8_value; // Vergleich auf leer - elseif ( isset($attr6_empty) ) + elseif ( isset($attr8_empty) ) { - if ( !isset($$attr6_empty) ) - $exec = empty($attr6_empty); - elseif ( is_array($$attr6_empty) ) - $exec = (count($$attr6_empty)==0); - elseif ( is_bool($$attr6_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( $$attr6_empty ); + $exec = empty( $$attr8_empty ); } // Vergleich auf Vorhandensein - elseif ( isset($attr6_present) ) + elseif ( isset($attr8_present) ) { - if ( !isset($$attr6_present) ) - $exec = false; - elseif ( is_array($$attr6_present) ) - $exec = (count($$attr6_present)>0); - elseif ( is_bool($$attr6_present) ) - $exec = $$attr6_present; - elseif ( is_numeric($$attr6_present) ) - $exec = $$attr6_present>=0; - else - $exec = true; + $exec = isset($$attr8_present); +// if ( !isset($$attr8_present) ) +// $exec = false; +// elseif ( is_array($$attr8_present) ) +// $exec = (count($$attr8_present)>0); +// elseif ( is_bool($$attr8_present) ) +// $exec = $$attr8_present; +// elseif ( is_numeric($$attr8_present) ) +// $exec = $$attr8_present>=0; +// else +// $exec = true; } else { - Html::debug( $attr6 ); + Html::debug( $attr8 ); echo("error in IF line ".__LINE__); echo("assume: FALSE"); $exec = false; } // Ergebnis umdrehen - if ( !empty($attr6_invert) ) + // TODO: Bald ausbauen, stattdessen "not" verwenden. + if ( !empty($attr8_invert) ) $exec = !$exec; // Ergebnis umdrehen - if ( !empty($attr6_not) ) + if ( !empty($attr8_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); + 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($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]; +?><?php unset($attr8) ?><?php unset($attr8_present) ?><?php $attr9 = array('class'=>'text','var'=>'preview_text') ?><?php $attr9_class='text' ?><?php $attr9_var='preview_text' ?><?php + if ( isset($attr9_prefix)&& isset($attr9_key)) + $attr9_key = $attr9_prefix.$attr9_key; + if ( isset($attr9_suffix)&& isset($attr9_key)) + $attr9_key = $attr9_key.$attr9_suffix; -?><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'; + $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: @@ -2621,50 +2826,212 @@ $editor->Create(); $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 +?></span><?php unset($attr9) ?><?php unset($attr9_class) ?><?php unset($attr9_var) ?><?php $attr9 = array() ?><br/><?php unset($attr9) ?><?php $attr7 = 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]; +?><?php unset($attr7) ?><?php $attr8 = array('name'=>'text','type'=>'wiki') ?><?php $attr8_name='text' ?><?php $attr8_type='wiki' ?><?php - if (empty($attr6_class)) - $attr6_class=$row_class; - - global $cell_column_nr; - $cell_column_nr=0; +if ($attr8_type=='fckeditor' || $attr8_type=='html') +{ + include('./editor/fckeditor.php'); + $editor = new FCKeditor( $attr8_name ) ; + $editor->BasePath = './editor/'; + $editor->Value = $$attr8_name; + $editor->Height = '290'; + $editor->Config['CustomConfigurationsPath'] = '../openrat-fckconfig.js'; + $editor->Create(); +} +elseif ($attr8_type=='wiki') +{ + ?> +<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 + 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 + echo '<textarea name="'.$attr8_name.'" class="editor">'.$$attr8_name.'</textarea>'; +} +elseif ($attr8_type=='text' || $attr8_type=='raw') +{ + echo '<textarea name="'.$attr8_name.'" class="editor">'.$$attr8_name.'</textarea>'; +} +else +{ + echo "Unknown editor type: ".$attr8_type; +} +?> +<?php unset($attr8) ?><?php unset($attr8_name) ?><?php unset($attr8_type) ?><?php $attr6 = array() ?><?php + } - $column_class_idx = 999; +?><?php unset($attr6) ?><?php $attr7 = array('equals'=>'text','value'=>$editor) ?><?php $attr7_equals='text' ?><?php $attr7_value=$editor ?><?php -?><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; + // Wahr-Vergleich +// Html::debug($attr7); - 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' ?> + if ( isset($attr7_true) ) + { + if (gettype($attr7_true) === '' && gettype($attr7_true) === '1') + $exec = $$attr7_true == true; + else + $exec = $attr7_true == true; + } + + // Falsch-Vergleich + 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( isset($attr7_contains) ) + $exec = in_array($attr7_value,explode(',',$attr7_contains)); + + // Inhalt-Vergleich + elseif( isset($attr7_equals)&& isset($attr7_value) ) + $exec = $attr7_equals == $attr7_value; + + // Vergleich auf leer + elseif ( isset($attr7_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( $$attr7_empty ); + } + + // Vergleich auf Vorhandensein + elseif ( isset($attr7_present) ) + { + $exec = isset($$attr7_present); +// if ( !isset($$attr7_present) ) +// $exec = false; +// elseif ( is_array($$attr7_present) ) +// $exec = (count($$attr7_present)>0); +// elseif ( is_bool($$attr7_present) ) +// $exec = $$attr7_present; +// elseif ( is_numeric($$attr7_present) ) +// $exec = $$attr7_present>=0; +// else +// $exec = true; + } + + else + { + Html::debug( $attr7 ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; + } + + // Ergebnis umdrehen + // TODO: Bald ausbauen, stattdessen "not" verwenden. + 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($attr7) ?><?php unset($attr7_equals) ?><?php unset($attr7_value) ?><?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($attr8) ?><?php unset($attr8_field) ?><?php $attr6 = array() ?><?php } -?><?php unset($attr4) ?><?php $attr3 = 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($attr3) ?><?php $attr4 = array('equals'=>'link','value'=>$type) ?><?php $attr4_equals='link' ?><?php $attr4_value=$type ?><?php @@ -2712,16 +3079,17 @@ document.forms[0].<?php echo $attr8_field ?>.select(); // Vergleich auf Vorhandensein elseif ( isset($attr4_present) ) { - if ( !isset($$attr4_present) ) - $exec = false; - elseif ( is_array($$attr4_present) ) - $exec = (count($$attr4_present)>0); - elseif ( is_bool($$attr4_present) ) - $exec = $$attr4_present; - elseif ( is_numeric($$attr4_present) ) - $exec = $$attr4_present>=0; - else - $exec = true; + $exec = isset($$attr4_present); +// if ( !isset($$attr4_present) ) +// $exec = false; +// elseif ( is_array($$attr4_present) ) +// $exec = (count($$attr4_present)>0); +// elseif ( is_bool($$attr4_present) ) +// $exec = $$attr4_present; +// elseif ( is_numeric($$attr4_present) ) +// $exec = $$attr4_present>=0; +// else +// $exec = true; } else @@ -2733,6 +3101,7 @@ document.forms[0].<?php echo $attr8_field ?>.select(); } // Ergebnis umdrehen + // TODO: Bald ausbauen, stattdessen "not" verwenden. if ( !empty($attr4_invert) ) $exec = !$exec; @@ -2784,7 +3153,7 @@ document.forms[0].<?php echo $attr8_field ?>.select(); if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) ) $attr6['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_colspan) ?><?php $attr7 = array('list'=>'objects','name'=>'linkobjectid') ?><?php $attr7_list='objects' ?><?php $attr7_name='linkobjectid' ?><select size="1" id="id<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" onchange="<?php echo $attr7_onchange ?>" title="<?php echo $attr7_title ?>" class="<?php echo $attr7_class ?>"<?php +?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_colspan) ?><?php $attr7 = array('list'=>'objects','name'=>'linkobjectid') ?><?php $attr7_list='objects' ?><?php $attr7_name='linkobjectid' ?><select size="1" id="id_<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" onchange="<?php echo $attr7_onchange ?>" title="<?php echo $attr7_title ?>" class="<?php echo $attr7_class ?>"<?php if (count($$attr7_list)==1) echo ' disabled="disabled"' ?>><?php foreach( $$attr7_list as $box_key=>$box_value ) @@ -2851,16 +3220,17 @@ document.forms[0].<?php echo $attr7_field ?>.select(); // Vergleich auf Vorhandensein elseif ( isset($attr4_present) ) { - if ( !isset($$attr4_present) ) - $exec = false; - elseif ( is_array($$attr4_present) ) - $exec = (count($$attr4_present)>0); - elseif ( is_bool($$attr4_present) ) - $exec = $$attr4_present; - elseif ( is_numeric($$attr4_present) ) - $exec = $$attr4_present>=0; - else - $exec = true; + $exec = isset($$attr4_present); +// if ( !isset($$attr4_present) ) +// $exec = false; +// elseif ( is_array($$attr4_present) ) +// $exec = (count($$attr4_present)>0); +// elseif ( is_bool($$attr4_present) ) +// $exec = $$attr4_present; +// elseif ( is_numeric($$attr4_present) ) +// $exec = $$attr4_present>=0; +// else +// $exec = true; } else @@ -2872,6 +3242,7 @@ document.forms[0].<?php echo $attr7_field ?>.select(); } // Ergebnis umdrehen + // TODO: Bald ausbauen, stattdessen "not" verwenden. if ( !empty($attr4_invert) ) $exec = !$exec; @@ -2923,7 +3294,7 @@ document.forms[0].<?php echo $attr7_field ?>.select(); if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) ) $attr6['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_colspan) ?><?php $attr7 = array('list'=>'objects','name'=>'linkobjectid') ?><?php $attr7_list='objects' ?><?php $attr7_name='linkobjectid' ?><select size="1" id="id<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" onchange="<?php echo $attr7_onchange ?>" title="<?php echo $attr7_title ?>" class="<?php echo $attr7_class ?>"<?php +?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_colspan) ?><?php $attr7 = array('list'=>'objects','name'=>'linkobjectid') ?><?php $attr7_list='objects' ?><?php $attr7_name='linkobjectid' ?><select size="1" id="id_<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" onchange="<?php echo $attr7_onchange ?>" title="<?php echo $attr7_title ?>" class="<?php echo $attr7_class ?>"<?php if (count($$attr7_list)==1) echo ' disabled="disabled"' ?>><?php foreach( $$attr7_list as $box_key=>$box_value ) @@ -2990,16 +3361,17 @@ document.forms[0].<?php echo $attr7_field ?>.select(); // Vergleich auf Vorhandensein elseif ( isset($attr4_present) ) { - if ( !isset($$attr4_present) ) - $exec = false; - elseif ( is_array($$attr4_present) ) - $exec = (count($$attr4_present)>0); - elseif ( is_bool($$attr4_present) ) - $exec = $$attr4_present; - elseif ( is_numeric($$attr4_present) ) - $exec = $$attr4_present>=0; - else - $exec = true; + $exec = isset($$attr4_present); +// if ( !isset($$attr4_present) ) +// $exec = false; +// elseif ( is_array($$attr4_present) ) +// $exec = (count($$attr4_present)>0); +// elseif ( is_bool($$attr4_present) ) +// $exec = $$attr4_present; +// elseif ( is_numeric($$attr4_present) ) +// $exec = $$attr4_present>=0; +// else +// $exec = true; } else @@ -3011,6 +3383,7 @@ document.forms[0].<?php echo $attr7_field ?>.select(); } // Ergebnis umdrehen + // TODO: Bald ausbauen, stattdessen "not" verwenden. if ( !empty($attr4_invert) ) $exec = !$exec; @@ -3062,7 +3435,7 @@ document.forms[0].<?php echo $attr7_field ?>.select(); if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) ) $attr6['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_colspan) ?><?php $attr7 = array('name'=>'decimals','default'=>'decimals') ?><?php $attr7_name='decimals' ?><?php $attr7_default='decimals' ?><input type="hidden" name="<?php echo $attr7_name ?>" value="<?php echo isset($$attr7_name)?$$attr7_name:$attr7_default ?>" /><?php unset($attr7) ?><?php unset($attr7_name) ?><?php unset($attr7_default) ?><?php $attr7 = array('type'=>'text','name'=>'number','size'=>'15','maxlength'=>'20') ?><?php $attr7_type='text' ?><?php $attr7_name='number' ?><?php $attr7_size='15' ?><?php $attr7_maxlength='20' ?><input id="id<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" type="<?php echo $attr7_type ?>" size="<?php echo $attr7_size ?>" maxlength="<?php echo $attr7_maxlength ?>" class="<?php echo $attr7_class ?>" value="<?php echo isset($$attr7_name)?$$attr7_name:$attr7_default ?>" onxxxMouseOver="this.focus();" /><?php unset($attr7) ?><?php unset($attr7_type) ?><?php unset($attr7_name) ?><?php unset($attr7_size) ?><?php unset($attr7_maxlength) ?><?php $attr7 = array('field'=>'number') ?><?php $attr7_field='number' ?> +?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_colspan) ?><?php $attr7 = array('name'=>'decimals','default'=>'decimals') ?><?php $attr7_name='decimals' ?><?php $attr7_default='decimals' ?><input type="hidden" name="<?php echo $attr7_name ?>" value="<?php echo isset($$attr7_name)?$$attr7_name:$attr7_default ?>" /><?php unset($attr7) ?><?php unset($attr7_name) ?><?php unset($attr7_default) ?><?php $attr7 = array('type'=>'text','name'=>'number','size'=>'15','maxlength'=>'20') ?><?php $attr7_type='text' ?><?php $attr7_name='number' ?><?php $attr7_size='15' ?><?php $attr7_maxlength='20' ?><input id="id_<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" type="<?php echo $attr7_type ?>" size="<?php echo $attr7_size ?>" maxlength="<?php echo $attr7_maxlength ?>" class="<?php echo $attr7_class ?>" value="<?php echo isset($$attr7_name)?$$attr7_name:$attr7_default ?>" onxxxMouseOver="this.focus();" /><?php unset($attr7) ?><?php unset($attr7_type) ?><?php unset($attr7_name) ?><?php unset($attr7_size) ?><?php unset($attr7_maxlength) ?><?php $attr7 = array('field'=>'number') ?><?php $attr7_field='number' ?> <script name="JavaScript" type="text/javascript"> <!-- document.forms[0].<?php echo $attr7_field ?>.focus(); @@ -3117,16 +3490,17 @@ document.forms[0].<?php echo $attr7_field ?>.select(); // Vergleich auf Vorhandensein elseif ( isset($attr4_present) ) { - if ( !isset($$attr4_present) ) - $exec = false; - elseif ( is_array($$attr4_present) ) - $exec = (count($$attr4_present)>0); - elseif ( is_bool($$attr4_present) ) - $exec = $$attr4_present; - elseif ( is_numeric($$attr4_present) ) - $exec = $$attr4_present>=0; - else - $exec = true; + $exec = isset($$attr4_present); +// if ( !isset($$attr4_present) ) +// $exec = false; +// elseif ( is_array($$attr4_present) ) +// $exec = (count($$attr4_present)>0); +// elseif ( is_bool($$attr4_present) ) +// $exec = $$attr4_present; +// elseif ( is_numeric($$attr4_present) ) +// $exec = $$attr4_present>=0; +// else +// $exec = true; } else @@ -3138,6 +3512,7 @@ document.forms[0].<?php echo $attr7_field ?>.select(); } // Ergebnis umdrehen + // TODO: Bald ausbauen, stattdessen "not" verwenden. if ( !empty($attr4_invert) ) $exec = !$exec; @@ -3189,7 +3564,7 @@ document.forms[0].<?php echo $attr7_field ?>.select(); if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr6_rowspan) ) $attr6['width']=$column_widths[$cell_column_nr-1]; -?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_colspan) ?><?php $attr7 = array('list'=>'items','name'=>'text') ?><?php $attr7_list='items' ?><?php $attr7_name='text' ?><select size="1" id="id<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" onchange="<?php echo $attr7_onchange ?>" title="<?php echo $attr7_title ?>" class="<?php echo $attr7_class ?>"<?php +?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_colspan) ?><?php $attr7 = array('list'=>'items','name'=>'text') ?><?php $attr7_list='items' ?><?php $attr7_name='text' ?><select size="1" id="id_<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" onchange="<?php echo $attr7_onchange ?>" title="<?php echo $attr7_title ?>" class="<?php echo $attr7_class ?>"<?php if (count($$attr7_list)==1) echo ' disabled="disabled"' ?>><?php foreach( $$attr7_list as $box_key=>$box_value ) @@ -3256,16 +3631,17 @@ document.forms[0].<?php echo $attr7_field ?>.select(); // Vergleich auf Vorhandensein elseif ( isset($attr4_present) ) { - if ( !isset($$attr4_present) ) - $exec = false; - elseif ( is_array($$attr4_present) ) - $exec = (count($$attr4_present)>0); - elseif ( is_bool($$attr4_present) ) - $exec = $$attr4_present; - elseif ( is_numeric($$attr4_present) ) - $exec = $$attr4_present>=0; - else - $exec = true; + $exec = isset($$attr4_present); +// if ( !isset($$attr4_present) ) +// $exec = false; +// elseif ( is_array($$attr4_present) ) +// $exec = (count($$attr4_present)>0); +// elseif ( is_bool($$attr4_present) ) +// $exec = $$attr4_present; +// elseif ( is_numeric($$attr4_present) ) +// $exec = $$attr4_present>=0; +// else +// $exec = true; } else @@ -3277,6 +3653,7 @@ document.forms[0].<?php echo $attr7_field ?>.select(); } // Ergebnis umdrehen + // TODO: Bald ausbauen, stattdessen "not" verwenden. if ( !empty($attr4_invert) ) $exec = !$exec; @@ -3336,15 +3713,21 @@ document.forms[0].<?php echo $attr7_field ?>.select(); // $checked = isset($$$attr7_name)&& $$$attr7_name==true; else $checked = $attr7_default == true; -?><input type="checkbox" name="<?php echo $attr7_name ?>" <?php if ($attr7_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php unset($attr7_name); unset($attr7_readonly); unset($attr7_default); ?><?php unset($attr7) ?><?php unset($attr7_default) ?><?php unset($attr7_readonly) ?><?php unset($attr7_name) ?><?php $attr7 = array('class'=>'text','raw'=>'_') ?><?php $attr7_class='text' ?><?php $attr7_raw='_' ?><?php +?><input type="checkbox" id="id_<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" <?php if ($attr7_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php unset($attr7_name); unset($attr7_readonly); unset($attr7_default); ?><?php unset($attr7) ?><?php unset($attr7_default) ?><?php unset($attr7_readonly) ?><?php unset($attr7_name) ?><?php $attr7 = array('class'=>'text','raw'=>'_') ?><?php $attr7_class='text' ?><?php $attr7_raw='_' ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + if(empty($attr7_title)) if (!empty($attr7_key)) - $attr7_title = lang($attr7_key).'_HELP'; + $attr7_title = lang($attr7_key.'_HELP'); else $attr7_title = ''; ?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php $attr7_title = ''; + if (!empty($attr7_array)) { //geht nicht: @@ -3381,14 +3764,20 @@ document.forms[0].<?php echo $attr7_field ?>.select(); echo $tmp_text; ?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_raw) ?><?php $attr7 = array('class'=>'text','text'=>'GLOBAL_RELEASE') ?><?php $attr7_class='text' ?><?php $attr7_text='GLOBAL_RELEASE' ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + if(empty($attr7_title)) if (!empty($attr7_key)) - $attr7_title = lang($attr7_key).'_HELP'; + $attr7_title = lang($attr7_key.'_HELP'); else $attr7_title = ''; ?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php $attr7_title = ''; + if (!empty($attr7_array)) { //geht nicht: @@ -3472,16 +3861,17 @@ document.forms[0].<?php echo $attr7_field ?>.select(); // Vergleich auf Vorhandensein elseif ( isset($attr4_present) ) { - if ( !isset($$attr4_present) ) - $exec = false; - elseif ( is_array($$attr4_present) ) - $exec = (count($$attr4_present)>0); - elseif ( is_bool($$attr4_present) ) - $exec = $$attr4_present; - elseif ( is_numeric($$attr4_present) ) - $exec = $$attr4_present>=0; - else - $exec = true; + $exec = isset($$attr4_present); +// if ( !isset($$attr4_present) ) +// $exec = false; +// elseif ( is_array($$attr4_present) ) +// $exec = (count($$attr4_present)>0); +// elseif ( is_bool($$attr4_present) ) +// $exec = $$attr4_present; +// elseif ( is_numeric($$attr4_present) ) +// $exec = $$attr4_present>=0; +// else +// $exec = true; } else @@ -3493,6 +3883,7 @@ document.forms[0].<?php echo $attr7_field ?>.select(); } // Ergebnis umdrehen + // TODO: Bald ausbauen, stattdessen "not" verwenden. if ( !empty($attr4_invert) ) $exec = !$exec; @@ -3552,15 +3943,21 @@ document.forms[0].<?php echo $attr7_field ?>.select(); // $checked = isset($$$attr7_name)&& $$$attr7_name==true; else $checked = $attr7_default == true; -?><input type="checkbox" name="<?php echo $attr7_name ?>" <?php if ($attr7_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php unset($attr7_name); unset($attr7_readonly); unset($attr7_default); ?><?php unset($attr7) ?><?php unset($attr7_default) ?><?php unset($attr7_readonly) ?><?php unset($attr7_name) ?><?php $attr7 = array('class'=>'text','raw'=>'_') ?><?php $attr7_class='text' ?><?php $attr7_raw='_' ?><?php +?><input type="checkbox" id="id_<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" <?php if ($attr7_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php unset($attr7_name); unset($attr7_readonly); unset($attr7_default); ?><?php unset($attr7) ?><?php unset($attr7_default) ?><?php unset($attr7_readonly) ?><?php unset($attr7_name) ?><?php $attr7 = array('class'=>'text','raw'=>'_') ?><?php $attr7_class='text' ?><?php $attr7_raw='_' ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + if(empty($attr7_title)) if (!empty($attr7_key)) - $attr7_title = lang($attr7_key).'_HELP'; + $attr7_title = lang($attr7_key.'_HELP'); else $attr7_title = ''; ?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php $attr7_title = ''; + if (!empty($attr7_array)) { //geht nicht: @@ -3597,14 +3994,20 @@ document.forms[0].<?php echo $attr7_field ?>.select(); echo $tmp_text; ?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_raw) ?><?php $attr7 = array('class'=>'text','text'=>'PAGE_PUBLISH_AFTER_SAVE') ?><?php $attr7_class='text' ?><?php $attr7_text='PAGE_PUBLISH_AFTER_SAVE' ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + if(empty($attr7_title)) if (!empty($attr7_key)) - $attr7_title = lang($attr7_key).'_HELP'; + $attr7_title = lang($attr7_key.'_HELP'); else $attr7_title = ''; ?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php $attr7_title = ''; + if (!empty($attr7_array)) { //geht nicht: diff --git a/themes/default/pages/html/pageelement/edit.tpl.php b/themes/default/pages/html/pageelement/edit.tpl.php @@ -1,7 +1,6 @@ <?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') ?>" /> diff --git a/themes/default/pages/html/profile/confirmmail.tpl.php b/themes/default/pages/html/profile/confirmmail.tpl.php @@ -0,0 +1,312 @@ +<?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> +<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('title'=>'GLOBAL_password','name'=>'login','icon'=>'user','widths'=>'50%,50%','width'=>'400','rowclasses'=>'fx1,fx2','columnclasses'=>'x,y') ?><?php $attr3_title='GLOBAL_password' ?><?php $attr3_name='login' ?><?php $attr3_icon='user' ?><?php $attr3_widths='50%,50%' ?><?php $attr3_width='400' ?><?php $attr3_rowclasses='fx1,fx2' ?><?php $attr3_columnclasses='x,y' ?><?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_title) ?><?php unset($attr3_name) ?><?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 class="<?php echo $attr4_class ?>"><?php unset($attr4) ?><?php $attr5 = array('class'=>'logo','colspan'=>'2') ?><?php $attr5_class='logo' ?><?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('name'=>'changemail') ?><?php $attr6_name='changemail' ?><img src="<?php echo $image_dir.'logo_'.$attr6_name.IMG_ICON_EXT ?>" border="0" align="left"><h2 class="logo"><?php echo lang('logo_'.$attr6_name) ?></h2><p class="logo"><?php echo lang('logo_'.$attr6_name.'_text') ?></p><?php unset($attr6) ?><?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 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($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; + +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6 = array('class'=>'text','text'=>'password_code') ?><?php $attr6_class='text' ?><?php $attr6_text='password_code' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key.'_HELP'); + else + $attr6_title = ''; + +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; + + if (!empty($attr6_array)) + { + //geht nicht: + //echo $$attr6_array[$attr6_var].'%'; + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; + else + $tmp_text = lang($tmpArray[$attr6_text]); + } + elseif (!empty($attr6_text)) + if ( isset($$attr6_text)) + $tmp_text = lang($$attr6_text); + else + $tmp_text = lang($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = lang($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = lang($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; + else + { + $tmp_text = '&nbsp;'; + //Html::debug($attr6);echo 'text error'; + } + + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); + + echo $tmp_text; +?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_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($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'=>'code','size'=>'30','maxlength'=>'256') ?><?php $attr6_type='text' ?><?php $attr6_name='code' ?><?php $attr6_size='30' ?><?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; + + 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'=>'code') ?><?php $attr2_field='code' ?> +<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/profile/edit.tpl.php b/themes/default/pages/html/profile/edit.tpl.php @@ -1,62 +1,68 @@ -<?php $attr = array('class'=>'main','title'=>'var') ?><?php $attr_class='main' ?><?php $attr_title='var' ?><?php header('Content-Type: text/html; charset='.lang('CHARSET')) +<?php $attr1 = array('class'=>'main','title'=>$cms_title) ?><?php $attr1_class='main' ?><?php $attr1_title=$cms_title ?><?php header('Content-Type: text/html; charset='.lang('CHARSET')) ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> -<!-- $Id$ --> <head> - <title><?php echo $attr_title ?></title> + <title><?php echo $attr1_title ?></title> <meta http-equiv="content-type" content="text/html; charset=<?php echo lang('CHARSET') ?>" /> <meta name="MSSmartTagsPreventParsing" content="true" /> <meta name="robots" content="noindex,nofollow" /> +<?php if (is_array($windowMenu)) foreach( $windowMenu as $menu ) + { + ?> + <link rel="section" href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text']) ?>" /> +<?php + } +?> <link rel="stylesheet" type="text/css" href="./themes/default/css/default.css" /> <?php if($stylesheet!='default') { ?> <link rel="stylesheet" type="text/css" href="<?php echo $stylesheet ?>" /> <?php } ?> </head> -<body class="<?php echo $attr_class ?>"> +<body class="<?php echo $attr1_class ?>"> -<?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_title) ?><?php $attr = array('name'=>'','target'=>'_self','method'=>'post','enctype'=>'application/x-www-form-urlencoded') ?><?php $attr_name='' ?><?php $attr_target='_self' ?><?php $attr_method='post' ?><?php $attr_enctype='application/x-www-form-urlencoded' ?><?php - if (empty($attr_action)) - $attr_action = $actionName; - if (empty($attr_subaction)) - $attr_subaction = $targetSubActionName; - if (empty($attr_id)) - $attr_id = $this->getRequestId(); +<?php unset($attr1) ?><?php unset($attr1_class) ?><?php unset($attr1_title) ?><?php $attr2 = array('target'=>'_self','method'=>'post','enctype'=>'application/x-www-form-urlencoded') ?><?php $attr2_target='_self' ?><?php $attr2_method='post' ?><?php $attr2_enctype='application/x-www-form-urlencoded' ?><?php + if (empty($attr2_action)) + $attr2_action = $actionName; + if (empty($attr2_subaction)) + $attr2_subaction = $targetSubActionName; + if (empty($attr2_id)) + $attr2_id = $this->getRequestId(); -?><form name="<?php echo $attr_name ?>" - target="<?php echo $attr_target ?>" - action="<?php echo Html::url( $attr_action,$attr_subaction,$attr_id ) ?>" - method="<?php echo $attr_method ?>" - enctype="<?php echo $attr_enctype ?>"> -<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $attr_action ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $attr_subaction ?>" /> -<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr_id ?>" /><?php +?><form name="<?php echo $attr2_name ?>" + target="<?php echo $attr2_target ?>" + action="<?php echo Html::url( $attr2_action,$attr2_subaction,$attr2_id ) ?>" + method="<?php echo $attr2_method ?>" + enctype="<?php echo $attr2_enctype ?>"> +<input type="hidden" name="<?php echo REQ_PARAM_ACTION ?>" value="<?php echo $attr2_action ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_SUBACTION ?>" value="<?php echo $attr2_subaction ?>" /> +<input type="hidden" name="<?php echo REQ_PARAM_ID ?>" value="<?php echo $attr2_id ?>" /><?php if ( $conf['interface']['url_sessionid'] ) echo '<input type="hidden" name="'.session_name().'" value="'.session_id().'" />'."\n"; -?><?php unset($attr) ?><?php unset($attr_name) ?><?php unset($attr_target) ?><?php unset($attr_method) ?><?php unset($attr_enctype) ?><?php $attr = array('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 +?><?php unset($attr2) ?><?php unset($attr2_target) ?><?php unset($attr2_method) ?><?php unset($attr2_enctype) ?><?php $attr3 = array('name'=>'user_profile','icon'=>'user','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr3_name='user_profile' ?><?php $attr3_icon='user' ?><?php $attr3_width='93%' ?><?php $attr3_rowclasses='odd,even' ?><?php $attr3_columnclasses='1,2,3' ?><?php $coloumn_widths=array(); - if (!empty($attr_widths)) + if (!empty($attr3_widths)) { - $column_widths = explode(',',$attr_widths); - unset($attr['widths']); + $column_widths = explode(',',$attr3_widths); + unset($attr3['widths']); } - if (!empty($attr_rowclasses)) + if (!empty($attr3_rowclasses)) { - $row_classes = explode(',',$attr_rowclasses); + $row_classes = explode(',',$attr3_rowclasses); $row_class_idx = 999; - unset($attr['rowclasses']); + unset($attr3['rowclasses']); } - if (!empty($attr_columnclasses)) + if (!empty($attr3_columnclasses)) { - $column_classes = explode(',',$attr_columnclasses); - unset($attr['columnclasses']); + $column_classes = explode(',',$attr3_columnclasses); + unset($attr3['columnclasses']); } global $image_dir; echo '<br/><br/><br/><center>'; - echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_width.'">'; + echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr3_width.'">'; echo '<tr><td class="menu">'; - if ( !empty($attr_icon) ) - echo '<img src="'.$image_dir.'icon_'.$attr_icon.IMG_ICON_EXT.'" align="left" border="0">'; + if ( !empty($attr3_icon) ) + echo '<img src="'.$image_dir.'icon_'.$attr3_icon.IMG_ICON_EXT.'" align="left" border="0">'; if ( !is_array($path) ) $path = array(); foreach( $path as $pathElement) @@ -109,614 +115,576 @@ <tr> <td> - <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 + <table class="n" cellspacing="0" width="100%" cellpadding="4"><?php unset($attr3) ?><?php unset($attr3_name) ?><?php unset($attr3_icon) ?><?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() ?><?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]; - -?><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: - //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; - else - { Html::debug($attr);echo 'text error'; - } - - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; - 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; - $column_class_idx++; - if ($column_class_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( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6 = array('class'=>'text','text'=>'user_username') ?><?php $attr6_class='text' ?><?php $attr6_text='user_username' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('class'=>'text','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'; + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key.'_HELP'); else - $attr_title = ''; + $attr6_title = ''; + +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) + if (!empty($attr6_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr6_array[$attr6_var].'%'; + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr6_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr6_text)) + if ( isset($$attr6_text)) + $tmp_text = lang($$attr6_text); else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + $tmp_text = lang($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = lang($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = lang($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr6);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_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 class="<?php echo $attr_class ?>"><?php unset($attr) ?><?php $attr = array() ?><?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('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( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('class'=>'text','var'=>'name') ?><?php $attr6_class='text' ?><?php $attr6_var='name' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php $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'; + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key.'_HELP'); else - $attr_title = ''; + $attr6_title = ''; + +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) + if (!empty($attr6_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr6_array[$attr6_var].'%'; + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr6_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr6_text)) + if ( isset($$attr6_text)) + $tmp_text = lang($$attr6_text); else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + $tmp_text = lang($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = lang($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = lang($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr6);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('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_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 +?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_var) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4 = array() ?><?php $row_class_idx++; if ($row_class_idx > count($row_classes)) $row_class_idx=1; $row_class=$row_classes[$row_class_idx-1]; - if (empty($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() ?><?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 $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'; +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6 = array('class'=>'text','text'=>'user_fullname') ?><?php $attr6_class='text' ?><?php $attr6_text='user_fullname' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key.'_HELP'); else - $attr_title = ''; + $attr6_title = ''; + +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) + if (!empty($attr6_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr6_array[$attr6_var].'%'; + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr6_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr6_text)) + if ( isset($$attr6_text)) + $tmp_text = lang($$attr6_text); else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + $tmp_text = lang($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = lang($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = lang($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr6);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?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('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'=>'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 +?><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'=>'fullname','size'=>'40','maxlength'=>'128') ?><?php $attr6_type='text' ?><?php $attr6_name='fullname' ?><?php $attr6_size='40' ?><?php $attr6_maxlength='128' ?><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() ?><?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( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6 = array('class'=>'text','text'=>'user_tel') ?><?php $attr6_class='text' ?><?php $attr6_text='user_tel' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php $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'; + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key.'_HELP'); else - $attr_title = ''; + $attr6_title = ''; + +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) + if (!empty($attr6_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr6_array[$attr6_var].'%'; + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr6_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr6_text)) + if ( isset($$attr6_text)) + $tmp_text = lang($$attr6_text); else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + $tmp_text = lang($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = lang($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = lang($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr6);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?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('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'=>'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 +?><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'=>'tel','size'=>'40','maxlength'=>'128') ?><?php $attr6_type='text' ?><?php $attr6_name='tel' ?><?php $attr6_size='40' ?><?php $attr6_maxlength='128' ?><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() ?><?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( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6 = array('class'=>'text','text'=>'user_desc') ?><?php $attr6_class='text' ?><?php $attr6_text='user_desc' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; -?><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'; + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key.'_HELP'); else - $attr_title = ''; + $attr6_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; + + if (!empty($attr6_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr6_array[$attr6_var].'%'; + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr6_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr6_text)) + if ( isset($$attr6_text)) + $tmp_text = lang($$attr6_text); else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + $tmp_text = lang($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = lang($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = lang($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr6);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?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('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'=>'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 +?><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'=>'desc','size'=>'40','maxlength'=>'128') ?><?php $attr6_type='text' ?><?php $attr6_name='desc' ?><?php $attr6_size='40' ?><?php $attr6_maxlength='128' ?><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() ?><?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 $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'; +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6 = array('class'=>'text','text'=>'user_style') ?><?php $attr6_class='text' ?><?php $attr6_text='user_style' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key.'_HELP'); else - $attr_title = ''; + $attr6_title = ''; + +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) + if (!empty($attr6_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr6_array[$attr6_var].'%'; + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr6_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr6_text)) + if ( isset($$attr6_text)) + $tmp_text = lang($$attr6_text); else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + $tmp_text = lang($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = lang($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = lang($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr6);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?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('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'=>'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"' +?><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'=>'allstyles','name'=>'style','default'=>'style') ?><?php $attr6_list='allstyles' ?><?php $attr6_name='style' ?><?php $attr6_default='style' ?><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 +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 unset($attr6_default) ?><?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> @@ -730,16 +698,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'=>'fullname') ?><?php $attr_field='fullname' ?> +<?php unset($attr1) ?><?php $attr2 = array('field'=>'fullname') ?><?php $attr2_field='fullname' ?> <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) { ?> @@ -750,4 +718,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/profile/mail.tpl.php b/themes/default/pages/html/profile/mail.tpl.php @@ -0,0 +1,312 @@ +<?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> +<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('name'=>'user_profile','icon'=>'user','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr3_name='user_profile' ?><?php $attr3_icon='user' ?><?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_icon) ?><?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'=>'logo','colspan'=>'2') ?><?php $attr5_class='logo' ?><?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('name'=>'changemail') ?><?php $attr6_name='changemail' ?><img src="<?php echo $image_dir.'logo_'.$attr6_name.IMG_ICON_EXT ?>" border="0" align="left"><h2 class="logo"><?php echo lang('logo_'.$attr6_name) ?></h2><p class="logo"><?php echo lang('logo_'.$attr6_name.'_text') ?></p><?php unset($attr6) ?><?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 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($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; + +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6 = array('class'=>'text','text'=>'user_new_mail') ?><?php $attr6_class='text' ?><?php $attr6_text='user_new_mail' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key.'_HELP'); + else + $attr6_title = ''; + +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; + + if (!empty($attr6_array)) + { + //geht nicht: + //echo $$attr6_array[$attr6_var].'%'; + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; + else + $tmp_text = lang($tmpArray[$attr6_text]); + } + elseif (!empty($attr6_text)) + if ( isset($$attr6_text)) + $tmp_text = lang($$attr6_text); + else + $tmp_text = lang($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = lang($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = lang($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; + else + { + $tmp_text = '&nbsp;'; + //Html::debug($attr6);echo 'text error'; + } + + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); + + echo $tmp_text; +?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_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($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'=>'mail','size'=>'40','maxlength'=>'256') ?><?php $attr6_type='text' ?><?php $attr6_name='mail' ?><?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; + + global $cell_column_nr; + $cell_column_nr=0; + + $column_class_idx = 999; + +?><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($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_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'=>'act_password') ?><?php $attr2_field='act_password' ?> +<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/profile/pwchange.tpl.php b/themes/default/pages/html/profile/pwchange.tpl.php @@ -1,62 +1,70 @@ -<?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('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('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 +?><?php unset($attr2) ?><?php unset($attr2_target) ?><?php unset($attr2_method) ?><?php unset($attr2_enctype) ?><?php $attr3 = array('name'=>'user_profile','icon'=>'user','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr3_name='user_profile' ?><?php $attr3_icon='user' ?><?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,302 +115,355 @@ <tr> <td> - <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 + <table class="n" cellspacing="0" width="100%" cellpadding="4"><?php unset($attr3) ?><?php unset($attr3_name) ?><?php unset($attr3_icon) ?><?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'=>'logo','colspan'=>'2') ?><?php $attr5_class='logo' ?><?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('name'=>'changepassword') ?><?php $attr6_name='changepassword' ?><img src="<?php echo $image_dir.'logo_'.$attr6_name.IMG_ICON_EXT ?>" border="0" align="left"><h2 class="logo"><?php echo lang('logo_'.$attr6_name) ?></h2><p class="logo"><?php echo lang('logo_'.$attr6_name.'_text') ?></p><?php unset($attr6) ?><?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() ?><?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 $attr = array('class'=>'text','text'=>'user_password') ?><?php $attr_class='text' ?><?php $attr_text='user_password' ?><?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 $attr6 = array('class'=>'text','text'=>'user_password') ?><?php $attr6_class='text' ?><?php $attr6_text='user_password' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key.'_HELP'); else - $attr_title = ''; + $attr6_title = ''; + +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) + if (!empty($attr6_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr6_array[$attr6_var].'%'; + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr6_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr6_text)) + if ( isset($$attr6_text)) + $tmp_text = lang($$attr6_text); else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + $tmp_text = lang($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = lang($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = lang($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr6);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?><?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 $attr = array('name'=>'act_password','default'=>'','class'=>'','size'=>'40','maxlength'=>'256') ?><?php $attr_name='act_password' ?><?php $attr_default='' ?><?php $attr_class='' ?><?php $attr_size='40' ?><?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() ?><br/><?php unset($attr) ?><?php $attr = array() ?><br/><?php unset($attr) ?><?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 +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6 = array('name'=>'act_password','size'=>'40','maxlength'=>'256') ?><?php $attr6_name='act_password' ?><?php $attr6_size='40' ?><?php $attr6_maxlength='256' ?><input type="password" name="<?php echo $attr6_name ?>" 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 ?>" /><?php unset($attr6) ?><?php unset($attr6_name) ?><?php unset($attr6_size) ?><?php unset($attr6_maxlength) ?><?php $attr6 = array() ?><br/><?php unset($attr6) ?><?php $attr6 = array() ?><br/><?php unset($attr6) ?><?php $attr6 = array() ?><br/><?php unset($attr6) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr4 = array() ?><?php $row_class_idx++; if ($row_class_idx > count($row_classes)) $row_class_idx=1; $row_class=$row_classes[$row_class_idx-1]; - if (empty($attr_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() ?><?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( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6 = array('class'=>'text','text'=>'user_new_password') ?><?php $attr6_class='text' ?><?php $attr6_text='user_new_password' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php $attr = array('class'=>'text','text'=>'user_new_password') ?><?php $attr_class='text' ?><?php $attr_text='user_new_password' ?><?php - if(empty($attr_title)) - if (!empty($attr_key)) - $attr_title = lang($attr_key).'_HELP'; + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key.'_HELP'); else - $attr_title = ''; + $attr6_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; + + if (!empty($attr6_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr6_array[$attr6_var].'%'; + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr6_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr6_text)) + if ( isset($$attr6_text)) + $tmp_text = lang($$attr6_text); else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + $tmp_text = lang($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = lang($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = lang($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr6);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?><?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 $attr = array('name'=>'password1','default'=>'','class'=>'','size'=>'40','maxlength'=>'256') ?><?php $attr_name='password1' ?><?php $attr_default='' ?><?php $attr_class='' ?><?php $attr_size='40' ?><?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( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6 = array('name'=>'password1','size'=>'40','maxlength'=>'256') ?><?php $attr6_name='password1' ?><?php $attr6_size='40' ?><?php $attr6_maxlength='256' ?><input type="password" name="<?php echo $attr6_name ?>" 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 ?>" /><?php unset($attr6) ?><?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() ?><?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 $attr = array('class'=>'text','text'=>'user_new_password_repeat') ?><?php $attr_class='text' ?><?php $attr_text='user_new_password_repeat' ?><?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 $attr6 = array('class'=>'text','text'=>'user_new_password_repeat') ?><?php $attr6_class='text' ?><?php $attr6_text='user_new_password_repeat' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key.'_HELP'); else - $attr_title = ''; + $attr6_title = ''; + +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) + if (!empty($attr6_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr6_array[$attr6_var].'%'; + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr6_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr6_text)) + if ( isset($$attr6_text)) + $tmp_text = lang($$attr6_text); else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + $tmp_text = lang($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = lang($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = lang($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr6);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?><?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 $attr = array('name'=>'password2','default'=>'','class'=>'','size'=>'40','maxlength'=>'256') ?><?php $attr_name='password2' ?><?php $attr_default='' ?><?php $attr_class='' ?><?php $attr_size='40' ?><?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( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6 = array('name'=>'password2','size'=>'40','maxlength'=>'256') ?><?php $attr6_name='password2' ?><?php $attr6_size='40' ?><?php $attr6_maxlength='256' ?><input type="password" name="<?php echo $attr6_name ?>" 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 ?>" /><?php unset($attr6) ?><?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('colspan'=>'2') ?><?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('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_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_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> @@ -416,16 +477,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($attr2) ?><?php $attr1 = array() ?></form> -<?php unset($attr) ?><?php $attr = array('field'=>'act_password') ?><?php $attr_field='act_password' ?> +<?php unset($attr1) ?><?php $attr2 = array('field'=>'act_password') ?><?php $attr2_field='act_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 $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) { ?> @@ -436,4 +497,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/project/edit.tpl.php b/themes/default/pages/html/project/edit.tpl.php @@ -1,62 +1,68 @@ -<?php $attr = array('class'=>'main','title'=>'var') ?><?php $attr_class='main' ?><?php $attr_title='var' ?><?php header('Content-Type: text/html; charset='.lang('CHARSET')) +<?php $attr1 = array('class'=>'main','title'=>$cms_title) ?><?php $attr1_class='main' ?><?php $attr1_title=$cms_title ?><?php header('Content-Type: text/html; charset='.lang('CHARSET')) ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> -<!-- $Id$ --> <head> - <title><?php echo $attr_title ?></title> + <title><?php echo $attr1_title ?></title> <meta http-equiv="content-type" content="text/html; charset=<?php echo lang('CHARSET') ?>" /> <meta name="MSSmartTagsPreventParsing" content="true" /> <meta name="robots" content="noindex,nofollow" /> +<?php if (is_array($windowMenu)) foreach( $windowMenu as $menu ) + { + ?> + <link rel="section" href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text']) ?>" /> +<?php + } +?> <link rel="stylesheet" type="text/css" href="./themes/default/css/default.css" /> <?php if($stylesheet!='default') { ?> <link rel="stylesheet" type="text/css" href="<?php echo $stylesheet ?>" /> <?php } ?> </head> -<body class="<?php echo $attr_class ?>"> +<body class="<?php echo $attr1_class ?>"> -<?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_title) ?><?php $attr = array('name'=>'','target'=>'_self','method'=>'post','enctype'=>'application/x-www-form-urlencoded') ?><?php $attr_name='' ?><?php $attr_target='_self' ?><?php $attr_method='post' ?><?php $attr_enctype='application/x-www-form-urlencoded' ?><?php - if (empty($attr_action)) - $attr_action = $actionName; - if (empty($attr_subaction)) - $attr_subaction = $targetSubActionName; - if (empty($attr_id)) - $attr_id = $this->getRequestId(); - -?><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_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 +?><?php unset($attr2) ?><?php unset($attr2_target) ?><?php unset($attr2_method) ?><?php unset($attr2_enctype) ?><?php $attr3 = array('name'=>'GLOBAL_PROJECT','icon'=>'project','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr3_name='GLOBAL_PROJECT' ?><?php $attr3_icon='project' ?><?php $attr3_width='93%' ?><?php $attr3_rowclasses='odd,even' ?><?php $attr3_columnclasses='1,2,3' ?><?php $coloumn_widths=array(); - if (!empty($attr_widths)) + if (!empty($attr3_widths)) { - $column_widths = explode(',',$attr_widths); - unset($attr['widths']); + $column_widths = explode(',',$attr3_widths); + unset($attr3['widths']); } - if (!empty($attr_rowclasses)) + if (!empty($attr3_rowclasses)) { - $row_classes = explode(',',$attr_rowclasses); + $row_classes = explode(',',$attr3_rowclasses); $row_class_idx = 999; - unset($attr['rowclasses']); + unset($attr3['rowclasses']); } - if (!empty($attr_columnclasses)) + if (!empty($attr3_columnclasses)) { - $column_classes = explode(',',$attr_columnclasses); - unset($attr['columnclasses']); + $column_classes = explode(',',$attr3_columnclasses); + unset($attr3['columnclasses']); } global $image_dir; echo '<br/><br/><br/><center>'; - echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_width.'">'; + echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr3_width.'">'; echo '<tr><td class="menu">'; - if ( !empty($attr_icon) ) - echo '<img src="'.$image_dir.'icon_'.$attr_icon.IMG_ICON_EXT.'" align="left" border="0">'; + if ( !empty($attr3_icon) ) + echo '<img src="'.$image_dir.'icon_'.$attr3_icon.IMG_ICON_EXT.'" align="left" border="0">'; if ( !is_array($path) ) $path = array(); foreach( $path as $pathElement) @@ -109,670 +115,726 @@ <tr> <td> - <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 + <table class="n" cellspacing="0" width="100%" cellpadding="4"><?php unset($attr3) ?><?php unset($attr3_name) ?><?php unset($attr3_icon) ?><?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() ?><?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( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6 = array('class'=>'text','text'=>'PROJECT_NAME') ?><?php $attr6_class='text' ?><?php $attr6_text='PROJECT_NAME' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php $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'; + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key.'_HELP'); else - $attr_title = ''; + $attr6_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; + + if (!empty($attr6_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr6_array[$attr6_var].'%'; + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr6_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr6_text)) + if ( isset($$attr6_text)) + $tmp_text = lang($$attr6_text); else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + $tmp_text = lang($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = lang($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = lang($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr6);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?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('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'=>'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 +?><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($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() ?><?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( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6 = array('class'=>'text','text'=>'PROJECT_TARGET_DIR') ?><?php $attr6_class='text' ?><?php $attr6_text='PROJECT_TARGET_DIR' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php $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'; + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key.'_HELP'); else - $attr_title = ''; + $attr6_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; + + if (!empty($attr6_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr6_array[$attr6_var].'%'; + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr6_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr6_text)) + if ( isset($$attr6_text)) + $tmp_text = lang($$attr6_text); else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + $tmp_text = lang($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = lang($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = lang($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr6);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?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('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'=>'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 +?><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'=>'filename','type'=>'text','name'=>'target_dir','size'=>'50','maxlength'=>'256') ?><?php $attr6_class='filename' ?><?php $attr6_type='text' ?><?php $attr6_name='target_dir' ?><?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 $attr = array() ?><?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( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6 = array('class'=>'text','text'=>'PROJECT_FTP_URL') ?><?php $attr6_class='text' ?><?php $attr6_text='PROJECT_FTP_URL' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php $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'; + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key.'_HELP'); else - $attr_title = ''; + $attr6_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; + + if (!empty($attr6_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr6_array[$attr6_var].'%'; + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr6_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr6_text)) + if ( isset($$attr6_text)) + $tmp_text = lang($$attr6_text); else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + $tmp_text = lang($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = lang($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = lang($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr6);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?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('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'=>'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 +?><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'=>'ftp_url','size'=>'40','maxlength'=>'256') ?><?php $attr6_type='text' ?><?php $attr6_name='ftp_url' ?><?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() ?><?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( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6 = array('class'=>'text','text'=>'PROJECT_FTP_PASSIVE') ?><?php $attr6_class='text' ?><?php $attr6_text='PROJECT_FTP_PASSIVE' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php $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'; + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key.'_HELP'); else - $attr_title = ''; + $attr6_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; + + if (!empty($attr6_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr6_array[$attr6_var].'%'; + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr6_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr6_text)) + if ( isset($$attr6_text)) + $tmp_text = lang($$attr6_text); else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + $tmp_text = lang($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = lang($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = lang($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr6);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?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('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('default'=>'','readonly'=>'','name'=>'ftp_passive') ?><?php $attr_default='' ?><?php $attr_readonly='' ?><?php $attr_name='ftp_passive' ?><?php - $attr_default = ( $attr_default == true ); +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('default'=>'','readonly'=>'','name'=>'ftp_passive') ?><?php $attr6_default='' ?><?php $attr6_readonly='' ?><?php $attr6_name='ftp_passive' ?><?php + $attr6_default = ( $attr6_default == true ); - if ( isset($$attr_name) ) - $checked = $$attr_name == true; -// $checked = isset($$$attr_name)&& $$$attr_name==true; + if ( isset($$attr6_name) ) + $checked = $$attr6_name == true; +// $checked = isset($$$attr6_name)&& $$$attr6_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 = $attr6_default == true; +?><input type="checkbox" id="id_<?php echo $attr6_name ?>" name="<?php echo $attr6_name ?>" <?php if ($attr6_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php unset($attr6_name); unset($attr6_readonly); unset($attr6_default); ?><?php unset($attr6) ?><?php unset($attr6_default) ?><?php unset($attr6_readonly) ?><?php unset($attr6_name) ?><?php $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() ?><?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( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6 = array('class'=>'text','text'=>'PROJECT_CMD_AFTER_PUBLISH') ?><?php $attr6_class='text' ?><?php $attr6_text='PROJECT_CMD_AFTER_PUBLISH' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php $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'; + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key.'_HELP'); else - $attr_title = ''; + $attr6_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; + + if (!empty($attr6_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr6_array[$attr6_var].'%'; + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr6_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr6_text)) + if ( isset($$attr6_text)) + $tmp_text = lang($$attr6_text); else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + $tmp_text = lang($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = lang($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = lang($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr6);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?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('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'=>'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 +?><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'=>'cmd_after_publish','size'=>'40','maxlength'=>'256') ?><?php $attr6_type='text' ?><?php $attr6_name='cmd_after_publish' ?><?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() ?><?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( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6 = array('class'=>'text','text'=>'PROJECT_CONTENT_NEGOTIATION') ?><?php $attr6_class='text' ?><?php $attr6_text='PROJECT_CONTENT_NEGOTIATION' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php $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'; + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key.'_HELP'); else - $attr_title = ''; + $attr6_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; + + if (!empty($attr6_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr6_array[$attr6_var].'%'; + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr6_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr6_text)) + if ( isset($$attr6_text)) + $tmp_text = lang($$attr6_text); else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + $tmp_text = lang($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = lang($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = lang($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr6);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?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('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('default'=>'','readonly'=>'','name'=>'content_negotiation') ?><?php $attr_default='' ?><?php $attr_readonly='' ?><?php $attr_name='content_negotiation' ?><?php - $attr_default = ( $attr_default == true ); +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('default'=>'','readonly'=>'','name'=>'content_negotiation') ?><?php $attr6_default='' ?><?php $attr6_readonly='' ?><?php $attr6_name='content_negotiation' ?><?php + $attr6_default = ( $attr6_default == true ); - if ( isset($$attr_name) ) - $checked = $$attr_name == true; -// $checked = isset($$$attr_name)&& $$$attr_name==true; + if ( isset($$attr6_name) ) + $checked = $$attr6_name == true; +// $checked = isset($$$attr6_name)&& $$$attr6_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 = $attr6_default == true; +?><input type="checkbox" id="id_<?php echo $attr6_name ?>" name="<?php echo $attr6_name ?>" <?php if ($attr6_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php unset($attr6_name); unset($attr6_readonly); unset($attr6_default); ?><?php unset($attr6) ?><?php unset($attr6_default) ?><?php unset($attr6_readonly) ?><?php unset($attr6_name) ?><?php $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() ?><?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( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php $attr6 = array('class'=>'text','text'=>'PROJECT_CUT_INDEX') ?><?php $attr6_class='text' ?><?php $attr6_text='PROJECT_CUT_INDEX' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php $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'; + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key.'_HELP'); else - $attr_title = ''; + $attr6_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; + + if (!empty($attr6_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr6_array[$attr6_var].'%'; + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr6_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr6_text)) + if ( isset($$attr6_text)) + $tmp_text = lang($$attr6_text); else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + $tmp_text = lang($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = lang($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = lang($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr6);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?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('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('default'=>'','readonly'=>'','name'=>'cut_index') ?><?php $attr_default='' ?><?php $attr_readonly='' ?><?php $attr_name='cut_index' ?><?php - $attr_default = ( $attr_default == true ); +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('default'=>'','readonly'=>'','name'=>'cut_index') ?><?php $attr6_default='' ?><?php $attr6_readonly='' ?><?php $attr6_name='cut_index' ?><?php + $attr6_default = ( $attr6_default == true ); - if ( isset($$attr_name) ) - $checked = $$attr_name == true; -// $checked = isset($$$attr_name)&& $$$attr_name==true; + if ( isset($$attr6_name) ) + $checked = $$attr6_name == true; +// $checked = isset($$$attr6_name)&& $$$attr6_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 = $attr6_default == true; +?><input type="checkbox" id="id_<?php echo $attr6_name ?>" name="<?php echo $attr6_name ?>" <?php if ($attr6_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php unset($attr6_name); unset($attr6_readonly); unset($attr6_default); ?><?php unset($attr6) ?><?php unset($attr6_default) ?><?php unset($attr6_readonly) ?><?php unset($attr6_name) ?><?php $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('colspan'=>'2') ?><?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('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_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_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> @@ -786,9 +848,9 @@ <?php $dur = time()-START_TIME; echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small> <?php } ?> -<?php unset($attr) ?><?php $attr = array() ?></form> +<?php unset($attr2) ?><?php $attr1 = array() ?></form> -<?php unset($attr) ?><?php $attr = array() ?> +<?php unset($attr1) ?><?php $attr0 = array() ?> <!-- $Id$ --> <?php if ($showDuration) { ?> @@ -799,4 +861,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/project/listing.tpl.php b/themes/default/pages/html/project/listing.tpl.php @@ -1,44 +1,50 @@ -<?php $attr = array('class'=>'main','title'=>'var') ?><?php $attr_class='main' ?><?php $attr_title='var' ?><?php header('Content-Type: text/html; charset='.lang('CHARSET')) +<?php $attr1 = array('class'=>'main','title'=>$cms_title) ?><?php $attr1_class='main' ?><?php $attr1_title=$cms_title ?><?php header('Content-Type: text/html; charset='.lang('CHARSET')) ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> -<!-- $Id$ --> <head> - <title><?php echo $attr_title ?></title> + <title><?php echo $attr1_title ?></title> <meta http-equiv="content-type" content="text/html; charset=<?php echo lang('CHARSET') ?>" /> <meta name="MSSmartTagsPreventParsing" content="true" /> <meta name="robots" content="noindex,nofollow" /> +<?php if (is_array($windowMenu)) foreach( $windowMenu as $menu ) + { + ?> + <link rel="section" href="<?php echo Html::url($actionName,$menu['subaction'],$this->getRequestId() ) ?>" title="<?php echo lang($menu['text']) ?>" /> +<?php + } +?> <link rel="stylesheet" type="text/css" href="./themes/default/css/default.css" /> <?php if($stylesheet!='default') { ?> <link rel="stylesheet" type="text/css" href="<?php echo $stylesheet ?>" /> <?php } ?> </head> -<body class="<?php echo $attr_class ?>"> +<body class="<?php echo $attr1_class ?>"> -<?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_title) ?><?php $attr = array('name'=>'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($attr1) ?><?php unset($attr1_class) ?><?php unset($attr1_title) ?><?php $attr2 = array('name'=>'GLOBAL_PROJECTS','icon'=>'project','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr2_name='GLOBAL_PROJECTS' ?><?php $attr2_icon='project' ?><?php $attr2_width='93%' ?><?php $attr2_rowclasses='odd,even' ?><?php $attr2_columnclasses='1,2,3' ?><?php $coloumn_widths=array(); - if (!empty($attr_widths)) + if (!empty($attr2_widths)) { - $column_widths = explode(',',$attr_widths); - unset($attr['widths']); + $column_widths = explode(',',$attr2_widths); + unset($attr2['widths']); } - if (!empty($attr_rowclasses)) + if (!empty($attr2_rowclasses)) { - $row_classes = explode(',',$attr_rowclasses); + $row_classes = explode(',',$attr2_rowclasses); $row_class_idx = 999; - unset($attr['rowclasses']); + unset($attr2['rowclasses']); } - if (!empty($attr_columnclasses)) + if (!empty($attr2_columnclasses)) { - $column_classes = explode(',',$attr_columnclasses); - unset($attr['columnclasses']); + $column_classes = explode(',',$attr2_columnclasses); + unset($attr2['columnclasses']); } global $image_dir; echo '<br/><br/><br/><center>'; - echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_width.'">'; + echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr2_width.'">'; echo '<tr><td class="menu">'; - if ( !empty($attr_icon) ) - echo '<img src="'.$image_dir.'icon_'.$attr_icon.IMG_ICON_EXT.'" align="left" border="0">'; + if ( !empty($attr2_icon) ) + echo '<img src="'.$image_dir.'icon_'.$attr2_icon.IMG_ICON_EXT.'" align="left" border="0">'; if ( !is_array($path) ) $path = array(); foreach( $path as $pathElement) @@ -91,172 +97,194 @@ <tr> <td> - <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('list'=>'el','extract'=>'1','key'=>'list_key','value'=>'list_value') ?><?php $attr_list='el' ?><?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); + <table class="n" cellspacing="0" width="100%" cellpadding="4"><?php unset($attr2) ?><?php unset($attr2_name) ?><?php unset($attr2_icon) ?><?php unset($attr2_width) ?><?php unset($attr2_rowclasses) ?><?php unset($attr2_columnclasses) ?><?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 +?><?php unset($attr3) ?><?php unset($attr3_list) ?><?php unset($attr3_extract) ?><?php unset($attr3_key) ?><?php unset($attr3_value) ?><?php $attr4 = array() ?><?php $row_class_idx++; if ($row_class_idx > count($row_classes)) $row_class_idx=1; $row_class=$row_classes[$row_class_idx-1]; - if (empty($attr_class)) - $attr_class=$row_class; + if (empty($attr4_class)) + $attr4_class=$row_class; global $cell_column_nr; $cell_column_nr=0; $column_class_idx = 999; -?><tr class="<?php echo $attr_class ?>"><?php unset($attr) ?><?php $attr = array() ?><?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 $attr = array('title'=>'','target'=>'cms_main','url'=>$url,'class'=>'') ?><?php $attr_title='' ?><?php $attr_target='cms_main' ?><?php $attr_url=$url ?><?php $attr_class='' ?><?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 $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 $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 -} 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('class'=>'text','value'=>$name) ?><?php $attr_class='text' ?><?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_target) ?><?php unset($attr6_url) ?><?php $attr7 = array('file'=>'icon_project','align'=>'left') ?><?php $attr7_file='icon_project' ?><?php $attr7_align='left' ?><?php +if (isset($attr7_elementtype)) { +?><img src="<?php echo $image_dir.'icon_el_'.$attr7_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_type)) { +?><img src="<?php echo $image_dir.'icon_'.$attr7_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_icon)) { +?><img src="<?php echo $image_dir.'icon_'.$attr7_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_url)) { +?><img src="<?php echo $attr7_url ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_fileext)) { +?><img src="<?php echo $image_dir.$attr7_fileext ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_file)) { +?><img src="<?php echo $image_dir.$attr7_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php } ?><?php unset($attr7) ?><?php unset($attr7_file) ?><?php unset($attr7_align) ?><?php $attr7 = array('class'=>'text','value'=>$name) ?><?php $attr7_class='text' ?><?php $attr7_value=$name ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + + if(empty($attr7_title)) + if (!empty($attr7_key)) + $attr7_title = lang($attr7_key.'_HELP'); 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_value) ?><?php $attr = array() ?></a><?php unset($attr) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?><?php -// if (empty($attr_class)) -// $attr['class']=$row_class; +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_value) ?><?php $attr5 = array() ?></a><?php unset($attr5) ?><?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 $attr = array('title'=>'','target'=>$conf['interface']['frames']['top'],'url'=>$use_url,'class'=>'') ?><?php $attr_title='' ?><?php $attr_target=$conf['interface']['frames']['top'] ?><?php $attr_url=$use_url ?><?php $attr_class='' ?><?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 $attr6 = array('target'=>$conf['interface']['frames']['top'],'url'=>$use_url) ?><?php $attr6_target=$conf['interface']['frames']['top'] ?><?php $attr6_url=$use_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('class'=>'text','value'=>lang('GLOBAL_SELECT')) ?><?php $attr_class='text' ?><?php $attr_value=lang('GLOBAL_SELECT') ?><?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_target) ?><?php unset($attr6_url) ?><?php $attr7 = array('class'=>'text','value'=>lang('GLOBAL_SELECT')) ?><?php $attr7_class='text' ?><?php $attr7_value=lang('GLOBAL_SELECT') ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + + if(empty($attr7_title)) + if (!empty($attr7_key)) + $attr7_title = lang($attr7_key.'_HELP'); else - $attr_title = ''; + $attr7_title = ''; + +?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php + $attr7_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) + if (!empty($attr7_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr7_array[$attr7_var].'%'; + $tmpArray = $$attr7_array; + if (!empty($attr7_var)) + $tmp_text = $tmpArray[$attr7_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr7_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr7_text)) + if ( isset($$attr7_text)) + $tmp_text = lang($$attr7_text); else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + $tmp_text = lang($attr7_text); + elseif (!empty($attr7_textvar)) + $tmp_text = lang($$attr7_textvar); + elseif (!empty($attr7_key)) + $tmp_text = lang($attr7_key); + elseif (!empty($attr7_var)) + $tmp_text = isset($$attr7_var)?htmlentities($$attr7_var):'error: variable '.$attr7_var.' not present'; + elseif (!empty($attr7_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr7_raw); + elseif (!empty($attr7_value)) + $tmp_text = $attr7_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr7);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr7_maxlength) && intval($attr7_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr7_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_value) ?><?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_value) ?><?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> @@ -270,7 +298,7 @@ if (isset($attr_elementtype)) { <?php $dur = time()-START_TIME; echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small> <?php } ?> -<?php unset($attr) ?><?php $attr = array() ?> +<?php unset($attr1) ?><?php $attr0 = array() ?> <!-- $Id$ --> <?php if ($showDuration) { ?> @@ -281,4 +309,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/template/add.tpl.php b/themes/default/pages/html/template/add.tpl.php @@ -1,51 +1,71 @@ -<?php /* source: ./themes/default/include/html/page.inc.php - compile time: Sun, 29 Jan 2006 16:11:14 +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:11:14 +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:11:14 +0100 */ ?><?php $attr = array('title'=>'','name'=>'GLOBAL_TEMPLATES','icon'=>'','widths'=>'','width'=>'85%') ?><?php $attr_title='' ?><?php $attr_name='GLOBAL_TEMPLATES' ?><?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_TEMPLATES','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr3_name='GLOBAL_TEMPLATES' ?><?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,58 +116,75 @@ <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:11:14 +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_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 /* source: ./themes/default/include/html/cell.inc.php - compile time: Sun, 29 Jan 2006 16:11:14 +0100 */ ?><?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 $attr4_class ?>"><?php unset($attr4) ?><?php $attr5 = array('class'=>'act') ?><?php $attr5_class='act' ?><?php +// if (empty($attr5_class)) +// $attr5['class']=$row_class; + $column_class_idx++; + if ($column_class_idx > count($column_classes)) + $column_class_idx=1; + $column_class=$column_classes[$column_class_idx-1]; + if (empty($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/input.inc.php - compile time: Sun, 29 Jan 2006 16:11:14 +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/button.inc.php - compile time: Sun, 29 Jan 2006 16:11:14 +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 $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 $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:11:14 +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:11:14 +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:11:14 +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> -<?php if ($showDuration) { ?> +</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> -</center><?php unset($attr) ?><?php /* source: ./themes/default/include/html/form-end.inc.php - compile time: Sun, 29 Jan 2006 16:11:14 +0100 */ ?><?php $attr = array() ?></form><?php unset($attr) ?><?php /* source: ./themes/default/include/html/focus.inc.php - compile time: Sun, 29 Jan 2006 16:11:14 +0100 */ ?><?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 16:11:14 +0100 */ ?><?php $attr = array() ?> +<?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 && false) { ?> +<?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> +// 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 +</html><?php unset($attr0) ?>+ \ No newline at end of file diff --git a/themes/default/pages/html/template/edit.tpl.php b/themes/default/pages/html/template/edit.tpl.php @@ -129,19 +129,20 @@ ?><td <?php foreach( $attr4 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr4) ?><?php unset($attr4_class) ?><code> <?php $attr5 = array('class'=>'text','var'=>'text') ?><?php $attr5_class='text' ?><?php $attr5_var='text' ?><?php + if ( isset($attr5_prefix)&& isset($attr5_key)) + $attr5_key = $attr5_prefix.$attr5_key; + if ( isset($attr5_suffix)&& isset($attr5_key)) + $attr5_key = $attr5_key.$attr5_suffix; + if(empty($attr5_title)) if (!empty($attr5_key)) - $attr5_title = lang($attr5_key).'_HELP'; + $attr5_title = lang($attr5_key.'_HELP'); else $attr5_title = ''; ?><span class="<?php echo $attr5_class ?>" title="<?php echo $attr5_title ?>"><?php $attr5_title = ''; - if ( isset($attr5_prefix)&& isset($attr5_key)) - $attr5_key = $attr5_prefix.$attr5_key; - if ( isset($attr5_suffix)&& isset($attr5_key)) - $attr5_key = $attr5_key.$attr5_suffix; - + if (!empty($attr5_array)) { //geht nicht: diff --git a/themes/default/pages/html/template/el.tpl.php b/themes/default/pages/html/template/el.tpl.php @@ -163,22 +163,23 @@ if (isset($attr7_elementtype)) { } elseif (isset($attr7_url)) { ?><img src="<?php echo $attr7_url ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_fileext)) { -?><img src="<?php echo $image_dir.$attr7_file ?>" border="0" align="<?php echo $attr7_align ?>"><?php +?><img src="<?php echo $image_dir.$attr7_fileext ?>" border="0" align="<?php echo $attr7_align ?>"><?php } elseif (isset($attr7_file)) { ?><img src="<?php echo $image_dir.$attr7_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php } ?><?php unset($attr7) ?><?php unset($attr7_align) ?><?php unset($attr7_elementtype) ?><?php $attr7 = array('class'=>'text','text'=>$name) ?><?php $attr7_class='text' ?><?php $attr7_text=$name ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + if(empty($attr7_title)) if (!empty($attr7_key)) - $attr7_title = lang($attr7_key).'_HELP'; + $attr7_title = lang($attr7_key.'_HELP'); else $attr7_title = ''; ?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php $attr7_title = ''; - if ( isset($attr7_prefix)&& isset($attr7_key)) - $attr7_key = $attr7_prefix.$attr7_key; - if ( isset($attr7_suffix)&& isset($attr7_key)) - $attr7_key = $attr7_key.$attr7_suffix; - + if (!empty($attr7_array)) { //geht nicht: @@ -230,19 +231,20 @@ if (isset($attr7_elementtype)) { $attr5['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('class'=>'text','key'=>$type,'prefix'=>'EL_') ?><?php $attr6_class='text' ?><?php $attr6_key=$type ?><?php $attr6_prefix='EL_' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + if(empty($attr6_title)) if (!empty($attr6_key)) - $attr6_title = lang($attr6_key).'_HELP'; + $attr6_title = lang($attr6_key.'_HELP'); else $attr6_title = ''; ?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php $attr6_title = ''; - if ( isset($attr6_prefix)&& isset($attr6_key)) - $attr6_key = $attr6_prefix.$attr6_key; - if ( isset($attr6_suffix)&& isset($attr6_key)) - $attr6_key = $attr6_key.$attr6_suffix; - + if (!empty($attr6_array)) { //geht nicht: @@ -398,19 +400,20 @@ if (isset($attr7_elementtype)) { $attr5['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php unset($attr5_colspan) ?><?php $attr6 = array('class'=>'text','text'=>lang('GLOBAL_NOT_FOUND')) ?><?php $attr6_class='text' ?><?php $attr6_text=lang('GLOBAL_NOT_FOUND') ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + if(empty($attr6_title)) if (!empty($attr6_key)) - $attr6_title = lang($attr6_key).'_HELP'; + $attr6_title = lang($attr6_key.'_HELP'); else $attr6_title = ''; ?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php $attr6_title = ''; - if ( isset($attr6_prefix)&& isset($attr6_key)) - $attr6_key = $attr6_prefix.$attr6_key; - if ( isset($attr6_suffix)&& isset($attr6_key)) - $attr6_key = $attr6_key.$attr6_suffix; - + if (!empty($attr6_array)) { //geht nicht: diff --git a/themes/default/pages/html/template/listing.tpl.php b/themes/default/pages/html/template/listing.tpl.php @@ -148,25 +148,26 @@ 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('target'=>'cms_main','url'=>'url') ?><?php $attr6_target='cms_main' ?><?php $attr6_url='url' ?><?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('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($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','var'=>'name') ?><?php $attr7_class='text' ?><?php $attr7_var='name' ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + if(empty($attr7_title)) if (!empty($attr7_key)) - $attr7_title = lang($attr7_key).'_HELP'; + $attr7_title = lang($attr7_key.'_HELP'); else $attr7_title = ''; ?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php $attr7_title = ''; - if ( isset($attr7_prefix)&& isset($attr7_key)) - $attr7_key = $attr7_prefix.$attr7_key; - if ( isset($attr7_suffix)&& isset($attr7_key)) - $attr7_key = $attr7_key.$attr7_suffix; - + if (!empty($attr7_array)) { //geht nicht: @@ -322,19 +323,20 @@ $attr5['width']=$column_widths[$cell_column_nr-1]; ?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('class'=>'text','text'=>'GLOBAL_NO_TEMPLATES_AVAILABLE_DESC') ?><?php $attr6_class='text' ?><?php $attr6_text='GLOBAL_NO_TEMPLATES_AVAILABLE_DESC' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + if(empty($attr6_title)) if (!empty($attr6_key)) - $attr6_title = lang($attr6_key).'_HELP'; + $attr6_title = lang($attr6_key.'_HELP'); else $attr6_title = ''; ?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php $attr6_title = ''; - if ( isset($attr6_prefix)&& isset($attr6_key)) - $attr6_key = $attr6_prefix.$attr6_key; - if ( isset($attr6_suffix)&& isset($attr6_key)) - $attr6_key = $attr6_key.$attr6_suffix; - + if (!empty($attr6_array)) { //geht nicht: diff --git a/themes/default/pages/html/title/show.tpl.php b/themes/default/pages/html/title/show.tpl.php @@ -1,7 +1,6 @@ <?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 $attr1_title ?></title> <meta http-equiv="content-type" content="text/html; charset=<?php echo lang('CHARSET') ?>" /> diff --git a/themes/default/pages/html/tree/show.tpl.php b/themes/default/pages/html/tree/show.tpl.php @@ -1,7 +1,6 @@ <?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 $attr1_title ?></title> <meta http-equiv="content-type" content="text/html; charset=<?php echo lang('CHARSET') ?>" /> diff --git a/themes/default/pages/html/treetitle/show.tpl.php b/themes/default/pages/html/treetitle/show.tpl.php @@ -1,7 +1,6 @@ <?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') ?>" /> diff --git a/themes/default/pages/html/user/edit.tpl.php b/themes/default/pages/html/user/edit.tpl.php @@ -1,61 +1,70 @@ -<?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_USER','widths'=>'50%,50%','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr_name='GLOBAL_USER' ?><?php $attr_widths='50%,50%' ?><?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_USER','widths'=>'50%,50%','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr3_name='GLOBAL_USER' ?><?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(',',$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,752 +115,816 @@ <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() ?><?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() ?><?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]; - -?><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'=>'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'; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; + +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('class'=>'text','text'=>'user_username') ?><?php $attr6_class='text' ?><?php $attr6_text='user_username' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key.'_HELP'); else - $attr_title = ''; + $attr6_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; + + if (!empty($attr6_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr6_array[$attr6_var].'%'; + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr6_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr6_text)) + if ( isset($$attr6_text)) + $tmp_text = lang($$attr6_text); else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + $tmp_text = lang($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = lang($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = lang($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr6);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_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($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($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'=>'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 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'=>'name','size'=>'20','maxlength'=>'256') ?><?php $attr6_type='text' ?><?php $attr6_name='name' ?><?php $attr6_size='20' ?><?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]; - -?><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'=>'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'; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; + +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('class'=>'text','text'=>'user_fullname') ?><?php $attr6_class='text' ?><?php $attr6_text='user_fullname' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key.'_HELP'); else - $attr_title = ''; + $attr6_title = ''; + +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) + if (!empty($attr6_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr6_array[$attr6_var].'%'; + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr6_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr6_text)) + if ( isset($$attr6_text)) + $tmp_text = lang($$attr6_text); else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + $tmp_text = lang($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = lang($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = lang($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr6);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?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('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'=>'fullname','size'=>'','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_name='fullname' ?><?php $attr_size='' ?><?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( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('type'=>'text','name'=>'fullname','size'=>'','maxlength'=>'256') ?><?php $attr6_type='text' ?><?php $attr6_name='fullname' ?><?php $attr6_size='' ?><?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]; - -?><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'=>'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'; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; + +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('class'=>'text','text'=>'user_mail') ?><?php $attr6_class='text' ?><?php $attr6_text='user_mail' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key.'_HELP'); else - $attr_title = ''; + $attr6_title = ''; + +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) + if (!empty($attr6_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr6_array[$attr6_var].'%'; + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr6_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr6_text)) + if ( isset($$attr6_text)) + $tmp_text = lang($$attr6_text); else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + $tmp_text = lang($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = lang($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = lang($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr6);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?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('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'=>'mail','size'=>'','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_name='mail' ?><?php $attr_size='' ?><?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( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('type'=>'text','name'=>'mail','size'=>'','maxlength'=>'256') ?><?php $attr6_type='text' ?><?php $attr6_name='mail' ?><?php $attr6_size='' ?><?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]; - -?><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'=>'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'; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; + +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('class'=>'text','text'=>'user_desc') ?><?php $attr6_class='text' ?><?php $attr6_text='user_desc' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key.'_HELP'); else - $attr_title = ''; + $attr6_title = ''; + +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) + if (!empty($attr6_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr6_array[$attr6_var].'%'; + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr6_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr6_text)) + if ( isset($$attr6_text)) + $tmp_text = lang($$attr6_text); else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + $tmp_text = lang($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = lang($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = lang($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr6);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?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('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'=>'desc','size'=>'','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_name='desc' ?><?php $attr_size='' ?><?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( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('type'=>'text','name'=>'desc','size'=>'','maxlength'=>'256') ?><?php $attr6_type='text' ?><?php $attr6_name='desc' ?><?php $attr6_size='' ?><?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]; - -?><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'=>'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'; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; + +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('class'=>'text','text'=>'user_tel') ?><?php $attr6_class='text' ?><?php $attr6_text='user_tel' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key.'_HELP'); else - $attr_title = ''; + $attr6_title = ''; + +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) + if (!empty($attr6_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr6_array[$attr6_var].'%'; + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr6_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr6_text)) + if ( isset($$attr6_text)) + $tmp_text = lang($$attr6_text); else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + $tmp_text = lang($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = lang($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = lang($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr6);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?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('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'=>'tel','size'=>'','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_name='tel' ?><?php $attr_size='' ?><?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( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('type'=>'text','name'=>'tel','size'=>'','maxlength'=>'256') ?><?php $attr6_type='text' ?><?php $attr6_name='tel' ?><?php $attr6_size='' ?><?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]; - -?><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'=>'user_ldapdn') ?><?php $attr_class='text' ?><?php $attr_text='user_ldapdn' ?><?php - if(empty($attr_title)) - if (!empty($attr_key)) - $attr_title = lang($attr_key).'_HELP'; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; + +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('class'=>'text','text'=>'user_ldapdn') ?><?php $attr6_class='text' ?><?php $attr6_text='user_ldapdn' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key.'_HELP'); else - $attr_title = ''; + $attr6_title = ''; + +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) + if (!empty($attr6_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr6_array[$attr6_var].'%'; + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr6_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr6_text)) + if ( isset($$attr6_text)) + $tmp_text = lang($$attr6_text); else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + $tmp_text = lang($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = lang($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = lang($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr6);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?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('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'=>'ldap_dn','size'=>'','maxlength'=>'256','onchange'=>'') ?><?php $attr_class='' ?><?php $attr_default='' ?><?php $attr_type='text' ?><?php $attr_name='ldap_dn' ?><?php $attr_size='' ?><?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( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('type'=>'text','name'=>'ldap_dn','size'=>'','maxlength'=>'256') ?><?php $attr6_type='text' ?><?php $attr6_name='ldap_dn' ?><?php $attr6_size='' ?><?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]; - -?><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'=>'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'; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; + +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('class'=>'text','text'=>'user_style') ?><?php $attr6_class='text' ?><?php $attr6_text='user_style' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key.'_HELP'); else - $attr_title = ''; + $attr6_title = ''; + +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) + if (!empty($attr6_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr6_array[$attr6_var].'%'; + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr6_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr6_text)) + if ( isset($$attr6_text)) + $tmp_text = lang($$attr6_text); else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + $tmp_text = lang($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = lang($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = lang($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr6);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?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('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'=>'allstyles','name'=>'style','onchange'=>'','title'=>'','class'=>'') ?><?php $attr_list='allstyles' ?><?php $attr_name='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 -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'=>'allstyles','name'=>'style') ?><?php $attr6_list='allstyles' ?><?php $attr6_name='style' ?><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]; - -?><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'=>'user_admin') ?><?php $attr_class='text' ?><?php $attr_text='user_admin' ?><?php - if(empty($attr_title)) - if (!empty($attr_key)) - $attr_title = lang($attr_key).'_HELP'; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; + +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('class'=>'text','text'=>'user_admin') ?><?php $attr6_class='text' ?><?php $attr6_text='user_admin' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key.'_HELP'); else - $attr_title = ''; + $attr6_title = ''; + +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) + if (!empty($attr6_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr6_array[$attr6_var].'%'; + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr6_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr6_text)) + if ( isset($$attr6_text)) + $tmp_text = lang($$attr6_text); else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + $tmp_text = lang($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = lang($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = lang($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr6);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_text) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array('class'=>'fx') ?><?php $attr_class='fx' ?><?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('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('default'=>'','readonly'=>'','name'=>'is_admin') ?><?php $attr_default='' ?><?php $attr_readonly='' ?><?php $attr_name='is_admin' ?><?php - $attr_default = ( $attr_default == true ); +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('default'=>'','readonly'=>'','name'=>'is_admin') ?><?php $attr6_default='' ?><?php $attr6_readonly='' ?><?php $attr6_name='is_admin' ?><?php + $attr6_default = ( $attr6_default == true ); - if ( isset($$attr_name) ) - $checked = $$attr_name == true; -// $checked = isset($$$attr_name)&& $$$attr_name==true; + if ( isset($$attr6_name) ) + $checked = $$attr6_name == true; +// $checked = isset($$$attr6_name)&& $$$attr6_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 = $attr6_default == true; +?><input type="checkbox" id="id_<?php echo $attr6_name ?>" name="<?php echo $attr6_name ?>" <?php if ($attr6_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php unset($attr6_name); unset($attr6_readonly); unset($attr6_default); ?><?php unset($attr6) ?><?php unset($attr6_default) ?><?php unset($attr6_readonly) ?><?php unset($attr6_name) ?><?php $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> @@ -865,16 +938,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) { ?> @@ -885,4 +958,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/user/listing.tpl.php b/themes/default/pages/html/user/listing.tpl.php @@ -1,43 +1,52 @@ -<?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'=>'GLOBAL_USERS','icon'=>'user','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr_name='GLOBAL_USERS' ?><?php $attr_icon='user' ?><?php $attr_width='93%' ?><?php $attr_rowclasses='odd,even' ?><?php $attr_columnclasses='1,2,3' ?><?php +<?php unset($attr1) ?><?php unset($attr1_class) ?><?php unset($attr1_title) ?><?php $attr2 = array('name'=>'GLOBAL_USERS','icon'=>'user','width'=>'93%','rowclasses'=>'odd,even','columnclasses'=>'1,2,3') ?><?php $attr2_name='GLOBAL_USERS' ?><?php $attr2_icon='user' ?><?php $attr2_width='93%' ?><?php $attr2_rowclasses='odd,even' ?><?php $attr2_columnclasses='1,2,3' ?><?php $coloumn_widths=array(); - if (!empty($attr_widths)) + if (!empty($attr2_widths)) { - $column_widths = explode(',',$attr_widths); - unset($attr['widths']); + $column_widths = explode(',',$attr2_widths); + unset($attr2['widths']); } - if (!empty($attr_rowclasses)) + if (!empty($attr2_rowclasses)) { - $row_classes = explode(',',$attr_rowclasses); + $row_classes = explode(',',$attr2_rowclasses); $row_class_idx = 999; - unset($attr['rowclasses']); + unset($attr2['rowclasses']); } - if (!empty($attr_columnclasses)) + if (!empty($attr2_columnclasses)) { - $column_classes = explode(',',$attr_columnclasses); - unset($attr['columnclasses']); + $column_classes = explode(',',$attr2_columnclasses); + unset($attr2['columnclasses']); } global $image_dir; echo '<br/><br/><br/><center>'; - echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr_width.'">'; + echo '<table class="main" cellspacing="0" cellpadding="4" width="'.$attr2_width.'">'; echo '<tr><td class="menu">'; - if ( !empty($attr_icon) ) - echo '<img src="'.$image_dir.'icon_'.$attr_icon.IMG_ICON_EXT.'" align="left" border="0">'; + if ( !empty($attr2_icon) ) + echo '<img src="'.$image_dir.'icon_'.$attr2_icon.IMG_ICON_EXT.'" align="left" border="0">'; + if ( !is_array($path) ) + $path = array(); foreach( $path as $pathElement) { extract($pathElement); @@ -88,382 +97,432 @@ <tr> <td> - <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('list'=>'el','extract'=>'1','key'=>'list_key','value'=>'list_value') ?><?php $attr_list='el' ?><?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); + <table class="n" cellspacing="0" width="100%" cellpadding="4"><?php unset($attr2) ?><?php unset($attr2_name) ?><?php unset($attr2_icon) ?><?php unset($attr2_width) ?><?php unset($attr2_rowclasses) ?><?php unset($attr2_columnclasses) ?><?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 +?><?php unset($attr3) ?><?php unset($attr3_list) ?><?php unset($attr3_extract) ?><?php unset($attr3_key) ?><?php unset($attr3_value) ?><?php $attr4 = array() ?><?php $row_class_idx++; if ($row_class_idx > count($row_classes)) $row_class_idx=1; $row_class=$row_classes[$row_class_idx-1]; - if (empty($attr_class)) - $attr_class=$row_class; + if (empty($attr4_class)) + $attr4_class=$row_class; global $cell_column_nr; $cell_column_nr=0; $column_class_idx = 999; -?><tr class="<?php echo $attr_class ?>"><?php unset($attr) ?><?php $attr = array('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('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; +?><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 $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'=>'user') ?><?php $attr_align='left' ?><?php $attr_type='user' ?><?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'; + $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'=>'user') ?><?php $attr7_align='left' ?><?php $attr7_type='user' ?><?php +if (isset($attr7_elementtype)) { +?><img src="<?php echo $image_dir.'icon_el_'.$attr7_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_type)) { +?><img src="<?php echo $image_dir.'icon_'.$attr7_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_icon)) { +?><img src="<?php echo $image_dir.'icon_'.$attr7_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_url)) { +?><img src="<?php echo $attr7_url ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_fileext)) { +?><img src="<?php echo $image_dir.$attr7_fileext ?>" border="0" align="<?php echo $attr7_align ?>"><?php +} elseif (isset($attr7_file)) { +?><img src="<?php echo $image_dir.$attr7_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr7_align ?>"><?php } ?><?php unset($attr7) ?><?php unset($attr7_align) ?><?php unset($attr7_type) ?><?php $attr7 = array('class'=>'text','var'=>'name') ?><?php $attr7_class='text' ?><?php $attr7_var='name' ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + + if(empty($attr7_title)) + if (!empty($attr7_key)) + $attr7_title = lang($attr7_key.'_HELP'); else - $attr_title = ''; + $attr7_title = ''; + +?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php + $attr7_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) + if (!empty($attr7_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr7_array[$attr7_var].'%'; + $tmpArray = $$attr7_array; + if (!empty($attr7_var)) + $tmp_text = $tmpArray[$attr7_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr7_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr7_text)) + if ( isset($$attr7_text)) + $tmp_text = lang($$attr7_text); else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + $tmp_text = lang($attr7_text); + elseif (!empty($attr7_textvar)) + $tmp_text = lang($$attr7_textvar); + elseif (!empty($attr7_key)) + $tmp_text = lang($attr7_key); + elseif (!empty($attr7_var)) + $tmp_text = isset($$attr7_var)?htmlentities($$attr7_var):'error: variable '.$attr7_var.' not present'; + elseif (!empty($attr7_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr7_raw); + elseif (!empty($attr7_value)) + $tmp_text = $attr7_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr7);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr7_maxlength) && intval($attr7_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr7_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_var) ?><?php $attr = array() ?></a><?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_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($attr_class)) - $attr['class']=$column_class; + if (empty($attr5_class)) + $attr5['class']=$column_class; global $cell_column_nr; $cell_column_nr++; - if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr_rowspan) ) - $attr['width']=$column_widths[$cell_column_nr-1]; + if ( isset($column_widths[$cell_column_nr-1]) && !isset($attr5_rowspan) ) + $attr5['width']=$column_widths[$cell_column_nr-1]; + +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('class'=>'text','value'=>$fullname) ?><?php $attr6_class='text' ?><?php $attr6_value=$fullname ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_class) ?><?php $attr = array('class'=>'text','value'=>$fullname) ?><?php $attr_class='text' ?><?php $attr_value=$fullname ?><?php - if(empty($attr_title)) - if (!empty($attr_key)) - $attr_title = lang($attr_key).'_HELP'; + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key.'_HELP'); else - $attr_title = ''; + $attr6_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; + + if (!empty($attr6_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr6_array[$attr6_var].'%'; + $tmpArray = $$attr6_array; + if (!empty($attr6_var)) + $tmp_text = $tmpArray[$attr6_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr6_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr6_text)) + if ( isset($$attr6_text)) + $tmp_text = lang($$attr6_text); else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + $tmp_text = lang($attr6_text); + elseif (!empty($attr6_textvar)) + $tmp_text = lang($$attr6_textvar); + elseif (!empty($attr6_key)) + $tmp_text = lang($attr6_key); + elseif (!empty($attr6_var)) + $tmp_text = isset($$attr6_var)?htmlentities($$attr6_var):'error: variable '.$attr6_var.' not present'; + elseif (!empty($attr6_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr6_raw); + elseif (!empty($attr6_value)) + $tmp_text = $attr6_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr6);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr6_maxlength) && intval($attr6_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr6_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_value) ?><?php $attr = array('true'=>$isAdmin) ?><?php $attr_true=$isAdmin ?><?php +?></span><?php unset($attr6) ?><?php unset($attr6_class) ?><?php unset($attr6_value) ?><?php $attr6 = array('true'=>$isAdmin) ?><?php $attr6_true=$isAdmin ?><?php // Wahr-Vergleich -// Html::debug($attr); +// Html::debug($attr6); - if ( isset($attr_true) ) + if ( isset($attr6_true) ) { - if (gettype($attr_true) === '' && gettype($attr_true) === '1') - $exec = $$attr_true == true; + if (gettype($attr6_true) === '' && gettype($attr6_true) === '1') + $exec = $$attr6_true == true; else - $exec = $attr_true == true; + $exec = $attr6_true == true; } // Falsch-Vergleich - elseif ( isset($attr_false) ) + elseif ( isset($attr6_false) ) { - if (gettype($attr_false) === '' && gettype($attr_false) === '1') - $exec = $$attr_false == false; + if (gettype($attr6_false) === '' && gettype($attr6_false) === '1') + $exec = $$attr6_false == false; else - $exec = $attr_false == false; + $exec = $attr6_false == false; } // Inhalt-Vergleich mit Wertliste - elseif( isset($attr_contains) ) - $exec = in_array($$attr_var,explode(',',$attr_contains)); + elseif( isset($attr6_contains) ) + $exec = in_array($attr6_value,explode(',',$attr6_contains)); // Inhalt-Vergleich - elseif( isset($attr_var) ) - $exec = $$attr_var == $attr_value; + elseif( isset($attr6_equals)&& isset($attr6_value) ) + $exec = $attr6_equals == $attr6_value; // Vergleich auf leer - elseif ( isset($attr_empty) ) + elseif ( isset($attr6_empty) ) { - if ( !isset($$attr_empty) ) - $exec = empty($attr_empty); - elseif ( is_array($$attr_empty) ) - $exec = (count($$attr_empty)==0); - elseif ( is_bool($$attr_empty) ) + if ( !isset($$attr6_empty) ) + $exec = empty($attr6_empty); + elseif ( is_array($$attr6_empty) ) + $exec = (count($$attr6_empty)==0); + elseif ( is_bool($$attr6_empty) ) $exec = true; else - $exec = empty( $$attr_empty ); + $exec = empty( $$attr6_empty ); } // Vergleich auf Vorhandensein - elseif ( isset($attr_present) ) + elseif ( isset($attr6_present) ) { - if ( !isset($$attr_present) ) - $exec = false; - elseif ( is_array($$attr_present) ) - $exec = (count($$attr_present)>0); - elseif ( is_bool($$attr_present) ) - $exec = true; - elseif ( is_numeric($$attr_present) ) - $exec = $$attr_present>=0; - else - $exec = true; + $exec = isset($$attr6_present); +// if ( !isset($$attr6_present) ) +// $exec = false; +// elseif ( is_array($$attr6_present) ) +// $exec = (count($$attr6_present)>0); +// elseif ( is_bool($$attr6_present) ) +// $exec = $$attr6_present; +// elseif ( is_numeric($$attr6_present) ) +// $exec = $$attr6_present>=0; +// else +// $exec = true; } else { - Html::debug( $attr ); + Html::debug( $attr6 ); echo("error in IF line ".__LINE__); echo("assume: FALSE"); $exec = false; } // Ergebnis umdrehen - if ( !empty($attr_invert) ) + // TODO: Bald ausbauen, stattdessen "not" verwenden. + if ( !empty($attr6_invert) ) $exec = !$exec; // Ergebnis umdrehen - if ( !empty($attr_not) ) + if ( !empty($attr6_not) ) $exec = !$exec; - unset($attr_true); - unset($attr_false); - unset($attr_notempty); - unset($attr_empty); - unset($attr_contains); - unset($attr_present); - unset($attr_invert); - unset($attr_not); - unset($attr_value); - unset($attr_var); + unset($attr6_true); + unset($attr6_false); + unset($attr6_notempty); + unset($attr6_empty); + unset($attr6_contains); + unset($attr6_present); + unset($attr6_invert); + unset($attr6_not); + unset($attr6_value); + unset($attr6_equals); + $last_exec = $exec; + if ( $exec ) { -?><?php unset($attr) ?><?php unset($attr_true) ?><?php $attr = array('class'=>'text','raw'=>'_(') ?><?php $attr_class='text' ?><?php $attr_raw='_(' ?><?php - if(empty($attr_title)) - if (!empty($attr_key)) - $attr_title = lang($attr_key).'_HELP'; +?><?php unset($attr6) ?><?php unset($attr6_true) ?><?php $attr7 = array('class'=>'text','raw'=>'_(') ?><?php $attr7_class='text' ?><?php $attr7_raw='_(' ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + + if(empty($attr7_title)) + if (!empty($attr7_key)) + $attr7_title = lang($attr7_key.'_HELP'); else - $attr_title = ''; + $attr7_title = ''; + +?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php + $attr7_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) + if (!empty($attr7_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr7_array[$attr7_var].'%'; + $tmpArray = $$attr7_array; + if (!empty($attr7_var)) + $tmp_text = $tmpArray[$attr7_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr7_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr7_text)) + if ( isset($$attr7_text)) + $tmp_text = lang($$attr7_text); else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + $tmp_text = lang($attr7_text); + elseif (!empty($attr7_textvar)) + $tmp_text = lang($$attr7_textvar); + elseif (!empty($attr7_key)) + $tmp_text = lang($attr7_key); + elseif (!empty($attr7_var)) + $tmp_text = isset($$attr7_var)?htmlentities($$attr7_var):'error: variable '.$attr7_var.' not present'; + elseif (!empty($attr7_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr7_raw); + elseif (!empty($attr7_value)) + $tmp_text = $attr7_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr7);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr7_maxlength) && intval($attr7_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr7_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_raw) ?><?php $attr = array('class'=>'text','key'=>'USER_ADMIN') ?><?php $attr_class='text' ?><?php $attr_key='USER_ADMIN' ?><?php - if(empty($attr_title)) - if (!empty($attr_key)) - $attr_title = lang($attr_key).'_HELP'; +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_raw) ?><?php $attr7 = array('class'=>'text','key'=>'USER_ADMIN') ?><?php $attr7_class='text' ?><?php $attr7_key='USER_ADMIN' ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + + if(empty($attr7_title)) + if (!empty($attr7_key)) + $attr7_title = lang($attr7_key.'_HELP'); else - $attr_title = ''; + $attr7_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) +?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php + $attr7_title = ''; + + if (!empty($attr7_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr7_array[$attr7_var].'%'; + $tmpArray = $$attr7_array; + if (!empty($attr7_var)) + $tmp_text = $tmpArray[$attr7_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr7_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr7_text)) + if ( isset($$attr7_text)) + $tmp_text = lang($$attr7_text); else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + $tmp_text = lang($attr7_text); + elseif (!empty($attr7_textvar)) + $tmp_text = lang($$attr7_textvar); + elseif (!empty($attr7_key)) + $tmp_text = lang($attr7_key); + elseif (!empty($attr7_var)) + $tmp_text = isset($$attr7_var)?htmlentities($$attr7_var):'error: variable '.$attr7_var.' not present'; + elseif (!empty($attr7_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr7_raw); + elseif (!empty($attr7_value)) + $tmp_text = $attr7_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr7);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr7_maxlength) && intval($attr7_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr7_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_key) ?><?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($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_key) ?><?php $attr7 = array('class'=>'text','raw'=>')') ?><?php $attr7_class='text' ?><?php $attr7_raw=')' ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; + + if(empty($attr7_title)) + if (!empty($attr7_key)) + $attr7_title = lang($attr7_key.'_HELP'); else - $attr_title = ''; + $attr7_title = ''; -?><span class="<?php echo $attr_class ?>" title="<?php echo $attr_title ?>"><?php - $attr_title = ''; - if (!empty($attr_array)) +?><span class="<?php echo $attr7_class ?>" title="<?php echo $attr7_title ?>"><?php + $attr7_title = ''; + + if (!empty($attr7_array)) { //geht nicht: - //echo $$attr_array[$attr_var].'%'; - $tmpArray = $$attr_array; - if (!empty($attr_var)) - $tmp_text = $tmpArray[$attr_var]; + //echo $$attr7_array[$attr7_var].'%'; + $tmpArray = $$attr7_array; + if (!empty($attr7_var)) + $tmp_text = $tmpArray[$attr7_var]; else - $tmp_text = lang($tmpArray[$attr_text]); + $tmp_text = lang($tmpArray[$attr7_text]); } - elseif (!empty($attr_text)) - if ( isset($$attr_text)) - $tmp_text = lang($$attr_text); + elseif (!empty($attr7_text)) + if ( isset($$attr7_text)) + $tmp_text = lang($$attr7_text); else - $tmp_text = lang($attr_text); - elseif (!empty($attr_textvar)) - $tmp_text = lang($$attr_textvar); - elseif (!empty($attr_key)) - $tmp_text = lang($attr_key); - elseif (!empty($attr_var)) - $tmp_text = isset($$attr_var)?htmlentities($$attr_var):'error: variable '.$attr_var.' not present'; - elseif (!empty($attr_raw)) - $tmp_text = str_replace('_','&nbsp;',$attr_raw); - elseif (!empty($attr_value)) - $tmp_text = $attr_value; + $tmp_text = lang($attr7_text); + elseif (!empty($attr7_textvar)) + $tmp_text = lang($$attr7_textvar); + elseif (!empty($attr7_key)) + $tmp_text = lang($attr7_key); + elseif (!empty($attr7_var)) + $tmp_text = isset($$attr7_var)?htmlentities($$attr7_var):'error: variable '.$attr7_var.' not present'; + elseif (!empty($attr7_raw)) + $tmp_text = str_replace('_','&nbsp;',$attr7_raw); + elseif (!empty($attr7_value)) + $tmp_text = $attr7_value; else - { Html::debug($attr);echo 'text error'; + { + $tmp_text = '&nbsp;'; + //Html::debug($attr7);echo 'text error'; } - if ( !empty($attr_maxlength) && intval($attr_maxlength)!=0 ) - $tmp_text = Text::maxLength( $tmp_text,intval($attr_maxlength) ); + if ( !empty($attr7_maxlength) && intval($attr7_maxlength)!=0 ) + $tmp_text = Text::maxLength( $tmp_text,intval($attr7_maxlength) ); echo $tmp_text; -?></span><?php unset($attr) ?><?php unset($attr_class) ?><?php unset($attr_raw) ?><?php $attr = array() ?><?php +?></span><?php unset($attr7) ?><?php unset($attr7_class) ?><?php unset($attr7_raw) ?><?php $attr5 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php } ?><?php unset($attr) ?><?php $attr = array() ?> </table> +?><?php unset($attr5) ?><?php $attr4 = array() ?></td><?php unset($attr4) ?><?php $attr3 = array() ?></tr><?php unset($attr3) ?><?php $attr2 = array() ?><?php } ?><?php unset($attr2) ?><?php $attr1 = array() ?> </table> </td> </tr> </table> @@ -477,7 +536,7 @@ if (isset($attr_elementtype)) { <?php $dur = time()-START_TIME; echo floor($dur/60).':'.str_pad($dur%60,2,'0',STR_PAD_LEFT); ?></small> <?php } ?> -<?php unset($attr) ?><?php $attr = array() ?> +<?php unset($attr1) ?><?php $attr0 = array() ?> <!-- $Id$ --> <?php if ($showDuration) { ?> @@ -488,4 +547,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/user/pw.tpl.php b/themes/default/pages/html/user/pw.tpl.php @@ -1,62 +1,70 @@ -<?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(); - -?><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_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_PASSWORD','icon'=>'','widths'=>'','width'=>'93%','rowclasses'=>'rx','columnclasses'=>'fx') ?><?php $attr_title='' ?><?php $attr_name='USER_PASSWORD' ?><?php $attr_icon='' ?><?php $attr_widths='' ?><?php $attr_width='93%' ?><?php $attr_rowclasses='rx' ?><?php $attr_columnclasses='fx' ?><?php +?><?php unset($attr2) ?><?php unset($attr2_target) ?><?php unset($attr2_method) ?><?php unset($attr2_enctype) ?><?php $attr3 = array('name'=>'USER_PASSWORD','width'=>'93%','rowclasses'=>'rx','columnclasses'=>'fx') ?><?php $attr3_name='USER_PASSWORD' ?><?php $attr3_width='93%' ?><?php $attr3_rowclasses='rx' ?><?php $attr3_columnclasses='fx' ?><?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,597 +115,775 @@ <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_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($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'=>'fx','colspan'=>'') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?php $attr_colspan='' ?><?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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'user_username','textvar'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='user_username' ?><?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 unset($attr5_class) ?><?php $attr6 = array('class'=>'text','text'=>'user_username') ?><?php $attr6_class='text' ?><?php $attr6_text='user_username' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key.'_HELP'); + else + $attr6_title = ''; + +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; + + if (!empty($attr6_array)) { //geht nicht: - //echo $$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'=>'fx','colspan'=>'') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?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('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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?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 unset($attr5_class) ?><?php $attr6 = array('class'=>'text','var'=>'name') ?><?php $attr6_class='text' ?><?php $attr6_var='name' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key.'_HELP'); + else + $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($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) ); + 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_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('class'=>'') ?><?php $attr_class='' ?><?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 $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'=>'fx','colspan'=>'') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?php $attr_colspan='' ?><?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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'USER_new_password','textvar'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='USER_new_password' ?><?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 unset($attr5_class) ?><?php $attr6 = array('class'=>'text','text'=>'USER_new_password') ?><?php $attr6_class='text' ?><?php $attr6_text='USER_new_password' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; + + if(empty($attr6_title)) + if (!empty($attr6_key)) + $attr6_title = lang($attr6_key.'_HELP'); + else + $attr6_title = ''; + +?><span class="<?php echo $attr6_class ?>" title="<?php echo $attr6_title ?>"><?php + $attr6_title = ''; + + if (!empty($attr6_array)) { //geht nicht: - //echo $$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'=>'fx','colspan'=>'') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?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('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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('name'=>'password1','default'=>'','class'=>'','size'=>'40','maxlength'=>'256') ?><?php $attr_name='password1' ?><?php $attr_default='' ?><?php $attr_class='' ?><?php $attr_size='40' ?><?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('class'=>'') ?><?php $attr_class='' ?><?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('name'=>'password1','size'=>'40','maxlength'=>'256') ?><?php $attr6_name='password1' ?><?php $attr6_size='40' ?><?php $attr6_maxlength='256' ?><input type="password" name="<?php echo $attr6_name ?>" 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 ?>" /><?php unset($attr6) ?><?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'=>'fx','colspan'=>'') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?php $attr_colspan='' ?><?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( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('class'=>'text','text'=>'USER_new_password_repeat') ?><?php $attr6_class='text' ?><?php $attr6_text='USER_new_password_repeat' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'USER_new_password_repeat','textvar'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='USER_new_password_repeat' ?><?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)) + 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($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) ); + 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_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 -// 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('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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('name'=>'password2','default'=>'','class'=>'','size'=>'40','maxlength'=>'256') ?><?php $attr_name='password2' ?><?php $attr_default='' ?><?php $attr_class='' ?><?php $attr_size='40' ?><?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('var'=>'','value'=>'','invert'=>'','empty'=>'','present'=>'mail','contains'=>'','true'=>'','false'=>'') ?><?php $attr_var='' ?><?php $attr_value='' ?><?php $attr_invert='' ?><?php $attr_empty='' ?><?php $attr_present='mail' ?><?php $attr_contains='' ?><?php $attr_true='' ?><?php $attr_false='' ?><?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('name'=>'password2','size'=>'40','maxlength'=>'256') ?><?php $attr6_name='password2' ?><?php $attr6_size='40' ?><?php $attr6_maxlength='256' ?><input type="password" name="<?php echo $attr6_name ?>" 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 ?>" /><?php unset($attr6) ?><?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('present'=>'mail') ?><?php $attr4_present='mail' ?><?php // Wahr-Vergleich - if ( !empty($attr_true) ) - $exec = $$attr_true == true; +// Html::debug($attr4); + + if ( isset($attr4_true) ) + { + if (gettype($attr4_true) === '' && gettype($attr4_true) === '1') + $exec = $$attr4_true == true; + else + $exec = $attr4_true == true; + } // Falsch-Vergleich - elseif ( !empty($attr_false) ) - $exec = $$attr_false != true; - + elseif ( isset($attr4_false) ) + { + if (gettype($attr4_false) === '' && gettype($attr4_false) === '1') + $exec = $$attr4_false == false; + else + $exec = $attr4_false == false; + } // Inhalt-Vergleich mit Wertliste - elseif( !empty($attr_contains) ) - $exec = in_array($$attr_var,explode(',',$attr_contains)); + elseif( isset($attr4_contains) ) + $exec = in_array($attr4_value,explode(',',$attr4_contains)); // Inhalt-Vergleich - elseif( !empty($attr_var) ) - $exec = $$attr_var == $attr_value; + elseif( isset($attr4_equals)&& isset($attr4_value) ) + $exec = $attr4_equals == $attr4_value; // Vergleich auf leer - elseif ( !empty($attr_empty) ) + elseif ( isset($attr4_empty) ) { - if ( !isset($$attr_empty) ) - $exec = true; - elseif ( is_array($$attr_empty) ) - $exec = (count($$attr_empty)==0); - elseif ( is_bool($$attr_empty) ) + if ( !isset($$attr4_empty) ) + $exec = empty($attr4_empty); + elseif ( is_array($$attr4_empty) ) + $exec = (count($$attr4_empty)==0); + elseif ( is_bool($$attr4_empty) ) $exec = true; else - $exec = empty( $$attr_empty ); + $exec = empty( $$attr4_empty ); } // Vergleich auf Vorhandensein - elseif ( !empty($attr_present) ) + elseif ( isset($attr4_present) ) { - if ( !isset($$attr_present) ) - $exec = false; - elseif ( is_array($$attr_present) ) - $exec = (count($$attr_present)>0); - elseif ( is_bool($$attr_present) ) - $exec = true; - elseif ( is_numeric($$attr_present) ) - $exec = $$attr_present>=0; - else - $exec = true; + $exec = isset($$attr4_present); +// if ( !isset($$attr4_present) ) +// $exec = false; +// elseif ( is_array($$attr4_present) ) +// $exec = (count($$attr4_present)>0); +// elseif ( is_bool($$attr4_present) ) +// $exec = $$attr4_present; +// elseif ( is_numeric($$attr4_present) ) +// $exec = $$attr4_present>=0; +// else +// $exec = true; } - // Vergleich auf nicht-leer - elseif ( !empty($attr_notempty) ) - { - if ( !isset($$attr_notempty) ) - $exec = false; - elseif ( is_array($$attr_notempty) ) - $exec = (count($$attr_notempty)>0); - elseif ( is_bool($$attr_notempty) ) - $exec = true; - elseif ( is_numeric($$attr_notempty) ) - $exec = $$attr_notempty>=0; - else - $exec = !empty( $$attr_notempty ); - } else { - die("error in IF"); + Html::debug( $attr4 ); + echo("error in IF line ".__LINE__); + echo("assume: FALSE"); + $exec = false; } // Ergebnis umdrehen - if ( !empty($attr_invert) ) + // TODO: Bald ausbauen, stattdessen "not" verwenden. + if ( !empty($attr4_invert) ) + $exec = !$exec; + + // Ergebnis umdrehen + if ( !empty($attr4_not) ) $exec = !$exec; + unset($attr4_true); + unset($attr4_false); + unset($attr4_notempty); + unset($attr4_empty); + unset($attr4_contains); + unset($attr4_present); + unset($attr4_invert); + unset($attr4_not); + unset($attr4_value); + unset($attr4_equals); + + $last_exec = $exec; + if ( $exec ) { -?><?php unset($attr) ?><?php unset($attr_var) ?><?php unset($attr_value) ?><?php unset($attr_invert) ?><?php unset($attr_empty) ?><?php unset($attr_present) ?><?php unset($attr_contains) ?><?php unset($attr_true) ?><?php unset($attr_false) ?><?php $attr = array('class'=>'') ?><?php $attr_class='' ?><?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 unset($attr_class) ?><?php $attr = array('width'=>'','style'=>'','class'=>'fx','colspan'=>'') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?php $attr_colspan='' ?><?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( $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_mail_new_password') ?><?php $attr7_class='text' ?><?php $attr7_text='user_mail_new_password' ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $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_new_password','textvar'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='user_mail_new_password' ?><?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)) + 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() ?></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 -// 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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('default'=>'false','readonly'=>'false','name'=>'email') ?><?php $attr_default='false' ?><?php $attr_readonly='false' ?><?php $attr_name='email' ?><?php - $attr_name = !empty($$attr_name)?$$attr_name:$attr_name; - $attr_readonly = ( $attr_readonly == 'true' ); - $attr_default = ( $attr_default == 'true' ); +?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php $attr7 = array('default'=>'','readonly'=>'','name'=>'email') ?><?php $attr7_default='' ?><?php $attr7_readonly='' ?><?php $attr7_name='email' ?><?php + $attr7_default = ( $attr7_default == true ); - if ( isset($$attr_name) ) - $checked = isset($$$attr_name)&& $$$attr_name==true; + if ( isset($$attr7_name) ) + $checked = $$attr7_name == true; +// $checked = isset($$$attr7_name)&& $$$attr7_name==true; else - $checked = $attr_default; -?><input type="checkbox" name="<?php echo $attr_name ?>" <?php if ($attr_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php unset($attr) ?><?php unset($attr_default) ?><?php unset($attr_readonly) ?><?php unset($attr_name) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array('class'=>'') ?><?php $attr_class='' ?><?php + $checked = $attr7_default == true; +?><input type="checkbox" id="id_<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" <?php if ($attr7_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php unset($attr7_name); unset($attr7_readonly); unset($attr7_default); ?><?php unset($attr7) ?><?php unset($attr7_default) ?><?php unset($attr7_readonly) ?><?php unset($attr7_name) ?><?php $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 unset($attr_class) ?><?php $attr = array('width'=>'','style'=>'','class'=>'fx','colspan'=>'') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?php $attr_colspan='' ?><?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( $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_random_password') ?><?php $attr7_class='text' ?><?php $attr7_text='user_random_password' ?><?php + if ( isset($attr7_prefix)&& isset($attr7_key)) + $attr7_key = $attr7_prefix.$attr7_key; + if ( isset($attr7_suffix)&& isset($attr7_key)) + $attr7_key = $attr7_key.$attr7_suffix; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $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_random_password','textvar'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='user_random_password' ?><?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)) + 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($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) ); + 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_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 -// 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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('default'=>'false','readonly'=>'false','name'=>'random') ?><?php $attr_default='false' ?><?php $attr_readonly='false' ?><?php $attr_name='random' ?><?php - $attr_name = !empty($$attr_name)?$$attr_name:$attr_name; - $attr_readonly = ( $attr_readonly == 'true' ); - $attr_default = ( $attr_default == 'true' ); +?><td <?php foreach( $attr6 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr6) ?><?php unset($attr6_class) ?><?php $attr7 = array('default'=>'','readonly'=>'','name'=>'random') ?><?php $attr7_default='' ?><?php $attr7_readonly='' ?><?php $attr7_name='random' ?><?php + $attr7_default = ( $attr7_default == true ); - if ( isset($$attr_name) ) - $checked = isset($$$attr_name)&& $$$attr_name==true; + if ( isset($$attr7_name) ) + $checked = $$attr7_name == true; +// $checked = isset($$$attr7_name)&& $$$attr7_name==true; else - $checked = $attr_default; -?><input type="checkbox" name="<?php echo $attr_name ?>" <?php if ($attr_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php unset($attr) ?><?php unset($attr_default) ?><?php unset($attr_readonly) ?><?php unset($attr_name) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array() ?><?php + $checked = $attr7_default == true; +?><input type="checkbox" id="id_<?php echo $attr7_name ?>" name="<?php echo $attr7_name ?>" <?php if ($attr7_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php unset($attr7_name); unset($attr7_readonly); unset($attr7_default); ?><?php unset($attr7) ?><?php unset($attr7_default) ?><?php unset($attr7_readonly) ?><?php unset($attr7_name) ?><?php $attr5 = array() ?></td><?php unset($attr5) ?><?php $attr4 = array() ?></tr><?php unset($attr4) ?><?php $attr3 = array() ?><?php } -?><?php unset($attr) ?><?php $attr = array('class'=>'') ?><?php $attr_class='' ?><?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 unset($attr_class) ?><?php $attr = array('width'=>'','style'=>'','class'=>'fx','colspan'=>'') ?><?php $attr_width='' ?><?php $attr_style='' ?><?php $attr_class='fx' ?><?php $attr_colspan='' ?><?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( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('class'=>'text','text'=>'user_password_timeout') ?><?php $attr6_class='text' ?><?php $attr6_text='user_password_timeout' ?><?php + if ( isset($attr6_prefix)&& isset($attr6_key)) + $attr6_key = $attr6_prefix.$attr6_key; + if ( isset($attr6_suffix)&& isset($attr6_key)) + $attr6_key = $attr6_key.$attr6_suffix; -?><td <?php foreach( $attr as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr) ?><?php unset($attr_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('title'=>'','class'=>'','var'=>'','text'=>'user_password_timeout','textvar'=>'','raw'=>'','maxlength'=>'') ?><?php $attr_title='' ?><?php $attr_class='' ?><?php $attr_var='' ?><?php $attr_text='user_password_timeout' ?><?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)) + 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($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) ); + 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_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 -// 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('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_width) ?><?php unset($attr_style) ?><?php unset($attr_class) ?><?php unset($attr_colspan) ?><?php $attr = array('default'=>'false','readonly'=>'false','name'=>'timeout') ?><?php $attr_default='false' ?><?php $attr_readonly='false' ?><?php $attr_name='timeout' ?><?php - $attr_name = !empty($$attr_name)?$$attr_name:$attr_name; - $attr_readonly = ( $attr_readonly == 'true' ); - $attr_default = ( $attr_default == 'true' ); +?><td <?php foreach( $attr5 as $a_name=>$a_value ) echo " $a_name=\"$a_value\"" ?>><?php unset($attr5) ?><?php unset($attr5_class) ?><?php $attr6 = array('default'=>'','readonly'=>'','name'=>'timeout') ?><?php $attr6_default='' ?><?php $attr6_readonly='' ?><?php $attr6_name='timeout' ?><?php + $attr6_default = ( $attr6_default == true ); - if ( isset($$attr_name) ) - $checked = isset($$$attr_name)&& $$$attr_name==true; + if ( isset($$attr6_name) ) + $checked = $$attr6_name == true; +// $checked = isset($$$attr6_name)&& $$$attr6_name==true; else - $checked = $attr_default; -?><input type="checkbox" name="<?php echo $attr_name ?>" <?php if ($attr_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php unset($attr) ?><?php unset($attr_default) ?><?php unset($attr_readonly) ?><?php unset($attr_name) ?><?php $attr = array() ?></td><?php unset($attr) ?><?php $attr = array() ?></tr><?php unset($attr) ?><?php $attr = array('class'=>'') ?><?php $attr_class='' ?><?php + $checked = $attr6_default == true; +?><input type="checkbox" id="id_<?php echo $attr6_name ?>" name="<?php echo $attr6_name ?>" <?php if ($attr6_readonly) echo ' disabled="disabled"' ?> value="1" <?php if( $checked ) echo 'checked="checked"' ?> /><?php unset($attr6_name); unset($attr6_readonly); unset($attr6_default); ?><?php unset($attr6) ?><?php unset($attr6_default) ?><?php unset($attr6_readonly) ?><?php unset($attr6_name) ?><?php $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'=>'act','colspan'=>'2') ?><?php $attr_width='' ?><?php $attr_style='' ?><?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_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> @@ -711,11 +897,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'=>'password1') ?><?php $attr_field='password1' ?><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'=>'password1') ?><?php $attr2_field='password1' ?> +<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) { ?> @@ -726,4 +917,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